## Summary Land the mcp 1.x → 2.x major upgrade (PR #410) with a reviewed compatibility check, because `mcp` is the SDK behind Rafiki's entire MCP server surface. ## Context - Tracks Dependabot PR **#410** (`mcp >=1.0.0 → >=2.0.0`). - The MCP tool registry (`rafiki_*` tools) is built on this SDK; a breaking change can silently drop or reshape tools. - Relevant: the MCP envelope contract tests (`tests/test_mcp_envelope_contract.py`) and `docs/MCP.md` coverage test (#210 pattern). ## Acceptance Criteria - [ ] Review the mcp 2.x changelog for breaking changes to server/tool registration, request context, and envelope shapes. - [ ] MCP server code updated for 2.x if needed; the tool registry still matches `docs/MCP.md`. - [ ] MCP envelope-contract tests pass; full `test` gate green on the up-to-date PR head. - [ ] `npm run verify` and `npm run verify:security` pass. ## Notes - `needs-human`: core-runtime major. Sequence after google-genai 2.x (#407), before tenacity 9.x (#408). See #420.
Summary
Land the mcp 1.x → 2.x major upgrade (PR #410) with a reviewed compatibility check, because
mcpis the SDK behind Rafiki's entire MCP server surface.Context
mcp >=1.0.0 → >=2.0.0).rafiki_*tools) is built on this SDK; a breaking change can silently drop or reshape tools.tests/test_mcp_envelope_contract.py) anddocs/MCP.mdcoverage test (Add test asserting MCP tool registry matches docs/MCP.md coverage #210 pattern).Acceptance Criteria
docs/MCP.md.testgate green on the up-to-date PR head.npm run verifyandnpm run verify:securitypass.Notes
needs-human: core-runtime major. Sequence after google-genai 2.x (build(deps): update google-genai requirement from >=1.0.0 to >=2.16.0 #407), before tenacity 9.x (build(deps): update tenacity requirement from >=8.0.0 to >=9.1.4 #408). See deps: batching and compatibility plan for the 13 open PRs (corrects #308 snapshot) #420.