Skip to content

feat(mcp): surface supported languages in MCP server instructions#678

Open
colbymchenry wants to merge 1 commit into
mainfrom
feat/mcp-supported-languages
Open

feat(mcp): surface supported languages in MCP server instructions#678
colbymchenry wants to merge 1 commit into
mainfrom
feat/mcp-supported-languages

Conversation

@colbymchenry
Copy link
Copy Markdown
Owner

What

The MCP initialize instructions — the first thing every agent sees about codegraph — listed no languages. So agents (and the users driving them) assumed languages like Rust weren't supported even though they're fully indexed, and skipped the codegraph tools entirely. That was the real gap behind #671 ("Rust support"), where Rust has in fact worked end-to-end for several releases (verified: structs/traits/impl/methods/calls, callers/callees/impact, trait implements edges, and Axum/Actix/Rocket route extraction + cargo-workspace resolution).

This adds one concise line to the opening paragraph of server-instructions.ts:

It indexes 20+ languages — TypeScript/JavaScript, Python, Go, Rust, Java, C#, C/C++, PHP, Ruby, Swift, Kotlin, and more.

Why here

server-instructions.ts is the single source of truth for agent-facing guidance (#529) and the first place the false "language X isn't supported" assumption forms. The README documents the full list, but it isn't reachable from inside the tool, which is where agents actually meet it.

Testing

  • npm run build — clean
  • npx vitest run __tests__/mcp-initialize.test.ts — 3/3 pass (exercises the initialize response that carries these instructions)

refs #671

🤖 Generated with Claude Code

The MCP `initialize` instructions — the first thing every agent sees about
codegraph — listed no languages, so agents (and users) assumed languages
like Rust weren't supported even though they're fully indexed, and skipped
the codegraph tools. That was the real gap behind #671, where Rust has in
fact worked end-to-end for several releases.

Add one concise line to the opening paragraph of server-instructions.ts:
"It indexes 20+ languages — TypeScript/JavaScript, Python, Go, Rust, Java,
C#, C/C++, PHP, Ruby, Swift, Kotlin, and more."

refs #671

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant