feat(mcp): upgrade to MCP 2026-07-28 spec#32
Open
advancedresearcharray wants to merge 1 commit into
Open
Conversation
8238869 to
d68a897
Compare
Add spec2026Handler middleware for server/discover, Mcp-Method/Mcp-Name routing headers, cache hints on list/read responses, JSON Schema 2020-12 injection on tools/list, and external $ref rejection at registration. Stateless transport strips Mcp-Session-Id after delegate. Closes kiwifs#424
d68a897 to
ff914d0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add MCP 2026-07-28 Streamable HTTP transport compatibility layer around the existing stateless handler:
server/discover— dynamic capability discovery withttlMs/cacheScopeMcp-Method/Mcp-Nameheaders — validated on request when present; emitted on all JSON responsesttlMsandcacheScopeinjected ontools/list,resources/list,prompts/list, andresources/read$schemadraft 2020-12 URI injected on tool input/output schemasWithStateLess(true)+ stripMcp-Session-Idafter delegatehttp(s)://$refURIs at tool registrationinitializeworks for 2024-11-05 clientsBumps
github.com/mark3labs/mcp-gov0.49.0 → v0.55.1.Upstream: kiwifs#424
Test plan
go test ./internal/mcpserver/ -count=1go test ./internal/api/ -run MCP -count=1go test ./tests/ -run MCP -count=1Closes kiwifs#424