Kernel MCP server
The REDnode host can serve its tools to AI agents over MCP, the Model Context Protocol. With it, Claude Code on your PC can read your mods’ logs, see your overlay windows, look up game types and call the game while it runs. REDagent, the assistant inside the game, uses the same tools.
Status: in use since REDnode 0.4.0. First passed in game on 2026-10-12 (REDagent phase C1); tools added since are listed below with the version that brought them.
Set it up
Since REDnode 0.40.0 an assistant asks to connect and you allow it in the game: no token to copy (#19, asked for by EDGEchat).
| Step | How |
|---|---|
| 1. Turn it on | In the game, open the REDnode launcher (F10, then the REDNODE tab), and its settings with the gear at the right of the Theme row. Switch MCP server on. For developers running the host from the repo, it is on already |
| 2. Add REDnode to Claude Code, once | With the EDGE plugin, it is there already as plugin:edge:rednode. Without it: claude mcp add --transport http --scope user rednode http://127.0.0.1:41820/mcp |
| 3. Connect | In Claude Code, /mcp, pick rednode, then Authenticate. Your browser shows “Approve in Cyberpunk 2077” and a code such as FPZ-4201 |
| 4. Allow it in the game | REDnode’s Connect window shows the same code with the assistant’s name. Press F10, check the codes match, and press Allow. The browser goes back to Claude Code, which is now connected |
| 5. Use it | Ask, for example, “using the rednode tools, what is V’s health?” |
The connection stays across game restarts: Claude Code keeps its token and renews it. The launcher’s settings list Connected assistants under the MCP server switch; Revoke ends one, and it must ask again.
The server listens only on 127.0.0.1, port 41820, and every request needs a token. It only answers while the game, and with it the host, is running.
Port 41820 belongs to the game’s REDnode (REDnode 0.57.1 on). Only the host the game starts uses it; a host run from the repo, or one a test starts with --data-dir, uses 41821, and --mcp-port=<n> picks another, so a test host left running cannot take the game’s port. If another program holds 41820 anyway, the host says which in its log and in the launcher’s Settings, under MCP server, and tries again every 10 seconds; an assistant that signs in meanwhile reaches that other program, not the game. (Found on 2026-11-04: a test host left running since the evening before held the port, so a sign-in showed its code in the browser and no Connect window in the game.)
How the sign-in works, for other MCP clients: standard OAuth 2.1 with dynamic client registration. A request without a valid token gets 401 with WWW-Authenticate: Bearer resource_metadata=".../.well-known/oauth-protected-resource"; the client registers at /register (redirect URIs must be http://localhost, 127.0.0.1 or [::1]), sends the player’s browser to /authorize (authorization code with PKCE S256 only), and exchanges the code at /token. Access tokens last 24 hours and refresh tokens 180 days, each refresh token working once; REDnode keeps only their SHA-256 hashes, in mcp-clients.json in its data folder. Every request must name 127.0.0.1:41820 or localhost:41820 as its Host, and a browser’s Origin must be the server itself, so a web page cannot start a sign-in. One request waits at a time and lapses after two minutes; a code is good once, for a minute.
Copy setup still gives a fixed token for clients without OAuth: run the copied command (claude mcp add ... --header "Authorization: Bearer ...") in a terminal. Don’t add it beside the plugin’s rednode, or you have two.
Tools
| Tool | Gives | Changes anything |
|---|---|---|
logs |
What Node mods printed, newest last: all, one mod, or errors only. The same lines as the Mod log app | No |
apps |
The installed apps and mods: open or running, a mod’s state, process, memory and last error, its pins, its requires checked against the game folder, and its window ids. With open, close or restart, changes one as the launcher does; with pin-launcher, unpin-launcher, pin-hud or unpin-hud, pins it as the Mod Manager does |
Only with an action |
game_state |
Whether REDnode is linked to the game, what the game shows (menu, photo mode, scene, main menu), the overlay mode | No |
perf |
The game’s frame rate, the overlay’s cost per frame, the host’s memory and each mod process’s memory | No |
gameapi_lookup |
Game types and functions with the TypeScript signatures api uses, and REDnode’s notes. An exact name (StatsSystem or gameStatsSystem) gives the declaration; part of a name searches |
No |
window_text |
The text an overlay window shows, including inside UI kit components and input fields | No |
window_image |
A picture of an overlay window: its own pixels, before REDnode places it on the game. Not the game behind it, its place on screen, or the cursor | No |
window_places |
Where each open window is on the screen, front to back (REDnode 0.79.0, #64): id, title, package, layer, shown and hiddenBy (space, solo mode, app key, game screen, passive mode, hidden mode), focus, rolled, and its box three ways: reference pixels (the pages’ own), pixels in the game’s back buffer, and share of the screen for a game_image of any width. Every page also lists what it draws inside its box: panels (its rn-window elements, and the launcher’s tab, each with its box on the screen) and drawn, the box round the shown ones (REDnode 0.80.1). To cut a window out of game_image with overlay: true, take its drawn box’s share times the picture’s size: the page’s own box includes the margin round its window (6 px in the UI kit sample) and, for the launcher, the whole closed panel |
No |
window_console |
What an overlay window’s page logged (console.log, console.error and the like) and its uncaught errors: the last 200 messages since it opened. level keeps that level and above; limit the newest few (default 50). Node mods log to logs instead. REDnode 0.16.0 or later |
No |
game_image |
A picture of the game’s screen now: the game alone, or with overlay: true the overlay windows and cursor on it, as the player sees it. Scaled to at most maxWidth (default 1280). HDR is converted to SDR, so its colors are approximate. Fails while the game is loading or minimized. Plugin 0.13.0 or later |
No |
tweakdb |
TweakDB from the running game: a flat’s type and value (get), a record as an object reference for api_read (record), or the ids of every record of a type (records, at most 500 unless limit says more). Ids are "0x..." hashes. REDnode 0.19.0 or later. Read only: changes go through a package’s tweakdb.set, which REDnode can undo |
No |
archives_reload |
Swaps archives into the running game through RED Hot Tools, as a package’s archives.reload does, then refreshes what V wears so it shows the new version (refresh: false skips it, REDnode 0.26.20 or later): full paths to .archive, .xl or .yaml files, or names of archives in archive/pc/mod. Needs RED Hot Tools and a loaded save. Archives that change the game’s sound paks are swapped with the game paused and its sound index loaded again (REDnode 0.26.8 or later); a sound that just played may keep its old version until the game loads it again (for a weapon, equip it again). Answers with what was swapped and what failed. REDnode 0.26.0 or later |
Yes: it replaces files in the game’s mod folder, and a broken archive can crash the game |
api_read |
A live game call that reads, without asking: the same as api_call, for functions named like reads (starting with Get, Is, Has, Can or Find, but not one that also changes, such as GetOrCreate…) and every method of a TweakDB record. It refuses the rest. REDnode 0.26.16 or later |
No |
game_facts |
Quest facts by name (names); an unset fact reads 0. See Quest API. REDnode 0.32.0 or later |
No |
game_facts_set |
Sets quest facts (facts: names and whole numbers) and answers their new values. REDnode 0.32.0 or later |
Yes: it changes the player’s save |
game_journal |
Journal entries by path (paths, kind): each one’s state and whether it is tracked, or null. With no paths, the tracked entry and its path. REDnode 0.32.0 or later |
No |
game_journal_set |
Changes a journal entry’s state (state, with the game’s notification) or tracks it (track). REDnode 0.32.0 or later |
Yes: it changes the player’s save |
game_teleport |
Moves V to x, y, z (and yaw in degrees) or to a world node (nodeRef). REDnode 0.32.0 or later |
Yes: it moves V |
api_call |
A live game call, as api makes it: a global function, a static function (class), or a method (self). Game objects come back as { "$ref": n, "$type": "..." } |
Yes: it can change the player’s game, such as money or health |
api_get |
A property of a game object | No |
<package>__<function> |
A mod’s own tool: each function a package’s service file marks @tool in its JSDoc, with the author’s description and parameters, named by the package id and the function (dashes become _). See Mod services. REDnode 0.36.0 or later |
Only those not marked @readonly, which ask the player first |
mod_services |
Every running mod’s tools: package, function, description, parameters and whether it only reads, including mods started after the client read its tool list. REDnode 0.36.0 or later | No |
mod_read |
Calls a mod’s read-only tool by package and function, with args by name, without asking; refuses the rest. REDnode 0.36.0 or later |
No |
mod_call |
Calls any mod’s tool by package and function, with args by name. REDnode 0.36.0 or later |
Yes: whatever the mod does; it asks the player first |
edgemat__mat_* |
EDGEmat’s material tools, for in-game assistants such as REDagent: see EDGEmat’s tools. REDnode 0.45.0 or later | Only mat_edit, mat_apply, mat_generate, mat_from_image and mat_library, which ask the player first |
Mods’ tools and the Tools Manager
The server builds its tool list fresh for every request, so a mod’s tools are there as soon as the mod runs, and gone when it stops. It is stateless and cannot tell a client that the list changed: a client sees new tools the next time it reads the list (Claude Code: a new session, or /mcp reconnect). Meanwhile mod_services lists them and mod_read or mod_call reaches them.
The Tools Manager, in the optional Admin Tools pack (built into REDnode 0.36.0), lists every tool an assistant sees, grouped as REDnode’s own and each mod’s: what it does, its parameters, and whether it reads, asks first or acts. A switch per tool and per mod takes it away from every assistant at once, and the switches are kept across starts; Off for new packages makes a newly installed mod’s tools start switched off. The switches are kept by REDnode itself, so they stay as set if the pack is removed. It also shows which assistants have connected (Claude Code by the name it gives, REDagent and other packages by their name) and their recent calls of mods’ tools. Each call is also written in the mod’s own log.
A REDnode package can use the same tools: it lists "permissions": ["mcp"] in its rednode-app.json, the player allows it in the Mod Manager, and kernel.mcp() in the rednode package gives it the address and its own token. The server then runs for it even with the MCP server switch off; that switch only controls access from outside, such as Claude Code. REDagent uses the tools this way.
Claude Code asks before it uses a tool, unless you allow it. Allow the read-only tools freely. From REDnode 0.26.16, api_call and archives_reload (and from 0.32.0 game_facts_set, game_journal_set and game_teleport, from 0.36.0 mod_call and every mod tool not marked @readonly) carry _meta: { "anthropic/requiresUserInteraction": true }, as EDGEdeck’s deploy, undo and remove do: Claude Code asks you before every call of them, in every permission mode, auto mode included, with no “don’t ask again”. Reads go through api_read, which never asks.
EDGEmat’s tools (E1)
REDnode 0.45.0 runs EDGEmat’s MCP server for in-game assistants, so REDagent can find a garment’s materials, explain them and recolor them while the player plays. Asked for by the owner on 2026-10-29.
| What ships | @edgemodders/edgemat-mcp 0.3.1 (MIT), one bundled file, in the host’s resources/edgemat with its licence and notices. Pinned in packages/overlay/package.json |
| How it runs | The host starts it at the first request from an assistant that sees its tools, with Electron’s own Node (ELECTRON_RUN_AS_NODE), so players need no Node.js; about 120 ms. It stays up until the host ends. A server that ends is started again at the next request, at most 3 times a session (packages/overlay/attached.js) |
| What it gets | The game folder (EDGEMAT_GAME_PATH), the REDbridge REDnode found (REDBRIDGE_EXE) and a per-user .NET 10 (DOTNET_ROOT), beside the MCP SDK’s short list of safe variables. None of the player’s keys: from #23 on, EDGEmat reads them from the shared key store itself |
| Names | edgemat__<tool>, listed beside the packages’ tools and in mod_services; mod_read and mod_call reach them by package edgemat |
| Reads, without asking | mat_templates, mat_microblends, mat_colors, mat_describe, mat_find |
| Ask first | mat_edit, mat_apply, mat_generate (spends the player’s image service credits), mat_from_image, mat_library (a build, a minute or two). Any tool a later EDGEmat adds asks too |
| Who sees them | In-game assistants (packages with the mcp permission, such as REDagent). Not desktop ones: Claude Code gets EDGEmat directly through EDGEchat, and would see every tool twice. "edgematTools": "all" in the host’s settings.json lists them to every assistant |
| Switches | The Tools Manager lists them as the group EDGEmat, switched like a package’s (edgemat:<tool>) |
mat_generate needs a Gemini or OpenAI key, which EDGEmat’s server does not get yet: until it reads the shared store (#23), it answers that it has no key, and the other tools work. EDGEmat’s server starts its own REDbridge when a tool needs one (its library is built already for most), beside REDnode’s shared one: more memory while the player plays (not measured, unverified). REDnode 0.57.0 offers it REDnode’s own REDbridge instead (#40, below).
EDGEmat’s tools on REDnode’s REDbridge (#40)
From REDnode 0.57.0 the host shares its REDbridge, the one packages reach through kernel.bridge(), with EDGEmat’s server, so one REDbridge loads WolvenKit and the game’s archive list while the player plays, not two. Asked for by EDGEmat (#40) at the owner’s request, 2026-11-03. Passed in game on 2026-11-05 with EDGEmat’s server from its main (test); players get it once REDnode’s pin moves past 0.3.1.
| Where | POST http://127.0.0.1:<port>/bridge, a server of its own on a free port, 127.0.0.1 only, from the first start of EDGEmat’s server until the host quits (packages/overlay/bridge-share.js). Not on the MCP server, which can be off or move |
| Asked | { "method": "<REDbridge method>", "params": { ... } } with Authorization: Bearer <token>. Answered 200 { "result": ... }, or 200 { "error": "<message>" } for REDbridge’s own errors and for a missing REDbridge, with kernel.bridge()’s words (“REDbridge is not installed. Press Get REDbridge…”). The headers come at once and a space every 30 s keeps a long call open (leading spaces are valid JSON), since a library build or a mesh export runs for minutes and Node’s fetch gives up after 5 minutes with nothing coming |
| How the server learns it | REDNODE_BRIDGE_URL and REDNODE_BRIDGE_TOKEN in its environment, never on its command line. A new token at each start of the server; the old one stops working, and so does the token when the server ends |
| Locked to | The token, held only by that server’s process; a request must name 127.0.0.1:<port> or localhost:<port> in its Host header (no DNS rebinding) and carry no Origin header (no web page). Only the host’s attached servers get a token; packages keep kernel.bridge() and its bridge permission |
| Which EDGEmat | One with rednodeBridge() (EDGEmat’s main from 2026-11-03, the release after @edgemodders/edgemat-mcp 0.3.1). 0.3.1, pinned until then, ignores the variables and starts its own REDbridge as before |
| Off | "edgematBridge": "own" in the host’s settings.json: no variables, EDGEmat starts its own |
| Log | Shared REDbridge on http://127.0.0.1:<port>/bridge once, Shared REDbridge: first call from EDGEmat (<method>) once per start; EDGEmat’s own line [EDGEmat] [edgemat-mcp] using REDnode's REDbridge (...) |
Checked outside the game on 2026-11-03: bridge-share.js alone (scratchpad w40/share-check.cjs, 21 checks: answers and errors, the spaces of a long call, wrong or missing token, another Host, any Origin, another path, GET, a body that is not JSON, a new grant ending the old token, revoke, stop), and end to end (w40/e2e-check.cjs, 12 checks: the host’s attached.js and redbridge.js with EDGEmat’s server built from its main, a real REDbridge on the dev PC’s game: mat_find on Items.Pants_01_basic_01 answered in 4.4 s with 6 calls through the shared REDbridge and one new REDbridge.exe, not two; with "own" EDGEmat started its own). A test build takes EDGEmat’s server from its repo with EDGEMAT_MCP_DIR set for npm run overlay:package (tools/overlay/package-host.mjs); a release takes the pinned one from npm.
Checked outside the game on 2026-10-29 (scratchpad e1/check.cjs, 21 checks: the real attached.js and mcp.js with EDGEmat 0.3.1: 10 tools listed to an in-game assistant and none to a desktop one, the read and ask flags, every input schema converted, mat_library and mat_templates answering through, mod_services, mod_read refusing mat_edit and running mat_microblends). The packaged host runs as Node (ELECTRON_RUN_AS_NODE=1 REDnode-overlay.exe -e ...: Node 24.21.0).
EDGEmat’s tools: test
REDnode 0.45.0, REDagent 0.3.3 (its briefing knows the tools). REDagent needs its Anthropic key and the Claude Agent SDK, as before.
- Test timer: Start, and Mark after each step.
- Load a save. In the launcher, switch on REDagent and its Allowed switch for REDnode’s tools (
mcp). Mark. - Ask REDagent: “Which EDGEmat tools do you have?” It lists the
edgemat__mat_*tools. Mark. - Ask: “Find the materials of Items.Pants_01_basic_01.” It runs
mat_findwithout asking you and names the trousers’ meshes and materials. The first call may take a while (EDGEmat’s REDbridge starts). Mark. - Ask: “Describe the layers of its first material setup.” It runs
mat_describewithout asking: each layer’s surface and color in plain words. Mark. - Ask: “Recolor its first layer dark red, in a new project.” REDagent asks you before
mat_edit: press Deny. It says you declined, and nothing is written. Mark. - If the Admin Tools pack is installed: in the Tools Manager, find the EDGEmat group with its 10 tools, the reads marked as reads. Switch
mat_findoff, ask step 3 again: REDagent says the tool is not there. Switch it back on. Mark. - Quit the game. Claude reads the host log:
EDGEmat tools: edgemat 0.3.1 started in N ms, 10 tools, each call, and noEDGEmat tools: the server endedbefore the quit.
First run, 2026-10-29: steps 1 to 5 passed (dev PC, game 2.5, REDnode 0.45.0, REDagent 0.3.3), reported by the player: REDagent listed the tools, mat_find and mat_describe ran without asking, and the recolor asked first and wrote nothing on Deny. Step 6 passed later the same day, in a new game session, once REDagent had been asked for the tools first: the Tools Manager listed EDGEmat’s group only after its server had started, which happens at an in-game assistant’s first request. REDnode 0.45.1 starts it when the Tools Manager asks for its list. Step 7: the host log has EDGEmat tools: edgemat 0.3.1 started in 133 ms, 10 tools, the two switches, and no server ended before the quit. E1 passed.
EDGEhack’s tools (H4.6)
REDnode 0.63.0 runs EDGEhack’s MCP server for in-game assistants the same way (passed in game on 2026-11-11 with REDagent 0.4.2), so REDagent can make and change quickhacks while the player plays and try them live. EDGEhack’s phase H4.6, agreed with the owner on 2026-11-11 (#45).
| What ships | EDGEhack’s server (@edgemodders/edgehack-mcp, MIT), one bundled file, in the host’s resources/edgehack with its licence and notices. Until EDGEhack’s first release puts it on npm, tools/overlay/package-host.mjs takes it from EDGEHACK_MCP_DIR or the sibling repo’s packages/edgehack-mcp (built there); a build that finds none ships without it, and the host logs EDGEhack tools: not shipped with this build |
| What it gets | The game folder (EDGEHACK_GAME_PATH), REDnode’s shared REDbridge (#40: REDNODE_BRIDGE_URL, REDNODE_BRIDGE_TOKEN, a token per start), REDBRIDGE_EXE and a per-user .NET 10, beside the MCP SDK’s safe variables, which include LOCALAPPDATA: EDGEhack’s Desk and REDnode’s editor.json are there |
| Names | edgehack__<tool>, beside the packages’ tools and in mod_services |
| Reads, without asking | hack_find, hack_describe, hack_effects |
| Ask first | hack_new, hack_edit, hack_script, hack_pack, hack_try |
| No project | An in-game assistant has none open: a new quickhack goes on EDGEhack’s Desk (%LOCALAPPDATA%\EDGEhack\desk), which EDGEhack in VS Code lists and adds to a project. A call can name a project (project) |
| Try Live | hack_try reaches the game through REDnode’s editor channel (#44) as the editor EDGEhack, so the first try waits for the player’s Allow in the Editor request window |
| Who sees them | In-game assistants. Desktop ones only with "edgehackTools": "all" in the host’s settings.json (Claude Code gets EDGEhack through EDGEhack’s Connect an Assistant, or EDGEchat). "edgehackBridge": "own" gives the server its own REDbridge |
| Switches | The Tools Manager’s group EDGEhack (edgehack:<tool>) |
Checked outside the game on 2026-11-11 (scratchpad h46/run.sh, dev host, and h46/run-packaged.sh, the packaged host; 8 checks each, with the mock game, the real game folder and a scratch Desk): the eight tools listed through the kernel to a desktop assistant with "edgehackTools": "all", EDGEmat’s not; the five that change something with the ask flag, the three reads read-only; hack_find on Overheat in 12.3 s through the shared REDbridge (one REDbridge, Shared REDbridge: first call from EDGEhack); a quickhack made on the Desk and changed there.
EDGEhack’s tools: test
REDnode 0.63.0 with EDGEhack’s server, REDagent 0.4.2 (its briefing knows the tools), game 2.5. REDagent needs its Anthropic key and the Claude Agent SDK, as before. EDGEhack in VS Code is only for step 7. The steps are in docs/testing.md.
How api_read tells a read
The game’s own const flag cannot: in 2.31, 1,865 const functions are not getters (such as SetAIRole and SendMinigameFailedToAllNPCs), and two thirds of the functions named like getters are not const. So the name decides:
| Rule | Example |
|---|---|
Runs a name starting with Get, Is, Has, Can or Find |
GetItemInSlot, GetItemInEquipSlot, IsQuickHackPanelOpen |
Refuses it when a change word is joined to it with Or, And or Then: Create, Add, Set, Remove, Spawn and others (the list is CHANGE_WORDS in packages/overlay/mcp.js) |
GetOrCreateBlackboard, GetOrAddVendor |
Runs every method of a TweakDB record (gamedata..._Record), known from the $type a tool returned |
DisplayName on a record from tweakdb |
Of the 9,504 function names in 2.31 that start like reads, it refuses 7, all GetOrCreate… or GetOrAdd…. Until REDnode 0.32.1 it refused any name with a change word anywhere after the start, 543 names, most of them reads where the word is a noun (GetItemInEquipSlot, GetStartTime, IsOpen), which then went through api_call and asked. A function named like a read could still change something (unverified for most of them). The rule is only in the MCP server: the rednode package’s api is not limited.
The server also gives the agent short instructions: what REDnode is, what each tool is for, and the game API’s rules (the game instance is {}, 64-bit numbers are strings, references die when a save loads).
MCP sign-in: test (#19)
Built 2026-10-26 in REDnode 0.40.0: packages/overlay/oauth.js (the endpoints and the tokens), the checks in mcp.js’s handler (Host, Origin, the 401 header), the built-in Connect window (packages/overlay/connect, shown over the game without F10 while a request waits), Connected assistants with Revoke in the launcher’s settings. Checked outside the game with a scratch server running the whole flow as Claude Code does (scratchpad oauth/check.mjs, 23 checks: metadata, registration, refused redirects, Origin and Host, one request at a time, the same code in page and game, allow and deny, PKCE, a code used once, refresh rotation, hashed storage, a restart, revoke). Not checked: Claude Code’s own sign-in against it, and the Connect window in the game.
The test adds a second, header-less server entry, so Claude Code signs in instead of sending the plugin’s token. Game 2.5, REDnode 0.40.0.
- Switch on Test timer in the launcher, press Start, and press Mark after each step.
- Load a save. Launcher settings: MCP server is on. In a terminal:
claude mcp add --transport http --scope user rednode-signin http://127.0.0.1:41820/mcp. Mark. - In a Claude Code session,
/mcp, pickrednode-signin: it says it needs authentication. Pick Authenticate. The browser shows “Approve in Cyberpunk 2077” and a code. Mark. - In the game, without pressing anything, the Connect window shows the same code and “Claude Code (rednode-signin)” or similar. Mark.
- F10, press Allow. The browser goes back to Claude Code, and
/mcpshowsrednode-signinconnected. Ask Claude “with rednode-signin, what does game_state say?” Mark. - Launcher settings: Connected assistants lists it. Mark.
- Quit the game, start it again, load a save. Ask the same question: it works with no new sign-in. Mark.
- Press Revoke beside it. Ask again: Claude Code says it needs authentication. Mark.
- Authenticate again, and press Deny in the game: Claude Code says the sign-in was denied. Mark.
- Authenticate again and answer nothing: after two minutes the Connect window closes and the browser says the request lapsed. Mark.
- Clean up:
claude mcp remove rednode-signin --scope user. Quit the game.
MCP sign-in: first run (2026-10-26)
Game 2.5, REDnode 0.40.0, dev PC. Steps 1 to 7 passed: Claude Code registered, the browser and the Connect window showed the same code (KHP-7797), Allow connected it, the launcher listed it, the connection held across a game restart with no new sign-in, and Revoke ended it.
Step 8 failed: the browser said “Unknown client”. Revoke deleted the registration, but Claude Code keeps the client id it was given and signs in with it again without registering (the log has no new registration after the revoke). REDnode 0.40.1 fixes it:
- Revoke ends the client’s tokens and its unused codes, and keeps its registration, so its next sign-in asks the player again.
- A registration is dropped only when it never connected within a day, or when it has not been used for as long as a refresh token lasts (180 days).
- A client id REDnode has forgotten (a dropped registration or a lost data file) is taken back when it has REDnode’s form and asks for a loopback redirect. Anyone on the PC can register anyway, and the player still allows each sign-in.
The scratch check now also covers a sign-in and a Deny after a revoke, and a forgotten id (30 checks).
MCP sign-in: retest on 0.40.1 (2026-10-26): passed
Game 2.5, REDnode 0.40.1, dev PC, the same rednode-signin entry. Every step passed (log and timer marks agree):
| Step | Log |
|---|---|
| Authenticate | Claude Code registered again (it did not reuse the id 0.40.0 had deleted), code MHT-7588 |
| Deny | “the player denied”, the window closed, Claude Code said the sign-in was denied |
| No answer | the request lapsed after 2 minutes and the window closed |
| Allow | connected; game_state answered |
| Revoke, then Authenticate | asked to connect with no new registration (the 0.40.0 bug is gone), denied |
Seen: after Revoke, Claude Code’s /mcp still showed rednode-signin as connected until the next question, which then got a 401 and showed it disconnected. Not a bug: the status is Claude Code’s last known one, and a stateless HTTP server cannot tell a client its token was revoked; the next request finds out.
Not checked in game: taking back a forgotten client id (Claude Code registered again instead); the scratch check covers it.
C1 test
Built 2026-10-12, host 0.4.0. Tested against a stand-in for the game with an MCP client that calls every tool (15 checks), packaged and unpackaged, with GPU sharing on and off: the token is required, and every tool answers.
In the game, in this order. Claude Code runs on the same PC; switch to it with Alt+Tab:
- Start the game and load a save.
- F10, open the launcher and its settings (the gear at the right of the Theme row), switch MCP server on, and press Copy setup.
- Alt+Tab to a terminal, paste the command and run it. Then run
claude mcp list:rednodeshows as connected. - Start a new Claude Code session (MCP servers load when a session starts), and ask in turn:
- “Using the rednode tools, what are V’s health, level and money?” It should look up the functions, then call the game. Claude Code asks before each
api_call; allow them. - “Show me the errors in the REDnode mod log.” Switch Crash mod on and press Throw an error first, so there is one.
- “Capture the Hello mod window and tell me what it shows.”
- “What does the game show right now, and what does the overlay cost?” Ask once in gameplay and once with the inventory open.
- “Close the Coords HUD, then open it again.” Watch it go and come back in the game.
- “Give V 50 eddies.” Claude Code should ask first; allow it, and check the money in Vitals.
- “Using the rednode tools, what are V’s health, level and money?” It should look up the functions, then call the game. Claude Code asks before each
- Quit the game. In Claude Code,
claude mcp listnow showsrednodeas failing to connect, which is expected while the game is closed.
Result, 2026-10-12: passed. Modded profile with CET, 3840 x 2160, host 0.4.0. claude mcp list showed rednode: http://127.0.0.1:41820/mcp (HTTP) - ✔ Connected. In a new Claude Code session, every question worked: V’s health, level and money through gameapi_lookup and api_call; the Crash mod’s error from logs; a description of the Hello mod window from window_image; the game state and the overlay’s cost, in gameplay and with the inventory open; Coords closed and opened again through apps (the host log shows both, two seconds apart); and 50 eddies given after Claude Code asked. The host logged no failed MCP request, and the plugin no crash inside a game call.
For developers
| Item | Where |
|---|---|
| The server | packages/overlay/mcp.js: @modelcontextprotocol/sdk 1.32.1, Streamable HTTP, stateless, JSON responses, DNS rebinding protection |
| The game type lookup | packages/overlay/gameapi-lookup.js, reading the generated game.d.ts and gameapi/notes. Packaged, both ship in host/resources/gameapi |
| Switches | --mcp=on or --mcp=off on the host’s command line overrides the launcher. The port can be changed in the host’s settings.json (mcp.port) |