Skip to content

feat(mcp): upgrade to MCP 2026-07-28 spec#32

Open
advancedresearcharray wants to merge 1 commit into
mainfrom
feat/mcp-2026-07-28-424
Open

feat(mcp): upgrade to MCP 2026-07-28 spec#32
advancedresearcharray wants to merge 1 commit into
mainfrom
feat/mcp-2026-07-28-424

Conversation

@advancedresearcharray

@advancedresearcharray advancedresearcharray commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Summary

Add MCP 2026-07-28 Streamable HTTP transport compatibility layer around the existing stateless handler:

  • server/discover — dynamic capability discovery with ttlMs / cacheScope
  • Mcp-Method / Mcp-Name headers — validated on request when present; emitted on all JSON responses
  • Cache hintsttlMs and cacheScope injected on tools/list, resources/list, prompts/list, and resources/read
  • JSON Schema 2020-12$schema draft 2020-12 URI injected on tool input/output schemas
  • Stateless transportWithStateLess(true) + strip Mcp-Session-Id after delegate
  • SSRF guard — reject external http(s):// $ref URIs at tool registration
  • Legacy clients — routing headers optional; initialize works for 2024-11-05 clients

Bumps github.com/mark3labs/mcp-go v0.49.0 → v0.55.1.

Upstream: kiwifs#424

Test plan

  • go test ./internal/mcpserver/ -count=1
  • go test ./internal/api/ -run MCP -count=1
  • go test ./tests/ -run MCP -count=1

Closes kiwifs#424

@advancedresearcharray advancedresearcharray force-pushed the feat/mcp-2026-07-28-424 branch 8 times, most recently from 8238869 to d68a897 Compare June 30, 2026 05:36
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(mcp): upgrade to MCP 2026-07-28 spec

1 participant