37082e165d
Claude.ai's MCP OAuth client only sends the RFC 8707 `resource` param when it has Protected Resource Metadata (PRM) to learn the resource identifier from. Without it, nas-auth's /authorize rejected the request with 'resource 必填'. Adds /.well-known/oauth-protected-resource (RFC 9728) that returns the resource URL + AS URL + supported scopes. ResourceUrl is configurable via Mcp__OAuthDiscovery__ResourceUrl, falling back to request authority when unset (works in local dev).