gateway for LangChain
io.github.bolyra/gateway
MCP auth gateway: verify agent identity, enforce per-tool permissions, block replays, emit receipts.
client:LangChain
transport:stdio
runtime:npm
Install gateway in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"gateway": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@bolyra/gateway"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs