MCP Add Server
MCP サーバーの追加
シンプルなadd(a, b)ツールを提供する、最小限のモデルコンテキストプロトコル(MCP)サーバー。このプロジェクトは、MCPサーバーの実装の基本的な例として機能します。
特徴
モデルコンテキストプロトコルに準拠したサーバーを実装します。
2 つの数値の合計を返す単一のツール
add(a, b)を提供します。
Related MCP server: Basic Math MCP Server
前提条件
Node.js(バージョン18.xx以上を推奨)
npm (Node.js に付属)
インストール
リポジトリをクローンします。
git clone <你的仓库URL> # 当你推送到 GitHub 后,替换这里的 URL cd mcp-add-server依存関係をインストールします:
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.jsonのtestスクリプトを更新してください。)
プロジェクト構造
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 ライセンスに基づいてライセンスされています。
Available Tools
1 tooladdD
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | 第一个加数 | |
| b | Yes | 第二个加数 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Tool has no description.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Tool has no description.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Tool has no description.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Tool has no description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Tool has no description.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Tool has no description.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
- First observed
add
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap with other tools. The single tool 'add' stands alone without any ambiguity in purpose.
A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The name 'add' is straightforward and follows a simple verb pattern.
A single tool is generally too few for most server purposes, as it limits functionality and scope. Without a description, it's unclear if this minimal set is justified, but typically one tool feels thin and incomplete.
With only one tool and no description, it is impossible to assess coverage of any domain. The surface is severely incomplete, lacking any context or additional operations that might be expected for a coherent toolset.
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceA minimal example server implementing the Model Context Protocol, providing addition and multiplication tools for learning and experimentation with MCP clients.1-
- FlicenseBqualityDmaintenanceA simple server that provides basic mathematical operations (sum and subtraction) through the Model Context Protocol.21-
- AlicenseNot gradedqualityDmaintenanceA minimal, production-ready MCP server with a simple addition calculator tool that demonstrates integration with the Model Context Protocol.7 npm1MIT
- FlicenseBqualityNot gradedmaintenanceA minimal Model Context Protocol server that provides a simple tool for adding two integers. It serves as a demonstration of the official Python MCP SDK and is designed for local execution via stdio.1-