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

@energycap/gi-mcp-server

v1.1.0

Published

MCP server exposing Ghost Inspector API tools for Playwright conversion

Readme

gi-mcp-server

An MCP (Model Context Protocol) server that exposes Ghost Inspector API tools for use with AI coding agents (e.g. GitHub Copilot). Responses are filtered to only the fields relevant for Playwright test conversion.

Tools

get_test

Fetches a single Ghost Inspector test by ID, returning fields useful for Playwright conversion:

| Field | Description | |---|---| | name | Test name | | details | Test description | | passing | Whether the test is currently passing | | screenshotCompareEnabled | Whether screenshot comparison is enabled | | screenshotComparePassing | Whether screenshot comparison is passing |

get_test_result

Fetches the most recent result for a Ghost Inspector test, returning fields useful for Playwright conversion:

| Field | Description | |---|---| | name | Test name | | screenshotUrl | URL of the final screenshot (screenshot.original.defaultUrl) | | screenshotCompareThreshold | Screenshot comparison threshold | | startUrl | The URL the test starts at | | steps | Array of executed test steps |

list_suites

Fetches all Ghost Inspector suites in your account:

| Field | Description | |---|---| | _id | Suite ID | | name | Suite name | | testCount | Number of tests in the suite |

update_test

Updates a Ghost Inspector test's name and/or suite assignment. Returns a success confirmation.

| Parameter | Required | Description | |---|---|---| | testId | Yes | The ID of the test to update | | name | No | New name for the test | | suite | No | ID of the suite to move the test to |

Installation

npm install -g @energycap/gi-mcp-server

Or use directly via npx without installing:

npx @energycap/gi-mcp-server

Configuration

Set the GI_API_KEY environment variable to your Ghost Inspector API key (found in your account settings):

export GI_API_KEY=your_api_key_here

MCP Client Setup

VS Code (GitHub Copilot agent)

Add the server to your VS Code settings.json:

{
  "mcp": {
    "servers": {
      "gi-mcp-server": {
        "type": "stdio",
        "command": "npx",
        "args": ["-y", "@energycap/gi-mcp-server"],
        "tools": ["get_test", "get_test_result", "list_suites", "update_test"],
        "env": {
          "GI_API_KEY": "your_api_key_here"
        }
      }
    }
  }
}

Or if installed globally:

{
  "mcp": {
    "servers": {
      "gi-mcp-server": {
        "type": "stdio",
        "command": "gi-mcp-server",
        "tools": ["get_test", "get_test_result", "list_suites", "update_test"],
        "env": {
          "GI_API_KEY": "your_api_key_here"
        }
      }
    }
  }
}

GitHub Copilot Custom agents

Add your GI API key to the copilot environment secrets. Make sure it's prefixed with COPILOT_MCP_. For more information, see here.

Then add the MCP server to your custom agent's config file:

---
name: my-custom-agent
description: My custom agent description
tools: ['gi-mcp-server/get_test', 'gi-mcp-server/get_test_result', 'gi-mcp-server/list_suites', 'gi-mcp-server/update_test']
mcp-servers:
  gi-mcp-server:
    type: 'stdio',
    command: 'npx',
    args: ['-y', '@energycap/gi-mcp-server'],
    tools: ['get_test', 'get_test_result', 'list_suites', 'update_test'],
    env: 
      GI_API_KEY: ${{ secrets.COPILOT_MCP_GI_API_KEY }}
---

Custom agent prompt here

For more information, see custom agents configuration.

Building from source

npm install
npm run build
npm start

Publishing

npm publish --dry-run  # verify contents first
npm publish