PhysiCell Configuration Builder

v2.5.2
io.github.marcorusc/PhysiCell Checked 3 hours ago Published 1 month ago

MCP server for building, inspecting, and exporting PhysiCell and PhysiBoSS configuration files

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_session

Create an isolated, durable BioMASS authoring session.

ParameterTypeDescription
labelOptional human-readable model label.
set_as_defaultbooleanMake the created session the active default.

list_sessions

List active sessions and current generated revisions.

close_session

Close a session, retaining its authoring snapshot and artifacts on disk.

ParameterTypeDescription
session_idBioMASS session ID; omit to use the active default.

restore_session

Restore authoring state from a previously created BioMASS session.

ParameterTypeDescription
session_id *stringComplete UUID of a closed or previous-process artifact session.

import_neko_handoff

Verify and import a NeKo network and its complete reference provenance.

ParameterTypeDescription
handoff_bundleObject returned by NeKo export_handoff_bundle, for servers that cannot read NeKo's files. Use instead of manifest_path.
manifest_pathPath to a NeKo-to-BioMASS handoff manifest. Omit when passing handoff_bundle.
session_idBioMASS session ID; omit to use the active default.

import_text

Import or replace standalone text and its line provenance atomically. Read docs://biomass/reaction_syntax and docs://biomass/authoring_examples before writing text. Only the documented Text2Model subset is supported.

ParameterTypeDescription
text *stringComplete Text2Model document; preserved verbatim.
biological_contextOptional biological context for standalone modelling.
line_evidenceComplete evidence/assumption mapping for document lines; omitted clears old line links.
session_idBioMASS session ID; omit to use the active default.

set_evidence

Store agent-extracted evidence, including contradictory or inaccessible sources.

ParameterTypeDescription
records *arrayEvidence records to upsert by evidence_id; all other records are preserved.
session_idBioMASS session ID; omit to use the active default.

set_reactions

Replace the COMPLETE ordered reaction list, retaining prior records explicitly. Before authoring, read docs://biomass/reaction_syntax, docs://biomass/authoring_examples, docs://biomass/network_to_reactions, and docs://biomass/model_editing for incremental edits that preserve configuration. Signed edges and PMID identifiers alone do not justify mechanisms or kinetics.

ParameterTypeDescription
reactions *arrayComplete ordered replacement of reaction records; use stable IDs and share_parameters_with.
session_idBioMASS session ID; omit to use the active default.

import_text_file

Read a Text2Model file verbatim for expansion or editing with build_reactions. Source files are not modified. Read docs://biomass/model_editing for the versioned editing interface and preservation of line-based parameters.

ParameterTypeDescription
path *stringExisting UTF-8 Text2Model file; contents are copied, never executed as a Python package.
biological_contextOptional agent-supplied biological context for the imported model.
line_evidenceComplete optional evidence links for imported document lines; omitted clears prior line links.
session_idBioMASS session ID; omit to use the active default.

inspect_reactions

Inventory stable reaction IDs, text lines, and generated parameter names. Imported reactions initially use IDs such as line_3. This tool also works on an empty model or a document awaiting dependency repairs.

ParameterTypeDescription
check_generationbooleanCompile in a disposable worker to report actual species, parameters, and dependencies.
session_idBioMASS session ID; omit to use the active default.
timeout_secondsintegerWorker timeout in seconds, from 1 to 300; default 60.

build_reactions

Construct or edit reactions from a conversation, network, or existing file. Read docs://biomass/model_editing for template participants and examples. Scientific interpretation belongs to the calling agent. Metadata is optional; new records are unreviewed unless the agent explicitly annotates them.

ParameterTypeDescription
edits *arrayExplicit add/update/remove operations. Templates generate syntax; statement accepts raw Text2Model, including @rxn custom kinetics.
expected_version *integerDocument version returned by inspect_model/inspect_reactions; stale edits are rejected.
append_linesDocument-mode directives/comments to append; reactions belong in edits.
configurationOptional complete replacement configuration, applied in the same transaction.
line_editsDocument-mode directive/comment replacements by original line number; None text leaves a removal comment.
previewbooleanValidate and report the proposed change without changing session state. False applies the batch atomically.
prune_unused_valuesbooleanExplicitly remove numerical defaults for symbols absent after editing; dependent expressions/conditions still require explicit repair.
session_idBioMASS session ID; omit to use the active default.
species_mappingOptional network node IDs to species names. A participant can name a node if it maps to exactly one species.
timeout_secondsintegerWorker timeout in seconds, from 1 to 300; default 60.

configure_model

Configure observables, numerical defaults, conditions, time, and unit provenance.

ParameterTypeDescription
configuration *Complete replacement configuration. In document mode, structural directives belong in the text.
session_idBioMASS session ID; omit to use the active default.

inspect_model

Inspect authoring state, evidence, retained revisions, and edge coverage.

ParameterTypeDescription
session_idBioMASS session ID; omit to use the active default.

validate_model

Report syntax and optional generation validity independently of scientific validity.

ParameterTypeDescription
check_generationbooleanAlso compile and import in a disposable worker; no retained model revision.
session_idBioMASS session ID; omit to use the active default.
timeout_secondsintegerWorker timeout in seconds, from 1 to 300; default 60.

generate_model

Generate a new immutable BioMASS revision from the current authoring state.

ParameterTypeDescription
session_idBioMASS session ID; omit to use the active default.
timeout_secondsintegerWorker timeout in seconds, from 1 to 300; default 60.

visualize_model

Visualize a generated species graph without requiring simulation or calibration.

ParameterTypeDescription
formatstringGraph output format; HTML is interactive and does not open a browser.
optionsBounded layout and interactive-control options.
revisionGenerated revision ID; omit for the current revision. Edits require regeneration or explicit selection of an older revision.
session_idBioMASS session ID; omit to use the active default.
timeout_secondsintegerWorker timeout in seconds, from 1 to 300; default 60.

export_model_graph

Export BioMASS's directed species projection as DOT.

ParameterTypeDescription
revisionGenerated revision ID; omit for the current revision. Edits require regeneration or explicit selection of an older revision.
session_idBioMASS session ID; omit to use the active default.
timeout_secondsintegerWorker timeout in seconds, from 1 to 300; default 60.

run_simulation

Run bounded exploratory simulation, recording every condition's numerical values.

ParameterTypeDescription
scenario *Named numerical scenario; explicitly opt into placeholders if any remain.
revisionGenerated revision ID; omit for the current revision. Edits require regeneration or explicit selection of an older revision.
session_idBioMASS session ID; omit to use the active default.
timeout_secondsintegerWorker timeout in seconds, from 1 to 300; default 60.

export_model_bundle

Export a selected revision, evidence, graphs, runs, and reproduction script.

ParameterTypeDescription
revisionGenerated revision ID; omit for the current revision. Edits require regeneration or explicit selection of an older revision.
session_idBioMASS session ID; omit to use the active default.

list_generated_files

List all nested session artifacts, including snapshots and diagnostics.

ParameterTypeDescription
session_idBioMASS session ID; omit to use the active default.

list_artifact_sessions

Discover artifact sessions saved on disk across server restarts.

clean_generated_files

Delete generated artifacts while preserving authoring state and source lineage.

ParameterTypeDescription
session_idBioMASS session ID; omit to use the active default.