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