MCP-コードサヴァント
CodeSavant は現在進行中のプロジェクトです。
CodeSavantは、コード操作、実行、バージョン管理機能を提供するModel Context Protocol(MCP)サーバーです。AIアシスタントが変更履歴を維持しながらコードの読み取り、書き込み、実行を行うことを可能にします。
特徴
- 行単位の操作でコードファイルを読み書きする
- 複数のプログラミング言語(Python、Node.js)でコードを実行する
- 制御された環境でシェルコマンドを実行する
- バージョン管理でコードの変更を追跡および管理する
- コードファイル内を検索
- 以前のバージョンのコードに戻す
インストール
- リポジトリをクローンします。
- 必要な依存関係をインストールします。
- Claude Desktop の config.json にサーバー構成を追加します。
ディレクトリ構造
サーバーは次のディレクトリ構造を作成および管理します。
ツールリファレンス
詳細な使用方法
1. コードファイルを読む
コード ファイルの内容を読み取り、オプションで特定のセクションを検索します。
応答:
2. コードファイルの書き込み
コード ファイル内の特定の行を書き込むか更新します。
応答:
3. コード履歴を取得する
コード ファイルの変更履歴を取得します。
応答:
4. コードコマンドの実行
コード関連のシェル コマンドを実行します。
応答:
5. 実行コード
指定された言語でコードを実行します。
応答:
6. バージョンに戻す
コード ファイルを特定のバージョンに戻します。
応答:
7. コードファイルの行を読み取る
コード ファイルから特定の行を読み取ります。
応答:
エラー処理
サーバーは、次の形式で詳細なエラー応答を提供します。
エラーの種類は次のとおりです:
CodeFileError
: ファイル操作エラーCodeValidationError
: コード検証エラーCodeExecutionError
: コード実行エラー
言語サポート
現在コード実行にサポートされている言語:
- Python (システム Python インタープリタを使用)
- Node.js (node コマンドを使用)
各言語の実行では、ワークスペース ディレクトリに一時ファイルが作成され、適切なインタープリターで実行されます。
貢献
- リポジトリをフォークする
- 機能ブランチを作成する
- 変更をコミットする
- ブランチにプッシュする
- 新しいプルリクエストを作成する
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
著者
トッド・ウルブン - ( https://github.com/twolven )
謝辞
- Anthropicのモデルコンテキストプロトコル(MCP)を使用して構築
- アントロピックのクロードとの使用のために開発されました
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
コード操作、実行、バージョン管理機能を提供します。AIアシスタントは、変更履歴を維持しながらコードの読み取り、書き込み、実行を行うことができます。
Related MCP Servers
- AsecurityAlicenseAqualityShell and file edit capabilities tightly coupled to provide a powerful coding experience. You can work with different modes: architect and code-writer for separate plan and implementation phase. You can get it to invoke any cli command, e.g., compiling, type checking, linting, github cli, pythonLast updated -6554PythonApache 2.0
- -securityAlicense-qualityTransform your local machine into a powerful code command center. Automate file handling, run terminal commands, and leverage AI to enhance your development workflows—all securely and instantly, without cloud latency.Last updated -11PythonMIT License
- -securityFlicense-qualityA powerful interface for extending AI capabilities through remote control, calculations, email operations, knowledge search, and more.Last updated -34Python
- -securityFlicense-qualityA personal AI coding assistant that connects to various development environments and helps automate tasks, provide codebase insights, and improve coding decisions by leveraging the Model Context Protocol.Last updated -Python