MCP Everything

Integrations

  • Enables running the MCP server in a containerized environment with Docker, allowing for isolated and portable deployment of the MCP Everything test server.

  • Extracted from the modelcontextprotocol/servers GitHub repository to create a standalone implementation, with source code available on GitHub.

  • Supports installation and distribution through npm, including global installation and execution via npx commands.

MCPのすべて

**注:**このプロジェクトは、スタンドアロン実装を作成するためにhttps://github.com/modelcontextprotocol/servers/tree/main/src/everythingから抽出されました。

このMCPサーバーは、MCPプロトコルのすべての機能を試用することを目的としています。実用的なサーバーではなく、MCPクライアント開発者向けのテストサーバーとして設計されています。MCPの機能を紹介するためのプロンプト、ツール、リソース、サンプリングなどを実装しています。

インストール

ローカルインストール

# Clone the repository git clone https://github.com/modelcontextprotocol/mcp-everything.git cd mcp-everything # Install dependencies npm install # Build the project npm run build # Start the server npm start

グローバルインストール

# Install globally from npm npm install -g mcp-everything # Run the server mcp-everything

ドッカー

# Build the Docker image docker build -t mcp-everything . # Run the container docker run -it mcp-everything

Claude Desktopでの使用

claude_desktop_config.jsonに追加します:

{ "mcpServers": { "everything": { "command": "npx", "args": [ "-y", "mcp-everything" ] } } }

コンポーネント

ツール

  1. echo
    • 入力メッセージをエコーバックするシンプルなツール
    • 入力:
      • message (文字列): エコーバックするメッセージ
    • 戻り値: エコーされたメッセージを含むテキストコンテンツ
  2. add
    • 2つの数字を足し合わせる
    • 入力:
      • a (数字): 最初の数字
      • b (数値): 2番目の数値
    • 戻り値: 加算のテキスト結果
  3. longRunningOperation
    • 長時間の操作の進行状況通知を表示します
    • 入力:
      • duration (数値、デフォルト:10):継続時間(秒)
      • steps (数値、デフォルト:5):進捗ステップ数
    • 戻り値: 所要時間とステップ数を含む完了メッセージ
    • 実行中に進行状況通知を送信します
  4. sampleLLM
    • MCPサンプリング機能を使用してLLMサンプリング機能を実証します
    • 入力:
      • prompt (文字列): LLMに送信するプロンプト
      • maxTokens (数値、デフォルト:100):生成するトークンの最大数
    • 戻り値: 生成されたLLM応答
  5. getTinyImage
    • 小さなテスト画像を返します
    • 入力は不要です
    • 戻り値: Base64でエンコードされたPNG画像データ
  6. printEnv
    • すべての環境変数を印刷します
    • MCP サーバー構成のデバッグに役立ちます
    • 入力は不要です
    • 戻り値: すべての環境変数のJSON文字列
  7. annotatedMessage
    • 注釈を使用してコンテンツに関するメタデータを提供する方法を示します
    • 入力:
      • messageType (列挙型: "error" | "success" | "debug"): さまざまな注釈パターンを示すメッセージのタイプ
      • includeImage (boolean, default: false): サンプル画像を含めるかどうか
    • 戻り値: さまざまな注釈が付いたコンテンツ

リソース

サーバーは、次の 2 つの形式で 100 個のテスト リソースを提供します。

  • 偶数番号のリソース:
    • プレーンテキスト形式
    • URIパターン: test://static/resource/{even_number}
    • 内容: 簡単なテキストの説明
  • 奇数番号のリソース:
    • バイナリBLOB形式
    • URIパターン: test://static/resource/{odd_number}
    • 内容: Base64でエンコードされたバイナリデータ

リソースの特徴:

  • ページネーションをサポート(1ページあたり10項目)
  • リソースの更新を購読できます
  • リソース テンプレートのデモンストレーション
  • サブスクライブしたリソースを5秒ごとに自動更新します

プロンプト

  1. simple_prompt
    • 引数なしの基本プロンプト
    • 戻り値: 単一メッセージ交換
  2. complex_prompt
    • 引数の処理を示す高度なプロンプト
    • 必要な引数:
      • temperature (数字):温度設定
    • オプションの引数:
      • style (文字列): 出力スタイルの設定
    • リターン: 画像付きのマルチターン会話

ログ記録

サーバーは、MCP のログ機能を示すために、15 秒ごとにランダム レベルのログ メッセージを送信します。

-
security - not tested
A
license - permissive license
-
quality - not tested

プロンプト、ツール、リソース、サンプリングなど、MCP プロトコルのすべての機能を実装したテスト サーバー。実際のアプリケーションではなく、MCP クライアントのテスト用に設計されています。

  1. Installation
    1. Local Installation
    2. Global Installation
    3. Docker
  2. Usage with Claude Desktop
    1. Components
      1. Tools
      2. Resources
      3. Prompts
      4. Logging
    ID: 9fh46ry7ai