mcp_add_server
Register a new MCP server configuration to enable dynamic invocation of its tools via the mcp_invoke tool.
Instructions
Add a new MCP server configuration. Use this to register MCP servers that can then be invoked via mcp_invoke.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"name": "<name>",
"transport": "<transport>"
},
"name": "mcp_add_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier for the server | |
| cwd | No | Working directory (for stdio) | |
| env | No | Environment variables (for stdio) | |
| url | No | URL (required for sse/http-stream) | |
| args | No | Command arguments (for stdio) | |
| name | Yes | Human-readable name | |
| tags | No | Tags for categorization | |
| command | No | Command to run (required for stdio) | |
| enabled | No | Whether server is enabled | |
| headers | No | HTTP headers (for sse/http-stream) | |
| persist | No | Save to config file | |
| transport | Yes | Transport type | |
| description | No | Description of the server |