MCP.so
ログイン

Sarutahiko MCP 計算ツール

@lil-shimon

基本情報

カテゴリ

その他

トランスポート

stdio

作者

lil-shimon

Sarutahiko MCP 計算ツール について

My MCP server

Sarutahiko MCP 計算ツール の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "Sarutahiko": {
      "command": "node",
      "args": [
        "dist/calculator-client.js"
      ]
    }
  }
}

Sarutahiko MCP 計算ツール のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Sarutahiko MCP 計算ツール?

Sarutahiko MCP 計算ツール is a sample calculator implementation that uses the Model Context Protocol (MCP) to provide basic arithmetic operations. It is built with TypeScript and communicates via standard input/output (STDIO), making it suitable for integration with any MCP-compatible client.

How to use Sarutahiko MCP 計算ツール?

Install dependencies with npm install, compile TypeScript with npm run build, then start the server with npm start. For testing, run node dist/calculator-client.js. To integrate with a custom MCP client, use the @modelcontextprotocol/sdk to connect via StdioClientTransport and call the available tools (add, subtract, multiply, divide, power).

Key features of Sarutahiko MCP 計算ツール

  • Five arithmetic tools: add, subtract, multiply, divide, power.
  • Division includes zero-division error handling.
  • Communicates over STDIO (standard input/output).
  • TypeScript implementation with build and run scripts.
  • Includes a test client for verification.

Use cases of Sarutahiko MCP 計算ツール

  • Learning how to build an MCP server from a minimal example.
  • Prototyping a remote calculator tool for MCP clients.
  • Testing the MCP SDK client-server interaction.
  • Providing basic arithmetic capabilities to an MCP-enabled application.

よくある質問

1

What operations does Sarutahiko MCP 計算ツール support?

It supports addition (add), subtraction (subtract), multiplication (multiply), division (divide) with zero-division error handling, and exponentiation (power).

2

How do I start the server?

Run `npm start` after installing dependencies and building with `npm run build`. The server listens on STDIO.

3

How can I test the server without a custom client?

Run `node dist/calculator-client.js` after building the project.

4

How are new calculation features added?

Edit the `calculator-server.ts` file and add a new tool definition following the existing patterns.

5

What transport protocol does the server use?

It uses standard input/output (STDIO) for communication, as specified in the MCP SDK example.

6

Is this server production-ready?

No. The project is explicitly stated as a sample created entirely by AI (Claude) and intended for learning or demonstration purposes.

コメント

「その他」の他のコンテンツ