This MCP server implementation, developed for code modification and generation tasks, provides a set of tools for AI assistants to create, modify, delete, and rewrite code files. Built with Python and leveraging libraries like aiofiles, gitpython, and xmlschema, it offers a standardized XML-based interface for instructing code changes. The implementation focuses on file operations, search-and-replace modifications, and version control integration, making it accessible for AI models to perform complex code editing tasks. It's particularly useful for automated code refactoring, codebase maintenance, or integrating AI-driven code generation into existing projects, allowing assistants to manipulate code without requiring deep knowledge of file system operations or version control complexities.
No reviews yet. Be the first to review!
Sign in to join the conversation
Creates new files. Input: XML instruction with path and content. Returns: Confirmation of file creation.
Modifies existing files with search/replace. Input: XML instruction with path, search pattern, and new content. Returns: Diff of changes.
Completely rewrites a file. Input: XML instruction with path and new content. Returns: Confirmation of rewrite.
Removes files. Input: XML instruction with path. Returns: Confirmation of deletion.