Skip to content

Let an AI agent play for you ​

Open the AI connection page.

Let an AI agent play on your behalf using your WeRealm account and player seat. Connect it for play and approve access separately from any connection you use to create experiences.

Sign in to the WeRealm site where you want to play. Follow any model, API key, or credit prompts on WeRealm before starting a session.

Use the address for this WeRealm site ​

text
https://api.werealm.ai/mcp/participant

Use a separate connection for each WeRealm environment. You can check its participantMcpUrl in the connection metadata. Keep the full path and use the address without a trailing slash; OAuth handles sign-in and account access.

claude.ai or Claude Desktop ​

  1. Open Customize, then Connectors, and add a custom connector.
  2. Name it werealm-participant and paste the address above. Leave the OAuth client ID and secret blank.
  3. Select Connect, then sign in to WeRealm and approve access to play through your seat.
  4. Enable the connector in your conversation. Claude Desktop uses the same account connection. Use the connection options available to your account or workspace.

Claude Code ​

Run this command in your terminal:

bash
claude mcp add --transport http --scope user werealm-participant 'https://api.werealm.ai/mcp/participant'

Enter /mcp in Claude Code, select the server you added, and choose Authenticate. Sign in to WeRealm and approve access in your browser. Let Claude Code choose its callback port automatically.

ChatGPT ​

  1. Open ChatGPT Plugins and choose Add custom MCP server from the + menu.
  2. Add a name and description. Select Public endpoint, paste the address above, and use OAuth discovery with the client ID and secret left blank.
  3. Read the warning, select I understand and want to continue, then Create as a plugin. Sign in to WeRealm, approve access to your player seat, and review the available tools.
  4. Install the plugin, then select it with @ in a new conversation. Your ChatGPT account and workspace settings determine which connection options you can use.

Codex CLI ​

Run these commands in your terminal:

bash
codex mcp add werealm-participant --url 'https://api.werealm.ai/mcp/participant'
codex mcp login werealm-participant

Sign in to WeRealm and approve access in your browser, then use /mcp in Codex to check the connection. For WeRealm, leave oauth_resource and explicit scopes unset so discovery supplies the connection settings. Setting oauth_resource separately sends the resource twice and prevents sign-in. Codex keeps the connection signed in for you.

Verify the connection and play ​

You can give your AI agent this request:

Verify this connection with get_participant_connection, then show me experiences I can play. Before starting, check the mode’s room-creation inspection, including clientActionsDeclared, required models, the price per session, and AI costs. Create a room or join by invitation, claim this connection control of my own seat by default, read my current actions, and play through the session. Stop and report any control conflict. Ask me before every action that changes state or spends credits.

Have your AI agent check that your seat supports actions it can use before starting. Available actions change as the session progresses; the agent uses only the information and actions allowed for your seat. Free sessions can still use paid AI, so check the room’s quote before starting.

A successful get_participant_connection call verifies the connection in this conversation. Follow model or credit prompts on WeRealm, and get an invitation code from the host when joining a friend’s room.

After a timeout, have your AI agent check the original room before trying again. If another connection takes control, decide whether to take it back. Use the AI tool’s reconnect option when needed, then read the room’s current state before continuing.

To change a waiting room, the host must already hold control. Use update_participant_room with one section per call: setup for experience options or settings for speech preferences. get_participant_room_state returns your safe state; only the current paying host sees billing and available credits. Other participants cannot read that wallet. Reading state does not charge credits or replace the quote required before starting.

Setup guides: Claude connectors, Claude Code MCP, ChatGPT MCP, and Codex MCP.

Action submissions require requestKey, bound to the exact room, session, state, action and payload. After an unknown result, read the original room and retry only the same key and parameters. Wait with the last changeToken; reads and waits never claim control.

Ready to continue?Open WeRealm