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

webos-devtools-mcp

v0.2.0

Published

Page-scoped MCP server for Chrome DevTools Protocol automation, built for WebOS application debugging

Readme

webos-devtools-mcp

A page-scoped MCP server for Chrome DevTools Protocol automation. Works with any page-scoped websocket endpoint, but built for use with WebOS in particular.

Background

This MCP server connects directly to a Chrome DevTools page WebSocket endpoint, unlike chrome-devtools-mcp which requires a browser-targeted endpoint.

This distinction matters when debugging environments that only expose page-level sockets, such as:

  • WebOS applications
  • Embedded Chromium instances
  • Remote debugging scenarios with limited access

Installation

pnpm install
pnpm build

Usage

The server requires a page WebSocket endpoint. You can provide it via:

Command-line flag:

node ./dist/index.js --endpoint ws://localhost:9222/devtools/page/ABC123...

Environment variable:

PAGE_WS_ENDPOINT=ws://localhost:9222/devtools/page/ABC123... node ./dist/index.js

MCP Configuration

Add to your MCP settings file (e.g., claude_desktop_config.json):

{
  "mcpServers": {
    "chrome-page-devtools": {
      "command": "node",
      "args": [
        "/path/to/webos-devtools-mcp/dist/index.js",
        "--endpoint",
        "ws://localhost:9222/devtools/page/YOUR_PAGE_ID"
      ]
    }
}
}

Tool Categories & Filtering

All tools are grouped into categories. By default every category is enabled, but you can tailor the surface area with command-line flags:

  • --tools=core,dom,network – register only the listed categories
  • --without-tools=remote – register every category except the ones listed

Available categories:

| Category | Description | |---------------|---------------------------------------------------------| | core | Evaluation, logs, and screenshots | | dom | DOM inspection utilities | | dom-actions | DOM interaction helpers (click, type, overlays) | | navigation | Page navigation and reload helpers | | storage | Cookies and storage tools | | network | Network capture and inspection | | remote | Remote-control / key input tooling | | overlay | Visual overlay utilities | | events | Event listener inspection | | console | Console streaming and status tools |

Example:

node ./dist/index.js --endpoint ws://... --tools=dom,network --without-tools=remote

Available Tools

Core Tools (core)

  • evaluate_expression - Execute JavaScript in the page context

DOM Inspection (dom)

  • dom_query_selector - Query and inspect elements by CSS selector
  • dom_get_outer_html - Retrieve the full HTML of an element
  • dom_accessibility_tree - Dump the accessibility tree
  • dom_list_event_listeners - List DOM event listeners attached to an element, document, or window

DOM Interaction (dom-actions)

  • dom_click - Click an element
  • dom_type_text - Type text into inputs/textareas

Navigation (navigation)

  • page_navigate - Navigate to a URL
  • page_reload - Reload the current page

Storage (storage)

  • storage_list_cookies - List cookies
  • storage_set_cookie - Create or update a cookie
  • storage_delete_cookie - Delete a specific cookie
  • storage_clear_cookies - Clear all cookies
  • storage_list_local_storage - List localStorage entries
  • storage_set_local_storage - Set a localStorage item
  • storage_remove_local_storage - Remove a localStorage item

Network Capture (network)

  • network_start_capture - Begin capturing network requests
  • network_stop_capture - Stop capturing network requests
  • network_clear_capture - Clear captured requests
  • network_list_requests - List captured requests with filtering (method, resource type, failed only)
  • network_get_request_body - Retrieve request or response body for a specific request

Remote Control Keys (remote)

  • remote_press_key - Dispatch remote control keys (arrows, OK, back, colored buttons, media controls, etc.)
  • remote_type_text - Send text via character key events

Core Logging & Screenshots (core)

  • list_logs - Retrieve buffered console messages, exceptions, and logs
  • clear_logs - Clear the log buffer
  • take_screenshot - Capture a screenshot

Console Streaming (console)

  • console_subscribe - Begin streaming console output in real time
  • console_unsubscribe - Stop streaming console output
  • console_stream_status - Report current console streaming status

Visual Overlays (overlay)

  • overlay_highlight - Highlight an element matching a selector
  • overlay_highlight_focused - Highlight the currently focused element (document.activeElement)
  • overlay_hide - Hide any active overlay highlight immediately

Resources

  • resource://about/version – Exposes package version, build metadata (commit hash, dirty flag, generation timestamp), and Node runtime information