feat(plugin): expose submit_feedback in both modes, add feedback flag

Draft
WI
4mo ago
+38-4

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_tools already returns submit_feedback (the SDK keeps it available under provider/action filters).
  • search_and_execute mode: _build_tools now appends submit_feedback alongside tool_search/tool_execute (from the catalog fetch it already does — no extra request).
  • New feedback flag (default True) threaded to both paths so callers can omit the feedback tool.

āš ļø Depends on

  • stackone-ai-python PR #191 (inherits submit_feedback from MCP, adds feedback kwarg).
  • unified-cloud-api PR #8507 (global submit_feedback MCP tool + /actions/rpc dispatch).

Draft until those merge and the stackone-ai dependency is bumped.

Test plan

  • pytest tests/test_plugin.py — updated call-signature assertions for the new feedback kwarg; 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_tools adds submit_feedback alongside tool_search/tool_execute (no extra requests).
    • New feedback flag (default True) threads through both paths; set to False to omit the tool.
  • Dependencies

    • Requires stackone-ai-python update that inherits submit_feedback from MCP and supports the feedback kwarg.
    • Requires unified-cloud-api exposing submit_feedback as a global MCP tool with RPC dispatch.