罗希特 MCP
一个超级简单的MCP(模型上下文协议)服务器,演示了在不到30行的代码中创建自定义工具是多么容易。
它做什么
当你打电话给 rohit 工具,它:
- 将Rohit的照片转换为ASCII艺术
- 以问候语和有趣的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/ 使用系统上此存储库的实际路径。
