---
title: "POST /api/v1/projects/{projectUuid}/aiAgents/mcpServers/{mcpServerUuid}/oauth/disconnect"
method: POST
path: "/api/v1/projects/{projectUuid}/aiAgents/mcpServers/{mcpServerUuid}/oauth/disconnect"
---

# POST /api/v1/projects/{projectUuid}/aiAgents/mcpServers/{mcpServerUuid}/oauth/disconnect

`POST /api/v1/projects/{projectUuid}/aiAgents/mcpServers/{mcpServerUuid}/oauth/disconnect`

## Request

- Base URL: `/` (relative, and the document’s source URL is not known)
- URL: `/api/v1/projects/{projectUuid}/aiAgents/mcpServers/{mcpServerUuid}/oauth/disconnect`
- Auth: none required
- TypeScript: <https://skmtc.dev/lightdash/apis/lightdash-api/docs/api/v1/projects/:projectUuid/aiAgents/mcpServers/:mcpServerUuid/oauth/disconnect/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `projectUuid` string, required
- `mcpServerUuid` string, required

## Request body

- ApiAiMcpOAuthCredentialRequest
  - `credentialScope` 'shared' | 'user'

## Response `200`

Success

- ApiSuccessEmpty
  - `results` unknown
  - `status` 'ok', required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/lightdash/apis/lightdash-api.md) - [All operations](https://skmtc.dev/lightdash/apis/lightdash-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lightdash/apis/lightdash-api/revisions/40c933755c9a?raw)
