此MCP服务器旨在展示MCP协议的所有功能。它不是一个有用的服务器,而是用于测试MCP客户端构建者的测试服务器。它实现了提示、工具、资源、采样等功能,以展示MCP的能力。
echo
message(字符串):要回显的消息add
a(数字):第一个数字b(数字):第二个数字longRunningOperation
duration(数字,默认值:10):持续时间(秒)steps(数字,默认值:5):进度步骤数printEnv
sampleLLM
prompt(字符串):发送给LLM的提示maxTokens(数字,默认值:100):生成的最大标记数getTinyImage
annotatedMessage
messageType(枚举:"error" | "success" | "debug"):演示不同注解模式的消息类型includeImage(布尔,默认值:false):是否包含示例图像{
"priority": 1.0,
"audience": ["user", "assistant"]
}
getResourceReference
resourceId(数字,1-100):要引用的资源ID"resource"startElicitation
color(字符串):最喜欢的颜色number(数字,1-100):最喜欢的数字pets(枚举):最喜欢的宠物structuredContent
location(字符串):一个位置或邮政编码,无论值为何都会返回模拟数据structuredContent 字段listRoots服务器提供了两种格式的100个测试资源:
偶数编号的资源:
test://static/resource/{even_number}奇数编号的资源:
test://static/resource/{odd_number}资源特性:
simple_prompt
complex_prompt
temperature(字符串):温度设置style(字符串):输出风格偏好resource_prompt
resourceId(数字):要嵌入的资源ID(1-100)服务器展示了MCP根目录协议的能力:
roots: { listChanged: true } 能力,表示支持根目录roots/list_changed 通知listRoots 工具来显示当前根目录注意:此服务器实际上并不访问文件,但展示了服务器如何与根目录协议进行交互,以便客户端理解哪些目录可用于文件操作。
服务器每隔15秒发送随机级别的日志消息,例如:
{
"method": "notifications/message",
"params": {
"level": "info",
"data": "信息级别消息"
}
}
在您的 claude_desktop_config.json 中添加以下内容:
{
"mcpServers": {
"everything": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-everything"
]
}
}
}
快速安装,请使用下面的一个一键安装按钮...
手动安装时,您可以使用以下方法之一配置MCP服务器:
方法1:用户配置(推荐)
将配置添加到您的用户级MCP配置文件中。打开命令面板(Ctrl + Shift + P)并运行 MCP: 打开用户配置。这将打开您的用户 mcp.json 文件,在其中您可以添加服务器配置。
方法2:工作区配置
或者,您可以在工作区中的 .vscode/mcp.json 文件中添加配置。这将允许您与其他人员共享配置。
关于VS Code中MCP配置的更多详细信息,请参阅官方VS Code 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