MCP server overview
Aerandil ships a first-class Model Context Protocol server (protocol revision
2025-11-25, negotiating down to 2025-06-18 for older hosts). It turns the
same governed ontology the REST API serves into a surface an AI agent can drive
directly — no glue code, no hand-written tool wrappers.
What it exposes
Section titled “What it exposes”-
Every registered action is a typed MCP
tool. The tool’s input schema is the action’s schema, so an agent gets the same validation the REST API enforces. Applyapply_rate_recommendationorassemble_package_saleas a tool call. -
Every tool carries behaviour annotations — read-only and mutating hints — so a host can gate its confirmation UX before a call ever reaches the engine.
-
Every object type is a
resource, addressable with a URI template:aerandil://object/<type>/<id>An agent can read a
bookingor afolioby URI without a bespoke endpoint.
Transports
Section titled “Transports”The server speaks two transports from one implementation:
- stdio — for local hosts that launch the server as a subprocess (editors, desktop agents).
- streamable HTTP — for networked hosts, sharing the API’s auth.
The library is host-agnostic; the production host binary reuses the REST API’s engine, store, and auth wiring rather than duplicating it, so the MCP surface and the HTTP surface can never drift apart.
Authentication
Section titled “Authentication”The MCP server authenticates against the same OAuth 2.1 identity as the REST API — an agent is bound by exactly the action scopes its credentials carry. See Authentication for how scopes map to actions.