u
This commit is contained in:
35
docs/api/routes/mcp/authorize.get.md
Normal file
35
docs/api/routes/mcp/authorize.get.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# `GET /mcp/authorize`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
Get MCP authorization prompt details
|
||||
|
||||
Fetches client information and current user context for the frontend MCP authorization consent screen.
|
||||
|
||||
## Query parameters
|
||||
|
||||
| Param | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `client_id` | yes | string | |
|
||||
| `redirect_uri` | yes | string | |
|
||||
| `response_type` | no | string | |
|
||||
| `code_challenge` | no | string | |
|
||||
| `code_challenge_method` | no | string | |
|
||||
| `state` | no | string | |
|
||||
| `scope` | no | string | |
|
||||
|
||||
## Response `200`
|
||||
|
||||
Client and user consent metadata
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 400 | Invalid request or unregistered redirect_uri |
|
||||
| 401 | User not authenticated |
|
||||
| 404 | Client not found |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user