Authentication

Edit an External MCP Connection

Changed on

The workspace owner (or anyone with the Edit any connection permission) can edit any connection. Other org members can edit only connections they created. Making a connection org-wide needs the Share with everyone permission. Name and direct access changes preserve credentials. URL, authentication type, or credential-mode changes invalidate the old identity atomically. Secret fields are write-only optional replacements and are never returned. expectedUpdatedAt prevents stale edits.

put/v1/mcp-connections/{connectionId}

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

connectionId, string typeid required

Den TypeID with 'emc_' prefix and a 26-character base32 suffix.

Request body

object required
expectedUpdatedAt, string date-time required
name, string required
url, string uri required
authType, 'oauth' | 'apikey' | 'none' required
credentialMode, 'shared' | 'per_member' required
exposeDirectly, boolean
apiKey, string
apiKeyAuthScheme, 'bearer' | 'token'
requestHeaders, object[]

Omitted keeps the stored headers. An array replaces them; an entry without value keeps the stored value of the header with that name. An empty array removes them all. Values are never returned.

oauthClient, object
manualOAuthEndpoints, object nullable

Administrator-pinned authorization and token URLs. Both required; null restores strict discovery. Changing them clears saved sign-ins.

authorizationServerIssuer, string uri nullable
requestedScopes, string[]
requestSelectedScopesOnly, boolean

When true, sign-in asks for requestedScopes alone, leaving out any others the server's sign-in challenge names. Needs at least one requested scope. People who already signed in keep their current access until they sign in again. Omitted keeps the stored value.

access, ExternalMcpConnectionAccessInput required

Response

Connection updated.

ExternalMcpConnectionUpdatedResponse required
readiness, ExternalMcpConnectionReadiness nullable
organizationReadiness, ExternalMcpConnectionReadiness nullable
id, string required
name, string required
externalKey, string nullable required
url, string required
authType, 'oauth' | 'apikey' | 'none' required
credentialMode, 'shared' | 'per_member' required
apiKeyAuthScheme, 'bearer' | 'token' required
requestHeaderNames, string[] required
exposeDirectly, boolean required
connected, boolean required
connectedAt, string date-time nullable required
connectedMemberIds, string[]
toolPolicySummary, object
createdByName, string nullable
createdByYou, boolean
createdByOrgMembershipId, string nullable
canRemove, boolean
createdAt, string date-time
updatedAt, string date-time required
connectedForMe, boolean required
needsReconnect, boolean
credentialHealth, 'unknown' | 'ready' | 'reconnect_required'
credentialHealthReason, 'authorization_rejected' | 'credential_expired' | 'post_authorization_validation_failed' nullable
credentialHealthCheckedAt, string date-time nullable
issuerReviewRequired, boolean
reconnectActionOwner, 'member' | 'organization_admin' nullable
missingFeatures, string[]
externalAccountId, string nullable
grantedScopes, string[]
tenantId, string nullable
requiredBy, ExternalMcpConnectionRequiredBy[] required
identityManagedBy, ExternalMcpConnectionRequiredBy[] required
requiredAuthType, 'oauth' | 'apikey' | 'none' nullable
authPolicyConfirmed, boolean
authTypeMismatch, boolean
oauthClientConfigured, boolean
oauthClientRequired, boolean
setupRequired, boolean
access, ExternalMcpConnectionAccessSummary nullable required
oauthClientId, string nullable
oauthClientHasSecret, boolean

Whether a client secret is configured. Only returned with explicit connection-settings view permission; never the secret itself.

manualOAuthEndpoints, object nullable

Only returned with explicit connection-settings view permission; omitted from usable member listings, including for the connection creator.

oauthCallbackUrl, string nullable
oauthSharedCallbackUrl, string nullable
oauthClientMetadataUrl, string nullable
oauthCallbackMode, 'shared-v1' | 'isolated-v1' | 'legacy-v1' nullable
oauthRegistrationSource, 'pre-registered' | 'client-metadata' | 'dynamic' nullable
authorizationServerIssuer, string nullable
requestedScopes, string[]
requestSelectedScopesOnly, boolean

Whether sign-in asks for requestedScopes alone, leaving out any others the server's sign-in challenge names.

identityChanged, boolean required
reconnectionRequired, boolean required
credentialPrompt, object
nextStep, string

Changes

    • info

      added the optional property connectedMemberIds to the response with the status

    • info

      added the optional property toolPolicySummary to the response with the status

    • warning

      removed the optional property mcpUrl from the response with the status