Skip to content
LangChain

Constraint Runtime for LangChain

io.github.tanbopiao/constraint-runtime

Agent constraint runtime: ten governance components plus a config-driven orchestration harness.

client:LangChain transport:stdio runtime:pypi

Install Constraint Runtime in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "constraint-runtime": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["constraint-runtime"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

Constraint Runtime in other clients