Skip to content

test: require a real MCP call and cleanup during evaluation - #7474

Open
astrogilda wants to merge 7 commits into
google:mainfrom
astrogilda:codex/native-mcp-evaluation-contract-20261009
Open

astrogilda wants to merge 7 commits into
google:mainfrom
astrogilda:codex/native-mcp-evaluation-contract-20261009

Conversation

@astrogilda

Copy link
Copy Markdown

The old MCP evaluation test catches every exception and still passes, and starts an unpinned npx server. A failed server, failed inference or unfinished cleanup can therefore look like a successful MCP check.

Replace it with a finite Python stdio peer and consume the complete native evaluation. Require the real tool call, native result, successful inference, a terminated child and released session. Controls refuse missing tools, model failure, isError, and failed cleanup before or after resource release.

Checked head 4d699bef over current main 3d11f9fe. Python 3.11 and 3.14 each pass 168 affected evaluation/session checks with MCP 2.3.0, plus 39 native/evaluation checks with MCP 1.30.0, with no skips. 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