feat: hide tools from tools/list - #334
Conversation
Coverage Report for CI Build 29612925862Warning Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes. Coverage increased (+0.007%) to 96.332%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
|
We might want to update Otherwise, this test might fail once we mark a tool as hidden since there will be tools in the schema registry that aren't in |
|
@mattrossman I updated the test to actually allow hidden tools to appear in I'll merge as is for now but happy to discuss further/change if you disagree with this. |
The hide-tools test added in #334 imports from the v1 monolithic SDK (@modelcontextprotocol/sdk), which this branch removes. Port it to the v2 client package and its typed callTool result, matching server.test.ts.
🤖 I have created a release *beep* *boop* --- <details><summary>mcp-utils: 0.6.0</summary> ## [0.6.0](mcp-utils-v0.5.1...mcp-utils-v0.6.0) (2026-08-10) ### Features * hide tools from tools/list ([#334](#334)) ([d80471a](d80471a)) </details> <details><summary>mcp-server-supabase: 0.10.0</summary> ## [0.10.0](mcp-server-supabase-v0.9.0...mcp-server-supabase-v0.10.0) (2026-08-10) ### ⚠ BREAKING CHANGES * add query_logs tool for custom log queries ([#333](#333)) ### Features * add --content-api-url flag and SUPABASE_CONTENT_API_URL env var ([#343](#343)) ([6fcaaa3](6fcaaa3)) * add query_logs tool for custom log queries ([#333](#333)) ([798806b](798806b)) * hide tools from tools/list ([#334](#334)) ([d80471a](d80471a)) ### Bug Fixes * hide read-only mode ([#349](#349)) ([5cda067](5cda067)) * **pg-meta:** pair composite FK columns positionally to avoid cartesi… ([#317](#317)) ([10af00b](10af00b)) * select query_logs dialect via logsDialect ([#357](#357)) ([80ff453](80ff453)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
The hide-tools test added in #334 imports from the v1 monolithic SDK (@modelcontextprotocol/sdk), which this branch removes. Port it to the v2 client package and its typed callTool result, matching server.test.ts.
Adds a
hidden: trueflag to tool definitions that will hide the tool fromtools/listcalls but allow it to still be callable viatools/call. Needed for the expand+contract breaking change pattern.