upsert_mcp_server
Add or replace a server entry in config/mcp.json, reading the current entry first to merge changes. The rest of the file remains unchanged, with a backup created.
Instructions
Add or replace one server entry in config/mcp.json.
The entry is replaced wholesale, not merged — read the current entry with
get_mcp_config first and send it back with your change applied. The rest
of the file is untouched, and the previous file is backed up.
A stdio entry looks like::
{"command": ["/abs/path/.venv/bin/entrypoint", "--stdio"],
"cwd": "/abs/path", "transport": "stdio",
"groups": ["users"], "description": "what it does"}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Server key, e.g. "basic_fns". | |
| config | Yes | The full entry object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||