Skip to Content
Docs

POST /api/mcp_server/oauth_cancel

POST
/api/mcp_server/oauth_cancel

Cancel an MCP OAuth sign-in the caller started, so the worker stops waiting for its callback.

Personal access token scope: tools:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
task_id*string

OAuth task to cancel

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/mcp_server/oauth_cancel' \  -H 'Content-Type: application/json' \  -d '{  "task_id": "string"}'
Example Response200
Empty