bray for LangChain
dev.forgesworn/bray
Trust-aware Nostr for AI agents -- 235 tools covering social, DMs, zaps, trust, and identity
client:LangChain
transport:stdio
runtime:npm
Install bray in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"bray": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "nostr-bray"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs