Skip to content

Commit c18a1d7

Browse files
leggetterclaude
andcommitted
test(gateway mcp): call every tool action successfully at least once
Twenty-one of the twenty-eight write actions had only a read-only refusal test, so the first successful delete, upsert or disable would have run for the first time in a user's project. Several reads had no test at all. Each action now has a test that makes the call through a real MCP session and asserts the request that goes on the wire — method, path, query and body. A "no error" assertion proves little here: the stub answers whatever it is asked, so a handler sending the wrong method or path still passes. TestEveryActionHasBeenCalledSuccessfully enumerates the actions from the tool specs themselves and fails when one has no successful-call test recorded, so adding an action without covering it breaks the build. A companion test rejects checklist entries for actions that no longer exist. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wajsob136PyRh6nc92w5L3
1 parent e536308 commit c18a1d7

1 file changed

Lines changed: 1100 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)