Code Assistant
A server for code modification and generation using Large Language Models.
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.
Tools
-
create- Creates new files
- Input: XML instruction with path and content
- Returns: Confirmation of file creation
-
modify- Modifies existing files with search/replace
- Input: XML instruction with path, search pattern, and new content
- Returns: Diff of changes
-
rewrite- Completely rewrites a file
- Input: XML instruction with path and new content
- Returns: Confirmation of rewrite
-
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
"mcpServers": {
"code-assist": {
"command": "uvx",
"args": ["mcp-server-code-assist"]
}
}
Using docker
"mcpServers": {
"code-assist": {
"command": "docker",
"args": ["run", "--rm", "-i", "--mount", "type=bind,src=/Users/username,dst=/Users/username", "mcp/code-assist"]
}
}
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.
Related Servers
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Codesys-mcp-toolkit
A Model Context Protocol (MCP) server for CODESYS V3 programming environments.
Stability AI
Integrates with the Stability AI API for image generation, editing, and upscaling.
Shadcn Space MCP
Integrate shadcn space MCP server into your IDE to generate ready-to-use shadcn/ui components without guesswork.
IIIF Images Server
A server for working with IIIF (International Image Interoperability Framework) manifests and images.
Remote MCP Server on Cloudflare
A customizable remote MCP server for deployment on Cloudflare Workers, operating without authentication.
TeamCity
MCP server for TeamCity, integrates with Claude Desktop and Cursor.
TTS MCP
Text-to-Speech protocol server that synthesizes text from LLMs and plays audio natively through the host system's desk speakers.
Authless Remote MCP Server on Cloudflare
An example of a remote MCP server deployable on Cloudflare Workers without authentication.
spm-mcp
iOS Swift Package Manager server written in Swift
Remote MCP Server on Cloudflare
Deploy a remote MCP server without authentication on Cloudflare Workers.