conversation-monitor
Monitors and manages Google Antigravity conversation status: auto-pins running chats with 🟢, marks quota/network interruptions with 🟡, clears interrupted badges, and restores titles/pins.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Antigravity 对话状态监控 (conversation-monitor)
轻量、专注的 Google Antigravity 对话运行与异常中断状态监控插件(MCP App)
Lightweight status monitor for Google Antigravity: auto-pins running chats with 🟢 and marks quota/network interruptions with 🟡 (auto-clears on resume).
一键安装 / One-Line Install
Antigravity CLI (agy)
agy plugin install https://github.com/LEFTX1/antigravity-conversation-monitor
python -m pip install mcpWindows (PowerShell)
irm https://raw.githubusercontent.com/LEFTX1/antigravity-conversation-monitor/main/install.ps1 | iexmacOS / Linux (Bash)
curl -fsSL https://raw.githubusercontent.com/LEFTX1/antigravity-conversation-monitor/main/install.sh | bash安装脚本会自动将插件安装至
~/.gemini/config/plugins/conversation-monitor,自动检测并安装mcp>=1.2.0依赖,且升级覆盖时保留原有本地状态数据。安装后重启 Antigravity(或在 Customizations > Installed 开关重载插件)即可生效。
Related MCP server: Antigravity Context Card
核心特性 / Key Features
运行中自动置顶与
🟢状态标:对话处于RUN_STATE_RUNNING时自动置顶到左侧栏顶部并加🟢前缀;运行结束后自动取消自动置顶并还原原标题(绝不覆盖用户手动置顶)。额度 / 网络中断
🟡标记:当任务因配额耗尽(RESOURCE_EXHAUSTED、429、503、MAX_TOKEN_BUDGET_EXCEEDED等)或网络/流异常(EOF、timeout、wsarecv、500/502、stream was interrupted等)中断时,自动在标题旁打上黄色圆点🟡。支持左侧 / 右侧自由切换:可在交互面板或通过 MCP 工具将
🟡位置切换为左侧(🟡 标题,默认)或右侧(标题 🟡),立即同步至左侧栏。重新运行自动消失:中断的对话一旦重新开始运行,
🟡会立即自动移除并切换为🟢(正常结束后恢复干净标题);也支持手动一键清除单个或全部🟡。零冗余、极简专注:无任何 Token/上下文全量扫描、无桌面弹窗打扰;彻底忽略子代理(Subagent)会话与用户主动取消(
USER_CANCELED/RUN_STATE_CANCELLING)。
状态流转机制 / Status Lifecycle
stateDiagram-v2
[*] --> Idle: 新建/空闲对话
Idle --> Running: "SessionStart / PreInvocation / RUN_STATE_RUNNING"
Running --> Idle: "Stop (正常完成 / USER_CANCELED)"
Running --> Interrupted: "Stop (额度耗尽 / 网络中断 / 流异常)"
Interrupted --> Running: "重新运行 (🟡 立即消失 → 🟢)"
Interrupted --> Idle: "手动 clear_interrupted / restore_all"
note right of Running: "自动置顶 + 🟢 标题标"
note right of Interrupted: "取消自动置顶 + 左/右侧 🟡 标"
note right of Idle: "恢复原标题,保留手动置顶"可用 MCP 工具 / MCP Tools (conversation-monitor_status)
工具名 | 说明 |
| 打开「对话状态监控」交互式面板(支持右侧辅助栏与全局视图) |
| 立即扫描并同步全部对话的置顶、 |
| 配置 |
| 清除指定对话(传入 |
| 还原所有由本插件管理的自动置顶并清除全部 |
配置项说明 / Configuration
配置键 | 类型 | 默认值 | 说明 |
|
|
| 运行中是否自动置顶到左侧栏顶部 |
|
|
| 运行中是否在标题前加 |
|
|
| 额度/网络中断时是否显示 |
|
|
|
|
|
|
| 后台轮询兜底间隔(秒,最小 |
项目结构 / Project Architecture
conversation-monitor/
├── plugin.json # Antigravity 原生插件清单
├── mcp_config.json # MCP stdio 服务配置
├── hooks.json # SessionStart / PreInvocation / Stop 生命周期钩子
├── pyproject.toml # Python 项目元数据与 Ruff 规范配置
├── requirements.txt # 运行依赖 (mcp>=1.2.0)
├── install.ps1 / install.sh # Windows / macOS / Linux 一键安装脚本
├── assets/
│ └── logo.svg # 插件矢量图标
├── skills/conversation-monitor/
│ └── SKILL.md # Agent Skill 使用说明
├── scripts/
│ ├── sync_status.py # Hook 与 CLI 轻量入口
│ ├── mcp_server.py # FastMCP 服务端与后台同步线程
│ └── monitor/ # 核心业务包
│ ├── __init__.py # 公共 API 导出
│ ├── config.py # 常量、日志轮转、跨平台文件锁与原子状态存储
│ ├── rpc.py # Language Server 自动发现与 Connect RPC 封装
│ ├── classifier.py # 标题徽标解析、额度/网络中断分类与尾部切片读取
│ └── engine.py # 状态同步引擎、快照构建与 Hook 处理
├── ui/
│ └── app.html # 精简交互式 MCP App 面板
└── tests/
├── test_classifier.py # 分类器、徽标与尾部读取单元测试
└── test_engine.py # 完整生命周期与状态迁移单元测试本地开发与测试 / Development & Testing
# 运行 Python 单元测试
python -m unittest discover -s tests -v
# 语法编译检查
python -m py_compile scripts/sync_status.py scripts/mcp_server.py scripts/monitor/*.py
# 手动执行一次状态同步或导出快照
python scripts/sync_status.py
python scripts/sync_status.py --snapshot隐私与安全 / Privacy & Security
100% 本地运行:仅连接本机 Antigravity Language Server 接口,并按需读取本地
transcript.jsonl尾部最后数 KB 片段用于识别中断错误;不扫描 Token 用量,不上传任何数据到外部服务器。状态隔离:运行时状态保存在 Antigravity 的
${PLUGIN_DATA}(或本地data/目录),已被.gitignore严格排除,不会进入版本库。
卸载 / Uninstall
在 Antigravity 的 Customizations > Installed 中卸载 对话状态监控 (conversation-monitor),或先还原状态再删除目录:
# Windows
python "$env:USERPROFILE\.gemini\config\plugins\conversation-monitor\scripts\sync_status.py" --restore
Remove-Item -Recurse -Force "$env:USERPROFILE\.gemini\config\plugins\conversation-monitor"# macOS / Linux
python3 ~/.gemini/config/plugins/conversation-monitor/scripts/sync_status.py --restore
rm -rf ~/.gemini/config/plugins/conversation-monitorLicense
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live Google Antigravity quota reset tracker, history, intervals, and multilingual announcements.
Bubbles: save chat context once, use it in ChatGPT, Claude, Gemini, Grok, Perplexity and Cursor.
Read-only Google Antigravity global quota reset tracker, X announcement history, and limit rules.
Monitor your Mac and let AI agents report progress or request human help.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents and users to view live Google Antigravity Desktop model quota percentages and reset countdowns in the title bar, force quota refreshes, and manage the injected badge through MCP tools.42MIT
- AlicenseNot gradedqualityBmaintenanceEnables real-time monitoring of Google Antigravity context usage with detailed Messages/Thinking/Tool breakdowns, cache and checkpoint telemetry, one-click compaction, and smart suggested replies across Desktop, IDE, and CLI/tmux.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables Google Antigravity users to view 5-hour and weekly model quota balances alongside offline local token usage, context size, and cache hit rates from a side-pane interface.MIT
- AlicenseNot gradedqualityCmaintenanceEnables real-time visualization of Google Antigravity agent execution, including tool calls, parallel subagents, MCP routing, context usage, and local session telemetry through an embedded side-pane dashboard.MIT