# MCP resource metadata

Source: https://docs.musicnerd.net/api-reference/oauth/resource-metadata

MCP resource metadata

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

Full OpenAPI specification: https://docs.musicnerd.net/spec/oauth.json

## Authentication

This operation's specification permits a request without authentication.

[Authentication guide](https://docs.musicnerd.net/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Music Nerd API: OAuth",
    "version": "1.0.0",
    "description": "How agents connect to the MCP server with OAuth: the discovery documents an MCP client reads, and the member's list of connected agents."
  },
  "servers": [
    {
      "url": "https://api.musicnerd.net",
      "description": "Production"
    },
    {
      "url": "https://musicnerd-api-staging.vercel.app",
      "description": "Staging (staging database)"
    }
  ],
  "paths": {
    "/.well-known/oauth-protected-resource/mcp": {
      "get": {
        "summary": "MCP resource metadata",
        "operationId": "getMcpResourceMetadata",
        "security": [],
        "description": "The OAuth protected-resource metadata for `/mcp` (RFC 9728). An MCP client reads it after a 401 from `/mcp` to find the authorization server.",
        "responses": {
          "200": {
            "description": "The metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceMetadata"
                },
                "example": {
                  "resource": "https://api.musicnerd.net/mcp",
                  "authorization_servers": [
                    "https://api.musicnerd.net/api/oauth"
                  ],
                  "scopes_supported": [
                    "mcp:tools"
                  ],
                  "bearer_methods_supported": [
                    "header"
                  ],
                  "resource_name": "Music Nerd"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ResourceMetadata": {
        "type": "object",
        "required": [
          "resource",
          "authorization_servers"
        ],
        "properties": {
          "resource": {
            "type": "string",
            "format": "uri"
          },
          "authorization_servers": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "scopes_supported": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bearer_methods_supported": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "resource_name": {
            "type": "string"
          }
        }
      }
    }
  }
}
```
