cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::server::ProtectedResourceMetadataConfig Struct Reference

RFC 9728 Protected Resource Metadata configuration for the server. More...

#include <http_transport.hpp>

Public Attributes

std::string resource
 Resource identifier URL (e.g. "https://example.com/mcp").
 
std::vector< std::string > authorization_servers
 Authorization server issuers that can issue tokens for this resource.
 
std::vector< std::string > scopes_supported
 Scopes that may be requested to access this resource.
 
std::optional< std::string > resource_name
 Human-readable name of the resource.
 
std::optional< std::string > resource_documentation
 URL of human-readable documentation for the resource.
 

Detailed Description

RFC 9728 Protected Resource Metadata configuration for the server.

When non-empty, the transport serves the metadata document at /.well-known/oauth-protected-resource and at /.well-known/oauth-protected-resource/<path> so that OAuth clients can discover the authorization server and required scopes.


The documentation for this struct was generated from the following file: