Loading...
uvx mcp-text-editor{
"mcpServers": {
"text-editor": {
"command": "uvx",
"args": [
"mcp-text-editor"
]
}
}
}get_text_file_contentsRetrieves the content of a text file, optionally specifying a line range.
Read-only operation, no modification of files.
patch_text_file_contentsApplies patches to a text file, allowing for modifications with conflict detection.
Modifies file content, but includes hash-based validation for conflict detection.
The Text Editor Server is relatively safe when used with appropriate file system permissions and careful input validation. However, the ability to write to arbitrary files makes it risky if not properly secured. It is crucial to restrict access to authorized directories and sanitize user inputs to prevent potential security vulnerabilities.