Make any browser game multiplayer and host it at a share link. No account needed to start.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Optional. Bearer <secret key>: the studio secret key, starting sk_, from https://multiplayeragent.com/dashboard/key. Without it, the agent connects the session to an account through a browser sign-in, or builds in an unclaimed studio.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
This connection has no account: it builds into an unclaimed studio. Returns the claim link to give the user (a free sign-up or log-in that moves the studio's games into their own account), when the studio expires, and whether it has been claimed already. connect_account is the better way to keep the games when the user is here (this session then keeps working as their account); the claim link is for later, or for someone else.
This tool takes no arguments.
This connection has no account: it builds into an unclaimed studio. Returns the claim link to give the user (a free sign-up or log-in that moves the studio's games into their own account), when the studio expires, and whether it has been claimed already. connect_account is the better way to keep the games when the user is here (this session then keeps working as their account); the claim link is for later, or for someone else.
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}Connect this keyless session to the user's own account, the way `gh auth login` works. Ask for their email first and pass it (it prefills the page). Returns a one-time url and a code: open the url in their browser yourself and tell them the code. They sign up or log in ON THE PAGE (never ask for a password in chat), check the code matches, and press Connect. From then on this session acts as their account and the games built so far move in. The link lasts 10 minutes.
| Argument | Type | Description |
|---|---|---|
| string | The user's email, to prefill the sign-in page. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"email": {
"type": "string",
"maxLength": 254,
"description": "The user's email, to prefill the sign-in page."
}
}
}Mint a new game (publishable key) under your studio (secret key). Returns its publishableKey + wsEndpoint. Point a client at the new key, or scope this MCP to it by passing the x-mp-game header.
| Argument | Type | Description |
|---|---|---|
| label | string | A human label for the game, e.g. 'N0RT arena'. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"label": {
"type": "string",
"description": "A human label for the game, e.g. 'N0RT arena'."
}
}
}Create or replace the spec for a room (validation/types/defaults). Returns connection info. Omit fields entirely for a fully schemaless room.
| Argument | Type | Description |
|---|---|---|
| game | string | Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game. |
| spec* | object | The room schema: name, optional maxClients, entities.players.fields, shared.fields. |
| roomName* | string | Unique room name under your key, e.g. 'dots-arena'. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"roomName",
"spec"
],
"properties": {
"game": {
"type": "string",
"description": "Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game."
},
"spec": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"shared": {
"type": "object",
"required": [
"fields"
],
"properties": {
"fields": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"enum": [
"string",
"number",
"boolean"
],
"type": "string"
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"string",
"number",
"boolean"
],
"type": "string"
},
"default": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
}
}
]
}
}
}
},
"entities": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"fields"
],
"properties": {
"fields": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"enum": [
"string",
"number",
"boolean"
],
"type": "string"
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"string",
"number",
"boolean"
],
"type": "string"
},
"default": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
}
}
]
}
},
"keyedBy": {
"type": "string",
"const": "sessionId"
}
}
}
},
"maxClients": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
}
},
"description": "The room schema: name, optional maxClients, entities.players.fields, shared.fields."
},
"roomName": {
"type": "string",
"description": "Unique room name under your key, e.g. 'dots-arena'."
}
}
}Returns a complete single-file HTML game wired to this room: realtime movement plus an anonymous (claimable) player, a saved color (datastore), and a click leaderboard. Write it to disk and open it. The game it is wired to is stamped in a comment at the top of the file.
| Argument | Type | Description |
|---|---|---|
| game | string | Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game. |
| roomName* | string | The room name. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"roomName"
],
"properties": {
"game": {
"type": "string",
"description": "Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game."
},
"roomName": {
"type": "string",
"description": "The room name."
}
}
}Returns { wsEndpoint, roomName, publishableKey, adsPublisherId } for wiring a client. adsPublisherId is your BYO Google Ads id (embed it if set). Check the returned `target` names the game you meant before shipping the key.
| Argument | Type | Description |
|---|---|---|
| game | string | Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game. |
| roomName* | string | The room name. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"roomName"
],
"properties": {
"game": {
"type": "string",
"description": "Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game."
},
"roomName": {
"type": "string",
"description": "The room name."
}
}
}Returns the full SDK reference (markdown) wired to ONE game's key/endpoints: realtime rooms, player identity (anonymous + claim/login), the datastore (saves/stats/inventory), leaderboards, player-created content (level sharing / UGC), and durable shared MATCHES for asynchronous turn-based play. Read this before writing client code that uses logins, saved progress, leaderboards, shared player-made content, or any game a player closes and comes back to. Pass `game` when the studio has more than one: every snippet carries that game's publishable key inline, and shipping the wrong one silently pools your players into another game.
| Argument | Type | Description |
|---|---|---|
| game | string | Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"game": {
"type": "string",
"description": "Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game."
}
}
}List the games (publishable keys) under your studio, with labels and per-game settings. Marks which game is `primary` (the one unnamed calls fall back to) and which one this connection is currently pointed at.
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}Host the game's files at a public share link, https://<slug>.play.multiplayeragent.com/ (the game's own origin; the slug comes from the game's name and never changes). Send every file the game needs: an index.html at the root plus any JS/CSS/assets, paths relative to it. Text goes as utf8 content; images, audio and other binaries as base64 with encoding: "base64". The files must use THIS game's publishable key (it is how the server knows the build belongs to this game; a client wired to another game is refused). Re-run after every change: it replaces the hosted files and the link stays the same. Limits: 100 files, 5 MB in total. Give the user the url: anyone who opens it joins the same rooms. Nothing is listed publicly; only people with the link find it.
| Argument | Type | Description |
|---|---|---|
| game | string | Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game. |
| files* | array | Every file of the game, including index.html. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"files"
],
"properties": {
"game": {
"type": "string",
"description": "Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game."
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string",
"description": "Path relative to the game root, e.g. 'index.html' or 'assets/ship.png'."
},
"content": {
"type": "string",
"description": "The file's content: the text itself, or base64 when encoding is 'base64'."
},
"encoding": {
"enum": [
"utf8",
"base64"
],
"type": "string",
"description": "'utf8' (default) for text files; 'base64' for binaries."
}
}
},
"maxItems": 100,
"minItems": 1,
"description": "Every file of the game, including index.html."
}
}
}Set a human-readable name for a game (the `game` argument, else the x-mp-game header, else your only game). The name shows in your dashboard: call this when you start building so the game isn't unnamed. Refuses to guess when the studio has several games and none was named.
| Argument | Type | Description |
|---|---|---|
| game | string | Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game. |
| name* | string | Display name, e.g. 'N0RT Arena'. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name"
],
"properties": {
"game": {
"type": "string",
"description": "Which game to act on: its publishable key (pk_…) or its exact name. Defaults to the x-mp-game header, then your primary game."
},
"name": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Display name, e.g. 'N0RT Arena'."
}
}
}