Create or update connection
Create or update an MCP connection with the given ID. server is the Smithery registry qualified name; mcpUrl is for custom MCP URLs. One of them is required when creating a new HTTP connection, but optional when updating. Returns 409 if a different target URL is provided, except while the connection is input_required and the new URL keeps the same host and path.
Authorizations
Smithery API key as Bearer token
Body
Connection transport. Defaults to the existing connection transport when updating.
http, uplink "http"
URL of a custom MCP server. For Smithery registry servers, prefer server. Required with server omitted when creating a new HTTP connection; optional when updating.
"https://mcp.example.com/sse"
Smithery registry server qualified name. Use this instead of mcpUrl for registry servers.
1 - 255^@?[a-zA-Z0-9][a-zA-Z0-9_-]*(?:\/[a-zA-Z0-9][a-zA-Z0-9_-]*)?$"upstash/context7-mcp"
Human-readable name (optional, defaults to connection ID)
1 - 255"My MCP Server"
Custom metadata for filtering connections
{
"userId": "user123",
"team": "engineering"
}Custom headers to send with MCP requests (stored securely, not returned in responses)
{ "X-API-Key": "secret-key" }Run this connection in mock mode. Only honored on first creation; ignored on updates to an existing connection.
{ "enabled": true }Response
Connection updated
Connection ID (auto-generated or developer-defined)
"clever-dolphin-a9X3"
Human-readable name
MCP server URL. Null for uplink connections.
Connection transport
http, uplink Mock-mode config: {enabled: true, scenario?} when LLM-simulated, absent otherwise.
ISO 8601 timestamp
Last known connection status
- ConnectionStatusConnected
- ConnectionStatusDisconnected
- ConnectionStatusAuthRequired
- ConnectionStatusInputRequired
- ConnectionStatusError
Server information from MCP initialization (name, version)