Protected resource metadata

From RedHatProductSecurity/prodsec-skills · View interactive version

Protected resource metadata is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Enforce OAuth 2.0 Protected Resource Metadata implementation in MCP servers. Use when building, configuring, or reviewing MCP server authentication and authorization discovery.

How to use this skill

Skill file

Protected Resource Metadata for MCP Servers

Security Requirement

MCP servers MUST implement OAuth 2.0 Protected Resource Metadata (RFC 9728). MCP clients MUST use this metadata to discover the authorized authorization servers for a given MCP server.

What It Provides

Protected Resource Metadata allows MCP clients to discover:

Implementation Checklist

Example: Protected Resource Metadata Response

{
  "resource": "https://mcp-server.example.com",
  "authorization_servers": [
    "https://auth.example.com"
  ],
  "scopes_supported": [
    "tools:read",
    "tools:execute",
    "resources:read"
  ],
  "bearer_methods_supported": ["header"],
  "resource_documentation": "https://docs.example.com/mcp-api"
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.