---
title: "Oauth Authorize"
method: GET
path: "/v1/mcp-oauth/authorize"
tags: ["v1", "protected", "mcp-oauth-connect"]
---

# Oauth Authorize

`GET /v1/mcp-oauth/authorize`

Initiate MCP OAuth flow: discover AS, register client, redirect to auth page.

1. Look up the MCP instance's remote URL
2. Discover the authorization server (RFC 9728 → RFC 8414)
3. Dynamically register as an OAuth client (RFC 7591)
4. Generate PKCE pair and state
5. Redirect user to the authorization endpoint

## Query parameters

- `instance_id` string, uuid, required — MCP instance to connect
- `return_to` string — Frontend URL to redirect after OAuth completes

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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