MCP Ops Brief Agent
Enables agencies to generate deterministic, ranked operational briefs by combining delivery status, financial performance, and recent client communication from ClickUp, QuickBooks, and Gmail.
README
MCP Ops Brief Agent
A read-only, MCP-style Ops Brief Agent for agencies and IT service companies managing multiple clients. It combines delivery status, financial performance, and recent client communication into a deterministic, ranked operational brief.
This repository is a portfolio/demo implementation, not a production deployment. It does not claim measured performance, accuracy, cost savings, or time savings.
Data sources
- ClickUp supplies the schedule hierarchy: Client (Folder) → Project (List) → Milestone (Task).
- QuickBooks Online sandbox supplies project or milestone budgets and actual costs.
- Gmail uses read-only access to find the latest agency-sent client update associated with each canonical milestone ID.
Canonical milestone IDs, such as MS-2026-101-01, provide deterministic joins across systems. Project IDs are derived using the repository's canonical ID scheme. Fuzzy matching is prohibited.
Architecture
ClickUp ─────┐
QuickBooks ──┼→ adapters → normalized records → deterministic scoring → ranked ClientScore[]
Gmail ───────┘
↓
Claude readable brief
↓
deterministic output validation
↓
Ops Brief
Connector data is normalized and scored deterministically before Claude is called. Claude Sonnet is only the readable reporting layer: it does not calculate or change risk scores or risk flags. Its structured response is locally validated against the deterministic ClientScore[] before it is accepted.
The current deterministic engine supports the risk and data-quality decisions implemented in the code, including:
- schedule risk based on expected versus phase-derived completion;
- overdue milestones based on due dates;
- communication risk based on the age of the latest agency-sent update;
- budget risk based on spend relative to budget and completion progress;
- supported data-gap flags, including missing budgets and low-volume data.
Verified demo hierarchy
Client: Acme Corp
Projects:
- Website Redesign
- SEO Retainer
Milestones:
- Design Phase
- Development Phase
- Monthly Optimization
The demo records verify both milestone-based and project-wide costing modes. Demo names and values are fixture/sandbox data, not claims about a real business.
Safety boundaries
The current system is read-only:
- no autonomous client communication or Gmail sending;
- no QuickBooks write actions;
- no ClickUp write actions;
- Gmail access is limited to the
gmail.readonlyscope; - Claude cannot override deterministic scoring or flags;
- malformed, incomplete, reordered, or contradictory Claude output is rejected locally.
OAuth refresh may update local token files under credentials/, but it does not modify accounting, email, or project-management records.
Deterministic joins and costing
The only cross-system association is an exact canonical identifier:
- ClickUp tasks carry a canonical milestone ID.
- Gmail message subjects are matched against exact bracketed milestone IDs.
- QuickBooks Customer Notes contain an exact
MilestoneID: ...orProjectID: ...value.
Milestone notes select milestone-based costing; project notes select project-wide costing. No client name, project name, email address, or approximate text match is used as a cross-system join.
Development
npm.cmd install
npm.cmd run typecheck
npm.cmd run build
npm.cmd test
npm.cmd run run:live executes the live read-only connector pipeline and calls Claude to format the already-ranked result. It requires locally configured credentials and should not be used as an offline test command.
Local credentials
Credential and token files belong under credentials/, which is ignored by Git. Environment files, dependencies, and generated build output are also ignored. Never commit API keys, OAuth client secrets, access tokens, refresh tokens, authorization headers, or personal email addresses.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。