AgentAnycast for LangChain
io.github.agentanycast/agentanycast
P2P runtime for A2A protocol. Encrypted agent communication with zero-config NAT traversal.
client:LangChain
transport:stdio
runtime:npm
Install AgentAnycast in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"agentanycast": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "agentanycast"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs