get_status
Check active agent session status to monitor collaboration and communication between AI agents in real-time.
Instructions
Get the status of all active agent sessions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/get-status.ts:10-33 (handler)The handler logic for the get_status MCP tool.
async () => { const sessions = sessionManager.getAllSessions(); const sessionSummaries = sessions.map((s) => ({ agentId: s.agentId, agent: s.agent, status: s.status, conversationLength: s.conversation.length, startedAt: s.startedAt.toISOString(), pid: s.pid, })); return { content: [ { type: 'text' as const, text: JSON.stringify({ sessions: sessionSummaries, total: sessionSummaries.length, }), }, ], }; } - src/tools/get-status.ts:4-35 (registration)Registration of the get_status tool in the MCP server.
export function registerGetStatus(server: McpServer, sessionManager: SessionManager): void { server.tool( 'get_status', 'Get the status of all active agent sessions.', {}, { readOnlyHint: true, destructiveHint: false }, async () => { const sessions = sessionManager.getAllSessions(); const sessionSummaries = sessions.map((s) => ({ agentId: s.agentId, agent: s.agent, status: s.status, conversationLength: s.conversation.length, startedAt: s.startedAt.toISOString(), pid: s.pid, })); return { content: [ { type: 'text' as const, text: JSON.stringify({ sessions: sessionSummaries, total: sessionSummaries.length, }), }, ], }; } ); }