---
title: "MCP OAuth callback"
method: GET
path: "/mcp/oauth/callback"
---

# MCP OAuth callback

`GET /mcp/oauth/callback`

Server-hosted OAuth redirect target. The authorization server redirects the user's browser here with ?code & ?state; this completes the matching in-flight flow (validated by the unguessable state) and renders a success/failure page. Reachable from web + mobile, unlike the 127.0.0.1 loopback callback.

## Query parameters

- `directory` string
- `workspace` string

## Response `200`

Authorization handled (success or provider error)

## Other responses

- `400` — Missing or invalid state / code

---

[API](https://skmtc.dev/isogonic/apis/codeplane.md) · [All operations](https://skmtc.dev/isogonic/apis/codeplane/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/isogonic/codeplane/revisions/e787ab2e6692/schema)
