OAuth 2.0 Protected Resource Metadata (RFC 9728)

Metadata of the space-pinned endpoint (RFC 9728 §3.3): resource is the endpoint URL itself, <APP_URL>/api/mcp/o/{org}/s/{space}. 404 for a malformed {space}.

GET/.well-known/oauth-protected-resource/api/mcp/o/{org}/s/{space}

Authorization

better-auth.session_token<token>

Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.

In: cookie

Path Parameters

org*string

Organization id (uuid). Identifies the organization this MCP endpoint is bound to.

space*string

Space id (spc_…) of the organization, where the caller holds a role.

Match^spc_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
curl -X GET "https://your-instance/.well-known/oauth-protected-resource/api/mcp/o/string/s/string"
{
  "resource": "http://example.com",
  "authorization_servers": [
    "http://example.com"
  ],
  "scopes_supported": [
    "string"
  ],
  "bearer_methods_supported": [
    "string"
  ],
  "resource_documentation": "http://example.com"
}
{
  "type": "https://docs.appstrate.dev/errors/not-found",
  "title": "Not Found",
  "status": 404,
  "detail": "Resource not found",
  "code": "not_found",
  "request_id": "req_abc123"
}