DG

dimitar-grigorov/mcp-file-tools

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

30 stars 10 forks 품질 85 트렌드 20GPL-3.0

비-UTF-8 텍스트 파일 작업을위한 MCP 서버 : 바이트에서 인코딩을 감지하고 모델 UTF-8을 핸즈하고 BOM 및 CRLF / LF intact로 원래 인코딩으로 다시 작성합니다.

개요

Claude는 Настройки — not ???? Íàñòðêè. MCP 서버는 UTF-8이 아닌 텍스트에서 파일 작업. 그것은 그것의 연장 보다는 오히려 파일의 바이트에서 인코딩을 검출하고, 모형 UTF-8를 손을 잡고, 본래 기호화에서 다시 쓰기 - BOM 및 CRLF/LF intact, 아직도 어떤 레거시 공구도 파일 소유합니다. - Cyrillic (CP1251, KOI8-R/U, CP866/855), Windows-125x, ISO-8859-x, DOS 코드 페이지, MacRoman, UTF-16/UTF-32, CJK (GBK, Big5, Shift JIS, EUC-JP/KR) (전체 목록) - — edit file, grep text files and search files decode the same way, not just read and write and write a charpt man, UTF-16, UTF-16/UTF-16/UTF-32, UTF-16/UTF-16/UTF-16/UTF-32, UTF-16/UTF-16/UTF-32, UTF-16/UTF-16/UTF-32, UTF-16/UTF-16/UTF-16/UTF-16/UTF-16/UTF-32, UTF-32, UTF-16/UTF-16/UTF-16/UTF-16/UTF-32, UTF-16/UTF-16/UTF-16/UTF-16/UTF-32, UTF-16/UTF-16/ Cyrillic UI 텍스트, VB6 양식, 로컬 콘텐츠와 함께 레거시 PHP / HTML 및 INI 또는 데이터 파일이있는 Delphi / Pascal 단위 ...

개요(AI 번역)

Claude는 Настройки - ???? 또는 Íàñòðîéêè를 참조하십시오.

MCP 서버는 UTF-8이 아닌 텍스트에서 파일 작업. 그것은에서 인코딩을 감지 그것의 연장 보다는 오히려 파일의 바이트, 손은 모형 UTF-8를, 씁니다 원래 인코딩 — BOM 및 CRLF/LF intact, 여전히 어떤 레거시와 호환 도구는 파일을 소유합니다.

  • ** 45 인코딩, 읽기 및 쓰기 ** - Cyrillic (CP1251, KOI8-R/U, CP866/855), Windows-125x, ISO-8859-x, DOS 코드 페이지, MacRoman, UTF-16/UTF-32, CJK (GBK, Big5, Shift JIS, EUC-JP/KR) (전체 목록)
  • ** 전체 도구 세트에서 인코딩 인식 ** — edit_file, grep_text_files] 과 search_files 같은 방법을 디코딩, 그냥 읽고 쓰기
  • **detect_encoding]는 charset, 자신감을 보고 BOM, 그래서 garbled 텍스트가 diagnosable된다
  • BOM 및 라인 엔딩은 UTF-16을 포함한 일류이며, naive byte-level는 파일을 손상시킵니다.
  • Sandboxed - 모든 경로, symlink 및 junction 대상이 포함 된, 당신이 허용 한 감독에 대해 확인

: Cyrillic UI 텍스트, VB6 양식, 레거시 PHP / HTML을 가진 Delphi/Pascal 단위

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP File Tools

Claude sees Настройки — not ???? or Íàñòðîéêè.

MCP server for file operations on text that isn’t UTF-8. It detects the encoding from the file’s bytes rather than its extension, hands the model UTF-8, and writes back in the original encoding — BOM and CRLF/LF intact, still byte-compatible with whatever legacy tool owns the file.

  • 45 encodings, read and write — Cyrillic (CP1251, KOI8-R/U, CP866/855), Windows-125x, ISO-8859-x, DOS code pages, MacRoman, UTF-16/UTF-32, CJK (GBK, Big5, Shift_JIS, EUC-JP/KR) (full list)
  • Encoding-aware across the whole tool set — edit_file, grep_text_files and search_files decode the same way, not just read and write
  • Detection you can inspect — detect_encoding reports the charset, a confidence score and any BOM, so garbled text becomes diagnosable
  • BOM and line endings are first-class — including on UTF-16, where a naive byte-level rewrite corrupts the file
  • Sandboxed — every path, symlink and junction targets included, is checked against the directories you allowed

Built for: Delphi/Pascal units with Cyrillic UI text, VB6 forms, legacy PHP/HTML with localized content, and INI or data files whose encoding you can’t tell from the filename.

User: Read config.ini and change the title to "Настройки"
Claude: [read_text_file → cp1251 detected] → [edits UTF-8] → [write_file → back to cp1251]

PRs welcome and merged fast — no CLA, no style review, one-line fixes count. Forked this to fix something? Please send it back instead.

Installation

claude plugin marketplace add dimitar-grigorov/mcp-file-tools
claude plugin install mcp-file-tools

Inside a session: /plugin marketplace add … and /plugin install ….

Requires Node.js 18+ on your PATH. The launcher is a Node script

GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector go run ./cmd/mcp-file-tools -- /path/to/allowed/dir
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "file-tools": { "command": "C:\\Users\\YOUR_NAME\\AppData\\Local\\Programs\\mcp-file-tools\\mcp-file-tools.exe", "args": ["D:\\Projects", "C:\\Users\\YOUR_NAME\\Documents"] } } }