Connect your Claude app
A client is the app you talk to: Claude Code, Claude Desktop, or another app that speaks MCP. This page says how a client reaches the nine Intrigues tools, and it keeps what was tested apart from what was not.
The idea
Section titled “The idea”Both routes work the same way from the client’s side. The MCP server runs with your Unity editor. The client connects to it and sees a list of tools. The Intrigues tools are in that list once you have done your route’s setup: route 1 or route 2.
How the tools are named differs:
| Route | What the client sees |
|---|---|
| Route 1: CoplayDev | Either the nine tools by name, or one tool ending in execute_custom_tool that Claude calls with tool_name |
| Route 2: Unity’s official MCP | Nine tools whose names end in intrigues_status, intrigues_catalog, intrigues_inventory, intrigues_validate, intrigues_apply, intrigues_export, intrigues_open, intrigues_scene_actors and intrigues_scheme_report |
A client may add a prefix to a tool’s name. Claude looks for tools by the ending of the name.
What was tested
Section titled “What was tested”| Client path | Result |
|---|---|
| Route 2, Claude Code with a project-scoped config that starts Unity’s relay | Worked on Unity 6000.0.85f2 with com.unity.ai.assistant 2.23.0-pre.1. intrigues_status answered with the Unity version and the database path |
| Route 2, a small test client speaking MCP over stdio to Unity’s relay | Worked on Unity 6000.0.85f2. intrigues_status, intrigues_inventory, intrigues_validate and intrigues_catalog (with inline: true) answered |
Route 2, intrigues_apply over the relay |
Worked on 6000.0.85f2, on a throwaway copy of a database: applied, not saved |
| Route 2 on Unity 6000.6.11f1 | The tool list showed the eight Intrigues tools of the first set, and intrigues_status answered |
Route 2, intrigues_open and intrigues_scene_actors |
Listed, not called |
intrigues_scheme_report |
One call over route 1, outside Play mode, recorded in the product status note: playing false with N-NOT-PLAYING. Not run over the relay. Not run in Play mode |
Route 1, a call to intrigues_status through the CoplayDev bridge |
Worked on Unity 6000.0.85f2 |
| Claude Desktop, claude.ai and any other client | Not tested |
Route 2: what the relay does
Section titled “Route 2: what the relay does”When Unity’s package is in your project, Unity starts a relay server by itself. A client reaches Unity through the relay: it
starts the relay program as a stdio MCP server. The tests started it with the option --mcp.
In the tests, the relay introduced itself as unity-mcp-server, version 1.0.0, and spoke MCP protocol version 2024-11-05.
Relay program paths
Section titled “Relay program paths”The package installs the relay program outside your project.
| System | Path | Status |
|---|---|---|
| macOS, Apple silicon | ~/.unity/relay/relay_mac_arm64.app/Contents/MacOS/relay_mac_arm64 |
Tested |
| macOS, Intel | ~/.unity/relay/relay_mac_x64.app/Contents/MacOS/relay_mac_x64 |
From Unity’s documentation. Not tested |
| Windows | %USERPROFILE%\.unity\relay\relay_win.exe |
From Unity’s documentation. Not tested |
| Linux | ~/.unity/relay/relay_linux |
From Unity’s documentation. Not tested |
With more than one editor open, pick one with --instance-id <editor process number> or --project-path <project folder>.
Unity’s documentation says the environment variables UNITY_INSTANCE_ID and UNITY_PROJECT_PATH do the same.
Registering Claude Code (route 2)
Section titled “Registering Claude Code (route 2)”This is the file that was tested, as a project-scoped Claude Code configuration. It is .mcp.json in the Unity project folder:
{"mcpServers":{"unity-official":{"command":"/Users/<you>/.unity/relay/relay_mac_arm64.app/Contents/MacOS/relay_mac_arm64","args":["--mcp","--project-path","/abs/path/of/the/unity/project"]}}}- Replace
<you>and the project path with your own. Thecommandmust be an absolute path: a~is not expanded. - Save the file as
.mcp.jsonin the project folder. - Start Claude Code in the project folder, with Unity open.
You should see: Claude Code lists the tools with a prefix, for example
mcp__unity-official__intrigues_status. - Ask Claude to call
intrigues_status. You should see: the Unity version and the database path.
In the test, claude -p "Call the MCP tool intrigues_status ..." --allowedTools mcp__unity-official__intrigues_status --strict-mcp-config --mcp-config .mcp.json returned the Unity version and the database path.
The same registration is a one-line step: claude mcp add unity-official -- <absolute relay path> --mcp --project-path <absolute project path>. For a project-scoped entry, put the option before the name: claude mcp add --scope project unity-official -- <absolute relay path> --mcp --project-path <absolute project path>. Both lines are derived from the tested file. They were not run.
Approving a client
Section titled “Approving a client”Unity’s documentation says a first external client appears under Project Settings > AI > Unity MCP Server > Pending Connections and must be approved. If your client is listed as pending, choose Allow.
What was measured: the package’s code lets tool calls through for every client except one that the user explicitly revoked.
Listing and calling worked for the test client. The owner pressed Allow once on a pending client. The screen itself was never seen.
A client that exits within seconds can make the package log Failed to collect process info for PID .... That is harmless.
A real result, route 2
Section titled “A real result, route 2”intrigues_status over the relay on Unity 6000.0.85f2, trimmed. The dots mark what was cut:
{"success": true, "message": "Intrigue Drafts 2.0.0. Database: Assets/MrW/Intrigues Demo/Database/Hollow Throne Database.asset (graph editor; a shipped database, read-only for Apply). The editor is ready.", "data": {"ok": true, "op": "status", "counts": {"errors": 0, "...": "..."}, "editor": {"unity": "6000.0.85f2", "...": "..."}, "databaseCounts": {"schemes": 59, "...": "..."}}}Only success, message, error and data reach the client. A failing call comes back as {"success": false, "error": "<summary>", "data": {<full report>}}, and the MCP result has isError: true. Read the codes in data.problems[].code.
Route 1: connecting a client
Section titled “Route 1: connecting a client”Follow the CoplayDev package’s own documentation. The skill’s guide says the package has a window, Window > MCP for Unity, where the server must show as running and where you pick your client and register it, and that you should restart the Claude session afterwards so it loads the tools. That was not re-run for this page.
Claude Code
Section titled “Claude Code”- Do your route’s setup.
- Install the skill: Set up Claude Code.
- Connect Claude Code to the server of your route (see above). For route 2, register the relay program as shown above.
- Start Claude Code in your project folder. Keep Unity open.
- Ask Claude to check the connection. You should see
intrigues_statusanswer with your project and database.
Claude Desktop and claude.ai
Section titled “Claude Desktop and claude.ai”These apps cannot read or write files in your project. Export the skill as a zip and upload it:
Set up Claude Desktop or claude.ai. Without file tools, only the direct intrigues_* tools and
execute_custom_tool work, and Claude passes drafts as text.
How to connect those apps to a local server is not covered here, and it was not tested.
Other clients
Section titled “Other clients”Any client that can use an MCP server with tools can see the tools. Nothing else is promised. Not tested.