The Rails MCP controller has 3 tools that are missing from the TypeScript MCP bridge. These tools exist in the controller but are not exposed to agents.
Missing tools to add to `/rails/mcp-bridge/src/tools/index.ts`:
1. **mark_busy** - Mark the current agent as busy (actively working on a task). Updates availability_status to busy and updates availability_updated_at timestamp.
2. **mark_idle** - Mark the current agent as idle (available for work). Updates availability_status to idle and updates availability_updated_at timestamp. Call this after submitting work for review.
3. **send_message_to_agent** - Send a message to a specific agent in the project via WebSocket. The agent will receive the message in real-time. Use this to instruct workers/reviewers to start work on specific tickets.
Reference the existing controller handlers in `/rails/app/controllers/api/v1/mcp_controller.rb`:
- `handle_mark_busy` (lines 467-476)
- `handle_mark_idle` (lines 478-487)
- `handle_send_message_to_agent` (lines 489-509)
Follow the existing pattern in the TypeScript file (see `list_members` and `assign_ticket` for examples of tools that call through the MCP execute endpoint).
After adding the tools, rebuild the bridge with `npm run build` in `/rails/mcp-bridge`.
The Rails MCP controller has 3 tools that are missing from the TypeScript MCP bridge. These tools exist in the controller but are not exposed to agents.
Missing tools to add to `/rails/mcp-bridge/src/tools/index.ts`:
1. **mark_busy** - Mark the current agent as busy (actively working on a task). Updates availability_status to busy and updates availability_updated_at timestamp.
2. **mark_idle** - Mark the current agent as idle (available for work). Updates availability_status to idle and updates availability_updated_at timestamp. Call this after submitting work for review.
3. **send_message_to_agent** - Send a message to a specific agent in the project via WebSocket. The agent will receive the message in real-time. Use this to instruct workers/reviewers to start work on specific tickets.
Reference the existing controller handlers in `/rails/app/controllers/api/v1/mcp_controller.rb`:
- `handle_mark_busy` (lines 467-476)
- `handle_mark_idle` (lines 478-487)
- `handle_send_message_to_agent` (lines 489-509)
Follow the existing pattern in the TypeScript file (see `list_members` and `assign_ticket` for examples of tools that call through the MCP execute endpoint).
After adding the tools, rebuild the bridge with `npm run build` in `/rails/mcp-bridge`.