mcp_servers_add
Add a new MCP server configuration at runtime by specifying name and command, with optional arguments, environment, working directory, scope, and auto-start.
Instructions
Add an MCP server configuration at runtime
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": {
"name": "<name>",
"command": "<command>"
},
"name": "mcp_servers_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| env | No | Environment variables | |
| args | No | Command arguments | |
| name | Yes | Server name | |
| scope | No | Server scope | project |
| command | Yes | Server command | |
| auto_start | No | Start server after adding |