Skip to main content
Glama

DailyBot MCP

一个本地小型 MCP 服务器,让 Littlebird 通过已安装的 DailyBot CLI 读取并提交你的 DailyBot 签到。

要求

  • Python 3.10+

  • uv

  • DailyBot CLI 3.8+,并已以 Littlebird 应访问其签到的用户身份完成认证

先验证 DailyBot:

dailybot --version
dailybot status --auth

如有需要,进行认证:

dailybot login

Related MCP server: Slack Gitlab Digest Model Context Protocol MCP Server

安装

在此仓库目录下,安装依赖:

uv sync

运行

用于手动后台运行:

./mcpctl start
./mcpctl status
./mcpctl logs  # Ctrl-C stops following logs, not the server
./mcpctl stop

运行时状态和日志存储在被忽略的 .run/ 目录下。

如需在前台运行:

uv run dailybot_mcp.py

MCP 端点仅在你的机器上可用,地址为:

http://127.0.0.1:8765/mcp

此服务器仅限 localhost;不提供远程或托管端点。

连接 Littlebird

  1. 在 Littlebird 中打开 设置 > 集成。

  2. 添加自定义 MCP 服务器。

  3. 在服务器 URL 中输入 http://127.0.0.1:8765/mcp。

  4. 为需要 DailyBot 的聊天或例程启用该集成。

工具

list_checkins(date: str | None = None) -> dict[str, Any]
get_checkin(checkin_id: str) -> dict[str, Any]
get_checkin_history(checkin_id: str, from_date: str, to_date: str, search: str | None = None, limit: int | None = None) -> dict[str, Any]
submit_checkin(checkin_id: str, answers: list[str], response_date: str | None = None, confirmed: bool = False) -> dict[str, Any]
  • list_checkins 列出某一天的待处理和已完成签到。

  • get_checkin 返回签到的配置和有序问题。

  • get_checkin_history 返回 DailyBot 在任意包含性日期范围内提供的回复,可选地按 search 过滤,并以 limit 限制数量。

  • submit_checkin 仅在你明确批准后,当 confirmed=True 时按问题顺序提交答案。

日期使用 YYYY-MM-DD 格式。历史结果遵循你的 DailyBot 账户权限。

开发

测试会模拟 DailyBot,不会接触真实账户:

uv run python -m unittest -v

故障排除

  • DailyBot 不在 PATH 中: 确保在启动服务器的同一 shell 中 dailybot --version 能正常工作。

  • DailyBot 未认证: 运行 dailybot login,然后用 dailybot status --auth 验证。

  • Littlebird 无法连接: 确认服务器进程仍在运行,且 URL 确切为 http://127.0.0.1:8765/mcp。

  • 端口已被占用: 在启动此服务器前,停止使用端口 8765 的进程。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers