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

@testplane/mcp

v0.6.0

Published

MCP server for Testplane tool

Downloads

50

Readme

A Model Context Protocol server for Testplane, which enables LLMs to "see" and interact with any web app.

What can you do with Testplane MCP?

  • Automate generation of integration/e2e tests with LLM-based agents
  • AI Agents no longer have to take guesses as to how your app works — they can truly see what's happening inside a browser and write quality tests for you
  • Let LLMs use text-based or visual-based snapshots, depending on what works better for your app

Getting started

  1. You need Node 18+ and a compatible MCP host (like Claude Desktop, Cursor or Windsurf).

  2. Add Testplane MCP to MCP host of your choice. This is a typical configuration:

    {
        "command": "npx",
        "args": ["@testplane/mcp@latest"],
    }

    Open Cursor Settings (button at the top right corner of the screen), find Tools & Integrations section, click on the New MCP Server button, edit the config to include Testplane MCP as seen below.

    {
        "mcpServers": {
            "testplane-mcp": {
                "command": "npx",
                "args": ["@testplane/mcp@latest"]
            }
        }
    }

    Open VS Code Settings, search for MCP, click Edit in settings.json, edit the config to include Testplane MCP as seen below.

    {
        "mcp": {
            "inputs": [],
            "servers": {
                "testplane-mcp": {
                    "command": "npx",
                    "args": ["@testplane/mcp@latest"]
                }
            }
        }
    }

    Use official docs to open config, then edit the config to include Testplane MCP as seen below.

    {
        "mcpServers": {
            "testplane-mcp": {
                "command": "npx",
                "args": ["@testplane/mcp@latest"]
            }
        }
    }

    Follow the official docs to open MCP settings, then edit the config to include Testplane MCP as seen below.

    {
        "mcpServers": {
            "testplane-mcp": {
                "command": "npx",
                "args": ["@testplane/mcp@latest"]
            }
        }
    }

    Follow the official docs to open MCP settings, then edit the config to include Testplane MCP as seen below.

    {
        "mcpServers": {
            "testplane-mcp": {
                "command": "npx",
                "args": ["@testplane/mcp@latest"]
            }
        }
    }

Available Tools

navigate

Navigate to URL in the browser.

  • Parameters:
    • url (string, required): The URL to navigate to

closeBrowser

Close the current browser session.

launchBrowser

Launch a new browser session with custom configuration options.

  • Parameters:
    • desiredCapabilities (object, optional): WebDriver desired capabilities to forward to the Testplane launcher. Example:

      {
          "browserName": "chrome",
          "goog:chromeOptions": {
              "mobileEmulation": {
                  "deviceMetrics": {
                      "width": 375,
                      "height": 667,
                      "pixelRatio": 2.0
                  }
              }
          }
      }
    • gridUrl (string, optional): WebDriver endpoint to connect to. Default: "local" (lets Testplane MCP manage Chrome and Firefox automatically). Set a Selenium grid URL only when you need other browsers.

    • windowSize (object | string | null, optional): Viewport size for the browser session. Can be:

      • Object format: {"width": 1280, "height": 720}
      • String format: "1280x720"
      • null to reset to default size

Note: Testplane MCP automatically downloads Chrome and Firefox. To launch additional browsers (for example, Safari, Edge, or mobile-specific builds), use the gridUrl parameter to point to your Selenium grid.

listTabs

Get a list of all currently opened browser tabs with their URLs, titles, and active status.

switchToTab

Switch to a specific browser tab by its number (starting from 1).

  • Parameters:
    • tabNumber (number, required): The number of the tab to switch to (starting from 1)

openNewTab

Open a new browser tab, optionally navigate to a URL, and automatically switch to it.

  • Parameters:
    • url (string, optional): The URL to navigate to in the new tab. If not provided, opens a blank tab

closeTab

Close a specific browser tab by its number (1-based), or close the current tab if no number is provided.

  • Parameters:
    • tabNumber (number, optional): The number of the tab to close (starting from 1). If not provided, closes the current tab

Note: Cannot close the last remaining tab. closeBrowser should be used to close the entire browser session.

clickOnElement

Click an element on the page using semantic queries (testing-library-style) or CSS selectors.

  • Parameters:
    • locator (object, required): Element location strategy
      • strategy (string, required): Either "testing-library" or "webdriverio"
      For testing-library strategy:
      • queryType (string, required): Semantic query type. One of:
        • "role" - Find by ARIA role (e.g., "button", "link", "heading")
        • "text" - Find by visible text content
        • "labelText" - Find form inputs by their label text
        • "placeholderText" - Find inputs by placeholder text
        • "altText" - Find images by alt text
        • "testId" - Find by data-testid attribute
        • "title" - Find by title attribute
        • "displayValue" - Find inputs by their current value
      • queryValue (string, required): The value to search for
      • queryOptions (object, optional): Additional options:
        • name (string): Accessible name for role queries
        • exact (boolean): Whether to match exact text (default: true)
        • hidden (boolean): Include hidden elements (default: false)
        • level (number): Heading level for role="heading" (1-6)
      For webdriverio strategy:
      • selector (string, required): CSS selector, XPath or WebdriverIO locator

Examples:

// Testing Library strategy
{
  locator: {
    strategy: "testing-library",
    queryType: "role",
    queryValue: "button",
    queryOptions: { name: "Submit" }
  }
}

{
  locator: {
    strategy: "testing-library",
    queryType: "text",
    queryValue: "Click here"
  }
}

{
  locator: {
    strategy: "testing-library",
    queryType: "labelText",
    queryValue: "Email Address"
  }
}

// WebdriverIO strategy
{
  locator: {
    strategy: "webdriverio",
    selector: ".submit-btn"
  }
}

{
  locator: {
    strategy: "webdriverio",
    selector: "button*=Submit"
  }
}

typeIntoElement

Type text into an input element on the page using semantic queries (testing-library-style) or CSS selectors.

  • Parameters:
    • locator (object, required): Element location strategy
      • strategy (string, required): Either "testing-library" or "webdriverio"
      For testing-library strategy:
      • queryType (string, required): Semantic query type. One of:
        • "role" - Find by ARIA role (e.g., "textbox", "searchbox")
        • "text" - Find by visible text content
        • "labelText" - Find form inputs by their label text
        • "placeholderText" - Find inputs by placeholder text
        • "altText" - Find images by alt text
        • "testId" - Find by data-testid attribute
        • "title" - Find by title attribute
        • "displayValue" - Find inputs by their current value
      • queryValue (string, required): The value to search for
      • queryOptions (object, optional): Additional options:
        • name (string): Accessible name for role queries
        • exact (boolean): Whether to match exact text (default: true)
        • hidden (boolean): Include hidden elements (default: false)
      For webdriverio strategy:
      • selector (string, required): CSS selector or XPath
    • text (string, required): The text to type into the element

Examples:

See above in the clickOnElement tool.

waitForElement

Wait for an element to appear or disappear on the page. Useful for waiting until page loads fully or loading spinners disappear.

  • Parameters:
    • locator (object, required): Element location strategy
      • strategy (string, required): Either "testing-library" or "webdriverio"
      For testing-library strategy:
      • queryType (string, required): Semantic query type. One of:
        • "role" - Find by ARIA role (e.g., "button", "link", "heading")
        • "text" - Find by visible text content
        • "labelText" - Find form inputs by their label text
        • "placeholderText" - Find inputs by placeholder text
        • "altText" - Find images by alt text
        • "testId" - Find by data-testid attribute
        • "title" - Find by title attribute
        • "displayValue" - Find inputs by their current value
      • queryValue (string, required): The value to search for
      • queryOptions (object, optional): Additional options:
        • name (string): Accessible name for role queries
        • exact (boolean): Whether to match exact text (default: true)
        • hidden (boolean): Include hidden elements (default: false)
        • level (number): Heading level for role="heading" (1-6)
      For webdriverio strategy:
      • selector (string, required): CSS selector or XPath
    • disappear (boolean, optional): Whether to wait for element to disappear. Default: false (wait for element to appear)
    • timeout (number, optional): Maximum time to wait in milliseconds. Default: 3000
    • includeSnapshotInResponse (boolean, optional): Whether to include page snapshot in response. Default: true

Examples:

See above in the clickOnElement tool.

takePageSnapshot

Capture a DOM snapshot of the current page with configurable filtering options.

  • Parameters:
    • includeTags (array of strings, optional): HTML tags to include in the snapshot besides defaults
    • includeAttrs (array of strings, optional): HTML attributes to include in the snapshot besides defaults
    • excludeTags (array of strings, optional): HTML tags to exclude from the snapshot
    • excludeAttrs (array of strings, optional): HTML attributes to exclude from the snapshot
    • truncateText (boolean, optional): Whether to truncate long text content (default: true)
    • maxTextLength (number, optional): Maximum length of text content before truncation

Note: By default, only useful tags and attributes are included in snapshots. The response will indicate what was omitted. Use the filtering options only if you need specific content that's not included by default.

takeViewportScreenshot

Capture a PNG screenshot of the current browser viewport.

  • Parameters:
    • filePath (string, optional): Path to save the screenshot (defaults to tmp directory with timestamp in file name)

Note: Screenshots are saved as PNG files. If no filePath is provided, the screenshot will be saved to the system's temporary directory with a filePath like viewport-{timestamp}.png.