aion-authoring-langgraph package and are imported from
aion.langgraph.authoring.mcp or directly from aion.langgraph.authoring.
They are thin framework bindings over the shared aion-mcp endpoint helpers. The package does not
own Aion control-plane addressing models; those live in aion-api-client.
Install
langchain-mcp-adapters when actually loading MCP tools or constructing a
MultiServerMCPClient.
Exports
AionLangGraphMcpResolver
Reusable resolver for building LangChain MCP server config, constructing a client, or loading tools.
| Parameter | Purpose |
|---|---|
capability_references | Explicit subject-kind-key references, including the global control plane. |
runtime_capability_references | Templates resolved from AionRuntimeContext at request time. |
principal_selector | Optional explicit principal selector for all endpoints. |
base_url | Optional Aion API base URL override. |
jwt_manager | Optional async token manager. |
sync_jwt_manager | Optional synchronous token manager. |
Methods
| Method | Returns |
|---|---|
await resolver.server_config(context) | MultiServerMCPClient server config. |
resolver.server_config_sync(context) | Synchronous server config. |
await resolver.load_tools(context) | LangChain-compatible tools from all resolved servers. |
resolver.client(context) | MultiServerMCPClient instance from synchronous endpoint config. |
ValueError.
aion_langgraph_mcp_server_config
Builds the dictionary expected by langchain_mcp_adapters.client.MultiServerMCPClient.
transport, url, and headers.
For remote Aion MCP endpoints, transport is http.
load_aion_mcp_tools
Loads tools directly from the resolved endpoints.
aion_langgraph_mcp_client
Creates a MultiServerMCPClient using synchronous endpoint construction.
Runtime context source
The LangGraph helpers do not read from global or thread-local state. Pass the currentAionRuntimeContext explicitly, usually from LangGraph’s Runtime[AionRuntimeContext] object.