aion-authoring-langgraph. The package builds on
aion-mcp and returns standard LangChain MCP adapter configuration or LangChain-compatible tools.
Use MCP in LangGraph when your agent needs tools exposed by the Aion control plane or by a runtime
capability, such as the MCP server attached to the distribution that delivered the request.
MCP surfaces
| Surface | How to reference it | When to use it |
|---|---|---|
| Global control plane | CapabilityReference.global_mcp() | Stable Aion tools such as tool search and execute. |
| Fixed capability | CapabilityReference.mcp(...) | Subject and key are known at setup time. |
| Runtime capability | RuntimeCapabilityReference.primary_mcp(...) | Subject is known after a request arrives. |
include_control_plane flag.
Load tools inside a graph node
Use this pattern when tool availability depends on the incoming request.CapabilitySubjectSource.INCOMING_DISTRIBUTION means the incoming request distribution from the
Aion Distribution extension payload. It is resolved from the current request’s
AionRuntimeContext, not from global process state.
Build a MultiServerMCPClient config
LangChain’s MCP adapter accepts a mapping of server names to transport config. Aion can generate
that mapping with authenticated headers.
Fixed capability reference
Use a fixed reference when the endpoint is known at setup time.runtime_capability_references. Pass an explicit principal_selector when no runtime context is
available and the endpoint must be scoped to a runtime principal.