MCP.so
登录

MCP SSE Sample

@iuill

关于 MCP SSE Sample

MCP ServerのSSE実装のサンプル

基本信息

分类

其他

许可证

MIT

运行时

node

传输方式

stdio

发布者

iuill

配置

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

{
  "mcpServers": {
    "sse-sample": {
      "command": "npx",
      "args": [
        "-y",
        "mcp_sse_sample"
      ]
    }
  }
}

工具

12

`message` (string): Message to echo back

Text content with echoed message

`a` (number): First number

Text result of the addition

`duration` (number, default: 10): Duration in seconds

Completion message with duration and steps

`prompt` (string): The prompt to send to the LLM

Generated LLM response

Base64 encoded PNG image data

JSON string of all environment variables

`messageType` (enum: "error" | "success" | "debug"): Type of message to demonstrate different annotation patterns

Content with varying annotations:

概览

What is MCP SSE Sample?

A sample MCP server that uses SSE (Server-Sent Events) transport to demonstrate an MCP protocol SSE implementation. It is based on the official “everything” server and provides a set of tools for testing and demonstration purposes.

How to use MCP SSE Sample?

Install dependencies with npm install, build with npm run build, then run in STDIO mode (npm run start) or SSE mode (npm run start:sse). For Claude Desktop, add the server configuration to claude_desktop_config.json as shown in the README.

Key features of MCP SSE Sample

  • Echo tool returns the input message unchanged
  • Add tool adds two numbers together
  • LongRunningOperation with progress notifications
  • SampleLLM demonstrates MCP LLM sampling capability
  • GetTinyImage returns a base64‑encoded PNG test image
  • PrintEnv prints all environment variables for debugging
  • AnnotatedMessage shows priority and audience annotations
  • Random‑leveled log messages sent every 15 seconds

Use cases of MCP SSE Sample

  • Test MCP client implementations that use SSE transport
  • Demonstrate tool call progress notifications
  • Explore MCP annotation and LLM sampling features
  • Debug server configuration and environment variables

FAQ from MCP SSE Sample

What transports does MCP SSE Sample support?

The server supports both STDIO and SSE transport modes.

How can I use this server with Claude Desktop?

Add the following configuration to claude_desktop_config.json: { "mcpServers": { "sse-sample": { "command": "npx", "args": ["-y", "mcp_sse_sample"] } } }.

What tools are included in MCP SSE Sample?

It includes echo, add, longRunningOperation, sampleLLM, getTinyImage, printEnv, and annotatedMessage.

Does the server require any special dependencies?

Only Node.js and npm are needed. Run npm install to install dependencies.

评论

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