annals.mcp#
MCP surface: the same operations as the CLI, from annals.tools, via py2mcp.
Run with python -m annals.mcp (needs pip install 'annals[mcp]'). String refs keep the
core free of any MCP import; the function list is the CLI’s (annals.tools.EFFECTS classifies
each operation), narrowed to the effects the host allows: by default read and write, not the
destructive purge or listen, which spends money.
Module Attributes
the environment variable that widens (or narrows) what the server offers |
Functions
|
Build the MCP server over |
- annals.mcp.ENV_EFFECTS = 'ANNALS_MCP_EFFECTS'#
the environment variable that widens (or narrows) what the server offers
- annals.mcp.mk_server(*, effects=None)[source]#
Build the MCP server over
annals.tools.effects(defaultreadandwrite, or the comma separatedANNALS_MCP_EFFECTS) says which operations to serve;destructiveaddspurge,spendaddslisten(it costs money),fileaddsaggregate --output.