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
- -securityFlicense-qualityA powerful interface for extending AI capabilities through remote control, calculations, email operations, knowledge search, and more.Last updated -38
- -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 -
- -securityAlicense-qualityA sophisticated server that enables AI assistants to automatically analyze codebases and generate comprehensive, professional documentation.Last updated -1MIT License
- -securityAlicense-qualityProvides AI coding assistants with context optimization tools including targeted file analysis, intelligent terminal command execution with LLM-powered output extraction, and web research capabilities. Helps reduce token usage by extracting only relevant information instead of processing entire files and command outputs.Last updated -51343TypeScriptMIT License