pyphi.mcp.install#
Registration of the PyPhi MCP server with a client, and of the PyPhi facts an assistant needs before it acts.
pyphi-mcp install writes two things: the server’s entry in the client’s
Model Context Protocol configuration, and a short block of PyPhi facts in the
project’s agent instruction file. A client may or may not show a server’s
instructions to the assistant, and an assistant driving PyPhi from a shell
never reads them, while a project’s instruction file is in context before the
first tool call.
Nothing here imports the optional mcp dependency.
Module attributes
The instruction file the block is written to. |
|
The file Claude Code reads, and the line that points it at the block. |
|
The facts that go wrong unaided, and a pointer to the rest of the reference. |
Functions
|
The instruction block, delimiters included. |
The |
|
|
Where |
|
Make sure Claude Code loads the instruction file. |
|
Register the server and write the instruction block. |
|
Whether |
|
The client configuration entry that launches the server. |
|
Remove the instruction block from |
|
Drop the |
|
Drop the |
|
Carry out an |
|
Undo |
|
Write the instruction block to |
|
Add the |