npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-vision-mcp

v0.1.2

Published

Browser-first MCP server that gives agents visual access to live tabs through Chrome DevTools Protocol.

Readme

Agent Vision is a browser-first MCP server that gives agents direct visual access to live Chrome or Brave tabs through the Chrome DevTools Protocol. Instead of asking users to manually capture screenshots and upload them into chat, Agent Vision lets a coding agent resolve a tab by title or URL, capture a real screenshot on demand, and pull structured browser context like visible text, page metadata, and viewport details in the same flow.

Problem

LLM workflows break down when visual browser context is trapped behind manual steps. A user sees an issue in a tab, but the agent cannot see the same thing unless the user pauses, takes a screenshot, uploads it, and adds extra explanation. That friction slows debugging, weakens iteration speed, and loses important structured context that browsers already expose natively. Agent Vision solves this by making browser state directly available as MCP tools.

Workflow

flowchart TD
    A[User asks agent to inspect a browser tab] --> B[Codex calls Agent Vision MCP tool]
    B --> C[Agent Vision queries Chrome DevTools Protocol]
    C --> D[Discover live tabs]
    D --> E[Resolve best matching tab by title or URL]
    E --> F[Capture screenshot through CDP]
    E --> G[Evaluate page for visible text and metadata]
    F --> H[Return MCP image content]
    G --> I[Return MCP structured text content]
    H --> J[Agent receives visual + structured browser context]
    I --> J

Tools

| Tool | What it does | | --- | --- | | getBrowserCdpStatus | Checks whether Agent Vision can reach the configured Chrome DevTools Protocol endpoint. | | discoverBrowserTabsViaCdp | Returns the raw live tab list exposed by Chrome DevTools Protocol. | | refreshLiveBrowserTabs | Refreshes the normalized in-memory live tab model from CDP. | | listLiveBrowserTabs | Returns the cached normalized live tab model without re-querying the browser. | | pruneStaleLiveBrowserTabs | Removes cached tabs that have become stale because they have not been refreshed recently. | | resolveLiveBrowserTab | Resolves the active or best matching tab for a /see-style query using title and URL heuristics. | | captureResolvedBrowserTabScreenshot | Captures a real PNG screenshot from the resolved browser tab via CDP. | | getResolvedBrowserTabContext | Extracts structured page context such as visible text, page title, page URL, language, content type, and viewport metadata. | | seeBrowserTabViaCdp | Runs the full high-level browser inspection flow: resolve tab, capture screenshot, and return structured browser context. |

Setup And Installation

Prerequisites

  • Node.js 22+
  • Brave, Chrome, or another Chromium-based browser
  • Codex configured locally with MCP support

Install dependencies

npm install
npm run build

Start a CDP-enabled browser session

brave-browser --remote-debugging-port=9222 --user-data-dir=/tmp/agent-vision-cdp

Register Agent Vision in Codex

Add this to ~/.codex/config.toml:

[mcp_servers.agent-vision]
command = "/home/kedar/.nvm/versions/node/v22.22.0/bin/node"
args = ["/home/kedar/Desktop/Projects/llm_vision/dist/mcp-stdio.js"]

Then restart Codex.

Verify the MCP server is available

codex mcp list

Example Usage

Manual local verification

npm run demo-cdp

Example Codex prompts

Use the agent-vision MCP server to list my live browser tabs.
Use the agent-vision MCP server to inspect the active browser tab.
Use the agent-vision MCP server to inspect the tab matching "docs".

Future npm-distributed registration shape

After publishing, the Codex config can switch to:

[mcp_servers.agent-vision]
command = "npx"
args = ["-y", "agent-vision-mcp"]

License

MIT. See LICENSE.