Skip to content

Migrate dispatch-event and dispatch-share to MCP tools#67

Merged
selfcontained merged 1 commit into
mainfrom
migrate-scripts-to-mcp
Mar 16, 2026
Merged

Migrate dispatch-event and dispatch-share to MCP tools#67
selfcontained merged 1 commit into
mainfrom
migrate-scripts-to-mcp

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • Add dispatch_event and dispatch_share as built-in MCP tools on the agent-scoped endpoint (/api/mcp/:agentId), replacing the bin/dispatch-event and bin/dispatch-share shell scripts
  • dispatch_event reports agent status (working/blocked/waiting_user/done/idle) with message and optional metadata
  • dispatch_share uploads image files to Dispatch; supports direct file path upload and iOS Simulator screenshot capture via source: "simulator"
  • Update CLAUDE.md, AGENTS.md, README, launch guidance, and setup docs to reference the new MCP tools
  • Old shell scripts preserved for backward compatibility with a TODO to remove

Test plan

  • Type check passes (tsc --noEmit)
  • Unit tests pass (49/49)
  • E2E tests pass (25/25)
  • Live validation: created tmux agent on dev stack, called both MCP tools via HTTP, verified status update and media upload in Dispatch UI

🤖 Generated with Claude Code

Add dispatch_event and dispatch_share as built-in MCP tools on the
agent-scoped endpoint, replacing the shell scripts agents previously
called via PATH. Updates CLAUDE.md, AGENTS.md, README, and launch
guidance to reference the new MCP tools. Old shell scripts kept for
backward compatibility with a TODO to remove them.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@selfcontained
selfcontained merged commit b88e83e into main Mar 16, 2026
1 check passed
@selfcontained
selfcontained deleted the migrate-scripts-to-mcp branch March 16, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant