$npx -y skills add BerriAI/litellm-skills --skill update-mcpUpdate an existing MCP server on a live LiteLLM proxy. Ask for the server_id and what to change (URL, auth, description), then call PUT /v1/mcp/server.
| 1 | # Update MCP Server |
| 2 | |
| 3 | Update an existing MCP server registration on a live LiteLLM proxy. |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | ``` |
| 8 | LITELLM_BASE_URL — e.g. https://my-proxy.example.com |
| 9 | LITELLM_API_KEY — proxy admin key |
| 10 | ``` |
| 11 | |
| 12 | ## Ask the user |
| 13 | |
| 14 | 1. **server_id** — if they don't have it, list first: |
| 15 | ```bash |
| 16 | curl -s "$BASE/v1/mcp/server" -H "Authorization: Bearer $KEY" |
| 17 | ``` |
| 18 | 2. **What to change** — any combination of: |
| 19 | - `url` |
| 20 | - `credentials` (rotate the auth token) |
| 21 | - `description` |
| 22 | - `allowed_tools` (list of tool names to expose) |
| 23 | |
| 24 | ## Run |
| 25 | |
| 26 | ```bash |
| 27 | curl -s -X PUT "$BASE/v1/mcp/server" \ |
| 28 | -H "Authorization: Bearer $KEY" \ |
| 29 | -H "Content-Type: application/json" \ |
| 30 | -d '{ |
| 31 | "server_id": "<server_id>", |
| 32 | "url": "<new_url>", |
| 33 | "credentials": "<new_token>" |
| 34 | }' |
| 35 | ``` |
| 36 | |
| 37 | Only include the fields being changed. |
| 38 | |
| 39 | ## Output |
| 40 | |
| 41 | Confirm the server was updated and show the updated fields. |