list_mcp_servers
Retrieve a list of MCP servers configured in HiveFlow to manage AI assistant integrations and automation flows efficiently.
Instructions
Lista los servidores MCP configurados en HiveFlow
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:707-723 (handler)The main handler function that executes the 'list_mcp_servers' tool. It fetches the list of MCP servers from the HiveFlow API endpoint '/api/mcp/servers', processes the data, formats it as a markdown-style list, and returns it as a text content block.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:150-157 (registration)Registration of the 'list_mcp_servers' tool in the ListToolsRequestHandler. Defines the tool's name, description, and empty input schema (no parameters required).{ name: 'list_mcp_servers', description: 'Lista los servidores MCP configurados en HiveFlow', inputSchema: { type: 'object', properties: {} } },
- src/index.js:226-227 (registration)Dispatch/registration in the CallToolRequestHandler switch statement that maps tool calls for 'list_mcp_servers' to the listMCPServers handler method.case 'list_mcp_servers': return await this.listMCPServers();
- src/index.js:153-156 (schema)Input schema definition for the 'list_mcp_servers' tool, specifying an empty object (no input parameters required).inputSchema: { type: 'object', properties: {} }