Create an OAuth connect URL for a Claude Managed custom MCP server
POST
/agents/{id}/claude/managed-mcp/oauth-connect-urlAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredRequest body
requiredapplication/jsonserverClaudeManagedMcpServerDtorequiredShow propertiesHide properties
authModestringAuthentication mode for this MCP server.
Allowed:
nonebeareroauthbearerTokenstring | nullBearer token to store for bearer-token MCP servers.
credentialConfiguredbooleanWhether Leadtime already has a stored credential for this MCP server.
idstringStable local id for an existing MCP row.
namestringDisplay name for the MCP server. If omitted, Leadtime derives one from the URL.
oauthCredentialobject | nullOAuth credential details for an OAuth MCP server.
Show propertiesHide properties
accessTokenstring | nullclientIdstring | nullclientSecretstring | nullexpiresAtstring | nullrefreshTokenstring | nullscopestring | nulltokenEndpointstring | nulltokenEndpointAuthTypestring | nullAllowed:
noneclient_secret_basicclient_secret_posturlstringrequiredHosted MCP server URL.
Responses
201
401
Unauthorized - Invalid or missing authentication token
403
Forbidden - Insufficient API scopes or permissions