---
title: "Handle MCP server OAuth2 callback"
method: GET
path: "/api/experimental/mcp/servers/{mcpServer}/oauth2/callback"
tags: ["MCP"]
---

# Handle MCP server OAuth2 callback

`GET /api/experimental/mcp/servers/{mcpServer}/oauth2/callback`

## Path parameters

- `mcpServer` string, uuid, required

## Query parameters

- `code` string
- `state` string
- `error` string
- `error_description` string

## Response `200`

OK

---

[API](https://skmtc.dev/coder/apis/coder-api.md) · [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/369ae60ab00e/schema)
