Skip to main content
Glama
mcp-server-code-assist

mcp-server-code-assist

mcp-server-code-assist: コードアシスタントMCPサーバー

概要

コードの変更と生成のためのモデルコンテキストプロトコルサーバー。このサーバーは、大規模言語モデルを介してコードを作成、変更、削除するためのツールを提供します。

ツール

  1. create

    • 新しいファイルを作成する

    • 入力: パスとコンテンツを含むXML命令

    • 戻り値: ファイル作成の確認

  2. modify

    • 検索/置換で既存のファイルを変更する

    • 入力: パス、検索パターン、新しいコンテンツを含むXML命令

    • 戻り値: 変更の差分

  3. rewrite

    • ファイルを完全に書き換える

    • 入力: パスと新しいコンテンツを含むXML命令

    • 戻り値: 書き換えの確認

  4. delete

    • ファイルを削除する

    • 入力: パス付きのXML命令

    • 返品: 削除の確認

XML形式

<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>

Related MCP server: Code Merge MCP

インストール

uvの使用(推奨)

uvx mcp-server-code-assist

pipの使用

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

構成

Claude Desktopでの使用

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

Zedでの使用

settings.json に追加:

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

発達

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

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

ライセンス

MITライセンス。詳細はLICENSEファイルを参照してください。

Available Tools

12 tools
create_directoryD

Creates a new directory

Inputs: path (required).

create_fileC

Creates a new file with content

Inputs: path (required), content.

delete_fileC

Deletes a file

Inputs: path (required).

file_treeC

Lists directory tree structure with git tracking support

Inputs: path (required).

git_diffD

Shows git diff

Inputs: repo_path (required), target (required).

git_logC

Shows git commit history

Inputs: repo_path (required), max_count.

git_showC

Shows git commit details

Inputs: repo_path (required), revision (required).

git_statusC

Shows git repository status

Inputs: repo_path (required).

list_directoryC

Lists directory contents using system ls/dir command

Inputs: path (required).

modify_fileC

Modifies parts of a file using string replacements

Inputs: path (required), replacements (required).

read_fileC

Reads file content

Inputs: path (required).

rewrite_fileC

Rewrites entire file content

Inputs: path (required), content (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity. For example, create_file vs. modify_file vs. rewrite_file handle different file operations, while git tools target specific git commands. The descriptions make it easy to tell tools apart.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with snake_case throughout. The naming is predictable and readable, such as create_directory, list_directory, git_status, and modify_file, with no deviations in style.

    Tool Count5/5

    With 12 tools, the count is well-scoped for code assistance, covering file operations and git commands. Each tool earns its place without feeling excessive or thin, aligning with the server's purpose.

    Completeness4/5

    The tool surface is nearly complete for code assistance, covering file CRUD and key git operations. Minor gaps exist, such as no git commit or branch management tools, but agents can work around this with the provided tools.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      Not graded
      maintenance
      A Model Context Protocol server that allows LLMs to interact with Python environments, enabling code execution, file operations, package management, and development workflows.
      9
      -
    • A
      license
      A
      quality
      B
      maintenance
      A robust, language-agnostic Model Context Protocol (MCP) server that provides AI coding agents with the ability to edit files surgically via Abstract Syntax Trees (AST) instead of relying on token-heavy, brittle search-and-replace or diff operations.
      28
      10
      MIT