
proactive-mcp
io.github.madrobotnet由 GitHub 账号 madrobotnet 发布v0.2.0更新于 Oct 24, 2026
Detects reply deadlines, calendar conflicts, and personal occasions for MCP agents.
概览
一个本地优先的 MCP 服务器,以只读方式监视 Gmail 和 Google 日历并结合本地记忆,向助手提示回复期限、日程冲突和个人纪念日。
- 可以做什么
- 保存、回忆、更新、列出和删除关于人物、日期与上下文的本地记忆条目。检查待处理情境,例如回复期限、重叠的日历事件和临近的个人纪念日,并可列出、查看、确认、稍后提醒或静音。使用回执令牌确认已审阅的一批情境的投递。报告经过脱敏的连接与守护进程状态。后台监视器以只读方式同步 Gmail 和日历,并可发出关键的操作系统通知。
- 适用场景
- 适合希望让已有的本地助手主动提示收件箱和日历中时效性事项的用户,例如未回复的问题、日程冲突或临近的个人日期,并由助手控制投递而非自动推送。
- 运行要求
- 本地 Python 运行环境及 uv 和 Git;由于 PyPI 版本缺少安装向导,README 从固定源码提交安装。需要自备 Google Cloud Desktop OAuth 客户端 JSON,并授予 Gmail 和日历只读权限。可选地为监视器安装 systemd、LaunchAgent 或任务计划程序服务。需要调用这些工具的宿主助手。
安装
在 SourceWeft 中
- 打开 控制台中的 proactive-mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
proactive-mcp
Give every AI agent a reason to reach out first.
A local-first MCP server that turns read-only signals and local memory into grounded situations your existing agent can deliver at the right time.
English · 한국어
[Python 3.11+] [MCP 2.x] [Local-first] [PyPI] [MIT License] [Ko-fi]
Why · How it works · Get started · Connect an agent · Documentation
Get started
Set up the local watcher and OS notifications first; connecting an agent is optional. Install uv and Git, and prepare your own Google Cloud Desktop OAuth client JSON.
The PyPI release 0.2.0 does not yet contain the wizard. Until an onboarding release is published, the commands below use uvx --from to install the merged source at commit 7cd0f03, without a manual checkout. Keep the same --from source for every command: bare uvx proactive-mcp still selects the older PyPI package. This is a source install, not a new PyPI release.
-
Install and start interactive setup:
-
The wizard asks for the path to your own Google Cloud Desktop OAuth client JSON and whether it may open a browser on this device. Approve the read-only Gmail and Calendar consent with your own client. See
docs/SETUP_GOOGLE.mdfor the complete flow. -
After Google authorization, accept the offer to install the watcher service. The shared
proactive-mcp service install|status|removeinterface manages a Linux systemd user service, a macOS LaunchAgent, or a Windows Task Scheduler task. -
If you decline service installation, or if installation succeeds, interactive
setupthen attempts a fixed PII-free OS test notification titledproactive-mcpwith the bodySetup test notification. It contains no Gmail, Calendar, account, or Situation data. A redactedunavailable,timeout,failed, orunsupported_platformwarning means the notification could not be shown. -
If you decline service installation, or if installation fails, such as because of permissions, run the watcher manually. A failed installation exits before attempting the test notification.
Terminal 1, foreground daemon
Terminal 2, daemon status
daemon --once runs one evaluation pass and exits; --poll-interval-minutes MINUTES overrides the cadence. status prints redacted connection and daemon state as JSON. The daemon performs local sync, deterministic evaluation, queue maintenance, and the documented OS fallback only. It never runs a host or LLM. Host scheduling is separate: the host/operator starts scheduled agent runs, and those runs call proactive_check.
An OS fallback notification is neither agent delivery nor a delivered state transition. When fallback is enabled, only the first unreceived eligible Situation gets the one-time bootstrap exception; afterward the default fallback is critical-only. Agent delivery begins only when a host calls proactive_check.
Compatibility mode
--non-interactive, --headless, --client-secrets PATH, and --reauth all bypass the wizard. They do not prefill wizard answers, and they also bypass the service proposal and setup test notification. Use them only when you need direct OAuth setup, then install the service manually or use the manual daemon route above. To manage the service, use the same source prefix:
Replace install with status to inspect the service or remove to unregister it. uvx does not add a permanent proactive-mcp command to your shell; command names such as proactive-mcp status in this guide use the full uvx --from prefix above.
Why proactive-mcp?
AI agents know how to answer. They rarely know when to start.
proactive-mcp supplies that direction. It watches approved read-only sources in the background, combines them with memory the user intentionally saved, and produces a structured Situation only when something is worth raising now.
Situations, not notifications
proactive-mcp doesn't push every new event into your chat. Deterministic detectors turn source data into a small set of situations grounded in the source data:
Each result carries a title, why it matters now, bounded evidence, suggested actions, priority, and expiry. External text remains explicitly untrusted.
How it works
- A watcher synchronizes Gmail and Calendar with read-only OAuth scopes.
- The situation engine evaluates deterministic rules against source snapshots and local memory.
- The agent calls
proactive_checkand receives any returned situations. - The host reviews the whole lease and filters candidates for this user. Uncertain candidates may remain unconfirmed or be snoozed. Only when choosing confirmation after review does the host confirm the entire reviewed lease exactly once, including confidently dropped candidates.
- Acknowledgement, snooze, mute, resolution, cooldown, and daily budget rules prevent repeated or noisy delivery.
By default, non-critical situations are held during local quiet hours from 21:00 through 07:00 and stay pending for a later check instead of being dropped. Nothing fires automatically at 07:00: an already-running or host-scheduled agent must call proactive_check after quiet hours end.
Trust boundaries
- Google access is limited to
gmail.readonlyandcalendar.readonly. - Credentials use the operating-system keyring when available, with a private local fallback only when the platform keyring is unavailable.
- Message bodies, calendar text, and recalled memory are treated as untrusted evidence, never as instructions.
- No LLM or third-party cloud service sits inside the detection pipeline. proactive-mcp never launches a host agent/model or sends it a prompt.
- Stale or incomplete sources produce visible degraded status, never a false "nothing to report."
- The SQLite database,
config.toml, credential authority marker, and any file-backed credential fallback live under~/.proactive-mcp/. A keyring credential stays in the operating-system keyring, outside that directory.PROACTIVE_DATABASEmoves the file-backed state, not the keyring entry.
Connect an agent
Connecting a host is optional. It isn't a prerequisite for OS notifications, but it enables richer delivery plus acknowledge, snooze, and mute actions. Use this existing-agent instruction when you want to register the MCP server:
If you used the source install above, tell the agent to keep that same pinned uvx --from source in its MCP registration instead of switching to PyPI. The reusable block and host recipes below retain the public-install command shape.
Optional: paste into a local agent
proactive-mcp is agent-dependent: it exposes local stdio tools but never starts Grok, Codex, Hermes, another host agent, or a model. serve-scheduled is only a restricted MCP server surface. Starting it or the daemon alone does not create a conversation or delivery; pending situations wait for an already-running or host-scheduled agent to call the tools explicitly.
The host loads serve only in an interactive everyday conversation and serve-scheduled only in a separate manual or scheduled conversation. It never loads both profiles into one conversation. Profile isolation and agent lifecycle are host/operator responsibilities outside the plugin. Automated scheduling is supported only when the host provides a dedicated per-run MCP profile containing only serve-scheduled; otherwise fail closed by not scheduling it. Manual restricted use remains possible.
The daemon may perform local sync, deterministic evaluation, queue maintenance, and the documented critical-only OS fallback. It never invokes an agent/LLM or sends prompts. Exact host responsibilities and command shapes are in docs/INTEGRATIONS.md.
The delivery contract
When an agent calls proactive_check:
- Read
warningsfirst. Stale-source warnings are not an all-clear. Areply_deadlineis a conservative candidate, not an action verdict. - Before speaking, confidently drop newsletters, marketing, automated receipts, FYI or FYI-CC with no ask, threads owned by someone else, and rows with no question, request, or decision for this user.
- Keep explicit reply, RSVP, or decision requests, user-owned deadlines, and unanswered questions directed to this user.
- Surface uncertain candidates, leave the whole lease unconfirmed, or snooze them from the interactive profile. Never silently discard uncertainty as non-actionable.
- After reviewing every row, only when choosing confirmation, use the
receipt_tokenfrom that check to callconfirm_deliveryexactly once for the entire reviewed lease. That confirmation includes candidates the host confidently and silently dropped. Never confirm a tokenless response. - Keep MCP tool names, descriptions, fields, and values in English. Speak to the user in the user's language.
- Keep interactive everyday and scheduled work in separate conversations. Load only
servein the former and onlyserve-scheduledin the latter, never both. The host/operator owns this isolation; if a dedicated per-run profile is unavailable, do not automate the scheduled run.
This confirmation step keeps delivery history accurate across crashes, retries, and multiple agents.
Tool surface
Memory
remember · recall · update · list_entities · forget
Situations and delivery
proactive_check · confirm_delivery · list_situations · get_situation · acknowledge_situation · snooze_situation · mute_situation · get_status
Release status
Scope and release decisions remain canonical in docs/PRODUCT_PLAN.md.
Documentation
License
MIT © 2026 Kyungwoo Seo <[email protected]>
This project was built with OmO Native.
You can support this project on Ko-fi.
来源:README.md,提交 f3dcc1a
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分