go-sdk/internal/jsonrpc2
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Guglielmo Colombo dd978160ab
mcp: Implement server-side support for discover method (SEP-2575) (#987)
## Summary
Part 3 of the SEP-2575 ("Make MCP Stateless") implementation. Builds on
PR #975 which landed the client-side discover/fallback flow and the
per-request `_meta` plumbing. This PR adds the **server-side**
counterparts:

- `server/discover` handler (replaces the
stub),ProtocolVersionSupporter`
- transport hook for per-transport version filtering,
- transport-agnostic version validation and method-removal enforcement
in `ServerSession.handle`,
- HTTP-level wire compliance for SEP-2575 error codes/status codes,
- bug fix in `internal/jsonrpc2`,`processResult` with an `MCPGODEBUG`
opt-out for backward compatibility.
2026-06-08 17:52:10 +02:00
..
conn.go mcp: Implement server-side support for discover method (SEP-2575) (#987) 2026-06-08 17:52:10 +02:00
jsonrpc2.go internal/jsonrpc2: remove unused code (#910) 2026-04-28 09:56:15 +02:00
messages.go MCPGODEBUG update for 1.6.0 (#893) 2026-04-30 09:54:32 +02:00
wire.go mcp: Implement server-side support for discover method (SEP-2575) (#987) 2026-06-08 17:52:10 +02:00
wire_test.go x/tools: modernize interface{} -> any 2025-02-19 15:14:27 -08:00