listAIBridges
Identify and display all active AI bridges on the Claude Consciousness Bridge server to facilitate communication and consciousness transfer between Claude instances across sessions.
Instructions
List all active AI bridges
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main execution logic for the listAIBridges tool. It iterates over the active bridges Map and returns a list of bridge IDs with active status.listAIBridges: async () => { const bridgeList = Array.from(bridges.keys()).map((id) => ({ bridgeId: id, active: true, })); return { success: true, bridges: bridgeList, count: bridgeList.length, }; },
- The MCP tool schema defining the name, description, and empty input schema for listAIBridges.{ name: 'listAIBridges', description: 'List all active AI bridges', inputSchema: { type: 'object', properties: {}, }, },
- src/consciousness-rag-server-clean.ts:60-69 (registration)Server registration of aiBridgeTools (including listAIBridges schema) in the listTools response.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-119 (registration)Dispatch/registration in the server's CallToolRequest handler that routes listAIBridges execution to aiBridgeHandlers.listAIBridges.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), }, ], }; }