这是一个用于通过 Claude 处理 Trello 事务的 MCP 服务器,能有效协助用户与 Trello API 进行交互,实现各类操作。
本服务器提供了两种安装方式,您可按需选择。
uv add mcp-server-trello --main main.py --config config.yaml
python3 main.py
操作 | Board | List | Card | Checklist | Checklist Item |
---|---|---|---|---|---|
读取 | ✅ | ✅ | ✅ | ✅ | ✅ |
写入 | ❌ | ✅ | ✅ | ✅ | ✅ |
更新 | ❌ | ✅ | ✅ | ✅ | ✅ |
删除 | ❌ | ✅ | ✅ | ✅ | ✅ |
import requests
# 发送请求到 SSE 端点
response = requests.get('http://localhost:8000/stream', stream=True)
# 处理响应
for event in response.iter_events():
if event:
print(event)
curl -X POST http://localhost:8000/api/trello/webhook
在安装过程中,建议先阅读 uv 文档 来了解如何管理 MCP 服务。
该服务器允许通过 HTTP 请求与 Trello API 进行交互,并提供以下功能:
# main.py
from fastapi import FastAPI
app = FastAPI()
@app.get("/stream")
async def stream_events():
# 实现 SSE 逻辑
pass
@app.post("/api/trello/webhook")
async def handle_trello_webhook():
# 处理 Trello 回调逻辑
pass
文档中未提及相关许可证信息。
遇到问题时:
.env
文件中的 Trello API 凭证uv run mcp dev main.py
检查日志输出若需要自定义或扩展功能,可以参考上述技术细节部分。同时,欢迎在 GitHub Issues 提交问题或建议。如果希望为该项目贡献力量,请先阅读 贡献指南。