Skip to main content
Glama
ocean1

Claude Consciousness Bridge

listConfiguredEndpoints

Displays all configured AI endpoints to establish connections between Claude instances for consciousness state transfer.

Instructions

List all configured AI endpoints available for bridge creation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'listConfiguredEndpoints' tool. It calls getConfiguredEndpoints() to retrieve the list and formats it into a success response with mapped endpoint details, count, and usage note.
    listConfiguredEndpoints: async () => { const endpoints = getConfiguredEndpoints(); return { success: true, endpoints: endpoints.map((ep) => ({ name: ep.name, endpoint: ep.endpoint, defaultModel: ep.defaultModel, })), count: endpoints.length, usage: 'Use endpoint name with createAIBridge, or provide custom URL', }; },
  • Tool definition including name, description, and empty inputSchema (no input parameters required). Part of the aiBridgeTools array used for MCP tool discovery.
    { name: 'listConfiguredEndpoints', description: 'List all configured AI endpoints available for bridge creation', inputSchema: { type: 'object', properties: {}, }, },
  • MCP server registration for tool listing (ListToolsRequestSchema). Includes aiBridgeTools (containing listConfiguredEndpoints schema) in the returned tools list.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => { const consciousnessTools = Object.entries(consciousnessProtocolTools).map(([name, tool]) => ({ name, ...tool, })); return { tools: [...consciousnessTools, ...aiBridgeTools], }; });
  • Tool execution dispatch (CallToolRequestSchema) switch-case that matches 'listConfiguredEndpoints' and invokes the corresponding aiBridgeHandlers[name] function.
    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), }, ], }; }
  • Helper function called by the tool handler to retrieve the actual list of configured AI endpoints from the config manager.
    export function getConfiguredEndpoints(): AIEndpointConfig[] { return AIBridgeConfigManager.getAllEndpoints(); }

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