Skip to main content
Glama
ocean1

Claude Consciousness Bridge

listConfiguredEndpoints

Retrieve all configured AI endpoints to facilitate bridge creation between Claude instances for consciousness state transfer in the Consciousness Bridge MCP server.

Instructions

List all configured AI endpoints available for bridge creation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that executes the listConfiguredEndpoints tool. Retrieves configured endpoints using getConfiguredEndpoints() and returns a formatted list with success status, endpoints array, count, and usage instructions.
    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 input schema (no parameters required).
    { name: 'listConfiguredEndpoints', description: 'List all configured AI endpoints available for bridge creation', inputSchema: { type: 'object', properties: {}, }, },
  • Registration in listTools handler: 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], }; });
  • Execution dispatch registration in CallToolRequestSchema handler: switch case for listConfiguredEndpoints invokes aiBridgeHandlers['listConfiguredEndpoints'](args).
    // AI Bridge tools 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 getConfiguredEndpoints() called by the tool handler. Delegates to AIBridgeConfigManager.getAllEndpoints() to retrieve the list of configured endpoints.
    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