ファイルシステムMCPサーバー
標準化されたツール インターフェイスを通じてファイル システムの操作、分析、および操作機能を提供するモデル コンテキスト プロトコル (MCP) サーバー実装。
建築
サーバーは MCP SDK 上に構築され、明確なレイヤーに編成されています。
コンポーネント
- サーバー層: MCPプロトコル通信とツールディスパッチを処理する
- ツールレジストリ: ツールの登録と実行を管理します
- 運用層: コア機能を実装する
- ファイルシステムインターフェース:安全なファイルシステムアクセスを提供する
インストール
- リポジトリをクローンします。
- 依存関係をインストールします:
- サーバーを構築します。
- MCP 設定を構成します (cline_mcp_settings.json):
ツールリファレンス
ディレクトリ操作
リストディレクトリ
メタデータとともにディレクトリの内容を一覧表示します。
ディレクトリの作成
新しいディレクトリを作成します。
ファイル操作
読み取りファイル
エンコード サポートを使用してファイルの内容を読み取ります。
書き込みファイル
コンテンツをファイルに書き込みます。
ファイル追加
ファイルにコンテンツを追加します。
分析操作
テキスト分析
テキスト ファイルのプロパティを分析します。
ハッシュを計算する
指定されたアルゴリズムを使用してファイル ハッシュを計算します。
重複を見つける
ディレクトリ内の重複ファイルを識別します。
圧縮操作
作成_zip
ZIP アーカイブを作成します。
抽出_zip
ZIP アーカイブを抽出します。
エラー処理
サーバーは標準の MCP エラー コードを使用します。
エラー応答には次のものがあります:
- エラーコード
- 人間が読めるメッセージ
- 利用可能な場合の追加コンテキスト
エラー例:
発達
プロジェクト構造
テストの実行
テスト スイートを実行します。
カバレッジ付きで実行:
開発モード
ウォッチモードで実行:
コード品質
コードベースをリントする:
型チェック:
依存関係
コア依存関係:
- @modelcontextprotocol/sdk: MCP サーバーの実装
- ファイルタイプ: ファイルタイプの検出
- mime-types: MIMEタイプの検索
- crypto-js: ファイルハッシュ
- アーカイバ:ZIP作成
- extract-zip: ZIP抽出
- iconv-lite: テキストエンコーディング
- chardet: エンコーディング検出
開発依存関係:
- Typescript: 型システム
- jest: テスト
- eslint: リンティング
- prettier: フォーマット
- ts-node: TypeScriptの実行
- nodemon: 開発サーバー
貢献
- リポジトリをフォークする
- 機能ブランチを作成する
- 新機能のテストを書く
- すべてのテストに合格することを確認する
- プルリクエストを送信する
ライセンス
マサチューセッツ工科大学
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.
標準化されたツール インターフェイスを通じてファイル システムの操作、分析、および操作機能を提供するモデル コンテキスト プロトコル サーバー。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.Last updated -12PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables enhanced file system operations including reading, writing, copying, moving files with streaming capabilities, directory management, file watching, and change tracking.Last updated -126TypeScriptMIT License
- -securityAlicense-qualityA custom Model Context Protocol server that gives Claude Desktop and other LLMs access to file system operations and command execution capabilities through standardized tool interfaces.Last updated -22PythonApache 2.0
- -securityAlicense-qualityA Model Context Protocol server that provides secure and intelligent interaction with files and filesystems, offering smart context management and token-efficient operations for working with large files and complex directory structures.Last updated -5PythonMIT License