
tumf/mcp-text-editor
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
tumf/mcp-text-editor는 https://github.com/tumf/mcp-text-editor.에서 가져온 MCP 서버 후보입니다.
개요
tumf/mcp-text-editor는 https://github.com/tumf/mcp-text-editor.에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
표준화된 API를 통해 줄 지향 텍스트 파일 편집 기능을 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 토큰 사용을 최소화하기 위해 효율적인 부분 파일 접근을 제공하는 LLM 도구에 최적화되어 있습니다.
Claude.app 사용자를 위한 빠른 시작
이 에디터를 Claude.app 사용하려면, 다음 구성을 프롬프트에 추가하세요:
개요
MCP 텍스트 편집기 서버는 클라이언트-서버 아키텍처에서 안전하고 효율적인 줄 기반 텍스트 파일 작업을 용이하도록 설계되었습니다. 모델 컨텍스트 프로토콜을 구현하여 신뢰할 수 있는 파일 편집과 강력한 충돌 감지 및 해결을 보장합니다. 줄 지향 접근법은 협업 편집 도구, 자동 텍스트 처리 시스템, 또는 여러 프로세스가 텍스트 파일을 안전하게 수정해야 하는 상황과 같이 동기화된 파일 접근이 필요한 애플리케이션에 이상적입니다. 부분 파일 접근 기능은 LLM 기반 도구에 특히 유용하며, 필요한 파일 부분만 불러와 토큰 소모를 줄이는 데 도움을 줍니다.
주요 이점
- 줄 기반 편집 작업
- 라인 범위 명세가 포함된 토큰 효율적인 부분 파일 접근
- LLM 도구 통합에 최적화됨
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP Text Editor Server
A Model Context Protocol (MCP) server that provides line-oriented text file editing capabilities through a standardized API. Optimized for LLM tools with efficient partial file access to minimize token usage.
Quick Start for Claude.app Users
To use this editor with Claude.app, add the following configuration to your prompt:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"text-editor": {
"command": "uvx",
"args": [
"mcp-text-editor"
]
}
}
}
Overview
MCP Text Editor Server is designed to facilitate safe and efficient line-based text file operations in a client-server architecture. It implements the Model Context Protocol, ensuring reliable file editing with robust conflict detection and resolution. The line-oriented approach makes it ideal for applications requiring synchronized file access, such as collaborative editing tools, automated text processing systems, or any scenario where multiple processes need to modify text files safely. The partial file access capability is particularly valuable for LLM-based tools, as it helps reduce token consumption by loading only the necessary portions of files.
Key Benefits
- Line-based editing operations
- Token-efficient partial file access with line-range specifications
- Optimized for LLM tool integration
- Safe concurrent editing with hash-based validation
- Atomic multi-file operations
- Robust error handling with custom error types
- Comprehensive encoding support (utf-8, shift_jis, latin1, etc.)
Features
- Line-oriented text file editing and reading
- Smart partial file access to minimize token usage in LLM applications
- Get text file contents with line range specification
- Read multiple ranges from multiple files in a single operation
- Line-based patch application with correct handling of line number shifts
- Edit text file contents with conflict detection
- Flexible character encoding support (utf-8, shift_jis, latin1, etc.)
- Support for multiple file operations
- Proper handling of concurrent edits with hash-based validation
- Memory-efficient processing of large files
Requirements
- Python 3.11 or higher
- POSIX-compliant operating system (Linux, macOS, etc.) or Windows
- Sufficient disk space for text file operations
- File system permissions for read/write operations
- Install Python 3.11+
pyenv install 3.11.6
pyenv local 3.11.6
- Install uv (recommended) or pip
curl -LsSf https://astral.sh/uv/install.sh | sh
설치
uvx mcp-text-editor설정
{
"mcpServers": {
"text-editor": {
"command": "uvx",
"args": [
"mcp-text-editor"
]
}
}
}