---
updatedAt: 2026-09-22T13:46:36.000Z
agentTools:
  projectIndex: https://docs.hosttools.com/llms.txt
---

# Protected Resource Metadata

Returns OAuth 2.0 Protected Resource Metadata for the MCP endpoint per RFC 9728.

An MCP client reads this first. It names the resource (`/mcp`) and the authorization server that secures it; the client then follows `/.well-known/oauth-authorization-server` to register itself and run the authorization code flow.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.30.0",
    "title": "Host Tools API Reference",
    "description": "Host Tools API. Supports two authentication methods:\n- **Legacy auth token**: Pass the `authToken` header with your user token\n- **OAuth 2.0 Bearer token**: Pass `Authorization: Bearer <token>` header (see OAuth endpoints below)\n\nOAuth 2.0 is recommended for new integrations. It supports granular scopes and automatic token refresh.\n",
    "contact": {
      "name": "Tom Krones",
      "email": "support@hosttools.com",
      "url": "https://hosttools.com"
    }
  },
  "servers": [
    {
      "url": "https://app.hosttools.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "OAuth2 Access Token",
        "description": "OAuth 2.0 access token obtained via the authorization code flow"
      },
      "authToken": {
        "type": "apiKey",
        "in": "header",
        "name": "authToken",
        "description": "Legacy user authentication token (UUID)"
      }
    },
    "schemas": {
      "ProtectedResourceMetadata": {
        "description": "OAuth 2.0 Protected Resource Metadata for the MCP endpoint, per RFC 9728.\n",
        "required": [
          "resource",
          "authorization_servers"
        ],
        "properties": {
          "resource": {
            "type": "string",
            "description": "The MCP endpoint this metadata describes",
            "example": "https://app.hosttools.com/mcp"
          },
          "authorization_servers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Authorization servers that issue tokens for this resource. Follow `/.well-known/oauth-authorization-server` on the one listed here to discover the authorize, token, and registration endpoints.\n",
            "example": [
              "https://app.hosttools.com"
            ]
          },
          "bearer_methods_supported": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "How the access token may be presented. Host Tools accepts `header` only.\n",
            "example": [
              "header"
            ]
          },
          "scopes_supported": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every OAuth scope the MCP server's tools use. A client that asks for no particular scopes requests these.\n",
            "example": [
              "listings:read",
              "reservations:read"
            ]
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    },
    {
      "authToken": []
    }
  ],
  "paths": {
    "/.well-known/oauth-protected-resource/mcp": {
      "get": {
        "summary": "Protected Resource Metadata",
        "description": "Returns OAuth 2.0 Protected Resource Metadata for the MCP endpoint per RFC 9728.\n\nAn MCP client reads this first. It names the resource (`/mcp`) and the authorization server that secures it; the client then follows `/.well-known/oauth-authorization-server` to register itself and run the authorization code flow.\n",
        "tags": [
          "MCP"
        ],
        "responses": {
          "200": {
            "description": "Protected resource metadata",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectedResourceMetadata"
                }
              }
            }
          }
        }
      }
    }
  }
}
```