Repository navigation
fix(card): list the alert tools on the server card; pin card to list_tools - #20
Merged
Merged
Conversation
…list_tools The card's tools[] is hand-written; #17 added set_alert/list_alerts/ delete_alert/alert_history to the server but not the card (count 36, list 32). New test asserts card names == mcp.list_tools(). Also lists test_oauth_disabled.py and test_path_param_encoding.py in the CI SUITES, whose absence had main's release gate red. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What
After #17 deployed,
/.well-known/mcp/server-card.jsonhad a computed tool count of 36 but still listed 32 tools. Itstools[]array is hand-written, and #17 didn't addset_alert,list_alerts,delete_alertoralert_historyto it. This PR adds those four entries.So it can't drift again
tests/test_server_card_tools.pyfetches the card through the real ASGI app and asserts that its names equalmcp.list_tools(), with no duplicates. Without the card fix, it fails withmissing from card: ['alert_history', 'delete_alert', 'list_alerts', 'set_alert'].CI was already red on main; this fixes that too
The release-gate step "every test file is listed" was failing because
tests/test_oauth_disabled.pyandtests/test_path_param_encoding.pywere on disk but missing fromSUITES. Both are now listed, along with the new test.🤖 Generated with Claude Code