MCP server for coding agents
Let a coding agent take screenshots, read text, inspect accessibility trees and compare images, with your approval and the same redaction rules.
Glimmer includes a Model Context Protocol server. A coding agent that supports MCP can ask Glimmer for a screenshot of the app it’s working on, the text in a window, or its accessibility tree.
Set it up#
- Install the command-line tool.
- Open Settings ▸ Automation. Under Use Glimmer from coding agents, click Copy to copy the configuration.
- Paste it into your agent’s MCP settings. It looks like this, with the full path to your
glimmerlink:
{ "mcpServers": { "glimmer": { "command": "/Users/you/.local/bin/glimmer", "args": ["mcp"] } } }
Tools#
| Tool | What it does | Arguments |
|---|---|---|
list_windows | Lists windows, front to back | bundle_id (optional) |
list_displays | Lists displays | none |
screenshot_window | Captures a window | bundle_id, app_name, title_pattern, window_id, index, max_dimension (default 1568), format |
screenshot_display | Captures a display (the main one by default) | display, max_dimension, format |
ocr | Reads text | a window selector, display, image_base64 or image_path; fast |
accessibility_tree | A window’s accessibility tree | a window selector, max_depth |
visual_diff | Compares a window or display with a baseline image | a window selector or display; baseline_base64 or baseline_path; tolerance, threshold_percent, ignore_masks, include_diff_image |
Approval#
The first time an agent uses a tool, Glimmer asks: Allow “agent name” to use Glimmer? It shows the agent’s name and version, the program that started it, and who signed that program. Click Allow or Don’t Allow.
- Glimmer remembers your answer for that agent. A refusal holds for the rest of the session.
- If you don’t answer within 90 seconds, that request is refused and nothing is remembered.
- Agents are always asked, even with Ask before command-line use off.
- Settings ▸ Automation ▸ Allowed agents and tools lists every agent you’ve answered, with Revoke.
Redaction#
Every image and every piece of text an agent receives passes the redaction gate first: detected secrets are covered. If something needs a person to review it, the tool returns an error and no pixels.
Files named by image_path or baseline_path are read with your agent’s own permissions, not Glimmer’s. Nothing is written to disk.
Next#
Something missing or unclear? Write to [email protected].