@modemdev/glance-claude
v0.1.0
Published
glance.sh plugin package for Claude Code
Readme
glance.sh plugin for Claude Code
Claude Code plugin that adds glance.sh screenshot tools via MCP.
What it does
Adds two MCP tools:
glance— creates/reuses a live session and returns a URL likehttps://glance.sh/s/<id>glance_wait— waits for the next pasted image and returnsScreenshot: https://glance.sh/<token>.<ext>
The server keeps a background SSE listener alive, reconnects automatically, and refreshes sessions before they expire.
Install
Recommended (npm-backed marketplace plugin):
/plugin marketplace add modem-dev/glance-agent-plugins
/plugin install glance-claude@glance-agent-pluginsThis plugin is distributed as @modemdev/glance-claude and installed through Claude Code's plugin marketplace flow.
Local development (plugin dir)
From this repo root:
claude --plugin-dir ./agent-plugins/claudeOr from inside agent-plugins/:
claude --plugin-dir ./claudeVerify
- Run
/mcpand confirm aglanceserver is connected. - Ask Claude to call the
glancetool. - Open the returned
https://glance.sh/s/<id>URL and paste an image. - Ask Claude to call
glance_wait. - Confirm Claude receives
Screenshot: <url>.
Update / remove
- Update:
/plugin update glance-claude - Remove:
/plugin uninstall glance-claude
If you have multiple plugins with the same name from different marketplaces, use the fully qualified form (glance-claude@glance-agent-plugins).
Publishing (maintainers)
Releases are automated via GitHub Actions.
Prerequisite: configure NPM_TOKEN in the glance-agent-plugins repository with publish access to @modemdev/glance-claude.
- Bump
versionin both:claude/package.jsonclaude/.claude-plugin/plugin.json
- Commit and push to
main. - Create and push a matching tag:
git tag claude-v0.1.0
git push origin claude-v0.1.0The Release claude package workflow validates tag/version alignment, checks for already-published versions, runs npm pack --dry-run, and publishes with npm provenance.
How it works
Claude calls glance
└─▶ MCP server POST /api/session
└─▶ returns session URL
Claude calls glance_wait
└─▶ waits for SSE image event
User pastes image at /s/<id>
└─▶ glance.sh emits image event
└─▶ tool returns Screenshot: <url>Requirements
- Claude Code with plugin support
- Node.js runtime available to Claude Code (for stdio MCP server)
Configuration
Optional environment variable:
GLANCE_BASE_URL(default:https://glance.sh)
