OAuth ClientsOAuth-Client registrieren

OAuth-Client registrieren

Registriert einen OAuth-Client dynamisch gemäß RFC 7591.

curl -X POST "https://api.example.com/mcp-server/register" \
  -H "Content-Type: application/json" \
  -d '{
  "redirect_uris": [
    "https://client.example.app/callback"
  ],
  "client_name": "Example MCP Client",
  "grant_types": [
    "authorization_code",
    "refresh_token"
  ],
  "token_endpoint_auth_method": "none"
}'
{
  "client_id": "mcp_client_example_1234567890abcdef",
  "client_id_issued_at": 1735689600,
  "redirect_uris": [
    "https://client.example.app/callback"
  ],
  "grant_types": [
    "authorization_code",
    "refresh_token"
  ],
  "response_types": [
    "code"
  ],
  "token_endpoint_auth_method": "none",
  "client_name": "Example MCP Client"
}
POST
/register
POST
Base URLstring

Target server for requests. Edit to use your own host.

Content-Typestring
Required

The media type of the request body

Options: application/json
redirect_urisarray
Required

Zulässige Redirect-URIs für den Client.

client_namestring

Menschenlesbarer Name des Clients.

grant_typesarray

Vom Client angeforderte OAuth-Grant-Typen.

token_endpoint_auth_methodstring

Client-Authentifizierungsmethode am Token-Endpunkt.

Options: none, client_secret_post
Request Preview
Response

Response will appear here after sending the request

Body

application/json
redirect_urisarray
Required

Zulässige Redirect-URIs für den Client.

Example:
["https://client.example.app/callback"]
client_namestring

Menschenlesbarer Name des Clients.

Example:
Example MCP Client
grant_typesarray

Vom Client angeforderte OAuth-Grant-Typen.

Example:
["authorization_code","refresh_token"]
token_endpoint_auth_methodstring

Client-Authentifizierungsmethode am Token-Endpunkt.

Allowed values:noneclient_secret_post

Responses