feat(transport): add Streamable HTTP transport at /mcp#117
Closed
basebandit wants to merge 2 commits into
Closed
Conversation
5a5c3c7 to
cfa0058
Compare
0a83c94 to
fbea5b8
Compare
cfa0058 to
b68ae65
Compare
fbea5b8 to
5f52641
Compare
4 tasks
* feat(cluster): honor --request-timeout flag in K8s client config * fix(lint): replace WriteString(Sprintf) with Fprintf (staticcheck QF1012)
This was referenced May 12, 2026
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
Adds the Streamable HTTP transport (MCP spec 2025-03-26) at
/mcpalongside the existing legacy SSE transport.kai.Server.ServeStreamableHTTP(addr)usingmcp-go'sserver.NewStreamableHTTPServer.registerOpsEndpointsandrunHTTPhelpers used by both HTTP transports — no behavioural change to SSE path.--transport=streamable-http(orhttp) selects the new transport.--transport=sseis accepted as a deprecated alias ofsse-legacy(logs a warning). Unknown values now return a clear error instead of silently falling back to stdio.Why
The HTTP+SSE transport (two endpoints,
/sse+/message) was deprecated in spec 2025-03-26. Modern clients (Inspector ≥ 0.10, Claude.ai web) expect a single/mcpendpoint withMcp-Session-Idresumption. SSE stays available behindsse-legacyfor one release cycle.Stacked on
Based on
feat/tool-annotations(#116). Merge order: #114 → #115 → #116 → this.Test plan
go build ./...go vet ./...go test -race ./...kai --transport=streamable-httpthennpx @modelcontextprotocol/inspector http://localhost:8080/mcp