关于 dsharipova-mcp-hw
dsharipova-mcp-hw 是使用 Smithery CLI 构建的示例 MCP 服务。README 展示了问候工具的测试方式,并说明如何开发和部署该服务。
主要功能
- 01示例问候工具
- 02通过 playground 交互测试
- 03开发服务器功能
- 04通过 Smithery 部署
适用场景
- 01试用个性化问候示例
- 02交互式测试 MCP 工具
MCP 相关
向 MCP 客户端提供示例问候工具。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
服务地址
https://server.smithery.ai/@dsharipova/mcp-hw/mcp一键复制安装命令
Claude CodeTerminal
claude mcp add --transport http ai-smithery-dsharipova-mcp-hw https://server.smithery.ai/@dsharipova/mcp-hw/mcpCursor.cursor/mcp.json
{"mcpServers":{"ai-smithery-dsharipova-mcp-hw":{"type":"http","url":"https://server.smithery.ai/@dsharipova/mcp-hw/mcp"}}}在 Cursor 中打开VS Code.vscode/mcp.json
{"servers":{"ai-smithery-dsharipova-mcp-hw":{"type":"http","url":"https://server.smithery.ai/@dsharipova/mcp-hw/mcp"}}}在 VS Code 中打开Claude Desktopclaude_desktop_config.json
{"mcpServers":{"ai-smithery-dsharipova-mcp-hw":{"type":"http","url":"https://server.smithery.ai/@dsharipova/mcp-hw/mcp"}}}Windsurf~/.codeium/windsurf/mcp_config.json
{"mcpServers":{"ai-smithery-dsharipova-mcp-hw":{"serverUrl":"https://server.smithery.ai/@dsharipova/mcp-hw/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
全部服务地址
Streamable HTTP
https://server.smithery.ai/@dsharipova/mcp-hw/mcp需要授权工具
详细介绍
mcp-1
使用 Smithery CLI 构建的 MCP 服务
前提条件
- Smithery API key:前往 smithery.ai/account/api-keys 获取
开始使用
-
运行服务:
uv run dev -
交互式测试:
uv run playground
尝试说“向 John 问好”来测试示例工具。
开发
服务代码位于 src/hello_server/server.py。在此处添加或更新服务功能。
部署
准备好部署了吗?将代码推送到 GitHub 并部署到 Smithery:
-
在 github.com/new 创建新仓库
-
初始化 git 并推送到 GitHub:
git add . git commit -m "Hello world 👋" git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git git push -u origin main -
在 smithery.ai/new 将服务部署到 Smithery
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。