feat(plugin): expose submit_feedback in both modes, add feedback flag
Draft
WI
4mo ago+38+38+01234567890123456789-4-4-0123456789
Summary
The StackOne MCP server exposes submit_feedback as a global tool on every account (see unified-cloud-api PR #8507). The plugin now inherits it from the MCP catalog in both modes so A2A agents can report feedback:
- default mode:
fetch_toolsalready returnssubmit_feedback(the SDK keeps it available under provider/action filters). - search_and_execute mode:
_build_toolsnow appendssubmit_feedbackalongsidetool_search/tool_execute(from the catalog fetch it already does ā no extra request). - New
feedbackflag (defaultTrue) threaded to both paths so callers can omit the feedback tool.
ā ļø Depends on
- stackone-ai-python PR #191 (inherits
submit_feedbackfrom MCP, addsfeedbackkwarg). - unified-cloud-api PR #8507 (global
submit_feedbackMCP tool +/actions/rpcdispatch).
Draft until those merge and the stackone-ai dependency is bumped.
Test plan
pytest tests/test_plugin.pyā updated call-signature assertions for the newfeedbackkwarg; added disable-feedback tests for both modes. 22 pass.- One pre-existing
E501(line 127, unrelated) left as-is.
š¤ Generated with Claude Code
Summary by cubic
Expose the global submit_feedback tool from the StackOne MCP catalog in both plugin modes, with a new feedback flag to let callers opt out. This enables consistent feedback reporting for A2A agents.
-
New Features
- Default mode: keeps submit_feedback via
fetch_tools(still respects provider/action filters). - Search-and-execute mode:
_build_toolsadds submit_feedback alongside tool_search/tool_execute (no extra requests). - New
feedbackflag (default True) threads through both paths; set to False to omit the tool.
- Default mode: keeps submit_feedback via
-
Dependencies
- Requires
stackone-ai-pythonupdate that inherits submit_feedback from MCP and supports thefeedbackkwarg. - Requires
unified-cloud-apiexposing submit_feedback as a global MCP tool with RPC dispatch.
- Requires