MCP TypeScript SDK (V2)
V1 Docs
Preparing search index...
@modelcontextprotocol/client
client/auth
registerClient
Function registerClient
registerClient
(
authorizationServerUrl
:
string
|
URL
,
__namedParameters
:
{
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
;
}
;
fetchFn
?:
FetchLike
;
metadata
?:
AuthorizationServerMetadata
;
}
,
)
:
Promise
<
{
client_id
:
string
;
client_id_issued_at
?:
number
;
client_name
?:
string
;
client_secret
?:
string
;
client_secret_expires_at
?:
number
;
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
;
}
,
>
Performs OAuth 2.0 Dynamic Client Registration according to
RFC 7591
.
Parameters
authorizationServerUrl
:
string
|
URL
__namedParameters
:
{
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
;
}
;
fetchFn
?:
FetchLike
;
metadata
?:
AuthorizationServerMetadata
;
}
Returns
Promise
<
{
client_id
:
string
;
client_id_issued_at
?:
number
;
client_name
?:
string
;
client_secret
?:
string
;
client_secret_expires_at
?:
number
;
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
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
V1 Docs
MCP TypeScript SDK (V2)
Loading...
Performs OAuth 2.0 Dynamic Client Registration according to RFC 7591.