an.mcp#
The an MCP server: a curated, generated surface over the vocabulary and the capability registry.
ADR 0003 decision 6. The tools are plain functions in an.mcp.tools
(queries, typed edits, long work as start/poll jobs; the bench stays CLI-only);
an.mcp.server.mk_server() projects them with py2mcp. The MCP stack is
an optional extra and is imported only when a server is built:
pip install 'an[mcp]'
python -m an.mcp # serve over stdio
import an never imports this package, and importing it imports no MCP
dependency (a test holds both).
>>> from an.mcp import TOOL_REFS
>>> "an.mcp.tools:vocabulary" in TOOL_REFS
True
Module Attributes
The tools as |
- an.mcp.TOOL_REFS: tuple[str, ...] = ('an.mcp.tools:vocabulary', 'an.mcp.tools:vocabulary_entry', 'an.mcp.tools:scene_schema', 'an.mcp.tools:validate_scene', 'an.mcp.tools:describe_character', 'an.mcp.tools:applicable_methods', 'an.mcp.tools:why_not_method', 'an.mcp.tools:apply_patch', 'an.mcp.tools:start_render', 'an.mcp.tools:job_status')#
The tools as
module:functionreferences (py2mcp.mk_mcp_from_refs’s input).
Modules