Claude 文本编辑器 MCP 服务器
Claude 内置文本编辑器工具的开源实现,作为模型上下文协议(MCP) 服务器。此软件包提供与Claude 内置文本编辑器工具相同的功能,允许您通过标准化 API 查看、编辑和创建文本文件。
特征
与 Claude 文本编辑器相同的 API :实现与 Claude 内置文本编辑器工具完全相同的界面
MCP 服务器实现:遵循 AI 工具集成的模型上下文协议标准
文件操作:
使用可选的行范围规范查看文件内容
创建新文件
替换现有文件中的文本
在特定行号处插入文本
撤消之前的编辑
支持的 Claude 文本编辑器版本
该软件包实现了与内置 Claude 文本编辑器工具版本等效的工具:
text_editor_20241022
(克劳德 3.5 十四行诗)text_editor_20250124
(克劳德 3.7 十四行诗)
但使用工具名称“text_editor”可以避免与内置的Claude工具发生名称冲突。
安装
用法
启动服务器
在 Claude Desktop 中配置
工具命令
看法
查看文件或目录的内容。
创造
创建具有指定内容的新文件。
字符串替换
替换文件中的文本。
插入
在特定行插入文本。
撤消编辑
恢复对文件所做的最后编辑。
发展
先决条件
Node.js 18+
下午
设置
脚本
pnpm build
:构建 TypeScript 项目pnpm lint
:运行带有自动修复功能的 ESLintpnpm format
:使用 Prettier 格式化代码pnpm clean
:删除构建工件pnpm clean:all
:删除构建工件和 node_modulespnpm test
:运行测试pnpm test:coverage
:运行带有覆盖率报告的测试
测试
本项目采用Vitest进行测试。
运行测试:
测试覆盖率报告将在coverage
目录中生成。
执照
麻省理工学院
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
分叉存储库
创建你的功能分支(
git checkout -b feature/amazing-feature
)提交您的更改(
git commit -m 'Add some amazing feature'
)推送到分支(
git push origin feature/amazing-feature
)打开拉取请求
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Claude内置文本编辑器工具版本的开源实现:
text_editor_20241022(克劳德 3.5 十四行诗)text_editor_20250124(克劳德 3.7 十四行诗)
Related Resources
Related MCP Servers
- -securityAlicense-qualityA comprehensive code analysis and management tool that integrates with Claude Desktop to analyze code at project and file levels, helping adapt changes to projects intelligently.Last updated -39MIT License
- -securityFlicense-qualityA utility toolkit that enhances Claude's code interaction capabilities by providing seamless tools for Java code analysis, manipulation, and testing workflows.Last updated -3
- -securityAlicense-qualityA toolkit for managing Claude desktop app extension configurations, enabling features like Brave search, file operations, Git/GitHub integration, shell access, web scraping, HTTP requests, AWS documentation search, and Obsidian note management.Last updated -1MIT License
- -securityFlicense-qualityEnables text manipulation in Adobe InDesign documents via Claude Desktop by providing tools to add, update, remove, and retrieve text content through ExtendScript API.Last updated -1