Paper2MCP v2 Verified Deliverable

Temporal tissue dynamics from a spatial snapshot

期刊:Nature (2026-01-21) · DOI:10.1038/s41586-025-09876-1 · 开源许可:none (restricted)

上游仓库:https://github.com/JonathanSomer/osdr @ 7d049700ece9

Pytest: passed MCP Stdio Selftest: passed Relocated Fresh Install: passed

一、一键安装与 MCP 接入(本地 / 远程统一接口)

# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip osdr-mcp.zip && cd osdr-mcp
bash install.sh
.venv/bin/python selftest.py

# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add osdr -- "$PWD/.venv/bin/python" "$PWD/server.py"

# 3. 或启动远程 Streamable HTTP MCP 服务端供团队/网页直接调用
.venv/bin/python server.py --transport http --host 0.0.0.0 --port 8000

二、已验证科学工具清单(4 个工具)

fit_osdr_model MCP Verified ✓

Fit a one-shot tissue dynamics (OSDR) model of two interacting cell types from a single-cell spatial snapshot with division labels.

Selftest Summary: Fitted OSDR division/death model for F and M on 10800 cells in 12 tissues (polynomial degree 2).
Metrics: {"n_cells": 10800, "n_tissues": 12, "cell_a": "F", "cell_b": "M", "observed_division_fraction": {"F": 0.4779292812572221, "M": 0.06590992310508971}, "death_probability": {"F": 0.4779292812572221, "M": 0.06590992310508971}, "xlim": [0.0, 6.3888126446548235], "ylim": [0.0, 5.596878899714772], "neighborhood_size_um": 80.0}
find_osdr_fixed_points MCP Verified ✓

Find and classify the stable, semi-stable and unstable fixed points of a fitted OSDR two-cell model.

Selftest Summary: Found 3 fixed point(s) for F-M: {'stable': 2, 'semi-stable': 0, 'unstable': 1}
Metrics: {"counts": {"stable": 2, "semi-stable": 0, "unstable": 1}, "n_fixed_points": 3, "fixed_points": {"stable": [[5.683902667726859, 5.025815242922458], [0.0, 0.0]], "semi-stable": [], "unstable": [[5.386449542223618, 4.841966631786741]]}}
plot_osdr_phase_portrait MCP Verified ✓

Plot the phase portrait with flow field, nullclines and fixed points of a fitted OSDR model.

Selftest Summary: Saved stream phase portrait (cells) for F-M
Metrics: {"cell_a": "F", "cell_b": "M", "style": "stream", "mode": "cells"}
simulate_osdr_trajectory MCP Verified ✓

Integrate the fitted OSDR dynamics forward in time from a chosen starting neighbourhood composition.

Selftest Summary: Simulated F-M from (2, 2) for 20 generations; final state F=0.00015, M=0.562.
Metrics: {"final_state": {"F": 0.0001498266848446608, "M": 0.5615132753434152}, "n_steps": 42, "cell_a": "F", "cell_b": "M"}

三、实测复现结果图展示

osdr_calibration.png
osdr_growth_rate.png
osdr_phase_portrait.png