Server
server
AXM MCP Server — Streamable HTTP transport.
Reuses the FastMCP instance from mcp_app and runs it over HTTP instead of stdio, enabling a single persistent process for all conversations.
health_check(request)
async
Return server health with registered tool count.
Reads the count from FastMCP's public list_tools() enumeration,
which reflects exactly what is registered on the instance in BOTH
facade and legacy modes — no private _tool_manager access and no
parallel counter that could drift from the registration seam.
Source code in packages/axm-mcp/src/axm_mcp/server.py
serve(host='127.0.0.1', port=None)
Start the MCP server with Streamable HTTP transport.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
host
|
str
|
Bind address (default 127.0.0.1). |
'127.0.0.1'
|
port
|
int | None
|
Bind port. Falls back to AXM_MCP_PORT env var, then 9427. |
None
|