Skip to content

test(mcp): drop the field-coverage audit, keep the tool sweep - #106

Merged
JosteinGj merged 1 commit into
mainfrom
test/drop-mcp-field-coverage-audit
Aug 25, 2026
Merged

test(mcp): drop the field-coverage audit, keep the tool sweep#106
JosteinGj merged 1 commit into
mainfrom
test/drop-mcp-field-coverage-audit

Conversation

@JosteinGj

Copy link
Copy Markdown
Contributor

mcp_full_tool_surface recorded every (tool, field) pair it sent and ended by diffing that against the live tools/list schema, failing on any advertised parameter the sweep never drove. That audit is gone.

It enforced a goalpost that moves with the api rather than with the SDK: a field added server-side failed a test that had nothing to say about whether the new field works, and the count it pinned (125 fields across 37 tools) was the api's number, not ours.

The sweep itself is untouched — all 37 tools are still driven once with every write read back, and the sweep_* helpers still tear their entities down through the MCP delete tools. Removed with the audit: assert_every_field_was_exercised, the exercised registry on McpClient, and record that filled it.

Consequence worth knowing: nothing in the repo now notices a server-side parameter addition, as was already the case for REST.

`mcp_full_tool_surface` recorded every `(tool, field)` pair it sent and ended by
diffing that against the live `tools/list` schema, failing on any advertised
parameter the sweep never drove. That audit is gone.

It enforced a goalpost that moves with the api rather than with the SDK: a field
added server-side failed a test that had nothing to say about whether the new
field works, and the count it pinned (125 fields across 37 tools) was the api's
number, not ours.

The sweep itself is untouched — all 37 tools are still driven once with every
write read back, and the `sweep_*` helpers still tear their entities down through
the MCP delete tools. Removed with the audit: `assert_every_field_was_exercised`,
the `exercised` registry on `McpClient`, and `record` that filled it.

Consequence worth knowing: nothing in the repo now notices a server-side
parameter addition, as was already the case for REST.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@JosteinGj
JosteinGj merged commit 65f0693 into main Aug 25, 2026
18 checks passed
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