ps2mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | The folder programs are run from and the target's host: files are served from. | |
| target | Yes | A target's address, address[:port], or mock. It has no default: nothing is sent to a console that wasn't named. | |
| journal | No | The journal's file: ~/.local/state/ps2mcp/journal.jsonl by default, none for none. | ~/.local/state/ps2mcp/journal.jsonl |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
ps2mcp gives you a PlayStation 2 (or an emulator of one, or a mock) to work with: its memory and hardware registers, programs run on it with their outcome returned, sequences of register accesses run back to back for measuring what the hardware does, its picture, a debugger for the programs it runs, and a controller whose buttons you press.
Call status first: it says what the target is and which abilities it has. Addresses and
values may be given as numbers or as text such as "0x10003000". Programs and host: files are
relative to the server's root folder. Every request that reaches the hardware is appended to a
journal with the target's identity, so a finding can be traced to the console it came from.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| statusA | What the target is (a console, an emulator or the mock, with its identity), what it can do, and what the program on it is doing. Connects if the link is down. Call this first. |
| read_memoryA | Reads |
| write_memoryA | Writes values of |
| dump_memoryA | Reads a block of plain memory as bytes. Returns a hex dump of up to 4096 bytes; with
|
| measureA | Runs a sequence of steps on the target back to back, with no traffic to the host between them, and returns each step's result in order. Use it when the order and timing of register accesses matter, as when finding out what the hardware does. Steps (addresses and values as numbers or "0x..." text; width 1, 2, 4, 8 or 16, default 4; any step that gives a result may carry a "label"): {"op": "read", "address": A, "width": W} the value read {"op": "write", "address": A, "width": W, "value": V} {"op": "delay", "cycles": N} waits at least N CPU cycles {"op": "time"} the CPU's cycle counter, 32 bits {"op": "wait", "address": A, "width": W, "mask": M, "value": V, "timeout": N} reads until (value read & M) == V; the cycles waited, or the sequence ends in TIMEOUT {"op": "repeat", "count": N, "steps": [...]} up to three deep {"op": "call", "address": A} calls code at A; what it returned
|
| runA | Runs a program under the server's root, served to the target as host:: an ELF on
the EE, or, if its name ends in .irx, a module on the IOP. Waits up to Returns its On a target with the debug capability an ELF can be held instead of lost. |
| breakpointA | Sets a breakpoint at an instruction of the EE's program, or removes one. A program
that reaches it is held there, before the instruction is done: While a program is held its breakpoints are out of its memory, which reads as the program's own. One in a branch's delay slot is reported at the branch. |
| watchpointA | Sets the watch: the EE's program is held when it stores to an address (
With On a console it catches the program's own accesses, in its threads: not the kernel's,
not an interrupt handler's, and not the GS's display registers at 0x12000000 to
0x12000fff, whose writes |
| haltA | Holds the program that's running, wherever it is, as a breakpoint there would: the
state is "held", and |
| resumeA | Sends a held program on from where it is, and waits as |
| stepA | Steps a held program by |
| registersA | A held program's registers.
|
| set_registerA | Gives a register of a held program a value: a general register by its name (v0, a0, sp, ra...), pc, hi, lo or status; f0 to f31 or acc of the FPU, fcr31; hi1, lo1 or sa. Setting pc is how a program is sent on from somewhere else, past a break instruction of its own, say. A general register takes up to 128 bits; a negative value is sign-extended. An FPU register takes a number with a point in it, 1.5 or "1.5", as that number in single precision, and anything else as its bits. VU0's vf1 to vf31 take four numbers, x, y, z and w, as "1.0, 2.0, 3.0, 4.0", or 128 bits; vi1 to vi15 take 16 bits. |
| outputA | What the target has printed to its console since |
| stopB | Stops the program that's running, or held, and returns the target to idle. |
| resetA | Resets the target to the state it starts in, and connects to it again. Use it to recover a target that's stuck, or to start a measurement from a known state. |
| screenshotA | A picture from the target, as an image. With no arguments, what's being shown. An emulator or the mock knows what that is. A console can't ask the GS (its display
registers are write-only), so it watches what the program writes to them, and reads back
the frame buffer they describe: see Any argument given makes it a rectangle of the GS's memory instead, the others taking
these defaults: The picture is of one moment, read with the console's interrupts off: a program drawing at that moment may show a frame half drawn. |
| controllerA | Presses buttons on a controller of the target's own making, a DualShock 2 in With
|
| displayA | What a console's program has written to the GS's display registers, which can't be
read from the GS itself: PMODE, SMODE2, DISPFB1 and 2, DISPLAY1 and 2, BGCOLOR and their
neighbours, each as it was last written, with |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 19 tools
Tools mostly target distinct operations, and descriptions explicitly separate easily confused pairs such as read_memory vs dump_memory and run vs resume. Minor overlap remains around execution control (halt/stop) and memory/register access, but boundaries are workable.
All names are lower_snake_case with no casing or style collisions. The set mixes verb names (resume, step, read_memory) with resource nouns (registers, display, controller), so it is readable but not a strict verb_noun convention.
Nineteen tools is somewhat heavy but justified for a full PS2 debug/emulation surface: execution control, memory, registers, break/watch, measurement, display, screenshot, and input are distinct responsibilities. It is above the typical 3-15 range but not bloated.
The surface covers the core lifecycle: status, run/resume/step/halt/stop/reset, breakpoints/watchpoints, register and memory access, screenshots, display state, and controller input. Minor gaps such as disassembly, memory search, or save-state management are workarounds rather than fatal omissions.