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.
相关服务器
Scout Monitoring MCP
赞助Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
赞助Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Remote MCP Server on Cloudflare (Authless)
An example of a remote MCP server deployable on Cloudflare Workers without authentication, featuring customizable tools.
SuzieQ
Interact with the SuzieQ network observability platform via its REST API.
MCP Chaos Rig
A local MCP server that breaks on demand. Test your client against auth failures, disappearing tools, flaky responses, and token expiry, all from a web UI.
MCP Front
An OAuth 2.1 proxy for MCP servers that enables single sign-on with Google, domain validation, and per-user tokens.
BlenderMCP
Connects Blender to Claude AI via the Model Context Protocol (MCP), enabling direct interaction and control for prompt-assisted 3D modeling, scene creation, and manipulation.
Apple Doc MCP
Search Apple's Developer Documentation with smart search and wildcard support.
MCP-S Gateway
A secure, open-source OAuth gateway for MCP authentication.
Debugg AI
Enable your code gen agents to create & run 0-config end-to-end tests against new code changes in remote browsers via the Debugg AI testing platform.
GitHub Issue Reproduction MCP Server
An intelligent MCP server that automates the reproduction of GitHub issues for AWS CDK projects.
Math MCP Learning
Educational MCP server with math operations, statistics, visualizations, and persistent workspace.