Skip to content
LangChain

Janus Pay for LangChain

io.github.sirbiscuits1/janus-pay

Janus Pay for agents: take payments that settle in BSV, refund them, and pay x402 paywalls.

client:LangChain transport:stdio runtime:npm

Install Janus Pay in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "janus-pay": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@janusprotocol/mcp"],
        }
})

tools = await client.get_tools()

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

Janus Pay in other clients