Enterprise DNAEnterprise DNA
MMCP ServersDeveloperlow

dabito/hledit-mcp

by Various

MCP server for hledit hash-anchored file edits. Rejects stale writes before they happen for standard MCP clients.

MCP

dabito/hledit-mcp

Added 3 Sept 2026

#ai-agent#claude-code#claude-desktop#coding-agents#context-safe#cursor#file-editing#hash-anchored
Catalogue record, not a reviewed recommendation. This record can include automatically collected descriptions and setup details. Confirm important claims with the original source. Explore source-reviewed tools.

Overview

MCP server that exposes hledit hash-anchored file edits to standard MCP clients. It checks the current file state before applying changes and rejects stale writes before they happen. Written in TypeScript.

Best for

Best for
Developers building MCP-based file editing tools that need stale-write protection.

Use cases

  • Edit files with hash-anchored concurrency checks
  • Prevent overwriting files that changed since read
  • Integrate hledit into MCP-based tooling

How to use

Install

claude mcp add hledit -- npx -y hledit-mcp

Tools exposed

  • HLEDIT_BIN
  • HLEDIT_CWD
  • HLEDIT_MCP_DIFF
  • HLEDIT_MCP_DIFF_MAX_LINES
  • HLEDIT_MCP_DIFF_CONTEXT
  • HLEDIT_MCP_DIFF_MAX_CELLS
  • end_anchor

Clients listed in this record (not verified here)

Claude Desktop, Claude Code, Cursor

Notes

1 stars on GitHub. Last updated 2026-07-14. Licensed MIT.

Pros

  • Rejects stale writes before they occur
  • Works with standard MCP clients
  • Hash-anchored edits reduce race conditions

Cons

  • Very early stage with only 1 GitHub star
  • Limited community validation and adoption
  • Requires an MCP client to be useful
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.