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

@spotterjs/mcp

v1.0.4

Published

spotterjs MCP server - desktop automation, workspace files, and shell

Readme

@spotterjs/mcp

中文文档

spotterjs MCP server exposes desktop automation, optional Android companion automation, OCR, workspace file I/O, and optional shell execution to MCP clients.

Install

npm install @spotterjs/mcp @spotterjs/core

Development build:

npm run build -w @spotterjs/mcp
npx spotterjs-mcp

Minimal Configuration

{
  "mcpServers": {
    "spotterjs": {
      "command": "npx",
      "args": ["-y", "@spotterjs/mcp"],
      "env": {
        "SPOTTERJS_WORKSPACE_ROOT": "C:/path/to/your/project"
      }
    }
  }
}

Enable shell, Android, or accessibility tools explicitly:

{
  "SPOTTERJS_ALLOW_SHELL": "1",
  "SPOTTERJS_ANDROID": "1",
  "SPOTTERJS_A11Y": "1"
}

Full configuration, tool lists, response shapes, and security policy are documented in docs/en/MCP.md.

Chinese docs: docs/zh-CN/MCP.md.

Agent Workflows

For live desktop vision, prefer the combo tools when the agent would otherwise capture and immediately inspect the same image:

| Tool | Use it for | |------|------------| | desktop_capture_and_ocr | Capture screen, active, or window, write an artifact, then OCR the same original capture | | desktop_capture_and_find_template | Capture once and run template matching on that exact capture | | desktop_find_template_and_tap | Capture once, find the best template, and tap the match center only on success |

Minimal OCR call:

{
  "source": "active",
  "text": "Send",
  "modelProfile": "server",
  "debugImage": true
}

Minimal template-and-tap call:

{
  "image": { "path": "C:/path/to/button.png" },
  "confidence": 0.9,
  "debugImage": true
}

Combo tools default source to "screen" and detail to "original". source: "window" requires windowId. All desktop visual results return coordinateSpace: "screen" and a workspace imagePath under .spotter/artifacts.

Lower-level desktop_capture_*, ocr_*, and desktop_find_template tools remain available when an artifact already exists or the agent needs manual control over each step.

Desktop OCR, template matching, mouse click/tap, and accessibility tap tools also support opt-in debugImage: true responses. These return annotated workspace PNGs plus normalized matchScore diagnostics for matching results.

Android companion tools cache android_connect sessions by deviceId (default: "default"), so follow-up tools can use the short { "deviceId": "default" } shape after pairing. The legacy { "url": "...", "sessionToken": "..." } shape remains supported for one-shot calls.

Android visual tools mirror the desktop artifact flow: android_capture_screen writes a PNG under .spotter/artifacts, android_find_template matches on the same captured frame, and android_find_template_and_tap taps only after a successful match. Results use coordinateSpace: "android-device".

Safety Notes

  • Desktop and Android tools operate on real devices. Use them only on trusted machines and prefer read-only discovery before input actions.
  • Shell execution is disabled unless SPOTTERJS_ALLOW_SHELL=1.
  • File tools are scoped to SPOTTERJS_WORKSPACE_ROOT.
  • desktop_find_template_and_tap does not click when matching fails; keep confidence thresholds high enough for destructive workflows.