Intent
The MCP (Model Context Protocol) specification has evolved significantly since Codetriever's MCP server was scaffolded. The current stable spec version is 2025-11-25, and Anthropic donated MCP to the Agentic AI Foundation (Linux Foundation) in December 2025 — it is now an industry standard adopted by OpenAI, Google DeepMind, Sourcegraph, Cursor, and others. Codetriever's MCP server needs to align with the current spec to remain compatible with the rapidly growing ecosystem of MCP clients.
Note: Codetriever already supports SSE transport and auth via agenterra-rmcp v0.1.5 (features: transport-sse-server, transport-io, auth). This issue focuses on the remaining spec gaps and ensuring full end-to-end validation.
Key spec changes to evaluate and align with:
- Streamable HTTP — The spec now favors streamable HTTP over SSE for stateless cloud deployment. Investigate whether
agenterra-rmcp already supports this or if SSE transport is sufficient for our use cases
- Tool Output Schemas — Allow servers to declare structured return types, reducing LLM token consumption and improving agent reliability
- Tool Behavior Annotations — Let tools declare themselves as
read_only vs destructive for safer agent execution
- OAuth 2.1 — Required for remote MCP servers (our
auth feature may already cover this)
Business Rules
- The MCP server's existing SSE and stdio transports MUST continue to work
- If
agenterra-rmcp supports Streamable HTTP transport, it SHOULD be evaluated and enabled
- All tools MUST declare Output Schemas describing their structured return types
- All search/read tools MUST be annotated as
read_only in their tool behavior declarations
- Any mutating tools (clean, compact, index) MUST be annotated as
destructive or write
- The existing
auth feature in agenterra-rmcp MUST be evaluated for OAuth 2.1 compliance
- The MCP server MUST be tested end-to-end with at least one MCP client (Claude Code, Cursor, or equivalent)
- Tool descriptions MUST remain aligned with the JSON schema files in
crates/codetriever/schemas/
Competitive Context
- Sourcegraph's MCP server is GA with full spec compliance
- Greptile ships a native MCP server for code review integration
- The MCP ecosystem has 200+ servers as of February 2026
- The 2026 MCP roadmap prioritizes stateless horizontal scaling,
.well-known metadata discovery, and agent-to-agent communication
- Being MCP-native from inception is a core differentiator — but only if the implementation is current
Acceptance Criteria
Intent
The MCP (Model Context Protocol) specification has evolved significantly since Codetriever's MCP server was scaffolded. The current stable spec version is
2025-11-25, and Anthropic donated MCP to the Agentic AI Foundation (Linux Foundation) in December 2025 — it is now an industry standard adopted by OpenAI, Google DeepMind, Sourcegraph, Cursor, and others. Codetriever's MCP server needs to align with the current spec to remain compatible with the rapidly growing ecosystem of MCP clients.Note: Codetriever already supports SSE transport and auth via
agenterra-rmcpv0.1.5 (features:transport-sse-server,transport-io,auth). This issue focuses on the remaining spec gaps and ensuring full end-to-end validation.Key spec changes to evaluate and align with:
agenterra-rmcpalready supports this or if SSE transport is sufficient for our use casesread_onlyvsdestructivefor safer agent executionauthfeature may already cover this)Business Rules
agenterra-rmcpsupports Streamable HTTP transport, it SHOULD be evaluated and enabledread_onlyin their tool behavior declarationsdestructiveorwriteauthfeature inagenterra-rmcpMUST be evaluated for OAuth 2.1 compliancecrates/codetriever/schemas/Competitive Context
.well-knownmetadata discovery, and agent-to-agent communicationAcceptance Criteria
agenterra-rmcpfor Streamable HTTP support; enable if availableauthfeature for OAuth 2.1 compliance