---
title: "Complete MCP client OAuth flow"
method: POST
path: "/api/mcp/client/{id}/complete-oauth"
tags: ["MCP", "OAuth"]
---

# Complete MCP client OAuth flow

`POST /api/mcp/client/{id}/complete-oauth`

Completes the OAuth flow for an MCP client after the user has authorized the request.
This endpoint should be called after the OAuth provider redirects back to the callback endpoint
and the OAuth token has been stored. It retrieves the pending MCP client configuration and
establishes the connection with the OAuth-provided credentials.

## Path parameters

- `id` string, required

## Response `200`

MCP client connected successfully with OAuth

- SuccessResponse — Generic success response
  - `status` string
  - `message` string

## Other responses

- `400` — OAuth not authorized yet or MCP client not found in pending OAuth clients
- `404` — MCP client not found in pending OAuth clients or OAuth config not found
- `500` — Internal server error

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
