Repository navigation
fix(tests): align mcp-harness expected error with #718 no-echo invariant - #1203
Merged
Merged
Conversation
PR #718 deliberately changed the unknown-tool error to a generic "Unknown tool name. Use only tools listed in your AVAILABLE TOOLS section." to prevent small models from interpreting an echoed bad name as self-confirmation that the name was correct. The custom-agent MCP harness test landed in #1069 still encoded the old "Tool 'X' not found" wording, so Build Installers fails on both ubuntu-latest and windows-latest matrix legs against the merged v0.19.0 release commit. This is a one-line test update to match the framework's intentional new behaviour. The test's "diagnosable connection failure" intent is preserved by the first assertion in the same function, which still verifies get_mcp_status_report() surfaces the transport-level error ("MCP server process died (exit code: 17)").
itomek-amd
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Build Installers on the merged v0.19.0 release commit fails on both
ubuntu-latestandwindows-latestlegs of the Custom agent MCP harness matrix becausetests/installer/test_custom_agent_mcp_harness.py:199still encodes the pre-#718 error wording. PR #718 deliberately replaced"Tool '<name>' not found"with the generic"Unknown tool name. Use only tools listed in your AVAILABLE TOOLS section."to prevent small models from interpreting the echoed bad name as self-confirmation and looping on it — that's the "no-echo invariant on the candidate-list message" called out in v0.19.0's release notes. The test from #1069 missed the migration.This is a one-line test update to the second assertion in
test_custom_agent_with_mcp_reports_diagnosable_connection_failure. The test's "diagnosable connection failure" intent is preserved by the first assertion in the same function, which still verifiesget_mcp_status_report()surfaces the transport-level error ("MCP server process died (exit code: 17)") — that's the actual user-facing diagnostic for a dead MCP server.This unblocks the v0.19.0 release (#1201) — pre-tag verification requires a green Build Installers run on the merged commit, which currently fails because of this single assertion.
Test plan
python -m pytest tests/installer/test_custom_agent_mcp_harness.py -xvs— 3/3 pass locally