connect
Create or update connection
Create or update an MCP connection with the given ID. mcpUrl is required when creating a new connection, but optional when updating (omit to keep the existing URL). Returns 409 if a different mcpUrl is provided, except while the connection is input_required and the new URL keeps the same host and path. Requires API key and namespace ownership.
put/connect/{namespace}/{connectionId}
Path parameters
namespacestring required
connectionIdstring required
Request body
Example request
{
"mcpUrl": "https://mcp.example.com/sse",
"name": "My MCP Server",
"metadata": {
"userId": "user123",
"team": "engineering"
},
"headers": {
"X-API-Key": "secret-key"
}
}Response
Connection updated
Example response
{
"connectionId": "clever-dolphin-a9X3"
}