Skip to content

Mcp app

mcp_app

AXM MCP Server — discovery shell with a compact facade.

Discovers all AXMTool entry points from installed packages (e.g. axm, axm-bib, axm-formal). By default it exposes them through a compact facade (axm_search / axm_describe / axm_call / axm_capabilities) plus a small hot path of tools that opt in via expose_directly = True — keeping the tools/list payload small.

Set AXM_MCP_FACADE=0 to fall back to the legacy behaviour (register every discovered tool directly), which makes the bascule reversible.

Imports from axm core are limited to axm.tools.base (shared types + tool_metadata) — no business-tool implementations are imported here.

main(*, http=False)

Run the MCP server.

Parameters:

Name Type Description Default
http bool

When True, enable HTTP-mode warnings for implicit paths.

False
Source code in packages/axm-mcp/src/axm_mcp/mcp_app.py
Python
def main(*, http: bool = False) -> None:
    """Run the MCP server.

    Args:
        http: When True, enable HTTP-mode warnings for implicit paths.
    """
    _wrapping._HTTP_MODE = http
    mcp.run()