Skip to main content
POST
/
v2
/
auth
/
providers
/
mcp-discover
Create Mcp Oauth Provider
curl --request POST \
  --url https://api.example.com/v2/auth/providers/mcp-discover \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider_id": "<string>",
  "name": "<string>",
  "mcp_server_url": "<string>"
}
'
{
  "id": "<string>",
  "organization_id": "<string>",
  "provider_id": "<string>",
  "name": "<string>",
  "client_id": "<string>",
  "auth_url": "<string>",
  "token_url": "<string>",
  "uses_pkce": true,
  "code_challenge_method": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "provider_type": "<string>",
  "mcp_server_url": "<string>",
  "token_endpoint_auth_method": "client_secret_post",
  "is_dynamic_client": false
}

Body

application/json

Request model for creating OAuth provider via MCP auto-discovery.

provider_id
string
required
name
string
required
mcp_server_url
string
required

Response

Successful Response

Response model for OAuth provider.

id
string
required
organization_id
string
required
provider_id
string
required
name
string
required
client_id
string
required
auth_url
string
required
token_url
string
required
uses_pkce
boolean
required
code_challenge_method
string | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
provider_type
string | null
mcp_server_url
string | null
token_endpoint_auth_method
string
default:client_secret_post
is_dynamic_client
boolean
default:false