MCP.so
登录

Template for MCP Server

@bladnman

基本信息

分类

开发工具

传输方式

stdio

作者

bladnman

关于 Template for MCP Server

暂无概览

Template for MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-template-bladnman": {
      "command": "npx",
      "args": [
        "make-mine",
        "https://github.com/bladnman/mcp-server-template.git",
        "<mcp-server>"
      ]
    }
  }
}

Template for MCP Server 工具

工具列表暂未提供

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

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Template for MCP Server?

Template for MCP Server is a starting point for building an MCP server. It provides a simple string reversal tool, supports both stdio and SSE transports, and is implemented in TypeScript with a full build process. It is intended to be duplicated and customized.

How to use Template for MCP Server?

Install dependencies with npm install. Run the default stdio transport using bash run-server.sh or run with SSE transport via TRANSPORT_TYPE=sse npm run start (SSE server runs on port 4000 by default, configurable in CONST.ts). Test with MCP Inspector using npx fastmcp inspect server.ts.

Key features of Template for MCP Server

  • Simple string reversal tool
  • Support for both stdio and SSE transports
  • TypeScript implementation with full build process
  • Includes a reverse tool and two greeting resources
  • Hot reload development mode (npm run dev)
  • Build outputs to dist directory

Use cases of Template for MCP Server

  • Kickstarting a new MCP server project
  • Learning MCP server structure and tool/resource implementation
  • Rapid prototyping of string processing tools
  • Testing MCP transport behavior (stdio vs SSE)

常见问题

1

What transports does Template for MCP Server support?

It supports stdio (default) and SSE transports.

2

What tool is included in Template for MCP Server?

A `reverse` tool that takes a string input and returns it reversed.

3

What resources are available?

Two resources: `greeting://hello` (a welcome greeting) and `welcome://info` (information about the server and its capabilities).

4

How can I test the server?

Use the MCP Inspector: run `npx fastmcp inspect server.ts`, then execute the `run-server.sh` file with stdio and no arguments.

5

What are the prerequisites for running the server?

Node.js v14 or higher and npm.

评论

开发工具 分类下的更多 MCP 服务器