curl --request PATCH \
--url http://localhost:8080/api/mcp-servers/{mcpServerId} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"name": "Updated Server Name",
"url": "https://new-server-url.example.com",
"description": "Updated description",
"approval_policy": "auto_approve_read_only",
"transport": "WebSocket",
"request_headers": {
"Authorization": "Bearer new-token",
"User-Agent": "MCP-Client/2.0"
}
}
'{
"message": "MCP server updated successfully",
"status": "success",
"error": null,
"data": {
"id": "mcp_8c180796-e6d7-4343-88b5-5df0846fef69",
"organization_id": "org_2zC2v0GqxbrfKq1rKazb3gFcPEq",
"url": "https://new-server-url.example.com",
"name": "Updated Server Name",
"approval_policy": "auto_approve_read_only",
"transport": "WebSocket",
"description": "Updated description",
"request_headers": {
"Authorization": "Bearer new-token",
"User-Agent": "MCP-Client/2.0"
},
"updated_at": 1751401500000
}
}Updates an MCP server (current behavior).
curl --request PATCH \
--url http://localhost:8080/api/mcp-servers/{mcpServerId} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"name": "Updated Server Name",
"url": "https://new-server-url.example.com",
"description": "Updated description",
"approval_policy": "auto_approve_read_only",
"transport": "WebSocket",
"request_headers": {
"Authorization": "Bearer new-token",
"User-Agent": "MCP-Client/2.0"
}
}
'{
"message": "MCP server updated successfully",
"status": "success",
"error": null,
"data": {
"id": "mcp_8c180796-e6d7-4343-88b5-5df0846fef69",
"organization_id": "org_2zC2v0GqxbrfKq1rKazb3gFcPEq",
"url": "https://new-server-url.example.com",
"name": "Updated Server Name",
"approval_policy": "auto_approve_read_only",
"transport": "WebSocket",
"description": "Updated description",
"request_headers": {
"Authorization": "Bearer new-token",
"User-Agent": "MCP-Client/2.0"
},
"updated_at": 1751401500000
}
}API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication
MCP server ID
"mcp_8c180796-e6d7-4343-88b5-5df0846fef69"