context-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.
Antigravity Context Monitor
Local MCP App plugin for Antigravity Desktop (v0.2.0) that displays per-conversation context window usage in both the compact side panel (aux_pane) and the full-page sidebar fleet workspace (global).
Features
Dual-surface responsive UI: Adapts via CSS Container Queries between the compact
aux_paneinspector (< 760px) and a two-column master-detailglobalsidebar workspace (>= 760px).Paginated fleet explorer (
list_conversations): Displays interactive fleet KPIs (Interactive / Total,>= 70% used,Checkpointed,Running), debounced text search,Interactive | Show all | Subagents | Backgroundfiltering, usage/checkpoint/running filter chips, sorting, andLoad morepagination.Offline workspace picker & persistence: Discovers registered projects from
~/.gemini/config/projects/*.jsonand persists user workspace and filter preferences server-side in${PLUGIN_DATA}/preferences.jsonviaset_context_preferences.Mount-hydrated detail telemetry: Hydrates
get_context_snapshoton mount to render an inline SVG context trajectory chart (with compaction markers and interactive turn scrubbing), rankedTop tools, diskArtifacts, cumulative session input/cache counters,> 24 KBrule cap warnings, andConversationServicestatus.Capability-gated host actions: Supports
Attach context(app.updateModelContext) and click-to-open artifact/rule files (com.google.antigravity/toggle-aux-pane) in conversation-bound views.
Related MCP server: Antigravity Context Card
What it reads & writes
Reads (local disk):
Conversation transcripts at
~/.gemini/antigravity/brain/<conversation-id>/.system_generated/logs/transcript.jsonl(andtranscript_full.jsonlwhen<= 4 MiB)Conversation artifacts at
~/.gemini/antigravity/brain/<conversation-id>/*.mdand optional*.md.metadata.jsonConversation titles from
~/.gemini/antigravity/annotations/<id>.pbtxtand optionalConversationServiceenrichment when availablePlugin enablement precedence from
~/.gemini/config/config.json(plugins.<name>.enabled) overplugin.jsonProject-to-workspace mappings under
~/.gemini/config/projects/*.jsonand MCProots/listLocal MCP tool schemas at
~/.gemini/antigravity/mcp/Global and workspace rules and skills under
~/.gemini/GEMINI.md,~/.gemini/config/, and active workspaceGEMINI.md,AGENTS.md,.agents,.agent,_agents, and_agentdirectories
Writes (plugin-private only):
${PLUGIN_DATA}/preferences.json(workspace override andincludeSubagentspreference; falls back to in-memory-only mode if--data-diris unset or unexpanded)
Exact metrics vs local estimates
Exact values from transcripts: active prompt context (
input_tokens + cache_read_tokens), cached vs uncached input split, output tokens, compaction checkpoints, turn count, cumulative session input/cache-read/cache-invalidation counters, bounded context trajectories, model ID, and timestamps.Local estimates (clearly labeled in the UI): CLI-aligned category breakdown (
System and baseline,Tool calls,User messages,Agent responses, conditionalCheckpoint buffer, and conditionalSystem messages), ranked top tool-call contributors, artifact byte estimates, and disk-based token estimates for configured MCP schemas, rules, and skill headers.
Build and test
npm ci
npm run build
npm test
npm run validateInstall into Antigravity
From a GitHub Release archive
Download context-monitor-v0.2.0.zip (and optional .sha256), remove any previous installation directory so stale files do not linger, and extract into Antigravity's plugins folder:
rm -rf ~/.gemini/config/plugins/context-monitor
unzip -q context-monitor-v0.2.0.zip -d ~/.gemini/config/plugins/Then reload context-monitor_context-monitor from Antigravity Desktop settings.
Maintainer local sync & release packaging
Preview or apply an atomic allowlist-only sync (plugin.json, mcp_config.json, README.md, assets/, dist/) into ~/.gemini/config/plugins/context-monitor, or package a validated release zip into release/:
npm run sync -- --dry-run
npm run sync
npm run packageAfter running npm run sync, reload context-monitor_context-monitor manually from Antigravity Desktop settings.
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 analytics for Convex apps, queryable via MCP from Claude, Cursor, and other clients.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
Read-only context from your desktop activity, so your AI assistant knows what you worked on.
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 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 gradedqualityBmaintenanceEnables inspecting Google Antigravity sessions to break down context window composition and prefix-cache hits, rank token-heavy tool output hotspots, track every workspace file the agent read or modified, and search past transcripts and artifacts bilingually. It also lets users open touched files natively in a side pane and inject redacted historical excerpts or file references directly into the next prompt.MIT
- AlicenseNot gradedqualityBmaintenanceProvides local-first real-time telemetry and a dashboard for Antigravity Desktop, enabling users to track tokens, cache efficiency, models, subagent rollups, tool calls, and storage entirely on-device.1MIT