
Cue
io.github.murtazox04v0.1.0更新于 Oct 11, 2026
Notify people through Cue: preferences, attention budgets, quiet hours and approval apply.
概览
让助手通过 Cue 实例向人发送通知,并受该实例的偏好、预算、免打扰时段和审批规则约束。
- 功能
- Cue 是一个注意力层,决定某个事件是否值得通知某人、说什么、何时发送以及走哪条通道。该 MCP 服务器提供通知人员和查看投递情况的工具,并沿用 Cue 的策略与审计记录。决策涵盖规则、频率上限、冷却、免打扰时段、模板和通道回退,每个结果都会被记录。
- 适用场景
- 当智能体需要触达真实用户(如发货更新、故障、评审请求),且希望通知按收件人偏好、注意力预算和免打扰时段过滤,而不是直接发送时使用。适合已运行 Cue 实例、希望智能体在授权范围内通知并查看投递情况的团队。
- 运行要求
- 通过 stdio 在本地运行,使用 uvx 从 cue-notify 包启动,因此需要 Python 和 uv。需要可访问的 Cue 实例:CUE_URL 指定其基础地址,CUE_API_KEY(绑定到智能体的密钥)用于认证。仅限桌面端,不支持网页执行。
安装
README
Cue
The attention layer between software, AI agents and people.
Your product and your agents report what happened;
Cue decides whether it is worth someone's attention, what to say, when, and over which
route, then hands a ready-to-send message to the delivery you plug in.
People now hear from more software than ever: your product, background jobs, and a
growing number of AI agents acting on someone's behalf. Each sender is reasonable alone;
together they bury the person, and phones increasingly silence them. Cue is the one place
that decides. Your backend (or an agent) reports what happened — order.shipped,
payment.failed, pr.review_requested — and Cue decides whether a notification is
warranted, which template and language to use, when to send it in the recipient's time
zone, how important it really is, and which route to try first. It renders the message
and hands it to whatever delivery you connect: your own service, a webhook, or a
ready-made connector.
Delivery is pluggable. The decisions are Cue's job — and every one of them is recorded, so "why didn't this user get the message?" becomes a query, not an investigation.
Your delivery endpoint then receives a signed, fully rendered message:
What Cue decides
- Whether — rules with JSON Logic conditions, priorities, wildcards, deterministic rollouts and a dry-run endpoint; unsubscribes, frequency caps, cooldowns and deduplication applied to every message; fatigue that backs off from people who stopped paying attention.
- What — localised, sandboxed Jinja2 templates with per-route variants (a short SMS, a rich e-mail), versioning and previews; optional AI rewording through any Pydantic AI model, with guardrails that keep numbers and links verbatim.
- How often — digests that turn a burst of events into one message per window ("Ann, Bo and 10 others commented"), optionally summarised by AI, plus thread ids so phones and mail clients stack related messages.
- When — delays, quiet hours in each recipient's time zone, scheduled broadcasts, expiry for messages that go stale, and importance levels phones understand.
- Who decides — the person: a hosted preference page (or a JSON API for your own), RFC 8058 one-click unsubscribe for Gmail and Yahoo, and a consent ledger of every change.
- Where — an ordered list of routes per rule (e.g. push, then SMS), every address a person has on a route, fallback on permanent failure, retries on transient failure, dead addresses disabled automatically.
Built for AI agents
- Agents as first-class senders. Each agent gets its own key with a per-person attention budget, an importance ceiling and, where you want it, human approval before anything goes out. See agents.
- Screening. Optionally, a decision model (Jev) reads each agent message before it is sent: pressure, deception or leaked secrets hold it for a person, and overstated importance is lowered. It costs under a cent per hundred messages and adds no latency to sends.
- MCP built in.
uvx cue-notify mcpgives Claude, Cursor or your own agent tools to notify people and inspect delivery, with the same policy and audit trail. - Claude Code plugin.
/plugin marketplace add murtazox04/Cue, then/plugin install cue@cue, teaches Claude to integrate Cue into your app. - SDKs.
pip install cue-notify-clientandnpm install cue-client, both with webhook signature verification. See SDKs. - Docs for machines.
llms.txtandAGENTS.md.
Bring your own delivery
Each route (push, sms, email, ops-alerts…) is backed by a connector:
Connectors are configuration, not code changes — swap SMS vendors without touching a rule.
Also
- Engagement tracking — delivered, opened, clicked, converted; client apps report with a per-message token, no API key needed.
- Broadcasts — audience filters, resumable batches, pause/resume/cancel without double sends.
- AI agents — an MCP server (
cuectl mcp) lets Claude, Cursor or your own agents notify people and inspect delivery within the scopes you grant. - Simple to run — one Python service and PostgreSQL (or SQLite). No Redis, no broker, no cron: the durable job queue lives in your database.
- Observable — per-rule event outcomes, status reasons, Prometheus metrics, JSON logs.
Quick start
Or with Python 3.12+:
Then follow the getting-started guide.
How it works
Configuration
Environment variables (CUE_SECTION__KEY) or a cue.toml:
See the configuration reference and
examples/cue.toml.
Project status
Cue is in early development (0.x): the model and API are stable in shape but may still change before 1.0. See the roadmap for what comes next. Feedback and contributions are very welcome — see CONTRIBUTING.md.
License
来源:README.md,提交 f9aea56
工具
0版本历史
1- v0.1.0最新Oct 11, 2026

