Antigravity Token Monitor
Reads local Google Antigravity transcript logs to monitor token usage, context window headroom, cache hit rate, and estimated TPS across sessions and models.
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 Token Monitor
Local telemetry tools for Google Antigravity (VS Code extension, Antigravity Desktop, and Antigravity IDE) that read ~/.gemini/antigravity/brain/<conversation-id>/.system_generated/logs/transcript.jsonl to display live token usage, context window headroom, cache hit rate, and estimated TPS.
Everything runs 100% locally on your machine. No external network calls, analytics, or telemetry.
1. Antigravity Plugin (Side Pane & Sidebar)
An MCP App plugin rendered inside Antigravity's Side Pane (aux_pane) and Left Sidebar (global):
Context window meter (stacked Cached + New Input vs. Free headroom, with
200k/1M/2Mpresets)Estimated TPS (
lastTurnTps&avgTpsfrom step timestamps)Session totals ledger (Total processed, Cache hit %, Uncached input, Output generated)
Context growth chart across recent turns (keyboard & mouse inspectable)
By model and Recent sessions tabs with live 3-second auto-refresh
Install
agy plugin install https://github.com/riandycandra/antigravity-token-monitorThen open Token Monitor from the + menu in the side pane, under Plugins in the left sidebar, or ask "Open the Token Monitor" in chat.
Related MCP server: Gauge
2. VS Code / Open VSX Status Bar Extension
A lightweight, zero-dependency status bar item showing live stats in the bottom bar of VS Code, Antigravity IDE, Cursor, or Windsurf:
Ctx 327.0k (33%) · Cache 86.1% · In 5.46M · Out 318.2k · ~81 t/sHover: shows exact counts and a per-model breakdown table
Click: opens a QuickPick menu to switch/pin conversations, refresh immediately, or cycle context limits (
200k/1M/2M)Warning highlight: turns amber at
>= 75%and red at>= 90%of the configured context limit
Install
Open VSX Registry (Antigravity IDE, Cursor, Windsurf, VSCodium): search for
riandycandra.antigravity-token-statusbarin the Extensions panel, or visit:https://open-vsx.org/extension/riandycandra/antigravity-token-statusbarGitHub Releases (VS Code
.vsix): downloadriandycandra.antigravity-token-statusbar-1.0.0.vsixfrom Releases and run:code --install-extension riandycandra.antigravity-token-statusbar-1.0.0.vsix
Development & Building from Source
# Rebuild the Antigravity MCP App bundle (dist/app.html + zero-dependency dist/server.cjs)
pnpm install
node scripts/build.mjs
# Package the VS Code / Open VSX .vsix
node vscode-statusbar/build-vsix.mjsLicense
MIT
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
OpenAI organization usage and cost reporting through an admin API key connected by the user.
Track API spend, credit balances and runway across OpenAI, Anthropic, OpenRouter and 25 more.
Heartbeat and tokens/sec monitoring for self-hosted LLM servers (Ollama etc.), with down alerts.
Heartbeat and tokens/sec monitoring for self-hosted LLM servers (Ollama etc.), with down alerts.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents such as Claude Code, Cursor, Codex, and OpenCode to query local token usage, costs, quotas, projects, and models through six strictly read-only tools. All data stays on the local machine, drawn from passively parsed session logs rather than uploaded telemetry.MIT
- AlicenseAqualityBmaintenanceEnables local monitoring of Codex token usage, prompt-cache reuse and estimated credits by reading existing session logs and exposing an embedded dashboard plus tools for whole-chat, latest-call and latest-prompt readings and call history. All collection and refresh stay local on-device, requiring no model calls, API key or hosted backend.5MIT
- 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 users to inspect real prompt-cache hit rates, context-window usage, and compaction events in a side pane using local transcript data.2MIT