docs2prompt的MCP服务器
docs2prompt 是由开发的python库和行工具 大不里士 它将github存储库中的文档或托管在专用网站上的文档转化为LLM友好的提示。
此存储库包含一个MCP服务器,该服务器包装了docs2prompt,供任何MCP客户端(Cursor、Claude、Windsurf等)使用。
运行服务器(开发)
- 安装UV```
curl -LsSf https://astral.sh/uv/install.sh | sh
2. 克隆存储库:```
git clone https://github.com/Melbourneandrew/docs2prompt-mcp
- 将其放入MCP客户端配置中(添加您的路径和 github访问令牌):
{ "mcpServers": { "docs2prompt": { "command": "uv", "args": [ "--directory", "/YOUR/LOCAL/PATH/docs2prompt-mcp/src", "run", "main.py" ], "env": { "GITHUB_TOKEN": "" } } } }
如果需要,以下是为普通客户设置MCP的指南:
- 光标
- 克劳德桌面
