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

@ai2qa/local-agent

v0.1.17

Published

Universal MCP Server for AI2QA - enables local AI tools and cloud orchestration to control browsers

Readme

AI2QA Local Agent

Universal MCP Server for browser automation. Enables both local AI tools (Claude Code, Cursor, Antigravity) and AI2QA cloud to control browsers.

Features

  • Sidecar Mode: Attach to existing Chrome sessions (preserves cookies, auth, VPN access)
  • MCP Protocol: Standard Model Context Protocol for AI tool integration
  • 9 Browser Tools: navigate, click, fill, hover, press-key, screenshot, snapshot, wait, evaluate

Quick Start

1. Install

cd ai2qa-local-agent
npm install
npm run build

2. Start Chrome with Remote Debugging

# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

# Linux
google-chrome --remote-debugging-port=9222

# Windows
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222

3. Start the Agent

# Sidecar mode (attach to existing Chrome)
npm start -- start --sidecar

# Or with custom port
npm start -- start --sidecar --port 9222

CLI Commands

# Start with stdio (for local AI tools like Claude Code)
ai2qa-agent start

# Start with sidecar mode (default) with custom CDP port
ai2qa-agent start --sidecar --port 9222

# Start in headless mode (no visible browser window)
ai2qa-agent start --headless

# Login to AI2QA cloud (for remote orchestration)
ai2qa-agent login <token>

# Start connected to AI2QA cloud
ai2qa-agent start --cloud

# Check agent status
ai2qa-agent status

# Logout and clear credentials
ai2qa-agent logout

Claude Code Integration

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "ai2qa": {
      "command": "node",
      "args": ["/path/to/ai2qa-local-agent/dist/index.js", "start", "--sidecar"]
    }
  }
}

Or after global install:

npm install -g @ai2qa/local-agent

Then configure:

{
  "mcpServers": {
    "ai2qa": {
      "command": "ai2qa-agent",
      "args": ["start", "--sidecar"]
    }
  }
}

AI2QA Cloud Integration

To connect your local agent to AI2QA cloud for remote test orchestration:

  1. Generate a device token from the AI2QA web UI at https://ai2qa.com/agents

  2. Login with your token:

    ai2qa-agent login <your-token>
  3. Start in cloud mode:

    ai2qa-agent start --cloud

The agent will connect to AI2QA cloud and be available for running test runs from the web interface. This enables testing on internal applications behind VPNs using your local browser session.

Available Tools

navigate_page

Navigate to a URL or perform navigation actions.

{
  "url": "https://example.com",
  "type": "goto"  // goto, reload, back, forward
}

click

Click on an element by selector or ref.

{
  "selector": "button#submit"
}

fill

Fill an input field with text.

{
  "selector": "input[name='email']",
  "value": "[email protected]"
}

hover

Hover over an element.

{
  "selector": ".menu-trigger"
}

press_key

Press a keyboard key.

{
  "key": "Enter",
  "modifiers": ["Control"]
}

take_screenshot

Capture a screenshot.

{
  "fullPage": true,
  "format": "png"
}

take_snapshot

Get accessibility tree/DOM snapshot for AI analysis.

{
  "verbose": true,
  "mode": "accessibility"
}

wait_for

Wait for element, text, or duration.

{
  "selector": ".loaded",
  "state": "visible",
  "timeout": 5000
}

evaluate

Execute JavaScript in page context.

{
  "script": "document.title"
}

Development

# Build
npm run build

# Watch mode
npm run dev

# Run tests
npm test

# Lint
npm run lint

Architecture

┌─────────────────────────────────────────────────────────┐
│                    AI2QA Local Agent                     │
│                                                          │
│  ┌─────────────┐    ┌──────────────┐    ┌────────────┐  │
│  │   Stdio     │    │  MCP Server  │    │ WebSocket  │  │
│  │  Transport  │───►│  (9 tools)   │◄───│ Transport  │  │
│  └─────────────┘    └──────┬───────┘    └────────────┘  │
│        ▲                   │                   ▲        │
│        │                   ▼                   │        │
│  [Claude Code]      ┌──────────────┐    [AI2QA Cloud]   │
│  [Cursor]           │  Playwright  │                    │
│                     │  CDP Bridge  │                    │
│                     └──────┬───────┘                    │
└────────────────────────────┼────────────────────────────┘
                             │
                             ▼
┌────────────────────────────────────────────────────────┐
│  Chrome (--remote-debugging-port=9222)                  │
│  [Already logged into VPN, SSO, internal apps]         │
└────────────────────────────────────────────────────────┘

License

MIT