Comenzar autorización MCP en navegador
GET /oauth/authorize
Valida la redirección registrada, recurso MCP exacto y desafío S256 y después abre la página de consentimiento del producto. No concede acceso automáticamente. La solicitud caduca en 10 minutos. El código de autorización caduca en 60 segundos.
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
[
{
"name": "client_id",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "redirect_uri",
"in": "query",
"required": true,
"schema": {
"type": "string",
"format": "uri"
}
},
{
"name": "response_type",
"in": "query",
"required": true,
"schema": {
"const": "code"
}
},
{
"name": "scope",
"in": "query",
"required": true,
"schema": {
"const": "mcp:tools"
}
},
{
"name": "resource",
"in": "query",
"required": true,
"schema": {
"const": "https://qscan.dev/mcp"
}
},
{
"name": "code_challenge",
"in": "query",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$"
}
},
{
"name": "code_challenge_method",
"in": "query",
"required": true,
"schema": {
"const": "S256"
}
},
{
"name": "state",
"in": "query",
"required": false,
"schema": {
"type": "string",
"maxLength": 1024
}
}
]
Cuerpo de la solicitud
No se define un cuerpo de solicitud.
Respuestas
{
"303": {
"description": "Open sign-in and explicit consent",
"headers": {
"Location": {
"schema": {
"type": "string",
"format": "uri"
}
}
}
},
"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.