MCP服务器

一个简单的MCP服务器,用于将照片转换为ASCII艺术并返回问候语和有趣的CS事实。

  • by dnnyngyen
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 dnnyngyen/rohit-mcp

使用说明

罗希特 MCP

一个超级简单的MCP(模型上下文协议)服务器,演示了在不到30行的代码中创建自定义工具是多么容易。

它做什么

当你打电话给 rohit 工具,它:

  1. 将Rohit的照片转换为ASCII艺术
  2. 以问候语和有趣的CS事实作为回报

文件

  • rohit_mcp.py -MCP服务器(24行代码!)
  • rohit.png -Rohit的照片
  • requirements.txt -依赖关系

快速启动

pip install -r requirements.txt
python rohit_mcp.py

任何MCP客户端的设置

将此添加到您的MCP客户端配置中(例如。, ~/.cursor/mcp.json 光标):

{
  "rohit": {
    "command": "python3",
    "args": ["/path/to/rohit_mcp/rohit_mcp.py"],
    "env": {}
  }
}

替换 /path/to/rohit_mcp/ 使用系统上此存储库的实际路径。