Patricia MCP Setup API
The mcp-setup API from Patricia — 3 operation(s) for mcp-setup.
The mcp-setup API from Patricia — 3 operation(s) for mcp-setup.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/patricia-app:patricia-app-mcp-setup-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Patricia MCP Setup API
version: 0.1.0
tags:
- name: mcp-setup
paths:
/v1/mcp-setup/begin:
post:
tags:
- mcp-setup
summary: Read a custom MCP setup request
description: Returns the server details stored when Patricia created this single-use setup link.
operationId: begin_mcp_setup_v1_mcp_setup_begin_post
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/McpSetupBeginBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/McpSetupBeginResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/mcp-setup/complete:
post:
tags:
- mcp-setup
summary: Complete a custom MCP setup request
description: Consumes the single-use setup link, then validates and probes the stored server before registration. The response never includes the submitted server credential.
operationId: complete_mcp_setup_v1_mcp_setup_complete_post
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/McpSetupCompleteBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/McpSetupCompleteResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/mcp-setup/oauth/start:
post:
tags:
- mcp-setup
summary: Begin an OAuth connect for a chat-requested MCP server
description: Redeems the single-use setup link, then discovers the frozen server's authorization service and returns the URL to send the person to. Nothing is connected until the ceremony completes.
operationId: start_mcp_setup_oauth_v1_mcp_setup_oauth_start_post
security:
- HTTPBearer: []
parameters:
- name: X-Tenant-Id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Tenant-Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/McpSetupOAuthStartBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/McpSetupOAuthStartResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
McpSetupCompleteResponse:
properties:
account_id:
type: string
title: Account Id
type: object
required:
- account_id
title: McpSetupCompleteResponse
description: The connected account created by a completed setup.
McpSetupBeginResponse:
properties:
label:
anyOf:
- type: string
- type: 'null'
title: Label
server_url:
type: string
title: Server Url
scope:
type: string
enum:
- team
- personal
title: Scope
discovered_auth_mode:
anyOf:
- $ref: '#/components/schemas/McpDiscoveredAuthMode'
- type: 'null'
type: object
required:
- label
- server_url
- scope
title: McpSetupBeginResponse
description: The stored server details shown before the person submits the separate token.
ErrorResponse:
properties:
code:
type: string
title: Code
message:
type: string
title: Message
errors:
anyOf:
- items:
additionalProperties: true
type: object
type: array
- type: 'null'
title: Errors
type: object
required:
- code
- message
title: ErrorResponse
description: Standard error envelope, matching exception handler output.
McpSetupBeginBody:
properties:
setup_token:
type: string
minLength: 1
format: password
title: Setup Token
writeOnly: true
additionalProperties: false
type: object
required:
- setup_token
title: McpSetupBeginBody
description: The one-time token read from the dashboard URL fragment.
McpSetupCompleteBody:
properties:
setup_token:
type: string
minLength: 1
format: password
title: Setup Token
writeOnly: true
auth_mode:
type: string
enum:
- none
- token
title: Auth Mode
default: token
token:
anyOf:
- type: string
maxLength: 8192
format: password
writeOnly: true
- type: 'null'
title: Token
writeOnly: true
header_name:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Header Name
additionalProperties: false
type: object
required:
- setup_token
title: McpSetupCompleteBody
description: 'The one-time setup token and the sign-in choice the person made in the browser.
``auth_mode`` is the console dialog''s own vocabulary, minus the option this route cannot serve:
signing in AT the server is a redirect ceremony and lives on ``/mcp-setup/oauth/start``. What is
left is the pair a single request can settle, and stating which one was chosen is what makes the
no-credential answer an ANSWER rather than an empty field.
A blank token used to be that answer by accident. ``min_length=1`` admitted a single space, which
``_resolve_auth`` then stripped to nothing and recorded as a server needing no credential — so a
mistyped paste and a deliberate choice produced the same connection, and neither the person nor
the row could tell them apart. A whitespace-only token is now a 422 and the choice has its own
field.'
McpSetupOAuthStartResponse:
properties:
authorize_url:
type: string
title: Authorize Url
attempt_id:
type: string
format: uuid
title: Attempt Id
expires_at:
type: string
format: date-time
title: Expires At
additionalProperties: false
type: object
required:
- authorize_url
- attempt_id
- expires_at
title: McpSetupOAuthStartResponse
description: Where to send the person, and what the ceremony they are leaving for will come back as.
McpDiscoveredAuthMode:
type: string
enum:
- oauth
- open
- token_required
- unknown
title: McpDiscoveredAuthMode
description: The authentication mode found before an MCP setup intent advances.
McpSetupOAuthStartBody:
properties:
client_id:
anyOf:
- type: string
maxLength: 1024
- type: 'null'
title: Client Id
client_secret:
anyOf:
- type: string
maxLength: 8192
- type: 'null'
title: Client Secret
setup_token:
type: string
minLength: 1
format: password
title: Setup Token
writeOnly: true
additionalProperties: false
type: object
required:
- setup_token
title: McpSetupOAuthStartBody
description: 'The one-time setup token, and a client credential only if the server demanded one.
**There is no address, no audience and no label here, and their absence is the design.** Those
three were frozen when Patricia minted the link, under the requester''s authority and, for a team
server, under an approval bound to them. The console''s own start accepts an address and an
audience from the browser and defaults a new connection to team, so a body that carried them
would let a personal request come back as a team connection with every console rule satisfied.
``client_id`` and ``client_secret`` are the same pair the console''s credentials step collects,
INHERITED from :class:`services.mcp_oauth.PastedClientCredentialFields` rather than restated, so
a secret never arriving without an id, a blank id being refused, and an id being trimmed while a
secret keeps every byte are one rule with one implementation. ``OAuthStartBody`` inherits the
same base. They are the SECOND call of one connect, sent after this route answered that the
server''s sign-in service will not register Patricia on its own.'
securitySchemes:
HTTPBearer:
type: http
scheme: bearer