mcp-server-code-assist

mcp-server-code-assist

A Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.

abhishekbhakat

Developer Tools
File Systems
Local
Python
Visit Server

Tools

list_directory

Lists directory contents using system ls/dir command

create_directory

Creates a new directory

create_file

Creates a new file with content

delete_file

Deletes a file

modify_file

Modifies parts of a file using string replacements

rewrite_file

Rewrites entire file content

read_file

Reads file content

file_tree

Lists directory tree structure with git tracking support

git_status

Shows git repository status

git_diff

Shows git diff

git_log

Shows git commit history

git_show

Shows git commit details

README

mcp-server-code-assist: A Code Assistant MCP Server

Overview

A Model Context Protocol server for code modification and generation. This server provides tools to create, modify, and delete code via Large Language Models.

<a href="https://glama.ai/mcp/servers/pk7xbajohp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/pk7xbajohp/badge" alt="mcp-server-code-assist MCP server" /> </a>

Tools

  1. create

    • Creates new files
    • Input: XML instruction with path and content
    • Returns: Confirmation of file creation
  2. modify

    • Modifies existing files with search/replace
    • Input: XML instruction with path, search pattern, and new content
    • Returns: Diff of changes
  3. rewrite

    • Completely rewrites a file
    • Input: XML instruction with path and new content
    • Returns: Confirmation of rewrite
  4. delete

    • Removes files
    • Input: XML instruction with path
    • Returns: Confirmation of deletion

XML Format

<Plan>
Describe approach and reasoning
</Plan>

<file path="/path/to/file" action="create|modify|rewrite|delete">
  <change>
    <description>What this change does</description>
    <search>
===
Original code for modification
===
    </search>
    <content>
===
New or modified code
===
    </content>
  </change>
</file>

Installation

Using uv (recommended)

uvx mcp-server-code-assist

Using pip

pip install mcp-server-code-assist
python -m mcp_server_code_assist

Configuration

Usage with Claude Desktop

<details> <summary>Using uvx</summary>

"mcpServers": {
  "code-assist": {
    "command": "uvx",
    "args": ["mcp-server-code-assist"]
  }
}

</details>

<details> <summary>Using docker</summary>

"mcpServers": {
  "code-assist": {
    "command": "docker",
    "args": ["run", "--rm", "-i", "--mount", "type=bind,src=/Users/username,dst=/Users/username", "mcp/code-assist"]
  }
}

</details>

Usage with Zed

Add to settings.json:

"context_servers": {
  "mcp-server-code-assist": {
    "command": {
      "path": "uvx",
      "args": ["mcp-server-code-assist"]
    }
  }
},

Development

cd src/code-assist
uvx mcp-server-code-assist

# For docker:
docker build -t mcp/code-assist .

License

MIT License. See LICENSE file for details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Excel MCP Server

Excel MCP Server

A Model Context Protocol server that enables AI assistants to read from and write to Microsoft Excel files, supporting formats like xlsx, xlsm, xltx, and xltm.

Featured
Local
Go
Playwright MCP Server

Playwright MCP Server

Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.

Featured
Local
TypeScript
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Apple MCP Server

Apple MCP Server

Enables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.

Featured
Local
TypeScript
DuckDuckGo MCP Server

DuckDuckGo MCP Server

A Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing.

Featured
Python