使用说明
mcp-hello-world 翻译为中文是:“MCP(微服务控制平面)- 你好,世界”
一个打招呼的MCP服务器。
要求
- Node.js 版本 >= 18
安装
npm install
使用
泽德(Zed)
要在Zed中使用此服务器,请将以下内容添加到您的 ~/.config/zed/settings.json 文件:
"context_servers": {
"hello-world": {
"enabled": true,
"source": "custom",
"command": "node",
"args": ["/path/to/your/mcp-hello-world/src/index.js"]
}
}
Gemini 命令行界面(CLI)
要使用Gemini CLI连接到此服务器,请在您的(配置中/代码中等,根据上下文补充具体位置)添加以下内容: ~/.gemini/settings.json 文件:
"mcpServers": {
"hello-world": {
"command": "node",
"args": ["/path/to/your/mcp-hello-world/src/index.js"]
}
}