MCP.so
登录

Stateless Hono MCP Server

@mhart

基本信息

分类

其他

传输方式

stdio

作者

mhart

关于 Stateless Hono MCP Server

An example Hono MCP server using Streamable HTTP

Stateless Hono MCP Server 配置

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

{
  "mcpServers": {
    "mcp-hono-stateless": {
      "command": "node",
      "args": [
        "node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js"
      ]
    }
  }
}

Stateless Hono MCP Server 工具

工具列表暂未提供

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

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

概览

What is Stateless Hono MCP Server?

Stateless Hono MCP Server is an example MCP server built on Hono, using Streamable HTTP transport. It is designed for deployment to Cloudflare Workers and other platforms that support Hono, and serves as a reference for implementing stateless MCP servers.

How to use Stateless Hono MCP Server?

Run npm start to start the server locally on port 3000, then connect using an MCP client like the one at node node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js with the command connect http://localhost:3000/mcp. Deploy to Cloudflare Workers using npm run deploy.

Key features of Stateless Hono MCP Server

  • Streamable HTTP transport for MCP
  • Deployable to Cloudflare Workers
  • Start-notification-stream tool included
  • Greeting-template prompt included
  • Stateless server example
  • Based on official MCP Express example

Use cases of Stateless Hono MCP Server

  • Testing MCP client connections with a simple server
  • Demonstrating stateless MCP server deployment on edge platforms
  • Experimenting with Streamable HTTP transport
  • Learning how to build MCP servers with Hono
  • Deploying a lightweight MCP endpoint on Cloudflare Workers

常见问题

1

What runtime does this server require?

It requires Node.js for local development and can be deployed to Cloudflare Workers.

2

What tools and prompts are available?

The server provides one tool (`start-notification-stream`) and one prompt (`greeting-template`).

3

How do I test the server locally?

Run `npm start`, then use the example MCP client to connect to `http://localhost:3000/mcp` and issue commands like `list-tools` or `list-prompts`.

4

How do I deploy the server?

Run `npm run deploy` to deploy to Cloudflare Workers. The server can also run anywhere Hono is supported.

5

Is the server stateful or stateless?

It is stateless, as indicated by its name and use of Streamable HTTP transport.

评论

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