Connect an app · Terminal

Connect Gemini CLI to Putcode

Add Putcode to Gemini CLI with gemini mcp add, then sign in with /mcp auth.

https://putcode.dev/mcp

What you need

  • Gemini CLI installed.
  • A browser on the same machine for sign-in. Over SSH, use a token instead.

Add Putcode

gemini mcp add --transport http --scope user putcode https://putcode.dev/mcp
  1. Start gemini and run /mcp auth putcode. Your browser opens.
  2. Sign in to Putcode, choose permissions and select Allow.
  3. Run /mcp list to see Putcode's tools.

Or by hand in ~/.gemini/settings.json. Note the key is httpUrl; plain url means the older SSE transport:

{
  "mcpServers": {
    "putcode": {
      "httpUrl": "https://putcode.dev/mcp"
    }
  }
}

Check it works

In Gemini CLI, ask: "Use Putcode to show my profile." The agent calls get_my_profile and replies with your username, plan and the permissions you gave it.

Then try: "Save this button to Putcode", "Find a pricing table in my Putcode snippets", or "Fork the orbit loader on Putcode and make it blue". New snippets are private drafts until you publish them.

Without a browser

Create a token in Agents & MCP and add it as a header in settings.json:

{
  "mcpServers": {
    "putcode": {
      "httpUrl": "https://putcode.dev/mcp",
      "headers": {
        "Authorization": "Bearer pc_YOUR_TOKEN"
      }
    }
  }
}

Troubleshooting

/mcp auth does nothing over SSH.
Gemini CLI needs a local browser for sign-in. Use the token setup above.
The agent says a plan limit was reached.
Free accounts hold up to 100 public and 10 private or unlisted snippets. See pricing.
I want to disconnect an app.
Revoke it in Agents & MCP. Its access stops right away.
Publishing waits for approval.
That's your publish setting. Approve requests from your dashboard, or switch to "Publish right away" and give the app the publish permission.

More

Every tool, permission and limit is in the MCP server reference. Manage connected apps and tokens in Agents & MCP. Using another app? See all apps.