AGY Usage Monitor
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.
AGY Usage Monitor
Clean-room, MIT-licensed, strictly read-only telemetry monitor and MCP App (ui://agy-usage-monitor/app.html) for Google Antigravity (Antigravity App, Antigravity IDE, Antigravity Remote Web, and agy CLI).
Highlights
Native MCP App (
postMessage, zero open ports): Renders inside Antigravity's Right Auxiliary Pane (aux_pane), Left Sidebar (global), and Antigravity Remote Web directly over MCP App RPC — zero localhost HTTP/CORS servers and zero--remote-debugging-portElectron CDP injection.Live Topbar & Sidebar Quota Capsule: Dynamically updates the tool and entrypoint title via
notifications/tools/list_changed(e.g.,Usage Monitor · 4h 15m 92% · Wk 50%), replacing static5hlabels with a live rolling reset countdown alongside the weekly limit.Dual-Window Quota Pacing (
RetrieveUserQuotaSummary): Tracks both the rolling 5-Hour Limit and Weekly Limit across Gemini 4 (Neon,Carbon,Hydrogen,Orchestrator) and Claude & GPT pools, complete with linear even-pace target ticks, paused-when-weekly-exhausted detection, and proto3 zero-fraction handling.Instant Session Switcher (
Ctrl+K/⌘K): Fuzzy-search across recent root conversations and auto-follow the latest running session without leaving the dashboard.Near-Zero Prompt Footprint: Registers a single model-visible tool (
open_usage_monitor), while polling (app_get_snapshot) and Markdown export (app_export_markdown) usevisibility: ["app"]so they stay hidden from LLM context.
Related MCP server: AGY Flow Monitor
Read-Only Security & Privacy Architecture
Surface | Source Read | Read-Only Guarantee |
Session & Subagent Index |
| Opened via |
Live Quotas & Trajectories |
| Strictly pinned to |
Fallback Transcript Metrics |
| Read-only JSONL parser; safely ignores incomplete trailing appends |
Safety Monitor & 429 Tailer | Desktop | Incremental byte-offset reader that handles rotation/truncation and deduplicates multi-line LLM safety evaluations |
Host Binaries & Settings | None | Never touches launchers, shortcuts, |
Dashboard Walkthrough
Overview
6-Card Bento Summary:
Output Speed(tok/s),Avg TTFT(ms),Active Context&Cache hit %,Quota Remaining(4h 15m 92% · Wk 50%),Session Tokens(Out · Think), andEst. API Cost.Model Quota Pools: Per-window progress bars (
5-Hour Limit+Weekly Limit) with linear pace badges (Under pace,On pace,Burning fast) and vertical target ticks.Context Cache & Session Agents: Visual Cached-vs-Uncached input bar plus Main + Subagent/Swarm roster filterable from the topbar.
Steps
Searchable, sortable per-turn telemetry (
Context,Cache Hit,Output (Think),TTFT,Speed,Est. Cost) with anomaly chips (Flagged,Low Cache,Slow TTFT,Context Spike,Compacted).
Analytics
24h / 7d / 14d / 30d / All Timerollups showing exact API-equivalent spend, real KV-cache USD savings (saved $...), an SVG daily token chart, a 90-day activity heatmap, and Top Models / Top Workspaces tables.
Safety
Health cards for
Language Server,Session Database,Tool Safety Gate(agy_tool_safety),Flash-Lite Pre-check(sir_flash_lite),Deep Risk Review(severe_internal_risks_agy), andRate Limits (429)plus the recent event log.
Keyboard Shortcuts
Shortcut | Action |
| Toggle searchable Session Switcher modal |
| Navigate and select session inside modal |
| Switch between |
| Focus step search box (on |
Installation (Antigravity Plugin)
Committed dist/ bundles are included so the plugin runs directly with Node.js >= 22.18:
mkdir -p ~/.gemini/config/plugins
git clone https://github.com/vinhthang/agy-usage-monitor.git ~/.gemini/config/plugins/agy-usage-monitor
cd ~/.gemini/config/plugins/agy-usage-monitor
npm ci && npm run build # optional if rebuilding from sourceEnable AGY Usage Monitor in Antigravity's Plugins Manager (Extensions / Plugins), then open Usage Monitor from the side pane + menu or left sidebar (or ask Antigravity: "Open the Usage Monitor panel"). Because Antigravity renders MCP Apps over postMessage, the panel also works automatically when accessing your workstation through Antigravity Remote Web.
Opt-In agy CLI Statusline
To inspect your live statusline capsule (● working · Gemini 4 Neon (High) · ctx 42% · 4h 15m 92% · wk 50% · $0.123) in the terminal agy CLI without any automatic config mutation, print the ready-to-paste snippet:
node ~/.gemini/config/plugins/agy-usage-monitor/dist/cli-statusline.mjs --print-configMerge the printed "statusLine" object into ~/.gemini/antigravity-cli/settings.json (or manage it via /statusline inside agy).
Development & Verification
npm ci
npm run typecheck
npm run build
npm test
npm run verify:distAll source modules under src/ are kept modular (< 300 lines each), and GitHub Actions CI (.github/workflows/ci.yml) runs typecheck, verify:dist, and node --test across ubuntu-latest, macos-latest, and windows-latest on Node 22.18.0.
License
MIT — Clean-room implementation built exclusively on @modelcontextprotocol/ext-apps and Node.js built-in modules (node:sqlite, node:fs, node:test).
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
Read-only Google Search Console and Google Analytics for AI agents.
Agent-native W&B alternative: coding agents read your team's ML runs, metrics and notes. Read-only.
Read-only production context for AI agents: Docker/K8s health, deploys, logs, traffic, code graph
Your website analytics as read-only tools: traffic, pages, errors, speed and AI-assistant visits.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables users to inspect real-time prompt cache hit rate, task throughput, and per-model token usage for Antigravity sessions and 5h/1d/7d windows through an interactive local dashboard. It combines lifecycle hook timing with local transcript data, with zero outbound network telemetry.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
- AlicenseNot gradedqualityBmaintenanceEnables live read-only visibility into Antigravity 2.0 context-window usage, cache hit rate, token trends, and estimated API costs from local logs without model calls or client modification.MIT
- AlicenseNot gradedqualityCmaintenanceEnables users to view live session context window occupancy, step-by-step growth charts, and compaction thresholds alongside a GitHub-style daily token usage heatmap with per-day, per-model, and per-session breakdowns and persistent filters. All data is read strictly read-only from local Antigravity transcripts with no network calls, telemetry, or token overhead.MIT