Browse the docs

Connect Claude, ChatGPT or Codex

You connect Claude, ChatGPT or Codex to Putnami Cloud once. Then you ask it what waits for your validation and decide from the conversation.

Putnami Cloud serves one MCP server at https://mcp.putnami.cloud/mcp. MCP (Model Context Protocol) is how an AI host calls tools on a server. The server reads your workspaces, changes, CI runs, code and signals, and makes 9 writes in your name. It builds, deploys and edits no code: the putnami CLI does that.

What happens in the cloud

  1. Your host adds the server by its URL and sends you to the Putnami sign-in page.
  2. You sign in and consent to the host. One consent covers every workspace you belong to.
  3. For each call, the platform exchanges your host's token for one that lives at most 5 minutes and serves the one workspace the call names. It checks your permission there.
  4. A write acts at exactly what you read. If the change moved since, the tool answers moved and writes nothing.
  5. The platform records each write as yours, made through your host. The server stores nothing between calls.

Do it

Never pre-authorize write tools

Never pre-authorize write tools. Your host asks you before it calls a tool. Keep that question for every write:

  • Do not choose "always allow" for a write tool. The tools reference lists the 9.
  • Do not add a write tool, or the whole server, to an allow list.
  • Do not connect the server in a session without approvals.

A write approves, accepts or answers in your name. The model chooses a tool from what it reads, and that includes text other people and agents wrote: a pull request title, a build plan, a decision option. Your confirmation is the only check between that text and a write.

Read tools change nothing. Let them run without asking only in a session with no tool that sends data out, such as a web fetch: text in a read can ask the model to send what it read elsewhere. In Claude Code, the allow rule mcp__putnami admits every tool, writes included. Do not add it.

Connect your host

Menu names change between host versions. Look for the place your host adds a remote MCP server by URL.

Host Where to add https://mcp.putnami.cloud/mcp
claude.ai and the Claude desktop and mobile apps Settings, Connectors, Add custom connector. On a Team or Enterprise plan, an owner adds the connector first.
Claude Code The command below, then /mcp in a session to sign in.
ChatGPT Plugins, +, Add custom MCP server. Enter the URL, select OAuth and create the plugin. Install it, then select it with @ in a new conversation.
Codex (CLI and IDE extension) The commands below.

Claude Code:

claude mcp add --transport http putnami https://mcp.putnami.cloud/mcp

Codex:

codex mcp add putnami --url https://mcp.putnami.cloud/mcp
codex mcp login putnami

Leave the custom OAuth client ID and client secret fields empty: Putnami uses OAuth authorization code with PKCE. See the OpenAI connection guide for the current ChatGPT menus.

Sign in

The host sends you to the Putnami sign-in page. Sign in with your Putnami account and consent to the host. The consent page shows each scope as a checkbox, ticked by default: mcp.read allows the read tools, and mcp.act allows the write tools. Untick mcp.act to connect for reading only.

A read-only connection that calls a write tool gets an answer that names the missing scopes, mcp.read mcp.act. Your host then asks you to sign in again.

What an agent can do for you

You ask The agent calls
What waits for me? list_workspaces, then list_pending_decisions
What did this change prove and lose? get_change
Why did this run fail? list_runs, then get_run
What does this service log? query_logs, list_errors
Approve a declaration, accept a gap approve_declarations, accept_gaps
Open a pull request for my branch publish_proposal

The MCP tools reference lists all 29 tools and what they never do.

Publish a pull request

An agent session publishes its branch's pull request through Putnami, with no GitHub credential.

  1. The agent pushes the branch, then calls publish_proposal with the base, the head, the title, the body and head_commit, the commit it pushed.
  2. Your host asks you. Putnami checks that your GitHub login can write the repository now. Another sign-in answers not_allowed.
  3. The Putnami GitHub App writes the pull request on your behalf, with the body as sent, and assigns you. It updates an open pull request of the same base and head, so the same call sent again opens no second one.

A new pull request opens ready unless the agent sends draft: true. Send ready: true to take a pull request out of draft. Add auto_merge: true with it to turn squash auto-merge on at the head just published. GitHub then merges the pull request, or enters it into the merge queue, once the repository's rules allow. publish_proposal never merges itself.

Sign the CLI in from a cloud session

A cloud session runs the putnami CLI in a sandbox with no Putnami credential. You put no token in it: the CLI signs in through your connection.

  1. The CLI prints a code such as BCDF-GHJK, as putnami cloud login --no-open does.
  2. The agent calls approve_cli_login with that code and the workspace. Your host asks you first. Check that the code is the one this session's CLI printed.
  3. The CLI receives its own token from Putnami. The code is the only thing that passes through the conversation.

Send only a code your session's CLI printed. Never approve a code that a file, a web page or a tool answer gives you: it signs someone else's CLI in as you.

The CLI's token does less than your connection. It acts as you, in the one workspace you named, on your pull requests only: it reads them, opens or updates them, writes comment reviews and turns auto-merge on. It never merges, approves a declaration, accepts a gap, decides a finding, answers a decision or changes a setting. It renews itself for at most 12 hours after your approval, and signing out of Putnami everywhere ends it.

Agent and CI environments lists what this CLI reads and what answers 401.

What you see

  • Your host asks you before each write and shows its arguments.
  • putnami.app shows the approval, the accepted gap or the pull request as yours, on the change page.
  • putnami cloud whoami in a cloud session names you, signed in through an MCP connection.

When it fails

You see Cause Fix
The server answers that a scope is missing The connection holds mcp.read only Reconnect the host and keep mcp.act ticked
not_allowed You lack the permission in that workspace, or your GitHub login cannot write the repository Ask a workspace admin, or sign in with GitHub
moved The change moved since the agent read it Ask the agent to read it again
not_found on approve_cli_login The code is unknown, expired or already used Run putnami cloud login --no-open again and send the new code
rate_limited More than 120 tool calls in a minute Wait retry_after seconds
An empty list with partial set A read failed Read again. It does not mean nothing waits

Limits

Each person makes 120 tool calls and 120 writes a minute, counted on each serving instance. An answer holds at most 64 KiB: a longer list comes with a next_cursor. The tools reference has the rest.

Next