MCP OAuth example (separate Authorization Server and Resource Server)
Minimal, non‑production example of an OAuth 2.1 Authorization Server (FastAPI) and a separate Resource Server (FastMCP) aligned with MCP protocol revision 2025‑06‑18, which requires the authorization server to be separate from the resource server.
- Authorization flow: Authorization Code + PKCE (S256)