MCP.so
登录

TestMcpServer

@maikmetzger

关于 TestMcpServer

A Model Context Protocol server implementation providing mathematical operations through a standardized interface. Built with TypeScript and Node.js, this server demonstrates how to create and expose tools via the Model Context Protocol specification.

基本信息

分类

其他

传输方式

stdio

发布者

maikmetzger

配置

暂无标准配置

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

代码仓库

工具

未检测到工具

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

概览

What is TestMcpServer?

TestMcpServer is an example MCP (Model Context Protocol) server implementation using Anthropic’s open‑source Model Context Protocol. It is designed to be more readable and easier to understand than existing examples, serving as a clean foundation for building custom MCP server projects. It targets developers who want to learn or quickly prototype MCP tools.

How to use TestMcpServer?

Clone the repository, run npm install, then build with npm run build. Run the server with node build/index.js. For development, use npm run dev to watch for changes, rebuild, and launch the MCP inspector at localhost:5173. To use TestMcpServer with Cursor, add a new MCP server with type command and set the server URL to node <absolute-path-to-project>\build\index.js.

Key features of TestMcpServer

  • Clear, modular tool architecture (definitions, controllers, registry)
  • Easy addition of new tools via a four‑step guide
  • Built‑in error handling and error responses
  • Development mode with hot‑reload and built‑in inspector
  • Lowercase tool naming and PascalCase handler conventions

Use cases of TestMcpServer

  • Learning how to structure a clean MCP server from a readable example
  • Quickly prototyping and testing new MCP tools locally
  • Building a foundation for a custom MCP server with multiple tool categories

FAQ from TestMcpServer

What are the dependencies required to run TestMcpServer?

Node, npm, and TypeScript are required.

How do I add a new tool to TestMcpServer?

Create a tool definition in /src/definitions/, add it to the category’s main.ts, implement a handler method in the corresponding controller in /src/controllers/, and register the handler in the controllerMap in /src/utils/toolRegistry.ts.

How can I run TestMcpServer locally for testing?

Build the project with npm run build, then execute node build/index.js. For an interactive development loop, use npm run dev to watch for changes and automatically rebuild and launch the inspector.

How do I connect TestMcpServer to Cursor?

In Cursor’s settings under Features → MCP Servers, click “Add new MCP server”, give it a name, set type to command, and enter node <absolute-path-to-project>\build\index.js as the command.

评论

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