Skip to content
LangChain

hypelens agent rail for LangChain

io.github.polyparlay/hypelens-agent-rail

Place/cancel/close HL perps via MCP. Agent wallet once, 1bp fills, no sub.

client:LangChain transport:stdio runtime:npm

Install hypelens agent rail in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "hypelens-agent-rail": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@hypelens/hypelens-agent-rail"],
        }
})

tools = await client.get_tools()

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

hypelens agent rail in other clients