# Update Custom MCP Server Update an existing custom MCP server configuration. Only the owner can update their configurations. Provide only the fields you want to update. #### Path Parameters **`config_id`** string required The MCP configuration ID (mcp_ prefixed string). #### Request Body All fields are optional. Only provide the fields you want to update. **`name`** string optional Updated configuration name. **`server_url`** string optional Updated server URL (must be HTTPS). **`is_active`** boolean optional Enable or disable the configuration. **`credentials`** object optional Updated authentication credentials (re-encrypted). **`tool_configuration`** object optional Updated tool configuration. ## Returns Updated MCP configuration with new values. Request ```bash curl -X PATCH "https://api.aitronos.com/v1/mcp-configurations/mcp_abc123xyz" \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Updated GitHub", "is_active": false, "tool_configuration": { "enabled": true, "allowed_tools": ["search_code"] } }' ``` ```python import os import requests api_key = os.environ["FREDDY_API_KEY"] response = requests.patch( "https://api.aitronos.com/v1/mcp-configurations/mcp_abc123xyz", headers={ "X-API-Key": api_key, "Content-Type": "application/json" }, json={ "name": "Updated GitHub", "is_active": False, "tool_configuration": { "enabled": True, "allowed_tools": ["search_code"] } } ) response.raise_for_status() mcp = response.json() print(f"Updated MCP: {mcp['name']}") ``` ```javascript const response = await fetch( "https://api.aitronos.com/v1/mcp-configurations/mcp_abc123xyz", { method: "PATCH", headers: { "X-API-Key": process.env.FREDDY_API_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ name: "Updated GitHub", is_active: false, tool_configuration: { enabled: true, allowed_tools: ["search_code"] } }) } ); if (!response.ok) { throw new Error("Request failed"); } const mcp = await response.json(); console.log(`Updated MCP: ${mcp.name}`); ``` 200 OK ```json { "id": "mcp_abc123xyz", "name": "Updated GitHub MCP", "type": "custom", "organization_id": "org_1234567890abcdef1234567890abcdef", "userId": "usr_1234567890abcdef1234567890abcdef", "server_url": "https://github-mcp.example.com", "transportType": "sse", "authType": "api_key", "isActive": false, "connectionStatus": "connected", "lastConnectedAt": "2025-11-13T10:30:00Z", "errorMessage": null, "created_at": "2025-11-13T10:00:00Z", "updated_at": "2025-11-13T11:00:00Z" } ``` 400 Bad Request ```json { "success": false, "error": { "code": "VALIDATION_ERROR", "message": "Invalid request parameters", "system_message": "Validation failed", "type": "validation_error", "status": 400, "trace_id": "req_xyz789", "timestamp": "2025-11-13T10:30:00Z" } } ```