Implements the Model Context Protocol server for the JuliaMSI mass
spectrometry imaging engine, covering phases 1–3 of the implementation
plan plus the main phase-4 items.
Tools (20):
session/dataset: msi_open_dataset, msi_close_dataset, msi_dataset_info,
msi_get_dataset_stats
spectra: msi_get_spectrum_at_coord, msi_get_spectrum_by_index
ion images: msi_get_mz_slice, msi_get_multiple_mz_slices,
msi_plan_ion_image, msi_plan_multiple_slices
preprocessing: msi_plan_preprocessing, msi_plan_streaming_pipeline,
msi_plan_analytics
execution: msi_execute_runspec, msi_list_plans,
msi_get_task_status, msi_get_task_result,
msi_cancel_task, msi_list_tasks
maintenance: msi_clean_artifacts
Resources (msi://): dataset/metadata, dataset/stats,
tasks/{task_id}/status, tasks/{task_id}/result
Prompts: analyze_region_of_interest, standard_pipeline, diagnose_task
- Persistent session: one MSIData kept alive between tool calls
- Plan -> execute -> poll async core (SHA-256 RunSpecs + background tasks)
- Results as on-disk artifacts (CSV/PGM/MatrixMarket) with compact previews
- Structured JSON-RPC error mapping with suggested actions
- stdio and Streamable HTTP transports, optional shared-token auth
- Artifact retention (age + size budgets) and glibc malloc_trim cleanup
- 107 tests + end-to-end stdio smoke test; validated on HR2MSI bladder
(imzML) and T9_A1/Col_1 (mzML)
Required JuliaMSI engine fixes are tracked in patches/ (already upstream
on the rel/Windows_Mac_Recompatibility branch and GitHub main).
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# The MCP project links the engine at ../JuliaMSI via [sources]. Cloning it
|
||||
# as a sibling (rather than into the workspace) keeps the default layout and
|
||||
# avoids touching [sources] or the Manifest.
|
||||
- name: Clone JuliaMSI engine (sibling)
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/Pixelguy14/Julia_msi_GUI ../JuliaMSI
|
||||
|
||||
- uses: julia-actions/setup-julia@v2
|
||||
with:
|
||||
version: "1.11"
|
||||
|
||||
- uses: julia-actions/cache@v2
|
||||
|
||||
- name: Instantiate
|
||||
run: |
|
||||
julia --project=. -e 'using Pkg; Pkg.instantiate()'
|
||||
|
||||
- name: Unit & integration tests
|
||||
run: |
|
||||
julia --project=. -e 'using Pkg; Pkg.test()'
|
||||
|
||||
- name: Smoke test (stdio, synthetic dataset)
|
||||
run: |
|
||||
python3 test/smoke_stdio.py
|
||||
Reference in New Issue
Block a user