Open source implementation of Claude's built-in text editor tool, letting an agent view, create and edit files through MCP.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add text-editor -- npx -y mcp-server-text-editor~/.codex/config.toml
[mcp_servers.text-editor]
command = "npx"
args = ["-y", "mcp-server-text-editor"]
# codex mcp add text-editor -- npx -y mcp-server-text-editor~/.cursor/mcp.json
{
"mcpServers": {
"text-editor": {
"command": "npx",
"args": [
"-y",
"mcp-server-text-editor"
]
}
}
}.vscode/mcp.json
{
"servers": {
"text-editor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-server-text-editor"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"text-editor": {
"command": "npx",
"args": [
"-y",
"mcp-server-text-editor"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"text-editor": {
"command": "npx",
"args": [
"-y",
"mcp-server-text-editor"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"text-editor": {
"command": "npx",
"args": [
"-y",
"mcp-server-text-editor"
]
}
}
}