Browse documentation
← API reference

Accounts & authentication

Discover the MCP resource

GET /.well-known/oauth-protected-resource/mcp

Returns the remote MCP resource, its authorization server, supported scopes and bearer authentication method.

Example request

curl --request GET 'https://commitscale.com/.well-known/oauth-protected-resource/mcp'

Example values illustrate the format. Use your own credentials and identifiers.

Responses

200 MCP protected resource metadata.

application/json

{
  "authorization_servers": [
    "example"
  ],
  "bearer_methods_supported": [
    "example"
  ],
  "resource": "example",
  "resource_name": "example",
  "scopes_supported": [
    "example"
  ]
}

authorization_serversrequired · array of string

Authorization servers that issue tokens for this resource.

Fields of authorization_servers

Authorization servers that issue tokens for this resource.

Each item has this shape.

bearer_methods_supportedrequired · array of string

Supported ways to send a bearer token.

Fields of bearer_methods_supported

Supported ways to send a bearer token.

Each item has this shape.

resourcerequired · string

The MCP resource URL.

resource_namerequired · string

The resource's human-readable name.

scopes_supportedrequired · array of string

Scope names supported by this resource.

Fields of scopes_supported

Scope names supported by this resource.

Each item has this shape.

RateLimit and RateLimit-Policy describe the request rate. Follow Retry-After when a response asks you to wait.

Problem responses

Errors use application/problem+json. Act on the stable code, and follow next when present. See the problem format.

quota_exceeded429

With 429, the caller used its requests for the minute. With 422, a count limit was reached.

With 429, wait Retry-After seconds and retry. With 422, remove one first.