abba-mcp

v0.25.0.post2
abba-mcp Checked 1 day ago Published 1 month ago

MCP server for ABBA (Aligning Big Brains and Atlases): an AI assistant registers brain sections to atlases in a pinned Fiji

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

fiji_module_describe

Describe a module's inputs and outputs (types, labels, descriptions, defaults and choices after its initializers ran), the live objects that can fill its object inputs, and the artifact that provides it (provided_by: groupId:artifactId:version). id: a class name, menu path, title, or script file path.

ParameterTypeDescription
id *stringcommand title, menu path, class name, or script file path

fiji_module_run

Run a module (command class, menu path, title, or the path of a script file) with inputs as a JSON object, e.g. {"sigma": 2, "image": "blobs.gif"}. Never opens the module's dialog: inputs not given keep their default; an object input with one live instance is bound to it, else pass its name (see fiji_objects). Returns status, outputs (objects by name, pictures as images), new objects, the modules it ran in turn (nested), and the warnings and errors it logged (messages). status is error when the module threw or reported success = false (error says why), canceled, or ok; ok with logged_errors (t…

ParameterTypeDescription
id *stringcommand title, menu path, class name, or script file path
inputsstringJSON object of input values by name, e.g. {"sigma": 2}; inputs not given keep their default
wait_secondsstringseconds to wait for the result before returning the job id (default 30, at most 40: clients abort requests after about 60 s; follow a longer run with fiji_module_status)

fiji_module_run_script

Run a script given as text (Groovy by default) as fiji_module_run runs a script file: same inputs, result, job id and status, nothing written to disk. For what no command does: search the commands first. Declare what it needs with #@ lines, e.g. '#@ ImagePlus image' (an object input with one live instance is bound to it) or '#@ CommandService command', and what it returns with '#@output String result'. Recorded in fiji_module_script with its code; '#@script(record="false")' leaves out a script that only looks. Write Groovy, as ABBA's docs and examples: 'python' here is Jython 2.7, not CPython.…

ParameterTypeDescription
code *stringthe script, with its #@ parameters
inputsstringJSON object of input values by name, as for fiji_module_run
languagestringgroovy (default, recommended), or another language name or file extension; 'python' is Jython 2.7, not CPython: no numpy, no pip packages
wait_secondsstringseconds to wait for the result before returning the job id (default 30, at most 40: clients abort requests after about 60 s; follow a longer run with fiji_module_status)

fiji_module_status

Follow a run started by fiji_module_run: waits up to wait_seconds and returns its result as fiji_module_run does, or status running (or blocked_by_dialog) with the dialogs open. An empty job lists the runs - title, status (running, ok, error or canceled) and seconds each, the last 20 finished ones kept - and the modal dialogs open.

ParameterTypeDescription
jobstringthe job id returned by fiji_module_run; empty lists the runs
wait_secondsstringseconds to wait for the result before returning the job id (default 30, at most 40: clients abort requests after about 60 s; follow a longer run with fiji_module_status)

fiji_objects

The live objects Fiji holds (images, viewers, sessions...): without a type, the number of objects per type; with a type, the objects of that type by the names module inputs accept. An ABBA session is a MultiSlicePositioner.

ParameterTypeDescription
typestringsimple or full class name, e.g. ImagePlus; empty counts the objects per type

fiji_module_script

The successful fiji_module_run calls of this session as a Groovy script that replays them, every input explicit (modules declaring record=false, which only look, are left out). Once a result is right, save it (path) to keep the pipeline: edit it, turn values into #@ parameters, run it with fiji_module_run (its path is its id), or headless in a fresh Fiji.

ParameterTypeDescription
pathstringfile to write the script to; empty returns it

fiji_ui_windows_read

List visible AWT and Swing windows, including titles, classes, bounds, active state, and modality The ABBA window's title starts with its atlas; there may be several ABBA windows.

fiji_ui_dialogs_read

List visible AWT and Swing dialogs, including each dialog's title, messages, buttons, and modal state A command that opened a dialog for the user (interactive registrations) waits until it is closed.

fiji_ui_dialog_respond

Click an exact enabled button in one visible dialog. This tool rejects missing or ambiguous dialogs and never chooses a button implicitly Only for dialogs the user asked you to answer.

ParameterTypeDescription
button_text *stringButton text from the same dialog
dialog_title *stringDialog title from fiji_ui_dialogs_read

fiji_ui_dialog_close

Request the normal window-manager close action for one visible dialog. This tool rejects missing or ambiguous dialogs, does not choose a button, and reports whether the dialog remains visible Only for dialogs the user asked you to close.

ParameterTypeDescription
dialog_title *stringDialog title from fiji_ui_dialogs_read

abba_window_picture

Picture of one Fiji window, or dialog, as it is drawn, what the user sees in it: right even when the window is covered or the screen is locked, and never another application. Window mode only. Not recorded in fiji_module_script.

ParameterTypeDescription
window_titlestringthe window title, or its start (fiji_ui_windows_read); default: the first ABBA window

abba_window_view

Sets what an ABBA window shows the user: its mode, its current slice, the channels shown, and what is framed. Review mode: the atlas section of the current slice, whole or a region of it. Positioning mode: the current slice and its neighbours with the atlas above, or all the slices. Window mode only. Changes the view, not the session; not recorded in fiji_module_script. A session started without a window gets one. Then look with abba_window_picture. The window has no region names: to name what it shows, use ABBA - Snapshot with labels on the same region_mm.

ParameterTypeDescription
atlas_channelsstringatlas channels to show, in the order of 'atlas_channels' in ABBA - Get State, e.g. '0,2' (Allen: Nissl and borders), 'none'; empty keeps them
modestring'positioning' or 'review' (the current slice alone over the atlas); empty keeps it
region_mmstringregion to zoom on, 'x,y,width,height' in mm, as ABBA - Snapshot's region_mm (x, y: top left, as read on a snapshot's rulers); 'all' frames all the slices in positioning mode; empty: see above
slice_channelsstringslice channels to show on every slice, e.g. '0' for the first alone, '*' for all, 'none'; empty keeps them
slice_indexstring0-based index of the slice to make current, as in ABBA - Get State; empty keeps the current slice
window_titlestringthe window title, or its start; default: the first ABBA window

abba_fiji_stop

Stops the Fiji this extension started: the ABBA window closes and unsaved work is lost. Only when the user explicitly asks to stop or restart Fiji. Never to check, wait for or speed up a start: a start taking minutes is normal, and stopping it starts it all over again. To look at Fiji, use fiji_ui_windows_read or abba_window_picture.

ParameterTypeDescription
user_request *stringthe user's own words asking to stop or restart Fiji, quoted

abba_docs_read

Read one bundled documentation file, by its path relative to the docs folder (as abba_docs_search gives it).

ParameterTypeDescription
path *stringe.g. guides/abba.md