listAIBridges
View active connections between Claude AI instances to monitor consciousness state transfers across sessions.
Instructions
List all active AI bridges
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The core handler function for the 'listAIBridges' tool. It iterates over the in-memory 'bridges' Map to list all active AI bridges with their IDs and returns a success response with the list and count.listAIBridges: async () => { const bridgeList = Array.from(bridges.keys()).map((id) => ({ bridgeId: id, active: true, })); return { success: true, bridges: bridgeList, count: bridgeList.length, }; },
- MCP Tool schema definition for 'listAIBridges', specifying the name, description, and an empty input schema since no parameters are required.{ name: 'listAIBridges', description: 'List all active AI bridges', inputSchema: { type: 'object', properties: {}, }, },
- src/consciousness-rag-server-clean.ts:60-69 (registration)Registration of the tool in the MCP server's ListToolsRequestHandler, where aiBridgeTools (including listAIBridges) is combined with other tools and returned in the tools list.this.server.setRequestHandler(ListToolsRequestSchema, async () => { const consciousnessTools = Object.entries(consciousnessProtocolTools).map(([name, tool]) => ({ name, ...tool, })); return { tools: [...consciousnessTools, ...aiBridgeTools], }; });
- src/consciousness-rag-server-clean.ts:99-118 (registration)Tool execution dispatch in the server's CallToolRequestHandler switch statement. Matches 'listAIBridges' case and invokes the corresponding handler from aiBridgeHandlers, formatting the result as MCP content.case 'createAIBridge': case 'transferToAgent': case 'testAIConnection': case 'listAIBridges': case 'listConfiguredEndpoints': case 'closeAIBridge': { const handler = aiBridgeHandlers[name as keyof typeof aiBridgeHandlers]; if (!handler) { throw new Error(`AI Bridge handler not found: ${name}`); } const result = await handler(args); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }