Tangram Remote Tool (MCP Server)#
TOU validation and deployment status (2026-08-16)#
Tangram dependencies, loopback discovery, and a bounded five-epoch single-cell/spatial mapping call passed with normalized proportions across 72 spots. Public publication, cross-user isolation, production epochs, representative accuracy, broad concurrency, and recovery remain incomplete. Authenticated private Platform import and owner testing passed on 2026-08-16; public publication and independent-caller authorization/isolation remain untested.
Operation:
run_tangram_deconvolutionStart:
python -m tooluniverse.remote.tangram.tangram_toolEndpoint:
http://127.0.0.1:8018/mcpProvider configuration: set
TOOLUNIVERSE_REMOTE_DATA_ROOTfor provider-owned H5AD files; callers supply relative paths and a validcluster_label.TOU check:
tu doctor --forward http://127.0.0.1:8018/mcp --jsonPrivate relay:
tu serve --share --forward http://127.0.0.1:8018/mcp --name validation-tangram --workers 1
Non-loopback binding requires TOOLUNIVERSE_API_TOKEN; otherwise keep the server on loopback. The relay requires TOOLUNIVERSE_SERVICE_KEY. The five-epoch fixture is not a production-quality training benchmark.
New-user check: python scripts/remote_validation/setup_skill_preflight.py --implementation tangram. Add --check-provider-env before launch, --live after launch, and --check-connect-prereqs before sharing. Live preflight checks exact MCP discovery only; it does not run or validate a model. The pinned relay SDK is not on PyPI and currently requires authorized GitHub repository access plus a configured SSH key, so a working local MCP server does not by itself prove that a new operator can share it.
The authenticated 2026-08-16 Platform matrix found all 30 private owner relays online and all 41 operations discoverable. This implementation was imported as unpublished owner draft(s), configured with a 120-second timeout, and invoked through /expert-sessions/{id}/test. Across the set, 38 unique operations passed return-schema and semantic validation; the three USPTO operations returned exact provider HTTP 403 and remain credential-blocked. Public publication, independent-caller authorization/isolation, broad saturation, and persistent supervision were not tested.
See the complete setup and verification guide.
Serves Tangram (Biancalani et al., Nature Methods 2021) — alignment of single-cell RNA-seq onto spatial transcriptomics — as a ToolUniverse remote tool: run_tangram_deconvolution, which maps cell-type clusters from a single-cell reference onto a spatial assay and returns per-spot cell-type proportions (spatial deconvolution).
Served remotely (not bundled) because tangram-sc pulls in PyTorch + scanpy. Mapping runs on CPU for the modest reference/spatial matrices typical of this workflow.
Deploy#
pip install -r requirements.txt # tangram-sc + scanpy
python tangram_tool.py # starts the MCP server on 127.0.0.1:8018
Inputs are referenced by paths (sc_path, sp_path): server-accessible .h5ad
files for the single-cell reference (with cluster_label in obs) and the
spatial assay. Expose remotely only behind TOOLUNIVERSE_API_TOKEN
(SMCP bind guard).
Register in ToolUniverse#
Tool definition: src/tooluniverse/data/remote_tools/tangram_tools.json
(type: RemoteTool). Connect via the standard MCPAutoLoaderTool/server_url
mechanism.