fix: downgrade declared protocolVersion from 2025-06-18 to 2025-03-26 #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The MCP server declares
protocolVersion: "2025-06-18"in itsinitializeresponse (internal/mcp/server.go). Claude Code CLI rejects this and fails to load any tools — none of themcp__gitea__*tools appear in the session.Root cause
Claude Code CLI supports up to
2025-03-26. When the server responds with a newer unknown version, the client drops the connection silently.The server already uses the
2025-03-26Streamable HTTP transport (stateful POST +Mcp-Session-Idheader), so2025-03-26is the correct version to declare.Fix
In
internal/mcp/server.go, change:to:
Rebuild and redeploy. The 24 tools are fully functional once the handshake succeeds — confirmed via manual curl test.
Verification
After deploy, the
mcp__gitea__*tools should appear in Claude Code as deferred tools on session start.