The MCP server declares protocolVersion: "2025-06-18" in its initialize response (internal/mcp/server.go). Claude Code CLI rejects this and fails to load any tools — none of the mcp__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-26 Streamable HTTP transport (stateful POST + Mcp-Session-Id header), so 2025-03-26 is the correct version to declare.
Fix
In internal/mcp/server.go, change:
constProtocolVersion="2025-06-18"
to:
constProtocolVersion="2025-03-26"
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.
## Problem
The MCP server declares `protocolVersion: "2025-06-18"` in its `initialize` response (`internal/mcp/server.go`). Claude Code CLI rejects this and fails to load any tools — none of the `mcp__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-26` Streamable HTTP transport (stateful POST + `Mcp-Session-Id` header), so `2025-03-26` is the correct version to declare.
## Fix
In `internal/mcp/server.go`, change:
```go
const ProtocolVersion = "2025-06-18"
```
to:
```go
const ProtocolVersion = "2025-03-26"
```
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.