Create an External MCP server (auth + sync discovery)
Persists the server with status=PENDING, encrypts the auth value as a WorkspaceSecret, then runs synchronous tool discovery (~10s). Returns 201 with the populated tools list on success, or 201 with status=ERROR if discovery failed (server still persisted so the caller can update later). OAUTH_AUTHORIZATION_CODE rejected.
Autorizações
Corpo
Body for registering a new external MCP server in the workspace.
Authentication scheme used to talk to the MCP server.
NONE, API_KEY, BEARER_TOKEN, CUSTOM_HEADER, OAUTH_AUTHORIZATION_CODE Optional legacy header name; for CUSTOM_HEADER prefer authHeaders.
"X-Api-Key"
Required when authType = CUSTOM_HEADER. Each entry: {name, value}.
Required when authType = API_KEY or BEARER_TOKEN. The credential value.
"sk_live_abc123"
Display name of the external MCP server.
255"GitHub MCP"
When true, fail with 422 MCP_DISCOVERY_FAILED instead of persisting with status=ERROR.
true
HTTPS URL of the external MCP server.
2048^https://.+"https://mcp.example.com/sse"
Resposta
Created
Workspace-registered External MCP server. Auth values are NEVER returned.
Present when authType=CUSTOM_HEADER with a single legacy header.
NONE, API_KEY, BEARER_TOKEN, CUSTOM_HEADER PENDING, CONNECTED, ERROR, PENDING_AUTHORIZATION, EXPIRED Tools discovered on the server. {id,name,description,enabled}

