OpenImageDebugger MCP

v0.3.6
io.github.OpenImageDebugger/oid-mcp Checked 1 hour ago Published 1 month ago

MCP server giving AI agents eyes on OpenImageDebugger buffers in live gdb/lldb sessions

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_sessions

List live OID debug sessions and viewer windows this server can reach. Each viewer shows its debugger_pid pairing (None for a standalone oidwindow), so a caller can target either a debugger's session pid or its viewer window explicitly.

list_buffers

List symbols observable as image buffers at the current stop. session: a debugger or viewer pid from list_sessions(); defaults to the most recently started live debugger session, or the most recently started live viewer window if none is live.

ParameterTypeDescription
session

view

Look at a buffer as an image. region: [x, y, w, h] crop in displayed coordinates (the stateless zoom: view the whole buffer, spot the artifact, view that region). channel: render one storage channel as grayscale. vmin/vmax: fix the normalization range (comparable across buffers); default normalizes per channel over the full buffer, so zooming never changes brightness. NaN pixels render magenta.

ParameterTypeDescription
symbol *string
channel
max_pxinteger
region
session
vmax
vmin

stats

Per-channel min/max/mean/std and NaN/Inf/zero counts.

ParameterTypeDescription
symbol *string
region
session

values

Exact pixel values for a small crop (at most 1024 numbers).

ParameterTypeDescription
h *integer
symbol *string
w *integer
x *integer
y *integer
channel
session

dump

Save the buffer losslessly as .npy; returns the file path. Refuses to overwrite an existing file unless overwrite=true, so an unintended path cannot clobber your data.

ParameterTypeDescription
symbol *string
overwriteboolean
path
session

plot

Mirror a buffer into the human's OID viewer window.

ParameterTypeDescription
symbol *string
session

set_view

Set the OID viewer's view of a buffer (absolute/idempotent). Only the fields you pass are changed; omitted fields keep their current value. session: a viewer pid or a paired debugger pid, as for the pixel tools. channel selects a single display channel by 0-based index (``0``, ``1``, ``2``) or ``"all"`` to restore the natural layout. auto_contrast is a global viewer setting (not per-buffer), matching get_view.

ParameterTypeDescription
auto_contrast
buffer
center
channel
rotation_deg
session
zoom

get_view

Read the OID viewer's current view state. Returns buffer/center/zoom/rotation_deg/channel/auto_contrast. auto_contrast is global (not per-buffer).

ParameterTypeDescription
session