Skip to main content
Glama
ocean1

Claude Consciousness Bridge

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
NameRequiredDescriptionDefault

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: {}, }, },
  • 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], }; });
  • 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), }, ], }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ocean1/mcp_consciousness_bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server