e

everything

noeatme/everything
Hosted
0 Stars 431 次浏览 更新于 2026-08-23

此MCP服务器旨在测试MCP协议的所有功能,包括工具、资源和提示。它作为MCP客户端的测试服务器,展示了诸如长时间运行的操作、LLM采样和结构化内容等功能。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "everything": {
      "args": [
        "-y",
        "@modelcontextprotocol/server-everything"
      ],
      "command": "npx"
    }
  }
}

可用工具 (10 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

echo 1 个参数 需填 1 项

Echoes back the input

必填参数:message

add 2 个参数 需填 2 项

Adds two numbers

必填参数:a、b

longRunningOperation 2 个参数

Demonstrates a long running operation with progress updates

该工具无需必填参数,直接调用即可

printEnv

Prints all environment variables, helpful for debugging MCP server configuration

该工具无需必填参数,直接调用即可

sampleLLM 2 个参数 需填 1 项

Samples from an LLM using MCP's sampling feature

必填参数:prompt

getTinyImage

Returns the MCP_TINY_IMAGE

该工具无需必填参数,直接调用即可

annotatedMessage 2 个参数 需填 1 项

Demonstrates how annotations can be used to provide metadata about content

必填参数:messageType

getResourceReference 1 个参数 需填 1 项

Returns a resource reference that can be used by MCP clients

必填参数:resourceId

getResourceLinks 1 个参数

Returns multiple resource links that reference different types of resources

该工具无需必填参数,直接调用即可

structuredContent 1 个参数 需填 1 项

Returns structured content along with an output schema for client data validation

必填参数:location

服务介绍

Everything MCP Server

This MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.

Components

Tools

  1. echo

    • Simple tool to echo back input messages
    • Input:
      • message (string): Message to echo back
    • Returns: Text content with echoed message
  2. add

    • Adds two numbers together
    • Inputs:
      • a (number): First number
      • b (number): Second number
    • Returns: Text result of the addition
  3. longRunningOperation

    • Demonstrates progress notifications for long operations
    • Inputs:
      • duration (number, default: 10): Duration in seconds
      • steps (number, default: 5): Number of progress steps
    • Returns: Completion message with duration and steps
    • Sends progress notifications during execution
  4. printEnv

    • Prints all environment variables
    • Useful for debugging MCP server configuration
    • No inputs required
    • Returns: JSON string of all environment variables
  5. sampleLLM

    • Demonstrates LLM sampling capability using MCP sampling feature
    • Inputs:
      • prompt (string): The prompt to send to the LLM
      • maxTokens (number, default: 100): Maximum tokens to generate
    • Returns: Generated LLM response
  6. getTinyImage

    • Returns a small test image
    • No inputs required
    • Returns: Base64 encoded PNG image data
  7. annotatedMessage

    • Demonstrates how annotations can be used to provide metadata about content
    • Inputs:
      • messageType (enum: "error" | "success" | "debug"): Type of message to demonstrate different annotation patterns
      • includeImage (boolean, default: false): Whether to include an example image
    • Returns: Content with varying annotations:
      • Error messages: High priority (1.0), visible to both user and assistant
      • Success messages: Medium priority (0.7), user-focused
      • Debug messages: Low priority (0.3), assistant-focused
      • Optional image: Medium priority (0.5), user-focused
    • Example annotations:
      {
        "priority": 1.0,
        "audience": ["user", "assistant"]
      }
      
  8. getResourceReference

    • Returns a resource reference that can be used by MCP clients
    • Inputs:
      • resourceId (number, 1-100): ID of the resource to reference
    • Returns: A resource reference with:
      • Text introduction
      • Embedded resource with type: "resource"
      • Text instruction for using the resource URI
  9. startElicitation

    • Initiates an elicitation (interaction) within the MCP client.
    • Inputs:
      • color (string): Favorite color
      • number (number, 1-100): Favorite number
      • pets (enum): Favorite pet
    • Returns: Confirmation of the elicitation demo with selection summary.
  10. structuredContent

  • Demonstrates a tool returning structured content using the example in the specification
  • Provides an output schema to allow testing of client SHOULD advisory to validate the result using the schema
  • Inputs:
    • location (string): A location or ZIP code, mock data is returned regardless of value
  • Returns: a response with
    • structuredContent field conformant to the output schema
    • A backward compatible Text Content field, a SHOULD advisory in the specification
  1. listRoots
  • Lists the current MCP roots provided by the client
  • Demonstrates the roots protocol capability even though this server doesn't access files
  • No inputs required
  • Returns: List of current roots with their URIs and names, or a message if no roots are set
  • Shows how servers can interact with the MCP roots protocol

Resources

The server provides 100 test resources in two formats:

  • Even numbered resources:

    • Plaintext format
    • URI pattern: test://static/resource/{even_number}
    • Content: Simple text description
  • Odd numbered resources:

    • Binary blob format
    • URI pattern: test://static/resource/{odd_number}
    • Content: Base64 encoded binary data

Resource features:

  • Supports pagination (10 items per page)
  • Allows subscribing to resource updates
  • Demonstrates resource templates
  • Auto-updates subscribed resources every 5 seconds

Prompts

  1. simple_prompt

    • Basic prompt without arguments
    • Returns: Single message exchange
  2. complex_prompt

    • Advanced prompt demonstrating argument handling
    • Required arguments:
      • temperature (string): Temperature setting
    • Optional arguments:
      • style (string): Output style preference
    • Returns: Multi-turn conversation with images
  3. resource_prompt

    • Demonstrates embedding resource references in prompts
    • Required arguments:
      • resourceId (number): ID of the resource to embed (1-100)
    • Returns: Multi-turn conversation with an embedded resource reference
    • Shows how to include resources directly in prompt messages

Roots

The server demonstrates the MCP roots protocol capability:

  • Declares roots: { listChanged: true } capability to indicate support for roots
  • Handles roots/list_changed notifications from clients
  • Requests initial roots during server initialization
  • Provides a listRoots tool to display current roots
  • Logs roots-related events for demonstration purposes

Note: This server doesn't actually access files, but demonstrates how servers can interact with the roots protocol for clients that need to understand which directories are available for file operations.

Logging

The server sends random-leveled log messages every 15 seconds, e.g.:

{
  "method": "notifications/message",
  "params": {
	"level": "info",
	"data": "Info-level message"
  }
}

Usage with Claude Desktop (uses stdio Transport)

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "everything": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-everything"
      ]
    }
  }
}

Usage with VS Code

For quick installation, use of of the one-click install buttons below...

Install with NPX in VS Code Install with NPX in VS Code Insiders

Install with Docker in VS Code Install with Docker in VS Code Insiders

For manual installation, you can configure the MCP server using one of these methods:

Method 1: User Configuration (Recommended)
Add the configuration to your user-level MCP configuration file. Open the Command Palette (Ctrl + Shift + P) and run MCP: Open User Configuration. This will open your user mcp.json file where you can add the server configuration.

Method 2: Workspace Configuration
Alternatively, you can add the configuration to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

For more details about MCP configuration in VS Code, see the official VS Code MCP documentation.

NPX

{
  "servers": {
    "everything": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-everything"]
    }
  }
}

Running from source with HTTP+SSE Transport (deprecated as of 2025-03-26)

cd src/everything
npm install
npm run start:sse

Run from source with Streamable HTTP Transport

cd src/everything
npm install
npm run start:streamableHttp

Running as an installed package

Install

npm install -g @modelcontextprotocol/server-everything@latest

Run the default (stdio) server

npx @modelcontextprotocol/server-everything

Or specify stdio explicitly

npx @modelcontextprotocol/server-everything stdio

Run the SSE server

npx @modelcontextprotocol/server-everything sse

Run the streamable HTTP server

npx @modelcontextprotocol/server-everything streamableHttp

相关 MCP 服务