list_mcp_servers
Lists configured MCP servers within the HiveFlow automation platform to help users manage their connected automation tools.
Instructions
Lista los servidores MCP configurados en HiveFlow
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_mcp_servers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:707-723 (handler)The handler function that implements the 'list_mcp_servers' tool. It makes an API call to '/api/mcp/servers', processes the servers list, formats it as a markdown-style text response, and returns it in the MCP content format.
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 ListToolsRequestSchema handler. Includes 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 case in the CallToolRequestSchema switch statement that routes calls to the listMCPServers handler method.
case 'list_mcp_servers': return await this.listMCPServers();