MCP.so
登录

MCP example & Demo

@pcingola

基本信息

分类

其他

传输方式

stdio

作者

pcingola

关于 MCP example & Demo

暂无概览

MCP example & Demo 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP example & Demo 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP example & Demo?

MCP example & Demo is a simple MCP server that demonstrates the Model Context Protocol. It implements a basic "add" tool and shows how to communicate with an MCP server over STDIN using JSON‑RPC messages.

How to use MCP example & Demo?

Run the server with mcp run server.py and send JSON‑RPC messages over STDIN. Alternatively, use mcp dev server.py to launch the MCP inspector for interactive testing.

Key features of MCP example & Demo

  • Provides a single "add" tool that sums two numbers
  • Demonstrates the full MCP initialization handshake
  • Supports tools/list and tools/call JSON‑RPC methods
  • Includes an example of an error response from a tool call
  • Uses STDIN transport by default
  • Works with the MCP inspector in dev mode

Use cases of MCP example & Demo

  • Learning how the MCP protocol works end‑to‑end
  • Testing a client’s ability to handle initialize, ping, and tool calls
  • A minimal reference implementation for developing custom MCP servers
  • Demonstrating error handling in tool execution

常见问题

1

What does the server do?

It provides an "add" tool that accepts two numeric arguments (`a` and `b`) and returns their sum.

2

How do I run the server?

Use `mcp run server.py` to start it on STDIN, or `mcp dev server.py` to open the MCP inspector.

3

What transport does the server use?

It communicates over STDIN using JSON‑RPC 2.0.

4

What protocol version does it support?

The server uses the MCP protocol version `2025-03-26`.

5

Does the server support any other tools?

No, it only includes the single "add" tool demonstrated in the README.

评论

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