BM

bhouston/mcp-server-text-editor

Developer tools

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

36 stars 6 forks 품질 63 트렌드 12MIT

Claude 내장 텍스트 편집기 도구의 오픈 소스 구현

개요

Claude 내장 텍스트 편집기 도구의 오픈 소스 구현 모델 Context Protocol (MCP) 서버. 이 패키지는 Claude의 내장 텍스트 편집기 도구와 동일한 기능을 제공하여 표준 API를 통해 텍스트 파일을 볼 수 있습니다. - : Claude의 내장 텍스트 편집기 도구와 동일한 인터페이스를 구현 - : AI 도구 통합을위한 모델 Context 프로토콜 표준을 따르십시오 - 옵션 라인 범위 사양이있는 파일 내용을보기 - 새로운 파일을 생성 - 기존 파일에 텍스트를 대체 - 특정 라인 번호에서 텍스트를 삽입 - 이전 편집 이 패키지는 내장 된 Claude 텍스트 편집기 도구 버전에 해당 도구를 구현합니다. - text editor 20241022 (Claude 3.5 Sonnet) - text editor 20250124 (Claude 3.7 Sonnet) 하지만 도구 이름 'text editor'를 사용하여 내장 된 Claude 도구로 이름을 충돌을 방지합니다. 파일이나 디렉토리의 내용을 볼 수 있습니다. 지정된 콘텐츠로 새 파일을 만듭니다.

개요(AI 번역)

Claude 내장 텍스트 편집기 도구의 오픈 소스 구현 모델 Context Protocol (MCP) 서버. 이 패키지는 Claude의 내장 텍스트 편집기 도구와 동일한 기능을 제공하여 표준 API를 통해 텍스트 파일을 볼 수 있습니다.

특징

  • ** Claude의 Text Editor에 대한 ID API ** : Claude의 내장 텍스트 편집기 도구와 정확히 동일한 인터페이스 구현
  • MCP Server 구현: AI 툴 통합을 위한 Model Context Protocol 표준을 따르십시오.
  • ** 파일 운영**:
  • 선택적인 선 범위 명세를 가진 파일 내용을 전망하십시오
  • 새 파일 만들기
  • 기존 파일에 텍스트를 대체
  • 특정 라인 번호에 텍스트 삽입
  • 이전 편집

Supported Claude 텍스트 편집기 버전

이 패키지는 내장 된 Claude 텍스트 편집기 도구 버전에 해당 도구를 구현합니다.

  • text_editor_20241022 (클래드 3.5 Sonnet)
  • text_editor_20250124 (클래드 3.7 Sonnet)

하지만 도구 이름 'text editor’를 사용하여 내장 된 Claude 도구로 이름을 충돌을 방지합니다.

설치

사용법

서버 시작

Claude 데스크톱에서 구성

도구 명령

보기

파일이나 디렉토리의 내용을 볼 수 있습니다.

만들기

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

README

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

Claude Text Editor MCP Server

An open-source implementation of the Claude built-in text editor tool as a Model Context Protocol (MCP) server. This package provides the same functionality as Claude’s built-in text editor tool, allowing you to view, edit, and create text files through a standardized API.

Features

  • Identical API to Claude’s Text Editor: Implements the exact same interface as Claude’s built-in text editor tool
  • MCP Server Implementation: Follows the Model Context Protocol standard for AI tool integration
  • File Operations:
    • View file contents with optional line range specification
    • Create new files
    • Replace text in existing files
    • Insert text at specific line numbers
    • Undo previous edits

Supported Claude Text Editor Versions

This package implements an equivalent tool to the built-in Claude text editor tool versions:

  • text_editor_20241022 (Claude 3.5 Sonnet)
  • text_editor_20250124 (Claude 3.7 Sonnet)

But using the tool name ‘text_editor’ to avoid name conflicts with built-in Claude tools.

Installation

# Install from npm
npm install mcp-server-text-editor

# Or with pnpm
pnpm add mcp-server-text-editor

Usage

Starting the Server

# Using npx
npx -y mcp-server-text-editor

# Or if installed globally
mcp-server-text-editor

Configuring in Claude Desktop

{
  "mcpServers": {
    "textEditor": {
      "command": "npx",
      "args": ["-y", "mcp-server-text-editor"]
    }
  }
}

Tool Commands

View

View the contents of a file or directory.

{
  "command": "view",
  "path": "/path/to/file.js",
  "view_range": [1, 10] // Optional: Show lines 1-10 only
}

Create

Create a new file with the specified content.

{
  "command": "create",
  "path": "/path/to/file.js",
  "file_text": "console.log('Hello, world!');"
}

String Replace

Replace text in a file.

{
  "command": "str_replace",
  "path": "/path/to/file.js",
  "old_str": "console.log('Hello, world!');",
  "new_str": "console.log('Hello, Claude!');"
}

Insert

Insert text at a specific line.

{
  "command": "insert",
GitHub에서 전체 README 보기

설치

npx -y mcp-server-text-editor
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "textEditor": { "command": "npx", "args": ["-y", "mcp-server-text-editor"] } } }