Add recall_dispatches MCP read tool, mirrors HTTP GET dispatches route #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by @coilysiren on 2026-05-20T06:07:38Z - https://github.com/coilysiren/repo-recall/issues/213
Child of #210.
Add MCP read tool
recall_dispatches(repo_id: i64)that returns the same list the HTTP routeGET /api/repos/{repo_id}/dispatchesalready serves.Why. Today the MCP surface has multiple write tools for dispatches (
recall_record_dispatch, therecall_dispatch_*lifecycle family) but no read counterpart. A consumer that records a dispatch via MCP cannot then list dispatches via MCP - it has to fall back to HTTP. That's exactly the asymmetry #210 calls out.Shape.
repo_id: i64.api::repo_dispatcheshandler returns, this tool wraps.Surface changes.
src/display/mcp/tools.rs- addDispatchesArgs { repo_id: i64 }+pub async fn dispatches(...).src/display/mcp/mod.rs- registerrecall_dispatches, bump the tool-count doc comment.tests/mcp_smoke.rs- smoke test that records a dispatch via the existing write tool and reads it back via the new read tool.Test gate.
make ci+mcporter call repo-recall-staging recall_dispatches repo_id=<id>returns the same payload ascurl http://127.0.0.1:7777/api/repos/<id>/dispatches.Naming check. If
recall_dispatchesreads ambiguously next to the existingrecall_record_dispatchand therecall_dispatch_*lifecycle tools, the alternative isrecall_list_dispatches. Punt the naming call to implementation time.