list_mcp_servers
Lists configured MCP servers within the HiveFlow automation platform to help AI assistants manage and execute flows through natural language commands.
Instructions
Lista los servidores MCP configurados en HiveFlow
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:421-437 (handler)The handler function that executes the 'list_mcp_servers' tool logic: fetches the list of MCP servers from the HiveFlow API endpoint '/api/mcp/servers', formats them into a bullet list with status and connection info, and returns a structured text response.async listMCPServers() { const response = await this.hiveflowClient.get('/api/mcp/servers'); const servers = response.data.servers || []; const serversList = servers.map(server => `β’ ${server.name} - Estado: ${server.status} (${server.isConnected ? 'Conectado' : 'Desconectado'})` ).join('\n'); return { content: [ { type: 'text', text: `π Servidores MCP (${servers.length}):\n\n${serversList || 'No hay servidores MCP configurados'}` } ] }; }
- src/index.js:149-156 (schema)The tool schema definition in the listTools response, specifying the name, description, and empty inputSchema (no input parameters required).{ name: 'list_mcp_servers', description: 'Lista los servidores MCP configurados en HiveFlow', inputSchema: { type: 'object', properties: {} } },
- src/index.js:225-226 (registration)The dispatch registration in the CallToolRequestHandler switch statement that routes calls to the 'list_mcp_servers' tool to its handler function.case 'list_mcp_servers': return await this.listMCPServers();
- src/index.ts:431-447 (handler)Identical handler function implementation in the TypeScript version of the server.private async listMCPServers() { const response = await this.hiveflowClient.get('/api/mcp/servers'); const servers = response.data.servers || []; const serversList = servers.map((server: any) => `β’ ${server.name} - Estado: ${server.status} (${server.isConnected ? 'Conectado' : 'Desconectado'})` ).join('\n'); return { content: [ { type: 'text', text: `π Servidores MCP (${servers.length}):\n\n${serversList || 'No hay servidores MCP configurados'}` } ] }; }
- src/index.ts:159-166 (schema)The tool schema definition in the TypeScript version.{ name: 'list_mcp_servers', description: 'Lista los servidores MCP configurados en HiveFlow', inputSchema: { type: 'object', properties: {} } },