docs/oauth-resource-autodetect.md
MCPProxy automatically detects and injects the RFC 8707 resource parameter for OAuth providers like Runlayer. This enables zero-configuration OAuth for servers advertising Protected Resource Metadata (RFC 9728).
WWW-Authenticate header containing resource_metadata URL, MCPProxy fetches the Protected Resource Metadataresource field from metadata is automatically injected into OAuth authorization URL and token requestsresource, MCPProxy falls back to using the server URL{
"mcpServers": [
{
"name": "runlayer-slack",
"url": "https://oauth.runlayer.com/api/v1/proxy/abc123def/mcp",
"protocol": "http",
"enabled": true
// No OAuth config needed! Resource parameter auto-detected from metadata
}
]
}
extra_params.resource in config (highest priority - preserves backward compatibility)# View auto-detected resource parameter
mcpproxy auth status --server=runlayer-slack
# Check for OAuth issues including resource detection
mcpproxy doctor