create_mcp_server
Register a new MCP server in HiveFlow by specifying a unique name, command, and optional arguments, enabling integration of AI assistants for managing automation workflows.
Instructions
Registra un nuevo servidor MCP en HiveFlow
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Argumentos del comando | |
| command | Yes | Comando para ejecutar el servidor | |
| description | No | Descripción del servidor | |
| name | Yes | Nombre único del servidor MCP |
Input Schema (JSON Schema)
{
"properties": {
"args": {
"description": "Argumentos del comando",
"items": {
"type": "string"
},
"type": "array"
},
"command": {
"description": "Comando para ejecutar el servidor",
"type": "string"
},
"description": {
"description": "Descripción del servidor",
"type": "string"
},
"name": {
"description": "Nombre único del servidor MCP",
"type": "string"
}
},
"required": [
"name",
"command"
],
"type": "object"
}
Implementation Reference
- src/index.js:725-741 (handler)The 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 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 input schema definition for the create_mcp_server tool, registered in the ListToolsRequestHandler.{ 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 CallToolRequestHandler that dispatches to the createMCPServer handler function.case 'create_mcp_server': return await this.createMCPServer(args);