Skip to content

feat: support MCP Python SDK v1 and v2 - #4106

Merged
seratch merged 3 commits into
mainfrom
feat/mcp-v1-v2-support
Aug 5, 2026
Merged

feat: support MCP Python SDK v1 and v2#4106
seratch merged 3 commits into
mainfrom
feat/mcp-v1-v2-support

Conversation

@seratch

@seratch seratch commented Aug 2, 2026

Copy link
Copy Markdown
Member

This pull request adds support for MCP Python SDK v2 while preserving compatibility with supported MCP v1 releases.

It uses the MCP v2 high-level client for modern protocol negotiation and legacy fallback, adapts model fields and HTTP customization to the installed MCP major version, and migrates repository examples to MCP v2 APIs. It also adds packaged integration CI coverage for MCP v1.19.0 and v1.29.0 while the regular frozen-lock test suite covers MCP v2.

ignore_initialized_notification_failure=True remains supported under MCP v1. Under MCP v2, the option now fails before connecting because the public v2 transport API does not expose the complete initialized-notification failure outcome; applications requiring this behavior can pin mcp<2.

This pull request resolves #4014.

@seratch seratch added this to the 0.20.x milestone Aug 2, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 14080cd690

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread examples/mcp/manager_example/mcp_server.py
Comment thread examples/mcp/streamablehttp_custom_client_example/main.py
@seratch
seratch force-pushed the feat/mcp-v1-v2-support branch from 1cbb0c6 to 4508641 Compare August 4, 2026 22:43
@seratch
seratch merged commit 8f7e6d7 into main Aug 5, 2026
10 checks passed
@seratch
seratch deleted the feat/mcp-v1-v2-support branch August 5, 2026 09:52
@openai openai deleted a comment from phpmac Aug 5, 2026
@openai openai deleted a comment from phpmac Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support MCP Python SDK v2 and the MCP 2026-07-28 protocol

1 participant