Skip to content
LangChain

hmr for LangChain

io.github.promplate/hmr

Hot Module Reload (HMR) for Python with reactive programming and MCP tools

client:LangChain transport:streamable-http

Install hmr in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "hmr": {
            "transport": "streamable_http",
            "url": "https://promplate.github.io/pyth-on-line/hmr/mcp",
        }
})

tools = await client.get_tools()

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

hmr in other clients