mcpField
M
Mcp Test Add

Mcp Test Add

Local
github.com/DjyeignerDeveloper Tools0Updated 68w ago

About Mcp Test Add

Mcp Test Add is a lightweight MCP JSON-RPC server for testing protocol initialization and tool calls. It provides simple addition and subtraction tools for developers validating MCP clients.

Key features

  1. 01MCP JSON-RPC initialization
  2. 02Tool listing
  3. 03Addition tool
  4. 04Subtraction tool

Use cases

  1. 01Testing MCP client initialization
  2. 02Checking tool discovery and invocation
  3. 03Trying basic arithmetic calls

MCP support

Implements MCP JSON-RPC methods `initialize`, `tools/list`, and `tools/call`. Exposes `add` and `minus` tools to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Protocol Test Server (Smithery-compatible)

Implements initialize, tools/list, tools/call for MCP JSON-RPC.

How to run

pip install -r requirements.txt uvicorn app:app --reload

Docker build/run

docker build -t mcp-test . docker run -p 8081:8081 mcp-test

How to test

List tools

curl -X POST http://localhost:8081/ -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'

Call add

curl -X POST http://localhost:8081/ -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"add","arguments":{"a":3,"b":2}},"id":2}'

Call minus

curl -X POST http://localhost:8081/ -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"minus","arguments":{"a":5,"b":1}},"id":3}'

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.