---
title: "OAuth protected-resource metadata for the MCP surface (RFC 9728)"
method: GET
path: "/.well-known/oauth-protected-resource"
tags: ["OAuth"]
---

# OAuth protected-resource metadata for the MCP surface (RFC 9728)

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

## Request

- Base URL: `https://tre-app.com`
- URL: `https://tre-app.com/.well-known/oauth-protected-resource`
- Auth: none required

Published when `OAUTH_ENABLED=true`. Answers 404 while the flag is off. No Tre bearer — connectors discover the authorization server from a 401 challenge on `/api/mcp`.

## Response `200`

Success

- OAuthProtectedResourceMetadata
  - `resource` string, uri, required
  - `authorization_servers` string[], required
  - `scopes_supported` string[], required
  - `bearer_methods_supported` string[], required

## Other responses

- `404`: OAuth door is off (`OAUTH_ENABLED` unset or not `true`).

---

[API](https://skmtc.dev/tre-app/apis/tre-rest-api.md) · [All operations](https://skmtc.dev/tre-app/apis/tre-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tre-app/apis/tre-rest-api/revisions/26a7187a05fc?raw)
