Zum Hauptinhalt springen

Öffentlichen MCP-Client registrieren

POST /oauth/register

Registrierung gilt 30 Tage. Nur öffentliche Clients; HTTPS- oder literale Loopback-HTTP-Weiterleitungen, kein Fragment oder userinfo. Raten- und Speicherlimits gelten. Vom Client angegebene Namen sind nicht verifiziert.

Authentifizierung​

Dieser Vorgang erfordert keine authentifizierte Sitzung. Origin-Prüfungen und Anfragebegrenzungen gelten weiterhin.

[]

Parameter​

[]

Anfrageinhalt​

{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"client_name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"redirect_uris": {
"type": "array",
"minItems": 1,
"maxItems": 5,
"items": {
"type": "string",
"format": "uri"
}
},
"token_endpoint_auth_method": {
"const": "none"
},
"grant_types": {
"type": "array",
"items": {
"const": "authorization_code"
}
},
"response_types": {
"type": "array",
"items": {
"const": "code"
}
}
},
"required": [
"client_name",
"redirect_uris"
]
}
}
}
}

Antworten​

{
"201": {
"description": "Registered public client, no client secret",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"client_id": {
"type": "string"
},
"redirect_uris": {
"type": "array",
"items": {
"type": "string"
}
},
"token_endpoint_auth_method": {
"const": "none"
}
},
"required": [
"client_id",
"redirect_uris",
"token_endpoint_auth_method"
]
}
}
}
},
"400": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"401": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"403": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"413": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"415": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"429": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
},
"503": {
"description": "OAuth error; tokens and request bodies must not be logged",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"error_description": {
"type": "string"
}
},
"required": [
"error"
]
}
}
}
}
}

Referenzen wie #/components/schemas/Asset werden in den gemeinsamen Schemas aufgelöst. Lade den OpenAPI-Vertrag zur Clientgenerierung herunter. Diese Seite wird generiert; sie beschreibt die implementierte Entwicklungs-API, keine geplanten Endpunkte.