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
| Name | Required | Description | Default |
|---|---|---|---|
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: {}, }, },
- src/consciousness-rag-server-clean.ts:60-69 (registration)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], }; });
- src/consciousness-rag-server-clean.ts:98-119 (registration)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), }, ], }; }
- src/ai-bridge.ts:175-177 (helper)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(); }