Part of #265 — MCP 2026-07-28 compliance. **Testing & docs (closes out the migration).** ## Tasks - [ ] Extend `internal/mcpserver/server_test.go` wire tests: - [ ] modern-era `_meta` round-trip (protocolVersion + clientCapabilities) - [ ] error paths: `-32022` unsupported version, `-32602` missing `_meta` / unknown tool / invalid cursor, `-32600` structurally invalid request - [ ] mid-press cancellation and cancel-after-complete race - [ ] dual-era coexistence on one connection; `tools/*` works with no `initialize` - [ ] `server/discover` result shape (`resultType`, `supportedVersions`, `ttlMs`/`cacheScope`, serverInfo `_meta`) - [ ] Update the CLAUDE.md "MCP Server (Phase 2)" section for the 2026-07-28 surface - [ ] Update `docs/buttons/mcp.mdx`; regenerate `docs/cli/buttons_mcp.md` if flags change
Part of #265 — MCP 2026-07-28 compliance. Testing & docs (closes out the migration).
Tasks
internal/mcpserver/server_test.gowire tests:_metaround-trip (protocolVersion + clientCapabilities)-32022unsupported version,-32602missing_meta/ unknown tool / invalid cursor,-32600structurally invalid requesttools/*works with noinitializeserver/discoverresult shape (resultType,supportedVersions,ttlMs/cacheScope, serverInfo_meta)docs/buttons/mcp.mdx; regeneratedocs/cli/buttons_mcp.mdif flags change