Skip to main content
The LangGraph MCP helpers live in the 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

The helpers require 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.

Methods

Runtime references require a context. If a runtime reference is configured and no context is supplied, the helper raises ValueError.

aion_langgraph_mcp_server_config

Builds the dictionary expected by langchain_mcp_adapters.client.MultiServerMCPClient.
The config uses Aion endpoint names as keys. Each value contains transport, url, and headers. For remote Aion MCP endpoints, transport is http.

load_aion_mcp_tools

Loads tools directly from the resolved endpoints.
This is useful when the graph or agent is constructed after the Aion runtime context exists.

aion_langgraph_mcp_client

Creates a MultiServerMCPClient using synchronous endpoint construction.
Use the lower-level server-config helper when you need to control client lifecycle yourself.

Runtime context source

The LangGraph helpers do not read from global or thread-local state. Pass the current AionRuntimeContext explicitly, usually from LangGraph’s Runtime[AionRuntimeContext] object.