Saltar al contenido principal

Registrar un cliente MCP público

POST /oauth/register

El registro dura 30 días. Solo clientes públicos; redirecciones HTTPS o HTTP literal de bucle local, sin fragmento ni userinfo. Se aplican límites de frecuencia y almacenamiento. Los nombres proporcionados por el cliente no están verificados.

Autenticación​

Esta operación no requiere una sesión autenticada. Las comprobaciones de Origin y los límites de solicitudes siguen aplicándose.

[]

Parámetros​

[]

Cuerpo de la solicitud​

{
"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"
]
}
}
}
}

Respuestas​

{
"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"
]
}
}
}
}
}

Las referencias como #/components/schemas/Asset se resuelven en los esquemas compartidos. Descarga el contrato OpenAPI para generar clientes. Esta página se genera automáticamente; describe la API de desarrollo implementada, no endpoints previstos.