feat: MCP Phase 1 — Code Intelligence tools (#284)#287
Merged
Conversation
Add 5 MCP tools for code intelligence: - cora.search_symbols: FTS5 search across symbol index Input: query, kind?, file?, language?, limit? Output: JSON array of matching symbols - cora.find_callers: reverse call graph traversal Input: symbol, limit? Output: JSON array of caller locations - cora.find_impact: blast radius analysis Input: symbol, depth? Output: JSON array of affected symbols by depth level - cora.find_affected_tests: test file selection Input: files[] (changed source files) Output: JSON with affected_tests array + count - cora.index_status: index health check Input: none Output: JSON with total_symbols, files, by_kind, by_language All tools: - Read-only (no side effects) - JSON output for agent parsing - Graceful degradation (helpful error if no index) - Fast: <100ms (no LLM calls) - Stateless Runtime verified via MCP protocol: index_status → 534 symbols, 49 files ✅ find_callers open_index → 11 callers ✅ find_impact open_index -d 2 → 21 affected sites ✅ find_affected_tests src/main.rs → 2 test files ✅ 7 new unit tests (parameter validation + tool listing). 559 tests total, clippy clean.
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.
MCP Phase 1 — Code Intelligence Tools
Expose v0.6/v0.7 code intelligence to AI agents (Claude Code, Cursor, Windsurf).
5 New MCP Tools
cora.search_symbolsquery,kind?,file?,language?,limit?cora.find_callerssymbol,limit?cora.find_impactsymbol,depth?cora.find_affected_testsfiles[]cora.index_statusDesign
Tests
Example Agent Session