feat(toolset): inherit feedback from MCP, add disable flag
Summary
The StackOne MCP server now exposes submit_feedback as a global tool on every account (see unified-cloud-api PR #8507). This SDK no longer defines or injects its own feedback tool — it inherits submit_feedback straight from the MCP catalog and executes it through the same /actions/rpc path as every other tool (that PR teaches /actions/rpc to dispatch submit_feedback).
- Removed
createFeedbackTool+ its unconditional injection infetchTools, thesrc/feedback.tsREST tool (which POSTed to the now-removed/ai/tool-feedback), and itsindex.tsexport. - Enabled by default on everything, disableable:
fetchToolskeepssubmit_feedbackavailable even whenproviders/actionsfilters are applied (those are connector-keyed and would otherwise drop it), collapses it to a single instance across multi-account fetches, and removes it only when{ feedback: false }is passed. - Mock MCP server now registers
submit_feedbackunconditionally, mirroring production so tests exercise the real inherited-from-MCP path.
⚠️ Depends on
unified-cloud-api PR #8507 (global submit_feedback MCP tool + /actions/rpc dispatch). Draft until that merges — executing feedback will 404 until then.
Test plan
pnpm test— updatedtoolsets.test.ts; existing filter/multi-account tests now assertsubmit_feedback(renamed from the old injectedtool_feedback), plus new tests: on-by-default,{ feedback: false }disables, survives provider filter unless disabled, and appears exactly once across accounts. Deletedfeedback.test.ts.- Kept as draft pending the server PR.
🤖 Generated with Claude Code
Summary by cubic
Inherit submit_feedback from MCP as a global tool and add an option to disable it. This removes the SDK’s custom feedback tool and routes feedback through /actions/rpc like any other tool.
-
Refactors
- Removed
createFeedbackTool,src/feedback.ts, its export, andsrc/feedback.test.ts. fetchToolsnow keepssubmit_feedbackby default (even withproviders/actionsfilters), collapses it to one instance across multi-account fetches, and drops it only with{ feedback: false }.- Mock MCP server registers
submit_feedbackfor every account to match production.
- Removed
-
Migration
- Requires a server that exposes global
submit_feedbackand dispatches it via/actions/rpc. - Update any references from
tool_feedbacktosubmit_feedback. - To opt out, call
fetchTools({ feedback: false }).
- Requires a server that exposes global