
submersible/mcp-hashline-edit-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP 서버는 hashline 기반 파일 편집을 제공합니다. - 콘텐츠 hashes와 line-addressed 편집.
개요
MCP 서버는 hashline 기반 파일 편집을 제공합니다. - 콘텐츠 hashes와 line-addressed 편집. oh-my-pi에서 hashline 편집 형식을 기반으로합니다. LLM은 파일, 모든 줄 태그 짧은 콘텐츠 해시를 읽습니다 : 편집 할 때 모델 참조 태그 - "replace line 2:f1", "replace range 1:a3 through 3:0e", "insert after 3:0e". 마지막 읽기 이후 변경된 경우, hashes는 일치하지 않고, corruption의 앞에 거부를 편집합니다. 모델은 변경 사항을 식별하기 위해 오래된 콘텐츠 / Whitespace를 재현 할 필요가 없습니다. Benchmarks 쇼 hashline 경기 또는 가장 모델에 대한 str replace를 이길, 가장 약한 모델은 최대 10x 개선을 얻습니다. - 분 실행 시간 (Bun.hash.xxHash32 라인 해싱) - grep 도구에 대한 PATH에 ripgrep (rg) ~/Library/Application Support/Claude/claude desktop config.json에 추가하십시오: .cursor/mcp.json (프로젝트 루트 또는 글로벌)에 추가:
개요(AI 번역)
MCP 서버는 hashline 기반 파일 편집을 제공합니다. - 콘텐츠 hashes와 line-addressed 편집.
oh-my-pi에서 hashline 편집 형식을 기반으로합니다.
Hashline은 무엇입니까?
LLM은 파일, 모든 줄 태그 짧은 콘텐츠 해시를 읽습니다 :
편집 할 때 모델 참조 태그 - “replace line 2:f1”, “replace range 1:a3] 를 통해 3:0e”, “insert after 3:0e”. 마지막 읽기 이후 변경된 경우, hashes는 일치하지 않고, corruption의 앞에 거부를 편집합니다.
모델은 변경 사항을 식별하기 위해 오래된 콘텐츠 / Whitespace를 재현 할 필요가 없습니다. Benchmarks 쇼 hashline 경기 또는 비트 str_replace] 대부분의 모델에 대 한, 가장 약한 모델은 가장 얻을 (최대 10x 개선).
요구 사항
- 분 런타임 (
Bun.hash.xxHash32) - ripgrep (
rg]) PATH에grep] 도구
설치
사용법
Claude 데스크탑
~/Library/Application Support/Claude/claude_desktop_config.json에 추가:
# # # 커서
.cursor/mcp.json] (프로젝트 루트 또는 글로벌)에 추가:
# 모든 MCP 클라이언트
서버는 stdio에 달합니다:
소스에서
도구
read_file
hashline-prefixed output (LINE:HASH|content])로 파일을 읽으십시오.
| 모수 | 유형 | 묘사 |
|---|
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
mcp-hashline-edit-server
MCP server providing hashline-based file editing — line-addressed edits with content hashes for integrity verification.
Based on hashline edit format from oh-my-pi.
What is Hashline?
LLM reads file, every line tagged with short content hash:
1:a3|function hello() {
2:f1| return "world";
3:0e|}
Model references tags when editing — “replace line 2:f1”, “replace range 1:a3 through 3:0e”, “insert after 3:0e”. If file changed since last read, hashes won’t match, edit rejected before corruption.
Model doesn’t need to reproduce old content/whitespace to identify changes. Benchmarks show hashline matches or beats str_replace for most models, weakest models gain most (up to 10x improvement).
Requirements
Install
npm install mcp-hashline-edit-server
# or
bun add mcp-hashline-edit-server
Usage
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"hashline-edit": {
"command": "bunx",
"args": ["mcp-hashline-edit-server"]
}
}
}
Cursor
Add to .cursor/mcp.json (project root or global):
{
"mcpServers": {
"hashline-edit": {
"command": "bunx",
"args": ["mcp-hashline-edit-server"]
}
}
}
Any MCP client
Server runs over stdio:
bunx mcp-hashline-edit-server
From source
git clone https://github.com/Submerisble/mcp-hashline-edit-server.git
cd mcp-hashline-edit-server
bun install
bun run src/index.ts
Tools
read_file
Read file with hashline-prefixed output (LINE:HASH|content).
| Parameter | Type | Description |
|---|---|---|
path |
string | File path (relative or absolute) |
offset |
number? | Start line (1-indexed) |
limit |
number? | Max lines (default: 2000) |
edit_file
Edit file using hash-verified line references. Four edit variants:
set_line — Replace single line:
{"set_line": {"anchor": "2:f1", "new_text": " return \"universe\";"}}
replace_lines — Replace range:
{"replace_lines": {"start_anchor": "1:a3", "end_anchor": "3:0e", "new_text": "function greet() {\n return \"hi\";\n}"}}
insert_after — Insert after line:
{"insert_after": {"anchor": "1:a3", "text": " // new comment"}}
replace — Fuzzy substring replace (fallback, no hashes needed):
{"replace": {"old_text": "return \"world\"", "new_text": "return \"universe\""}}
| Parameter | Type | Description |
|---|---|---|
path |
string | File path |
edits |
array | Edit operations |
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"hashline-edit": {
"command": "bunx",
"args": ["mcp-hashline-edit-server"]
}
}
}