Skip to content
LangChain

haplane for LangChain

io.github.leonting1010/haplane

鸿蒙 HAP 签名部署 MCP:面向鸿蒙应用开发者,真机调试一键签装,也走华为邀测/上架。中性工具+可订阅源,本地 stdio。

client:LangChain transport:stdio runtime:npm

Install haplane in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "haplane": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "haplane"],
        }
})

tools = await client.get_tools()

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

haplane in other clients