Skip to content

MCP

Encounter+ is an MCP server. An AI client connected to it can look things up in your library, write monsters and items into a module, adjust a combatant’s hit points or add an entity to the combat — through the same checks as the Server API, with what an API key allows.

The endpoint is /mcp on the app’s web server: http://192.168.1.42:8080/mcp, with the address shown in Settings → Remote Play. The web server must be running.

  1. In Settings → Remote Play → Access, add an API key. Read lets the client look; Read & Write lets it change things too.
  2. Copy the key — it is shown once. The same page shows the MCP address and a ready command for Claude Code.
  3. Give both to the client.
Terminal window
claude mcp add --transport http encounterplus http://192.168.1.42:8080/mcp \
--header "Authorization: Bearer epk_…"

Clients that connect to remote servers only over HTTPS, or only through their own connector settings, reach the app through mcp-remote, which runs locally and forwards to it. In Claude Desktop’s claude_desktop_config.json:

{
"mcpServers": {
"encounterplus": {
"command": "npx",
"args": ["mcp-remote", "http://192.168.1.42:8080/mcp", "--allow-http", "--header", "Authorization:${AUTH}"],
"env": { "AUTH": "Bearer epk_…" }
}
}
}

Any client that speaks the Streamable HTTP transport and can send an Authorization header can connect directly.

  • 401 — the key is missing, revoked or mistyped. A client that then asks for /.well-known/oauth-protected-resource and gets a 404 is looking for an OAuth sign-in the app doesn’t have: the key is what’s wrong. A player’s code or access token isn’t a key: MCP takes API keys only.
  • No answer at all — the web server isn’t running, or the address changed (it follows the device’s network address).
  • 403 — a web page from elsewhere tried to reach the endpoint; browsers on other sites are refused, as on the WebSocket.

The connection is plain HTTP on your network: the key crosses it unencrypted, as every Server API credential does.

Tool Key Does
describe Read The game system and its collections; with collection, that collection’s data schema
list Read A page of a collection, { entries, total }, as summaries
get Read One item, whole
get_game Read The combat being played: round, turn, combatants, game resources
get_contents Read A module’s, a campaign’s or the library’s whole tree, as contents answers it
create Write Creates an item; in combatants, adds an entity to the combat
update Write Changes an item with a JSON merge patch
game_action Write Runs the combat being played: start, stop, next, previous, roll-initiative, as REST does
delete Write Deletes an item; a combatant is taken out of the combat

A key that may only read is offered only the first five.

Each tool takes a collection — the names the Server API uses in its paths: the system’s entity collections (monsters, items, characters, … — describe lists them), modules, campaigns, combatants, pages, groups, maps, encounters, references, assets, tables, and a map’s objects: tokens, tiles, lights, markers, measurements and area-effects. create, update and delete in modules and campaigns make and change them — only an empty one can be deleted, and a campaign’s play state (party, players, game) is never written. list and create take a moduleId or a campaignId to work inside one — or, for a map’s objects, the mapId of their map, which they need. The arguments and the results are exactly the REST ones:

  • list takes search, where, sort, keys, ids, offset and limit, as GET /api/{collection} does — lists as arrays and where as an object. The other collections take search, ids, offset and limit only — pages, groups, maps, encounters, references and assets parentId too — and the entity-only ones are a tool error there.
  • get answers the item’s body, which create takes back: the server’s fields (id, kind, dates…) are ignored, so a copy is a get and a create.
  • update takes a patch: objects merge key by key, null removes a key, arrays replace — PATCH.
  • create in combatants takes { "entityId": …, … }, as POST /api/game/combatants.

Files — a module’s or campaign’s image and banner, a map’s background, an asset’s artwork, a token’s, tile’s or area effect’s own artwork, an entity’s image and token — aren’t sent through the tools. A client that can run commands uploads them over REST with the same API key, as Files describes — images for a page’s content go into its module’s or campaign’s folder; the instructions tell agents so.

A map’s lists — tokens, tiles, lights and the rest — come inline in its body. A list sent in update replaces the stored one matched by id, deleting what it leaves out, so an agent should patch a list only with the whole list from a fresh get; a patch of settings leaves the lists alone. One object is better changed in its own collection — update in tokens by its id — and added with create and the map’s mapId. See Maps and Map objects.

Every item’s body carries visibility, which an agent sets to hide something from players — "gm" — or show it — "players" — with update; null makes it follow what it sits in, so hiding a group or a module hides all it holds. API keys see everything, hidden or not. See Visibility.

An entity’s data is checked against its type’s model schema when the system declares one, and a combatant’s data holds its ranges only — see Combatants. A refusal comes back as a tool error saying why, so the model can correct itself and try again.

The endpoint is the Streamable HTTP transport in its stateless, JSON-only form: each message is a POST answered with one JSON response, or 202 for a notification. There are no sessions, no event stream (GET and DELETE are 405) and no server-sent notifications; the tool list doesn’t change while a client is connected. Batches are refused.

Protocol versions 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05
Methods initialize, ping, tools/list, tools/call
Capabilities tools
Authentication Authorization: Bearer with an API key; no OAuth
Message size Up to 1 MB

A request without MCP-Protocol-Version is taken to speak 2025-03-26; one naming a version this server doesn’t speak is a 400. A body that isn’t application/json is a 415, and an Accept that rules JSON out a 406.