Files
Pixelguy14 c3d5daeec5
CI / test (push) Has been cancelled
feat: JuliaMSI MCP server v0.1.0 — 20 tools ready for testing
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).
2026-11-25 13:25:13 -06:00

35 lines
906 B
TOML

name = "JuliaMSI_MCP"
uuid = "146f587d-e8c9-4fce-8feb-186b5b7e0eb5"
authors = ["JuliaMSI"]
version = "0.1.0"
[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
ModelContextProtocol = "c58f755f-f2a7-4f48-bf29-4e9659b78499"
MSI_src = "8f395f85-3b9c-4f7f-bf7e-12345678abcd"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
[sources]
MSI_src = {path = "../JuliaMSI"}
[compat]
CSV = "0.10"
DataFrames = "1.7"
JSON3 = "1"
ModelContextProtocol = "0.6"
MSI_src = "0.1"
julia = "1.11"
[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[targets]
test = ["Test"]