MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / AuthSettings

Class AuthSettings

src/mcp/server/auth/settings.py:15–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15class AuthSettings(BaseModel):
16 issuer_url: AnyHttpUrl = Field(
17 ...,
18 description="OAuth authorization server URL that issues tokens for this resource server.",
19 )
20 service_documentation_url: AnyHttpUrl | None = None
21 client_registration_options: ClientRegistrationOptions | None = None
22 revocation_options: RevocationOptions | None = None
23 required_scopes: list[str] | None = None
24
25 # Resource Server settings (when operating as RS only)
26 resource_server_url: AnyHttpUrl | None = Field(
27 ...,
28 description="The URL of the MCP server to be used as the resource identifier "
29 "and base route to look up OAuth Protected Resource Metadata.",
30 )

Callers 5

auth_settingsFunction · 0.90
oauth_server.pyFile · 0.90
create_resource_serverFunction · 0.90
create_simple_mcp_serverFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected