Update Server
update_serverUpdate an MCP server's configuration, including command, arguments, and environment variables, to modify settings like API keys without removing and re-adding. Changes apply immediately.
Instructions
Update an existing MCP server's configuration (command, args, or env vars).
Use this to update API keys or other settings without removing and re-adding the server. Triggers a reload to apply changes immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the server to update. | |
| command | No | New command (optional, keeps existing if not provided). | |
| args | No | New arguments (optional, keeps existing if not provided). | |
| env | No | Environment variables to update (merges with existing). | |
| replace_env | No | If true, replace all env vars instead of merging (default: false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| server_name | Yes | ||
| config_path | Yes | ||
| message | Yes | ||
| updated_fields | Yes |