SSyncDev

Hledit MCP Server

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

Local serverstdioTypeScript

What is the Hledit MCP Server?

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

The short version

hledit-mcp is an MCP server exposing hledit's hash-anchored file edits to standard MCP clients such as Claude Code, Claude Desktop, and Cursor.

What it needs from you

  • Go 1.21+ to install the hledit CLI (or a prebuilt binary on PATH) - Node.js 18+ - An MCP-compatible client

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
readRead annotated lines with LN#HASH anchors
editApply a single replace/insert/delete/replace-range
batchApply multiple anchor-referenced edits in one call
pathstring
offsetnumber
limitnumber
contextnumber

How to install the Hledit MCP Server

{
  "mcpServers": {
    "hledit": {
      "command": "npx",
      "args": ["-y", "hledit-mcp"],
      "env": {
        "HLEDIT_CWD": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Go 1.21+ to install the hledit CLI (or a prebuilt binary on PATH) - Node.js 18+ - An MCP-compatible client
VariableDescriptionRequired
HLEDIT_CWDConfiguration value read at startup.Optional

Example prompts to try

  • “Use Hledit MCP to Variable.”
  • “Use Hledit MCP to HLEDIT BIN.”
  • “Use Hledit MCP to HLEDIT CWD.”

Frequently asked questions

Hash-anchored file edits for MCP clients. Rejects stale writes before they happen. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.