mq_add
Add an agent to the message queue for cross-session communication between AI coding assistants, enabling task delegation and coordination.
Instructions
Add an agent to the message queue
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| desc | No | ||
| tool | No | claude-code |
Implementation Reference
- mcp/src/index.ts:16-22 (registration)The "mq_add" tool is registered here using McpServer. It defines the input schema and calls the client.add handler.
server.tool("mq_add", "Add an agent to the message queue", { name: z.string(), desc: z.string().default(""), tool: z.string().default("claude-code"), }, async ({ name, desc, tool }) => ({ content: [{ type: "text", text: JSON.stringify(await client.add(name, desc, tool)) }], })); - mcp/src/client.ts:69-71 (handler)The "add" function in client.ts implements the actual logic for "mq_add", sending a POST request to the /agents endpoint.
export async function add(name: string, desc = "", tool = "claude-code") { return api("POST", "/agents", { name, desc, tool }); }