Skip to content

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

Open
advancedresearcharray wants to merge 10 commits into
mainfrom
feat/issue-424-mcp-2026-hands-on
Open

feat(mcp): upgrade to MCP 2026-07-28 spec#62
advancedresearcharray wants to merge 10 commits into
mainfrom
feat/issue-424-mcp-2026-hands-on

Conversation

@advancedresearcharray

@advancedresearcharray advancedresearcharray commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add spec2026Handler middleware around the stateless Streamable HTTP transport to implement MCP 2026-07-28 requirements: server/discover, Mcp-Method/Mcp-Name routing headers, ttlMs/cacheScope cache hints on list/read responses, and JSON Schema 2020-12 $schema injection on tools/list.
  • Reject external http(s):// $ref in registered tool schemas at startup (SSRF guard per spec).
  • Strip Mcp-Session-Id after delegate for stateless transport; legacy 2024-11-05 initialize remains compatible.
  • Bump github.com/mark3labs/mcp-go v0.49.0 → v0.55.1.

Closes kiwifs#424

Test plan

  • go test ./internal/mcpserver/ -count=1 — PASS (14.0s)
  • go test ./internal/api/ -count=1 — PASS (14.9s)
  • go test ./internal/api/ -run MCP -count=1 — PASS (2.3s)
  • go test ./tests/ -run MCP -count=1 — PASS (0.14s)
  • Unit coverage: discover, routing headers, cache hints, JSON Schema 2020-12, external $ref rejection, stateless session stripping
  • Integration coverage via serve_integration_test.go

amelia751 and others added 9 commits June 30, 2026 22:17
…iwifs#460)

- Add headless `content` prop to KiwiPage for server-free markdown rendering
- Add data-driven `data` prop to KiwiTree for static tree rendering
- Create KiwiProvider context (connected/static/custom fetching modes + theme)
- Extract remark/rehype plugin chain as standalone kiwiMarkdown exports
- Add event callbacks: onWikiLinkClick, onHeadingVisible, onRename, onDelete
- Configure Vite library build (vite.lib.config.ts) and tsconfig.lib.json
- Update package.json: @kiwifs/ui, peerDependencies on React 19, npm exports

Published as @kiwifs/ui@0.1.0 on npm.

Co-authored-by: Lam Dao Que Anh <anhlam@Lams-MacBook-Air-9.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
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
Add TestMCP2026DiscoverAndRoutingHeaders to verify server/discover,
Mcp-Method headers, and stateless session stripping at the serve API
layer. Include episodic run log for issue kiwifs#424.

Co-authored-by: Cursor <cursoragent@cursor.com>
Force-add pages/fixes/kiwifs-kiwifs/issue-424-mcp-2026-spec.md (gitignored
by kiwifs-* pattern) and episodic verification note after reverting unrelated
template files from the branch.

Co-authored-by: Cursor <cursoragent@cursor.com>
Confirm all MCP regression tests pass and document 2026-07-03 verification
for fleet PR handoff on feat/issue-424-mcp-2026-07-28.

Co-authored-by: Cursor <cursoragent@cursor.com>
Record fleet takeover verification and PR push after confirming MCP 2026-07-28
tests pass on feat/issue-424-mcp-2026-07-28.

Co-authored-by: Cursor <cursoragent@cursor.com>
…over

Rebased onto origin/main; MCP 2026-07-28 tests green. Episodic log for PR kiwifs#424.

Co-authored-by: Cursor <cursoragent@cursor.com>
@advancedresearcharray advancedresearcharray force-pushed the feat/issue-424-mcp-2026-hands-on branch from 77c2d29 to dfc8fe3 Compare July 3, 2026 02:03
Re-run full mcpserver and api test suites after hands-on delivery check.

Co-authored-by: Cursor <cursoragent@cursor.com>
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

2 participants