MCP TypeScript SDK (V2)
V1 Docs
Preparing search index...
@modelcontextprotocol/client
client/auth
determineScope
Function determineScope
determineScope
(
options
:
{
authServerMetadata
?:
AuthorizationServerMetadata
;
clientMetadata
:
{
client_name
?:
string
;
client_uri
?:
string
;
contacts
?:
string
[]
;
grant_types
?:
string
[]
;
jwks
?:
any
;
jwks_uri
?:
string
;
logo_uri
?:
string
;
policy_uri
?:
string
;
redirect_uris
:
string
[]
;
response_types
?:
string
[]
;
scope
?:
string
;
software_id
?:
string
;
software_statement
?:
string
;
software_version
?:
string
;
token_endpoint_auth_method
?:
string
;
tos_uri
?:
string
;
}
;
requestedScope
?:
string
;
resourceMetadata
?:
{
authorization_details_types_supported
?:
string
[]
;
authorization_servers
?:
string
[]
;
bearer_methods_supported
?:
string
[]
;
dpop_bound_access_tokens_required
?:
boolean
;
dpop_signing_alg_values_supported
?:
string
[]
;
jwks_uri
?:
string
;
resource
:
string
;
resource_documentation
?:
string
;
resource_name
?:
string
;
resource_policy_uri
?:
string
;
resource_signing_alg_values_supported
?:
string
[]
;
resource_tos_uri
?:
string
;
scopes_supported
?:
string
[]
;
tls_client_certificate_bound_access_tokens
?:
boolean
;
[
key
:
string
]:
unknown
;
}
;
}
,
)
:
string
|
undefined
Selects scopes per the MCP spec and augment for refresh token support.
Parameters
options
:
{
authServerMetadata
?:
AuthorizationServerMetadata
;
clientMetadata
:
{
client_name
?:
string
;
client_uri
?:
string
;
contacts
?:
string
[]
;
grant_types
?:
string
[]
;
jwks
?:
any
;
jwks_uri
?:
string
;
logo_uri
?:
string
;
policy_uri
?:
string
;
redirect_uris
:
string
[]
;
response_types
?:
string
[]
;
scope
?:
string
;
software_id
?:
string
;
software_statement
?:
string
;
software_version
?:
string
;
token_endpoint_auth_method
?:
string
;
tos_uri
?:
string
;
}
;
requestedScope
?:
string
;
resourceMetadata
?:
{
authorization_details_types_supported
?:
string
[]
;
authorization_servers
?:
string
[]
;
bearer_methods_supported
?:
string
[]
;
dpop_bound_access_tokens_required
?:
boolean
;
dpop_signing_alg_values_supported
?:
string
[]
;
jwks_uri
?:
string
;
resource
:
string
;
resource_documentation
?:
string
;
resource_name
?:
string
;
resource_policy_uri
?:
string
;
resource_signing_alg_values_supported
?:
string
[]
;
resource_tos_uri
?:
string
;
scopes_supported
?:
string
[]
;
tls_client_certificate_bound_access_tokens
?:
boolean
;
[
key
:
string
]:
unknown
;
}
;
}
Returns
string
|
undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
V1 Docs
MCP TypeScript SDK (V2)
Loading...
Selects scopes per the MCP spec and augment for refresh token support.