abba-mcp
v0.25.0.post2MCP 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_search
Find SciJava commands and scripts whose title, menu path, description or class contain all the words of the query. Every Fiji command and plugin is a module: search here before writing code. Every ABBA action is a command: search here, or grep the command docs.
| Parameter | Type | Description |
|---|---|---|
query * | string | words that must all appear, e.g. 'gaussian blur' |
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | command 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…
| Parameter | Type | Description |
|---|---|---|
id * | string | command title, menu path, class name, or script file path |
inputs | string | JSON object of input values by name, e.g. {"sigma": 2}; inputs not given keep their default |
wait_seconds | string | seconds 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.…
| Parameter | Type | Description |
|---|---|---|
code * | string | the script, with its #@ parameters |
inputs | string | JSON object of input values by name, as for fiji_module_run |
language | string | groovy (default, recommended), or another language name or file extension; 'python' is Jython 2.7, not CPython: no numpy, no pip packages |
wait_seconds | string | seconds 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.
| Parameter | Type | Description |
|---|---|---|
job | string | the job id returned by fiji_module_run; empty lists the runs |
wait_seconds | string | seconds 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.
| Parameter | Type | Description |
|---|---|---|
type | string | simple 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.
| Parameter | Type | Description |
|---|---|---|
path | string | file 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.
| Parameter | Type | Description |
|---|---|---|
button_text * | string | Button text from the same dialog |
dialog_title * | string | Dialog 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.
| Parameter | Type | Description |
|---|---|---|
dialog_title * | string | Dialog 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.
| Parameter | Type | Description |
|---|---|---|
window_title | string | the 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.
| Parameter | Type | Description |
|---|---|---|
atlas_channels | string | atlas 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 |
mode | string | 'positioning' or 'review' (the current slice alone over the atlas); empty keeps it |
region_mm | string | region 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_channels | string | slice channels to show on every slice, e.g. '0' for the first alone, '*' for all, 'none'; empty keeps them |
slice_index | string | 0-based index of the slice to make current, as in ABBA - Get State; empty keeps the current slice |
window_title | string | the 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.
| Parameter | Type | Description |
|---|---|---|
user_request * | string | the user's own words asking to stop or restart Fiji, quoted |
abba_docs_search
Search the bundled ABBA documentation (guides, one file per command, scripting, examples) with a regular expression; returns matching lines with their file. For assistants without file access: with file access, grep the docs folder named in the instructions instead. This server: bundle abba-mcp 0.25.0.post2, for ABBA 0.25.0 only.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | case-insensitive regular expression |
abba_docs_read
Read one bundled documentation file, by its path relative to the docs folder (as abba_docs_search gives it).
| Parameter | Type | Description |
|---|---|---|
path * | string | e.g. guides/abba.md |