create_mcp_server
Register a new MCP server in HiveFlow to connect AI assistants to the automation platform for creating and managing workflows through natural language commands.
Instructions
Registra un nuevo servidor MCP en HiveFlow
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Nombre único del servidor MCP | |
| command | Yes | Comando para ejecutar el servidor | |
| args | No | Argumentos del comando | |
| description | No | Descripción del servidor |
Implementation Reference
- src/index.js:725-741 (handler)The main handler function that implements the create_mcp_server tool. It sends a POST request to the HiveFlow API endpoint '/api/mcp/servers' with the provided arguments to register a new MCP server and returns a success message.async createMCPServer(args) { const response = await this.hiveflowClient.post('/api/mcp/servers', { name: args.name, command: args.command, args: args.args || [], description: args.description || '' }); return { content: [ { type: 'text', text: `✅ Servidor MCP "${args.name}" registrado exitosamente.\nComando: ${args.command}\nEstado: registrado` } ] }; }
- src/index.js:158-184 (schema)The tool specification in the ListTools response, including name, description, and inputSchema defining the required 'name' and 'command' parameters along with optional 'args' and 'description'.{ name: 'create_mcp_server', description: 'Registra un nuevo servidor MCP en HiveFlow', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre único del servidor MCP' }, command: { type: 'string', description: 'Comando para ejecutar el servidor' }, args: { type: 'array', items: { type: 'string' }, description: 'Argumentos del comando' }, description: { type: 'string', description: 'Descripción del servidor' } }, required: ['name', 'command'] } },
- src/index.js:228-229 (registration)The switch case in the CallToolRequestSchema handler that routes calls to the 'create_mcp_server' tool to its handler function.case 'create_mcp_server': return await this.createMCPServer(args);