MCP服务器

一个使用Smithery CLI构建的MCP服务器,支持快速开发和部署。

  • by Phionx
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 Phionx/mcp-hello-server

使用说明

mcp

一个用(某种技术/语言)构建的MCP服务器 Smithery 命令行界面(CLI)

先决条件

入门指南/开始使用

  1. 运行服务器:

    uv run dev
    
  2. 交互式测试:

    uv run playground
    

试着说“向约翰问好”来测试这个示例工具。

发展

您的服务器代码在 src/hello_server/server.py在那里添加或更新您的服务器功能。

部署

准备好部署了吗?将您的代码推送到GitHub,然后部署到Smithery:

  1. 在(某处)创建一个新的仓库 github.com/new(可译为):GitHub 新建项目/仓库页面

  2. 初始化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
    
  3. 将您的服务器部署到Smithery上 smithery.ai/new(可译为:“smithery.ai的新页面”或“smithery.ai的新增内容”,具体根据上下文确定最贴切的译法)