Log Lens
Pairs Colab task logs with colab_job_status.json to surface GPU utilization, VRAM, power draw, epoch hints, Drive sync status, and credential purge state, with live polling for Colab training telemetry.
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.
Log Lens (agy-log-lens)
English | 简体中文
Interactive training log, Google Colab telemetry, and scientific experiment dashboard plugin (MCP App) for Google Antigravity.
Log Lens turns plain training logs, multi-stage .live.json / *_results.json snapshots, verification gate suites, and structured @@ telemetry streams into faceted charts, pass/fail gate matrices, comparison tables, image previews, and searchable live tails inside Antigravity.

Features
Tier 0 Zero-Intrusion Parsing:
Training Logs (
*.log): Extractsep X/Y/Epoch X/Y,[StageN X/Y]progress offsets, inlinekey=valuemetrics (with scientific notation), throughput telemetry (ms/step,tok/s,samples/s), embedded JSON blocks ([Init Val]),best=<val>@<step>, and[PASS]/[FAIL]/WARN/ERRORevents while filtering out dataset-count prose and checkpoint-resume noise.Live & Multi-Stage JSON Snapshots (
*.live.json,*_results.json): Automatically parses single-stage (history,metrics,records) and multi-stage (stage2_history,stage3_history) arrays, plus hierarchical verification suites (checks,gates,all_passed).Google Colab Telemetry Pairing: Pairs
cache/colab_tasks/<session>/job_<session>.logwith siblingcolab_job_status.jsonto display GPU utilization, VRAM, power draw,epoch_hint, Drive sync status, and credential purge state.Smart Auto-Faceting: Separates
lronto its own log-scale facet, splits series whose magnitude differs by>20x, bounds correlation curves (*_corr,*_r2) to[-1, 1], and highlights statistical spike anomalies in red.
Tier 1
@@Structured Telemetry Protocol:Emit single-line
@@meta,@@metric,@@gate,@@table, and@@artifactJSON records tostdoutor.exp.jsonl/.agvlogfiles via the bundled zero-dependency Python helperhelpers/python/agy_viz.py.Unlocks target threshold bands,
bestStepvertical markers, physical units, live upserted verification gates, highlighted baseline comparison tables, and inline diagnostic plots.
Four Antigravity UI Surfaces:
Side Pane (
aux_pane) & Full Page (global) viaopen_log_lens: Multi-run overlay comparison (comparePaths), EMA smoothing slider,Auto/Log-Y/Linearscale toggle, drag-to-zoom, searchable log tail, and one-click Send to Chat (updateModelContext).Inline Chat Card (
inline) viapreview_log_card: Compact<= 450pxsummary card with sparklines, target badges, and gate counts.Experiment File Viewer (
file) viaview_log_file: Opens*.agvlogand*.exp.jsonldirectly as interactive dashboards.
0-Token Incremental Live Polling:
Active/recent runs automatically start
2sbyte-cursor tailing via app-onlyapp_poll_source, refreshing charts and Colab GPU telemetry without consuming LLM context tokens.
Related MCP server: xenia
Install
Prebuilt dist/server.mjs and self-contained dist/app.html are committed in the repository, so no Node build toolchain is required to install and use the plugin.
Option 1: Install Globally
git clone https://github.com/dbydd/agy-log-lens.git ~/.gemini/config/plugins/log-lensOption 2: Sync into a Workspace
git clone https://github.com/dbydd/agy-log-lens.git
node agy-log-lens/scripts/sync-plugin.mjs --no-build /path/to/your/workspaceAfter installing, open Customizations → Plugins in Antigravity (or run agy plugin list) to verify log-lens is enabled.
Usage
Ask Antigravity naturally, or let an agent invoke the MCP App tools directly:
Tool | UI Surface | When to Use |
| Side Pane / Full Page | Inspect the latest auto-discovered run ( |
| Inline Chat Card | Render a compact checkpoint summary with sparklines, min/max bounds, and gate statuses directly in chat. |
| File Viewer | Open |
By default, Log Lens scans the active workspace under:
cache/colab_tasks/&cache/runs/,measured/artifacts/*/{measured,runs,cache,cache/colab_tasks}
Tier 1 @@ Protocol & agy_viz.py
Drop helpers/python/agy_viz.py anywhere on your PYTHONPATH (or copy the single file into a Colab script — standard library only, Python 3.10+, duck-types PyTorch/NumPy scalars via .item(), and converts NaN/Inf to JSON null):
from agy_viz import VizLogger
with VizLogger(
path="measured/run.exp.jsonl", # optional file output (also tees to stdout)
run="multiscale_v1",
stage="stage1",
x_key="epoch",
x_label="Epoch",
targets={
"val_rmse": {"lt": 0.15, "label": "Target < 0.15m"},
"ke_ratio": {"range": [0.85, 1.15], "label": "KE [0.85, 1.15]"},
},
units={"val_rmse": "m", "lr": "1"},
groups={"train_loss": "Loss", "val_rmse": "Validation"},
total_steps=60,
) as viz:
for ep in range(1, 61):
print(f"[Train] ep {ep}/60 loss={loss:.4f} val_rmse={rmse:.4f}", flush=True)
viz.metric(ep, train_loss=loss, val_rmse=rmse, lr=current_lr)
viz.gate("G1 Invariant Parity", passed=True, suite="Physics", value="1.9e-15", target="< 1e-12", step=60)
viz.table(
"Ablation Summary",
columns=["model", "val_rmse"],
rows=[{"model": "Baseline", "val_rmse": 0.24}, {"model": "Ours", "val_rmse": 0.11}],
highlight_best={"val_rmse": "min"},
)
viz.artifact("Rollout Error Field", "measured/rollout_ep60.png", step=60)Or print raw @@ protocol lines from any language:
@@meta {"run":"exp1","xKey":"epoch","targets":{"val_rmse":{"lt":0.15}},"bestStep":40,"totalSteps":60}
@@metric {"step":1,"train_loss":0.245,"val_rmse":0.184,"lr":0.0003}
@@gate {"name":"Energy Conservation","status":"pass","pass":true,"suite":"G2","value":-0.03,"target":"< 0","step":1}
@@table {"title":"Baseline Comparison","columns":["model","val_rmse"],"rows":[{"model":"Baseline","val_rmse":0.24},{"model":"Ours","val_rmse":0.11}],"highlightBest":{"val_rmse":"min"}}
@@artifact {"label":"Rollout Error Map","path":"measured/rollout.png","step":40}Configuration
Environment Variable | Description |
| Explicit workspace root used for automatic source discovery and relative path resolution (falls back to |
| Optional delimiter-separated list ( |
| Optional extra directory scanned for |
Development & Validation
Requires Node.js >= 20 and Python >= 3.10:
npm install
npm run typecheck
npm run build
npm test
npm run test:py
npm run validateLicense
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
Experiment tracking for coding agents: read your team's ML runs, metrics and lineage. Read-only.
GPU nodes and clusters, custom experiments, AI training and calculation reports for team workspaces.
Generate answers & visualizations from your engineering data to track software development health.
Interactive data visualization and executive PDF dashboards for ChatGPT, Claude, and Cursor.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to create interactive charts, diagrams, and tables displayed on a real-time dashboard, supporting multiple data sources with privacy-focused local execution.1MIT
- FlicenseAqualityBmaintenanceEnables monitoring and analysis of agent goal achievement and failures across sessions, repos, and tools, with detailed views and tracing.3-
- AlicenseAqualityCmaintenanceEnables AI agents to browse and filter experiment runs, retrieve metrics, logs, tables, and artifacts, plot comparisons as PNG images, and download full-fidelity training history for local analysis against a self-hosted Open Train server. It also provides diagnostic tooling that surfaces metric evidence and investigation leads without asserting causality.16MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to track ML experiments with a reproducible write contract, internal git snapshots, and a queryable knowledge graph, plus a live web UI for humans.Apache 2.0