Connect an MCP client
Connect Claude, ChatGPT, Codex, or another MCP client using OAuth, choose the right scopes, and read the error codes.
Server URL
https://app.airogeledit.org/api/v1/mcp
Add this URL as a remote MCP server in a client that supports Streamable HTTP and OAuth. The server publishes OAuth authorization and protected-resource metadata, so compatible clients can discover sign-in automatically.
Connect Claude
For a Claude custom connector, use this Claude-specific Streamable HTTP endpoint:
https://app.airogeledit.org/api/v1/mcp/claude
Add it as a remote connector in Claude, then complete OAuth sign-in with the Airogel account you want to use. Review the requested permissions, return to Claude, and refresh the tool list. Start by asking Claude to list your Airogel accounts and projects to confirm the connection uses the right workspace.
The Claude endpoint excludes assets_generate_ai_texture, assets_get_ai_texture, and assets_review_ai_texture. These tools are not available through this endpoint. Deterministic mesh, track, bitmap, height-map, sky, and sound generators remain available, subject to the connection’s scopes and plan limits.
The standard endpoint above remains available for ChatGPT, Codex, and other MCP clients. The scope and authorization guidance below applies to both endpoints.
Connect with Codex CLI
Run this command in your terminal to add Airogel Editor as a remote Streamable HTTP server:
codex mcp add airogel_editor --url https://app.airogeledit.org/api/v1/mcp
Complete OAuth sign-in if Codex opens your browser. If you still need to sign in, or want to reconnect, run:
codex mcp login airogel_editor
Sign in to the Airogel account you want Codex to use and review the requested permissions. If your browser is signed in to a different Airogel account, switch accounts before approving access. Return to Codex and refresh the tool list or start a new session, then ask it to list your Airogel accounts and projects.
For a connection limited to account and project discovery, you can request specific scopes:
codex mcp login airogel_editor --scopes accounts:read,projects:read
Those scopes do not grant scene editing. Use the scope table below to choose both read and write permissions for the areas you need. You do not need to paste an API token into the command for OAuth.
Connect with OpenCode
Run this command in your terminal to add Airogel Editor as a remote Streamable HTTP server. The --global flag makes the connection available across all your OpenCode projects; omit it to configure it only for the current project.
opencode mcp add airogel_editor --global --url https://app.airogeledit.org/api/v1/mcp
Confirm the server is registered:
opencode mcp list
If the server needs authentication, open OpenCode, run /mcps, select airogel_editor, and complete sign-in in your browser. Sign in to the Airogel account you want OpenCode to use and review the requested permissions. If your browser is signed in to a different Airogel account, switch accounts before approving access. Return to OpenCode and refresh or start a new session, then ask it to list your Airogel accounts and projects.
The standard endpoint and scope guidance below apply to OpenCode connections. Do not paste secrets into commands; this server uses OAuth.
Authorize access
- Add the server URL in your MCP client.
- Sign in to Airogel Editor when redirected.
- Review and approve the requested workspace permissions.
- Return to the client and refresh its tool list.
See and disconnect connected apps
Connected apps, in the account menu of the editor, lists every client you have authorized: its name, its client ID, when you connected it and when it last signed in, and the scopes you granted. Disconnect signs that client out. It stops working until you approve it again, and other people's connections are not affected.
Every connection asks for your approval again, even for a client you approved before, and the approval page calls the client an unverified application and shows the address it will send the sign-in code to: continue only if you started that connection and recognise the destination. The Security page also lists connected applications with a Revoke access button, which stops the same tokens. A client that registers but never completes sign-in is forgotten after 30 days and registers again the next time it connects.
"The requested scope is invalid, unknown, or malformed"
A client registers with Airogel Editor the first time it connects, and that registration fixes which scopes it may ask for. When a later release adds a scope, the client asks for it, but its old registration does not include it, so signing in again stops at this error. Connected apps names the scopes a client's registration cannot request, and its client ID matches the client_id in the address bar of the error page.
The fix is to make the client register again. Disconnect it on Connected apps, then remove the server from the client and add it back. In Claude Code:
claude mcp remove airogel_editor
claude mcp add --transport http airogel_editor https://app.airogeledit.org/api/v1/mcp
Use the name and scope (-s project, -s user) you added it with. Restart the client and authenticate again. If your client has an option to clear the server's saved authentication, that also discards the old registration. Signing in again alone does not.
Start with accounts_list
Call accounts_list first. Every other standard tool needs an account_id belonging to the authenticated user.
1. accounts_list
2. projects_list(account_id)
3. scenes_list(account_id, project_id)
4. scene_objects_list(account_id, project_id, scene_id)
Scopes
What a client may do is decided by the scopes you approve when authorizing it. A tool you were not granted the scope for is not merely refused — it is absent from tools/list entirely, so a client connected with read-only scopes advertises a read-only tool set rather than offering writes that then fail.
Scopes are flat: write does not imply read
objects:write does not include objects:read. A client granted only the write scope can create and update objects but cannot list them, which in practice means it cannot find the object it wants to change. Grant both halves of any area you intend to work in.
| Scope | What it unlocks |
|---|---|
accounts:read | accounts_list. Required in practice, because every other tool takes an account_id. |
projects:read | projects_list, projects_preview, projects_publish_check, projects_publication_status, projects_script_diagnostics, checkpoints_list, checkpoints_changes, branches_list, branches_diff, multiplayer_test_status, multiplayer_scenario_status |
projects:write | projects_create, projects_update, projects_configure_multiplayer, checkpoints_create, checkpoints_restore, branches_create, branches_merge. It does not include publishing. |
publishing:write | projects_publish, projects_unpublish — putting a game on, or taking it off, its public URL — and the hosted test tools multiplayer_test_start, multiplayer_test_stop, multiplayer_test_add_bot, multiplayer_test_remove_bot, multiplayer_scenario_start and multiplayer_scenario_cancel. Publishing and unpublishing also require that you are an admin of the account; a member's connection gets forbidden. |
scenes:read | scenes_list, scenes_take_screenshot |
scenes:write | scenes_create, scenes_update, scenes_delete |
objects:read | scene_objects_list, physics_run_simulation, physics_simulation_status, and the five spatial_* planning tools |
objects:write | scene_objects_create, scene_objects_update, scene_objects_delete, the two *_batch variants, scene_objects_duplicate, soft_bodies_create, soft_bodies_update, and both vehicles_create_* tools |
materials:read / materials:write | materials_list / materials_create, materials_update, materials_delete |
shaders:read / shaders:write | shaders_list / shaders_create, shaders_update, shaders_delete |
scripts:read / scripts:write | scripts_list / scripts_create, scripts_update, scripts_delete |
assets:read | assets_list, assets_get_generated_recipe, assets_get_upload_session |
assets:write | assets_upload_from_url, assets_create_upload_session, assets_initiate_direct_upload, assets_complete_direct_upload, assets_delete, and the assets_generate_* tools, including assets_generate_ai_texture and assets_review_ai_texture on the standard endpoint. assets_generate_sky also needs scenes:write when you ask it to set a scene's skybox, and accepting an AI texture needs materials:write (and objects:write to apply it to an object). |
library:read | library_list, library_get, and library_import with additional destination write scopes. |
library:write | library_save with additional source read scopes, library_update, library_delete. |
support:read / support:write | support_list, support_get / support_contact |
library_save needs library:write plus objects:read, materials:read, scripts:read, shaders:read and assets:read, because it captures saved source and all dependencies. library_import needs library:read plus the write scopes for those five areas, because it creates independent project copies. Library write does not imply library read. Existing connections must authorize the new scopes; if an old client registration cannot request them, follow the re-registration steps above.
Some tools need scopes from more than one area. vehicles_create_wheeled and vehicles_create_tracked require both objects:write and scripts:write, because each one creates a vehicle and the driving script attached to it.
scripting_run_editor_lua is the one tool satisfied by either objects:read or objects:write. Its default inspect mode only reads the scene, so a read-only client can use it; apply mode is checked separately and needs objects:write.
scenes_open_editor_link is the one tool no granular scope unlocks. It mints a link that opens the full editor without signing in, so it needs the full-access mcp scope (or a legacy API token); a client holding every granular scope does not see it in tools/list. To use it, authorize the client again with mcp.
scene_objects_import, which copies saved objects from another project in the account with everything they depend on, needs both the read and the write scope for objects, materials, scripts, shaders and assets.
projects_script_diagnostics is likewise satisfied by either projects:read or scripts:read: the errors it reports are in your scripts, but they come from the published project.
A client that does not ask for particular scopes is given mcp, shown on the approval screen as "Create, view, and manage content in your Airogel workspace". It unlocks every tool on this server at once, though publishing still requires an account admin. To connect with less, use a client that lets you choose scopes and request the ones in the table instead.
Error codes
Every tool reports failure the same way, as JSON carrying ok: false, a machine-readable error code, and a human-readable message:
{
"ok": false,
"error": "insufficient_scope",
"message": "This tool requires OAuth scope(s): shaders:write"
}
| Code | What it means, and what to do |
|---|---|
insufficient_scope | The token is valid but was not granted a scope this call needs. The message names the missing scopes. Re-authorize the client and approve them; retrying will not help. |
unauthorized | No authenticated user, or the account_id does not belong to the signed-in user. Call accounts_list and use an id from that response — an account you can see in a browser is not necessarily one this token can reach. |
forbidden | Authenticated and in scope, but the tool needs more than a scope. projects_publish and projects_unpublish also require that you are an admin of the account; a member's connection gets forbidden however the client was authorized — ask an account admin to publish, or to make you one. checkpoints_create and checkpoints_changes return it when the account's plan has no version history; those responses add requires_upgrade: true and required_feature: "version_history", and checkpoints_restore uses the code plan with the same two fields. Branch tools, and any write to a project branch, refuse with branches_plan and required_feature: "branches" below Studio. Scope and account failures never carry requires_upgrade, so do not read every forbidden as an upgrade prompt. |
not_found | No record with that id in this account. Also what you get for an archived project and for anything inside one, which is deliberate: archiving hides a project from every tool, not just from projects_list. |
validation_error | The call reached the editor and the editor refused the values — a number out of range, a required field missing, a reference to something that does not exist. The message is the editor's own wording and is the thing to read. |
A call that names an argument the tool does not declare, or leaves out a required one, is refused with validation_error before the tool runs. The response adds unknown_arguments, missing_arguments and accepted_arguments, and when a wrong name is close to a real one the message suggests it:
{
"ok": false,
"error": "validation_error",
"message": "scene_objects_list does not accept argument type. Did you mean object_type instead of type? Accepted arguments: account_id, project_id, scene_id, name_prefix, object_type, query, detail, limit.",
"unknown_arguments": ["type"],
"missing_arguments": [],
"accepted_arguments": ["account_id", "project_id", "scene_id", "name_prefix", "object_type", "query", "detail", "limit"]
}
Before 14 October 2026 a misnamed argument came back as a JSON-RPC -32603 Internal error with no detail. Wrong types, ranges and enum values in correctly named arguments are still reported by schema validation.
Schema validation also refuses a property that a nested object does not accept, such as a misspelt field inside multiplayer or inside an entry of scene_objects_update_batch's updates. The tool result is an error whose text starts Invalid arguments:, names the path of the refused property, suggests the property it was probably meant to be, and lists what the object at that path accepts. An object that accepts more than 40 properties gives only the count and points to the tool's input schema:
Invalid arguments: object property at `/updates/0/updates/multiplayer/scriptrole` is a disallowed additional property (did you mean scriptRole?); the object at `/updates/0/updates/multiplayer` accepts only playerSlot, scriptRole, replicate, spawnTemplate, respawnDelayMs, killHeight, followLocalPlayer, weapons
A few tools add codes of their own in the same shape. physics_run_simulation, scenes_take_screenshot, and scripting_run_editor_lua return editor_unavailable when no editor tab with the matching scene picked the request up in time (a simulation also runs in a background tab; a screenshot or Lua run needs a visible one) — open the scene and retry, or open the URL from scenes_open_editor_link in a browser you control. editor_timed_out means a tab claimed the request but did not finish it in time, and simulation_failed, screenshot_failed, or editor_script_failed mean the tab ran it and it failed. scene_objects_update returns stale_object, with current_lock_version, when the lock_version you passed is behind the object's; read it again before retrying. spatial_plan_layout and the AI texture tools return wallet_depleted, with requires_topup: true, when the account's AI allowance and credit are used up. support_contact returns delivery_error if the request could not be sent. projects_script_diagnostics returns not_published for a game that has never been published, and projects_publish refuses with publishing_disabled, preflight_failed, publication_limit_reached, or publish_in_progress — see the MCP tool guide for what each means. Anything else unexpected comes back as error, with the reason in message.
Tool discovery
The MCP tools/list response is the canonical machine-readable reference. It includes the tools currently available to the signed-in user, their descriptions, and typed input schemas. Because availability follows the granted scopes, the list is also the quickest way to confirm what a connection can actually do.
For a written walkthrough of what each tool is for, see the MCP tool guide. If you want an assistant that already knows the editor without connecting a client at all, see the AI assistant.