MCP Text Editor Server provides a Python-based interface for AI assistants to manipulate text files through a structured editing workflow. Built with FastMCP, it implements a two-step edit process with content verification using SHA-256 hashing to prevent conflicts during concurrent edits. The server offers tools for file management, content access, text search, and syntax validation for Python and JavaScript files. It enforces safety through line limits and automatic syntax checking before applying changes, making it ideal for collaborative code editing where multiple agents need controlled access to modify source files.
まだレビューはありません. 最初のレビューを投稿しましょう!
会話に参加するにはサインインしてください
Sets the current file to work with. Parameters: filepath (str): Absolute path to the file.
Reads full text from the current file. Each line is prefixed with its line number.
Reads text from the current file from start line to end line. Parameters: start (int): Start line number (1-based indexing), end (int): End line number (1-based indexing).
Select a range of lines from the current file for subsequent overwrite operation. Parameters: start (int): Start line number (1-based), end (int): End line number (1-based).
Prepare to overwrite a range of lines in the current file with new text. Parameters: new_lines (list): List of new lines to overwrite the selected range.
Apply pending changes from the overwrite operation.
Discard pending changes from the overwrite operation.
Delete the currently set file.
Creates a new file. Parameters: absolute_file_path (str): Path of the new file.
Find lines that match provided text in the current file. Parameters: search_text (str): Text to search for in the file.
Find a function or method definition in the current Python or JavaScript/JSX file. Parameters: function_name (str): Name of the function or method to find.
Lists the contents of a directory. Parameters: dirpath (str): Path to the directory to list.
Run Python tests with pytest.
Set Python paths for proper module resolution.