Skip to content

fix: use McpTool inside McpToolset - #7472

Open
astrogilda wants to merge 1 commit into
google:mainfrom
astrogilda:codex/canonical-mcp-tool-construction-20261009
Open

astrogilda wants to merge 1 commit into
google:mainfrom
astrogilda:codex/canonical-mcp-tool-construction-20261009

Conversation

@astrogilda

Copy link
Copy Markdown

McpToolset.get_tools() currently constructs the deprecated MCPTool wrapper. That warns during normal use of the canonical toolset; treating deprecation warnings as errors prevents its tools from loading.

Construct McpTool directly. The basic toolset regression checks the exact canonical type with deprecation warnings treated as errors.

Validation: all 432 MCP unit tests pass on Python 3.14. The regression fails on the unchanged upstream runtime with the expected constructor warning, then passes with this repair. Statement coverage for the changed runtime file is 97.07% against the existing 80% per-file gate. Pyink, isort, compliance and dependency checks pass.

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.

2 participants