pyphi.mcp.server#
The PyPhi Model Context Protocol server.
Defines the FastMCP application, the tools that wrap PyPhi’s public API, and the
main entry point for the pyphi-mcp console script. The teaching
resources and prompts are registered from pyphi.mcp.resources and
pyphi.mcp.prompts.
The server holds built substrates and analysis results in an in-process registry keyed by short handles, so a substrate is built once and then explored across many states and subsets without resending its transition probability matrix.
Module attributes
Largest state count for which a substrate summary carries its TPM as text. |
|
an integer, or a float with no fractional part (some clients send |
Functions
|
Run an IIT analysis of a substrate in a state. |
|
Build a substrate from a transition probability matrix and return a handle. |
|
Report a campaign's task ledger and refresh its resubmission list. |
|
Reassemble a campaign's outputs into a sweep result. |
|
Read or set the server's parallelization configuration. |
|
Describe a substrate previously loaded or built. |
|
Count the workload of an analysis before running it. |
|
Inspect a stored result, or one part of it. |
List the built-in example substrates that |
|
|
Load a built-in example substrate and return a handle for it. |
|
The |
|
Render one of PyPhi's built-in visualizations. |
|
Materialize a sweep as an HTCondor campaign directory. |
|
Materialize one system's scoped CES analysis as an HTCondor campaign. |