MCP Add Server

Integrations

  • Implements a Model Context Protocol server using Node.js runtime, enabling deployment as a Node.js application.

  • Supports distribution and installation through the npm package registry, allowing users to easily install and run the server using npm commands.

MCP サーバーの追加

シンプルなadd(a, b)ツールを提供する、最小限のモデルコンテキストプロトコル(MCP)サーバー。このプロジェクトは、MCPサーバーの実装の基本的な例として機能します。

特徴

  • モデルコンテキストプロトコルに準拠したサーバーを実装します。
  • 2 つの数値の合計を返す単一のツールadd(a, b)を提供します。

前提条件

  • Node.js(バージョン18.xx以上を推奨)
  • npm (Node.js に付属)

インストール

  1. リポジトリをクローンします。
    git clone <你的仓库URL> # 当你推送到 GitHub 后,替换这里的 URL cd mcp-add-server
  2. 依存関係をインストールします:
    npm install

使用法

mcp-add-serverを実行するにはいくつかの方法があります。

1. npxを使用する (ほとんどのユーザーに推奨):

Node.js と npm がインストールされている場合は、クローンを作成したりグローバルにインストールしたりせずに、サーバーを直接実行できます。

npx mcp-add-server

このコマンドはmcp-add-serverの最新バージョン (まだキャッシュされていない場合) をダウンロードして実行します。

2. クローンしたリポジトリから実行する:

リポジトリのクローンを作成し、依存関係をインストールした後 (インストールを参照)、次の操作を実行します。

npm start

これは、 package.jsonで定義されたstartスクリプトを使用します。

3. グローバルインストール(頻繁な使用または開発用):

パッケージをグローバルにインストールできます。

npm install -g . # From the cloned repository directory # or once published to npm: # npm install -g mcp-add-server

その後、任意のディレクトリから実行できます。

mcp-add-server

**4. 開発のためのローカルリンク:**プロジェクトのルートディレクトリでnpm linkを実行します。これによりmcp-add-serverコマンドがグローバルに使用可能になり、ローカルプロジェクトファイルを参照できるようになります。

# In project directory npm link # Then, in any directory: mcp-add-server

サーバーが実行されるやいなや (使用される方法に関係なく)、MCP クライアントが利用できるようになります。

ツール呼び出しの例(概念)

MCP クライアントは次のようにaddツールを呼び出すことができます (詳細はクライアントの実装によって異なります)。

{ "tool_name": "add", "arguments": { "a": 5, "b": 3 } }

サーバーは次のように応答します:

{ "result": 8 }

テストの実行

(テストが追加された場合は、ここで実行方法を記述してください)

npm test

(現在、 npm test 「エラー: テストが指定されていません」を出力します。テストが追加されたら、 package.jsontestスクリプトを更新してください。)

プロジェクト構造

mcp-add-server/ ├── .git/ # Git directory ├── .gitignore # Specifies intentionally untracked files that Git should ignore ├── .cursor/ # Cursor specific files (if any) ├── node_modules/ # Project dependencies ├── src/ # Source code │ └── server.js # Main server logic ├── bin.js # Executable for the server ├── LICENSE # Project license ├── package-lock.json # Records exact versions of dependencies ├── package.json # Project metadata and dependencies └── README.md # This file

貢献

貢献を歓迎します!お気軽にプルリクエストを送信したり、問題を報告してください。

ライセンス

このプロジェクトはMIT ライセンスに基づいてライセンスされています。

You must be authenticated.

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Tools

2 つの数値の合計を計算するための単純な add(a, b) ツールを提供する最小限のモデル コンテキスト プロトコル サーバー。

  1. 特徴
    1. 前提条件
      1. インストール
        1. 使用法
          1. ツール呼び出しの例(概念)
        2. テストの実行
          1. プロジェクト構造
            1. 貢献
              1. ライセンス

                Related MCP Servers

                • A
                  security
                  F
                  license
                  A
                  quality
                  A server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.
                  Last updated -
                  4
                  JavaScript
                  • Apple
                • A
                  security
                  F
                  license
                  A
                  quality
                  A simple server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models through the Model Context Protocol.
                  Last updated -
                  4
                  JavaScript
                • A
                  security
                  F
                  license
                  A
                  quality
                  A simple Model Context Protocol server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models.
                  Last updated -
                  4
                  JavaScript
                • -
                  security
                  -
                  license
                  -
                  quality
                  A simple implementation of a Model Context Protocol server that demonstrates core functionality including mathematical tools (add, subtract) and personalized greeting resources.
                  Last updated -
                  3
                  Python
                  GPL 3.0

                View all related MCP servers

                ID: i1ca4pr3ca