Skip to content
LangChain

hledit MCP for LangChain

io.github.dabito/hledit-mcp

Hash-anchored file edits for MCP clients. Rejects stale writes before they happen.

client:LangChain transport:stdio runtime:npm

Install hledit MCP in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

hledit MCP in other clients