这个MCP服务器旨在全面测试MCP协议的所有功能特性。它并非设计为实用型服务器,而是作为MCP客户端开发者的测试平台。该服务器实现了提示功能、工具调用、资源管理、采样操作等多种功能,以展示MCP协议的完整能力。
echo
message
(字符串):需要回显的消息内容add
a
(数字):第一个加数b
(数字):第二个加数longRunningOperation
duration
(数字,默认值:10):操作持续时间(秒)steps
(数字,默认值:5):进度通知的步数sampleLLM
prompt
(字符串):发送给LLM的提示文本maxTokens
(数字,默认值:100):生成的最大token数getTinyImage
printEnv
annotatedMessage
messageType
(枚举:"error" | "success" | "debug"):消息类型,用于演示不同的注释模式includeImage
(布尔值,默认值:false):是否包含示例图像{
"priority": 1.0,
"audience": ["user", "assistant"]
}

getResourceReference
resourceId
(数字,1-100):要引用的资源ID服务器提供100个测试资源,分为两种格式:
偶数编号资源:
test://static/resource/{偶数编号}
奇数编号资源:
test://static/resource/{奇数编号}
资源特性:
simple_prompt
complex_prompt
temperature
(数字):温度设置style
(字符串):输出风格偏好resource_prompt
resourceId
(数字):要嵌入的资源ID(1-100)服务器每15秒发送随机级别的日志消息,例如:
{
"method": "notifications/message",
"params": {
"level": "info",
"data": "信息级别消息"
}
}

将以下内容添加到您的claude_desktop_config.json
文件中:
{
"mcpServers": {
"everything": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-everything"
]
}
}
}

要快速安装,请使用下面的任一一键安装按钮...
如需手动安装,请将以下JSON块添加到VS Code的用户设置(JSON)文件中。您可以通过按下Ctrl + Shift + P
并输入Preferences: Open User Settings (JSON)
来执行此操作。
或者,您可以将其添加到工作区中的.vscode/mcp.json
文件中。这将允许您与他人共享此配置。
注意:在
.vscode/mcp.json
文件中不需要mcp
键。
{
"mcp": {
"servers": {
"everything": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-everything"]
}
}
}
}

cd src/everything npm install npm run start:sse
cd src/everything npm install npm run start:streamableHttp
npm install -g @modelcontextprotocol/server-everything@latest
npx @modelcontextprotocol/server-everything
npx @modelcontextprotocol/server-everything stdio
npx @modelcontextprotocol/server-everything sse
npx @modelcontextprotocol/server-everything streamableHttp