Skip to content
LangChain

edge diagnostics x402 for LangChain

io.github.seob5285-alt/edge-diagnostics-x402

Edge-based network diagnostic utility checking host latency, gated via x402 payment rails.

client:LangChain transport:streamable-http

Install edge diagnostics x402 in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "edge-diagnostics-x402": {
            "transport": "streamable_http",
            "url": "https://edge-diagnostics-x402.seob5285.workers.dev/v1/diagnose-host",
        }
})

tools = await client.get_tools()

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

edge diagnostics x402 in other clients