Skip to content
LangChain

agent runtime guard for LangChain

io.github.dshcorrectover/agent-runtime-guard

Agent 运行时全栈拦截: allow/deny tool calls, Ed25519 receipts, blocks RCE, theft, SSRF, injection. stdio.

client:LangChain transport:stdio runtime:npm

Install agent runtime guard in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "agent-runtime-guard": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "agent-runtime-guard"],
        }
})

tools = await client.get_tools()

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

agent runtime guard in other clients