---
title: "Register an MCP OAuth public client"
method: POST
path: "/auth/mcp/register"
tags: ["MCP"]
---

# Register an MCP OAuth public client

`POST /auth/mcp/register`

## Request

- Base URL: `https://api.pyai.com`
- URL: `https://api.pyai.com/auth/mcp/register`
- Auth: none required

## Request body

- object
  - `client_name` string
  - `redirect_uris` string[], required: Exact HTTPS or HTTP loopback callback URIs, or the supported fixed Cursor desktop return URIs. Custom schemes are not accepted generally. S256 PKCE and project consent are required for every client.
  - `token_endpoint_auth_method` 'none'

## Response `201`

Registered public client. No client secret is issued.

- object

## Other responses

- `400`: Invalid client metadata.

---

[API](https://skmtc.dev/pyai/apis/pyai-api.md) · [All operations](https://skmtc.dev/pyai/apis/pyai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pyai/apis/pyai-api/revisions/819d8e7c4d09?raw)
