Skip to content
LangChain

CanaryGuard 402 for LangChain

io.github.ak10082247-max/canaryguard-402

Deterministic prompt-injection detection & sanitization for AI agents via x402 on Base.

client:LangChain transport:streamable-http tools:1

Install CanaryGuard 402 in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "canaryguard-402": {
            "transport": "streamable_http",
            "url": "https://canaryguard-402.onrender.com/mcp",
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

CanaryGuard 402 in other clients