MCP ExplorerExplorer

Mcp Server Code Assist

@abhishekbhakaton 10 months ago
1 MIT
FreeCommunity
AI Systems
MCP Server for code modification and generation using Large Language Models.

Overview

What is Mcp Server Code Assist

mcp_server_code_assist is a Model Context Protocol server designed for code modification and generation, utilizing Large Language Models to create, modify, and delete code efficiently.

Use cases

Use cases include automating the creation of boilerplate code, refactoring existing codebases, managing file operations in large projects, and integrating with development tools for enhanced productivity.

How to use

To use mcp_server_code_assist, you can install it via ‘uvx’ or ‘pip’. After installation, you can configure it with various tools like Claude Desktop or Docker to execute code operations using XML formatted instructions.

Key features

Key features include creating new files, modifying existing files, completely rewriting files, and deleting files, all through structured XML instructions. The server provides confirmation responses for each action.

Where to use

mcp_server_code_assist can be used in software development environments, code generation tasks, and automated code management processes, making it suitable for developers and teams looking to streamline their coding workflows.

Content

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.

mcp-server-code-assist MCP server

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

Using uvx
Using docker

Usage with Zed

Add to settings.json:

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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers