Skip to content

build: update MCP Python SDK to v2 - #984

Merged
bokelley merged 1 commit into
mainfrom
mcp-sdk-v2
Jul 28, 2026
Merged

bokelley merged 1 commit into
mainfrom
mcp-sdk-v2

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Updates the SDK dependency to MCP Python SDK v2 and migrates the ADCP MCP client/server integration from FastMCP-era APIs to MCPServer-compatible transport and tool registration paths.

Preserves ADCP behavior for hardened MCP HTTP clients, request signing hooks, explicit session close, stateful streamable-HTTP session stats/limits, request-context propagation, and structured error envelopes under MCP v2.

Updates the focused tests and minimal MCP example for MCP v2 result field names and import paths.

Validation

  • uv run pytest
  • uv run pytest tests/test_mcp_stateful_session.py tests/test_protocols.py::TestMCPSessionClose tests/test_mcp_structured_error.py tests/conformance/signing/test_autosign_mcp.py -q
  • pre-commit hooks on commit: black, ruff, mypy, adopter type checks, bandit, file checks

@bokelley
bokelley marked this pull request as ready for review July 28, 2026 22:02
@aao-ipr-bot

aao-ipr-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

⚠️ Argus review could not complete

The automated review encountered an issue (possibly reached max turns, timed out, or failed to post the final gh pr review). A human reviewer should take this PR.

View workflow run

This is an automated message from the Argus AI review workflow.

@bokelley
bokelley merged commit 1ca7e07 into main Jul 28, 2026
27 checks passed
@bokelley
bokelley deleted the mcp-sdk-v2 branch July 28, 2026 22:10
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.

1 participant