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.

评论

其他 分类下的更多 MCP 服务器