feat: MCP server with pagination support - #59
Merged
Merged
Conversation
Implements Model Context Protocol (MCP) server for semantic code search: - Full MCP server with semantic, regex, and hybrid search tools - Session-based pagination to prevent 25K+ token responses - Default 50 results per page (max 200) with 5-minute TTL - Opaque cursor system for secure pagination - Preserves existing CLI behavior completely - Increases top_k from 10 to 500 for proper pagination 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
runonthespot
force-pushed
the
ck-serve
branch
from
September 21, 2025 07:07
fcb539e to
b5ab8d7
Compare
Resolves clippy::collapsible_if warnings in test code. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Major feature addition: MCP (Model Context Protocol) server support - Semantic, regex, and hybrid search tools via MCP - Session-based pagination for large result sets - Complete CLI compatibility maintained 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Fix stale index handling: Skip missing files during snippet extraction to prevent crashes - Restore MCP default top_k=100 behavior for consistent API defaults - Fix pagination cursor persistence: Add original_page_size to maintain consistent page sizes across pagination - Fix page_size metadata: Return original request size instead of dynamic slice length - Add comprehensive tests for missing file scenarios and top_k/page_size interactions - Update README with clarified pagination defaults and best practices 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Move MCP server integration to prominent headline features section - Reduce sprawl from 615 to 429 lines with better organization - Improve structure with clear emoji headers and logical flow - Move installation instructions higher for better discoverability - Consolidate examples into clearer categories - Enhanced readability while preserving all technical content 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add clear exclusion pattern examples with .gitignore syntax (Issue #16) - Clarify package manager availability status (Issue #31) - Document that text files are indexed regardless of extension (Issue #18) - Add note about safe Ctrl+C interruption during indexing (Issue #29) - Update testing section to use cargo test instead of old shell scripts - Add CI requirements section for contributors (fmt, clippy, tests) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Key Features
--serveflagChanges
ck-cli/src/mcp_server.rsck-cli/src/mcp/session.rsTest plan
🤖 Generated with Claude Code