# The Pontive MCP server

> Connect Claude, ChatGPT, Codex, Claude Code, Cursor or VS Code to Pontive's hosted MCP server to configure an instance from an AI client, signing in with OAuth or using a secret key.

Source: https://www.pontive.com/docs/guides/pontive-mcp-server

The Pontive MCP server lets an AI client configure your Pontive instances: apps, registered APIs and
their client grants, roles, permissions, resource types, resources, organizations and their members,
groups, agents, service accounts, users, invitations and webhook subscriptions. It also reads audit
logs and webhook deliveries, and exports and imports branding and auth flows as whole documents.

It is hosted at one global URL, for instances in every region:

```txt
https://mcp.pontive.com/mcp
```

Each tool call is one management API request, so what the client can do is exactly what the
credential it uses may do. There are two ways to connect:

| | Sign in with OAuth | Secret key |
| --- | --- | --- |
| Acts as | you, with your own roles | the key's service account, on the key's instance |
| Reaches | every instance your roles reach; each call names `instance_id` | one instance |
| Also manages | your workspaces, projects and instances (the control-plane tools) | — |
| Clients | Claude, ChatGPT, Codex, Claude Code, Cursor, VS Code | Claude Code, Codex, Cursor, VS Code, CI |

## Sign in with OAuth [#sign-in-with-oauth]

Add the server's URL with no key. The client receives a `401` pointing at the server's protected
resource metadata and finds Pontive's authorization server there. Its metadata
(`/.well-known/oauth-authorization-server`) advertises both ways for a client to register itself:

- a **client ID metadata document** (CIMD, `client_id_metadata_document_supported`): the client's
  `client_id` is the URL of a document describing it. Claude, ChatGPT, Codex and Claude Code use this.
- **Dynamic Client Registration** (DCR, RFC 7591, `registration_endpoint`): the client posts its
  metadata to `/oauth2/register` and gets a `client_id` back. Cursor, and any other MCP client that
  only does DCR, uses this.

Either way the client then opens a browser for you to sign in to Pontive and consent, and checks the
`iss` on the authorization response (RFC 9207, `authorization_response_iss_parameter_supported`). Every
tool call then acts as you.

**Claude** (claude.ai, Desktop): Settings → Connectors → Add custom connector, with the URL
`https://mcp.pontive.com/mcp`.

**ChatGPT**: Settings → Connectors (developer mode) → Create, with the URL and OAuth authentication.

**Claude Code**:

```sh
claude mcp add --transport http pontive https://mcp.pontive.com/mcp
```

Then run `/mcp` in Claude Code and choose to authenticate the `pontive` server.

**Codex**:

```sh
codex mcp add pontive --url https://mcp.pontive.com/mcp
codex mcp login pontive
```

**Cursor** (`~/.cursor/mcp.json` or `.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "pontive": { "url": "https://mcp.pontive.com/mcp" }
  }
}
```

Cursor registers itself with DCR. Open Cursor Settings → MCP, where the `pontive` server shows that it
needs a login, and choose to connect: Cursor opens the browser to sign in to Pontive.

**VS Code** (`.vscode/mcp.json`):

```json
{
  "servers": {
    "pontive": { "type": "http", "url": "https://mcp.pontive.com/mcp" }
  }
}
```

Start the server from the file or the MCP view, and allow VS Code to authenticate when it asks.

In this mode every tool takes an `instance_id` (`inst_…`), and `list_instances` lists the instances
you can use, filtered by workspace, project or environment; the assistant calls it to find the right
one and asks you when several fit. The control-plane tools (`list_workspaces`, `create_project`,
`create_instance`…) manage your Pontive account and take no `instance_id`. Some actions stay in the
dashboard and are refused to the MCP server: deleting a workspace or a production instance, billing,
ownership and owner changes, and secret keys.

A client registered with CIMD or DCR that is never used, with no sign-in consented to within 24
hours of registering, is removed, and so is one idle for 90 days, with no consent and no live refresh
token in that time. Nothing is lost: the client registers again the next time you connect it, and you
consent again.

## Use a secret key [#use-a-secret-key]

Create a secret key on the instance in the Pontive dashboard. It looks like
`pontive_sk_test_us_…`. A key from any region works on the same URL. Keep it in an environment
variable, never in a file you commit.

**Claude Code**:

```sh
claude mcp add --transport http pontive https://mcp.pontive.com/mcp \
  --header "Authorization: Bearer $PONTIVE_SECRET_KEY"
```

**Cursor** (`~/.cursor/mcp.json` or `.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "pontive": {
      "url": "https://mcp.pontive.com/mcp",
      "headers": { "Authorization": "Bearer ${env:PONTIVE_SECRET_KEY}" }
    }
  }
}
```

**VS Code** (`.vscode/mcp.json`):

```json
{
  "inputs": [
    { "type": "promptString", "id": "pontive-key", "description": "Pontive secret key", "password": true }
  ],
  "servers": {
    "pontive": {
      "type": "http",
      "url": "https://mcp.pontive.com/mcp",
      "headers": { "Authorization": "Bearer ${input:pontive-key}" }
    }
  }
}
```

**Codex** (`~/.codex/config.toml`):

```toml
[mcp_servers.pontive]
url = "https://mcp.pontive.com/mcp"
bearer_token_env_var = "PONTIVE_SECRET_KEY"
```

A request with a secret key and an `Origin` header (that is, from a browser) is refused with
`403 secret_key_in_browser`. Secret keys are for servers and local tools.

## Read-only mode [#read-only-mode]

Send `X-Pontive-Read-Only: true` and only the read-only tools are listed and callable:

```sh
claude mcp add --transport http pontive https://mcp.pontive.com/mcp \
  --header "Authorization: Bearer $PONTIVE_SECRET_KEY" --header "X-Pontive-Read-Only: true"
```

Read-only mode only hides tools. For a hard limit, give the key's service account a read-only role.

## Docs tools [#docs-tools]

Beside the configuration tools, the server offers `search_docs`, `get_doc`, `list_docs` and
`get_integration_guide`, and the prompts *Add Pontive sign-in to this app* and *Protect this API with
Pontive*. They read these docs, need no permission and take no `instance_id`. They are the tools of the
public [docs MCP server](/docs/guides/docs-mcp-server), which needs no sign-in at all: connect that one
when you only want the docs.

## What the server never does [#what-the-server-never-does]

No tool reveals, mints, rotates or revokes a secret: client secrets, secret keys, access keys,
personal access tokens, webhook signing secrets, sessions or passwords. A credential handed to a model
ends up in its context and transcript. Create and copy those in the dashboard. Creating a webhook
subscription is therefore not a tool either, since its response carries the new signing secret.

Configuration documents (resource types, roles, permissions, a service account's token settings) use
optimistic concurrency: their read tools return an `ETag`, and updates and deletes take it back as
`if_match`. A stale one is `412 precondition_failed`; read again and retry.

Branding and auth flow imports are dry runs unless `dry_run` is `false`, and applying one needs the dry
run's `ETag`, so a plan is always reviewed before it is written.
