Project Content Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides access to project files and their contents from a specified directory, allowing retrieval of all files and their contents in a structured format.

  • Supports working with npm-based projects, allowing installation of dependencies and building projects through npm commands.

プロジェクトコンテンツサーバー

プロジェクト ファイルとそのコンテンツへのアクセスを提供する MCP サーバー。

インストール

  1. リポジトリをクローンする
  2. 依存関係をインストールします:
    npm install
  3. プロジェクトをビルドします。
    npm run build

使用法

サーバーを起動します。

node build/index.js

API

最新のプロジェクトデータ

プロジェクト ディレクトリからすべてのファイルとその内容を取得します。

パラメータ:

  • projectPath (文字列): プロジェクトディレクトリへのパス

リクエスト例:

{ "name": "latest_project_data", "arguments": { "projectPath": "/path/to/project" } }

応答例:

{ "file1.txt": "Contents of file1", "subdir/file2.js": "Contents of file2" }

構成

サーバーは環境変数を使用して設定できます。

  • PORT : サーバーを実行するポート (デフォルト: stdio)

エラー処理

サーバーは次の形式でエラーを返します。

{ "content": [{ "type": "text", "text": "Error message" }], "isError": true }

よくあるエラーは次のとおりです:

  • 無効なプロジェクトパス
  • 権限拒否エラー
  • ファイルシステムエラー

ライセンス

マサチューセッツ工科大学

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

プロジェクト ファイルとそのコンテンツへのアクセスを提供し、ユーザーがエラー処理と構成オプションを使用して指定されたプロジェクト ディレクトリからファイル データを取得できるようにする MCP サーバー。

  1. Installation
    1. Usage
      1. API
    2. Configuration
      1. Error Handling
        1. License
          ID: qmqbqlz2c4