datarobot_genai.drmcp.core.oauth_metadata
oauth_metadata
Assemble the OAuth protected-resource metadata this server publishes.
The document itself lives in
:mod:datarobot_genai.drmcpbase.oauth_protected_resource_metadata, which
knows nothing about where settings come from. This module is the adapter that
reads them off :class:MCPServerConfig — one function shared by the
well-known route and the startup validation pass, so what is checked at boot
can never drift from what is served.
build_protected_resource_metadata_config
Assemble the published protected-resource metadata from this server's settings.
Building the config is what validates it — an incomplete Cross-Application Access block is dropped with a warning naming the missing variables.
resource and scopes_supported are the two fields the server can
answer for itself: its own URL is knowable at runtime even though it
was not at build time, and the scopes it enforces are readable data.
A configured value always wins over the resolved one.