Knowledge base
Contents

Getting started

Skin studio

Build studio

Agents

Account, sharing & privacy

Help & reference

All topics / Agents

Connect an agent

Pair Claude, ChatGPT, Claude Code, Codex or another MCP client with your studio tab using a short code – step by step, with troubleshooting.

The short version

  1. Open the studio you want to work in (skins at /skin, builds at /build).
  2. Look at the agent column on the right. While no agent is connected it shows a pairing code like K7Q-4MX. If the column is closed, choose Agent; if the code is hidden, choose Connect agent (the link icon) in the column's header.
  3. Choose Copy code and prompt and paste it into your agent's chat.
  4. The agent calls genmc_pair with the code. The card with the code closes by itself, and the column's header shows your agent's name, for example Claude Code.

The × in the card's corner hides it at any time; the link icon brings it back.

The code is valid for 10 minutes and works once. New code creates another one.

In Claude's chat: the studio beside the conversation

In Claude on the web and in the desktop app, genMC is an interactive connector: no code is needed there.

  1. Add genMC to Claude once (see the table below).
  2. Ask Claude for a build or a skin, for example "Build me a small tea house with genMC." Claude opens the studio beside the chat (genmc_open_studio), already connected.
  3. Watch Claude work, edit along, and keep talking to Claude in its chat. The studio hides its own agent column there, so there is one chat, not two.
  • Bigger or smaller – Claude's panel has its own buttons for full screen. A studio that sits in the conversation has Open beside chat.
  • The studio doesn't show up – where Claude does not let genMC appear inside the chat yet, the card offers Open genMC: the studio opens in a new tab and is connected to the chat all the same.
  • Exports go through Claude's download dialog; links open in a new browser tab.
  • Your builds there belong to the studio inside Claude. It starts without your genMC sign-in and keeps its builds in this browser.
  • Another studio – asking Claude for a new one opens a fresh studio; the older card says it moved on. A card connects once: if you reopen the chat in another browser, ask Claude to open the studio again.
  • Claude Code and Codex have no studio beside the chat. They keep pairing with a code, and you talk to them in the studio's agent column as described here.

The first time: add genMC to your agent

The agent needs genMC's MCP server once. Its address is shown in the panel under First time? Add genMC to your agent – it is this site's address followed by /api/mcp.

AgentHow to add genMC
Claude (web, desktop)Add a custom connector with the MCP server URL (Settings → Connectors).
ChatGPTAdd genMC as a connector / MCP server with the same URL in ChatGPT's settings.
Claude Code (CLI and desktop app)Run claude mcp add --scope user --transport http genmc https://<this site>/api/mcp – the panel shows the exact line to copy. Without --scope user genMC only works in the folder where you ran the command.
Codex CLIRun codex mcp add genmc --url https://<this site>/api/mcp.
Cursor and other MCP clientsAdd an MCP server of type Streamable HTTP with the same URL.
Codex appNo setup: open the studio in the app's built-in browser. Its site tools connect without a code.

Menu names in the agent apps change from time to time; look for "connectors", "MCP servers" or "tools".

You can also skip this step: the copied prompt asks the agent to install genMC itself. Agents that can run commands (Claude Code, Codex CLI) do so right away – your app may ask you to approve the command once. A newly added server only loads in a new session, so for the current chat the agent talks to genMC over plain HTTP – that works, but needs more steps per action. From the next session on it uses the genMC tools directly.

While connected

  • The agent works in exactly this tab. Keep the tab open; you can switch to other tabs or apps meanwhile.
  • One agent per tab. Pairing another agent with a new code replaces the first. To let two agents work in parallel, open another tab: it gets its own skin or build.
  • Several connections of the same agent. An agent may reach the tab from more than one MCP session at once – for example its chat and a helper script – by resuming with its resumeKey in each. They share the tab; a new code pairing replaces all of them.
  • A reload keeps the connection. A duplicated tab does not take it over; it shows its own code.
  • Other pages in the same tab. You can look at the gallery or open another studio meanwhile. The agent keeps the studio tools it has seen since pairing, and they work again as soon as you are back – for example after Use on a gallery build. A call made while the tab shows another page fails with a short explanation instead.
  • If the tab closes or the device sleeps, the agent's calls wait up to 30 seconds for the tab to come back, then fail with a clear message.

Reconnecting without a new code

Pairing returns a resumeKey to the agent. If its connection drops – the agent app restarted, the server restarted – the agent calls genmc_pair with that key and is back in the same tab without asking you. Resuming from a second session adds it next to the first instead of cutting it off. The key stops working when you choose Disconnect or pair a different agent.

Some apps – ChatGPT among them – open a new MCP session for every single tool call, so the pairing would not carry over from one call to the next. Agents there pass the resumeKey along with every genmc_call and genmc_status call; genMC then finds the tab by the key.

Apps that speak the newer, session-free MCP revision (2026-07-28) work the same way: genMC keeps no session for them, so the agent passes its resumeKey with every call and runs the studio tools through genmc_call.

Skills for Claude and Claude Code

genMC also hands agents two skills over the same connection: step-by-step guides for building (build) and for painting skins (skin) – how to connect, the working loop, named parts, checks and export. Claude and Claude Code load a skill by themselves when a task needs it; there is nothing to install. In Claude Code, with genMC added as genmc, they also work as commands: /genmc:build and /genmc:skin.

Skills from MCP servers are a public beta at Anthropic. They need Claude Code 2.1.331 or newer and are not available everywhere – for example not with claude -p or in cloud sessions. Depending on your permission mode, Claude Code asks once before it uses a new version of a skill.

Disconnect

Choose Connect agent in the agent column again: Disconnect ends the agent's access to this tab; Reconnect with a new code starts over.

Troubleshooting

ProblemWhat to do
The agent says it has no genmc_pair toolgenMC is not added as an MCP server yet, or the connection failed when the agent started (for example because the site was not reachable). Add or reconnect the server in the agent app, then start a new chat or session.
"This code is unknown or expired"Codes last 10 minutes and work once. Choose New code.
"Too many wrong pairing codes"Wait 10 minutes; wrong codes are limited per network to prevent guessing. Codes that work and reconnecting with a resumeKey don't count.
The agent can't see the tools after pairing, or misses the tools of a studio you just openedSome apps refresh their tool list only with the agent's next genMC call. Tell the agent to call genmc_status: its answer brings the list up to date. genmc_call reaches every studio tool by name in any case.
Right after a successful pairing the agent reports "Not connected to a genMC studio yet" or paired: false (ChatGPT)The app opens a new connection for every call. Tell the agent to pass its resumeKey with every genmc_call and genmc_status call, e.g. genmc_call { name, input, resumeKey }. No new code is needed.
Claude Code shows no genMC skills (/genmc:build is missing)Update Claude Code to 2.1.331 or newer and start a new session. If genMC was connected before, reconnect it under /mcp: Claude Code remembers which protocol a server speaks and only finds the skills over the newer one.
The agent says genMC disconnected or wants to send its own HTTP requests (curl)Usually the tool list is just out of date: tell it to call genmc_status. If even that tool is missing, reconnect the genmc server in the agent app (Claude Code: /mcp); the agent then reconnects with its resumeKey, without a new code.
The agent works in the wrong tabEach tab has its own code. Pair again from the tab you want.
Requests stay QueuedThe agent is not listening. See Requests, marks and Finish.

More: Troubleshooting.