---
title: "OAuth redirect target. Exchanges code -> tokens and redirects back to dashboard."
method: GET
path: "/api/mcp-oauth/callback"
tags: ["MCP OAuth"]
---

# OAuth redirect target. Exchanges code -> tokens and redirects back to dashboard.

`GET /api/mcp-oauth/callback`

## Query parameters

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

## Other responses

- `302` — Redirect back to dashboard with oauth=success or oauth=error
- `400` — Bad state / missing code

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/ef761849166b/schema)
