ghost-inspector-mcp

v0.4.1
io.github.charliemtnez/ghost-inspector-mcp Checked 3 days ago Published 2 months ago

Analyze, validate and safely update Ghost Inspector end-to-end browser tests

Values you need

VariableWhat it is
GHOST_INSPECTOR_API_KEYrequired secret Your personal Ghost Inspector key, from Account Settings then API Access. Read fresh on every call, never written to disk, never echoed back.
GHOST_INSPECTOR_ORG_IDoptional Organization id. Needed only to execute a validation; read it from gi_whoami.
GHOST_INSPECTOR_ALLOW_WRITESoptional Set to exactly true to let the five write tools act. They are listed either way; anything else keeps the server read-only.
GHOST_INSPECTOR_ALLOW_RUNSoptional Set to "true" to let gi_run_test execute a stored test against a real environment, which can submit a real form. Deliberately not implied by GHOST_INSPECTOR_ALLOW_WRITES: an edit can be rolled back from the backup this server returns, a submission cannot. Defaults to false.
GHOST_INSPECTOR_BACKUP_DIRoptional Where the write path saves the prior definition of every test it touches, credentials removed. Defaults to ~/.ghost-inspector-mcp/backups, created owner-only.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add ghost-inspector-mcp -e 'GHOST_INSPECTOR_API_KEY=<GHOST_INSPECTOR_API_KEY>' -- npx -y ghost-inspector-mcp@0.4.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ghost-inspector-mcp": {
      "args": [
        "-y",
        "ghost-inspector-mcp@0.4.1"
      ],
      "command": "npx",
      "env": {
        "GHOST_INSPECTOR_API_KEY": "<GHOST_INSPECTOR_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ghost-inspector-mcp": {
      "args": [
        "-y",
        "ghost-inspector-mcp@0.4.1"
      ],
      "command": "npx",
      "env": {
        "GHOST_INSPECTOR_API_KEY": "<GHOST_INSPECTOR_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GHOST_INSPECTOR_API_KEY",
      "id": "ghost-inspector-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "ghost-inspector-mcp": {
      "args": [
        "-y",
        "ghost-inspector-mcp@0.4.1"
      ],
      "command": "npx",
      "env": {
        "GHOST_INSPECTOR_API_KEY": "${input:ghost-inspector-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ghost-inspector-mcp]
command = "npx"
args = ["-y", "ghost-inspector-mcp@0.4.1"]
env = { "GHOST_INSPECTOR_API_KEY" = "<GHOST_INSPECTOR_API_KEY>" }

For AI agents

  1. Ask the user for: GHOST_INSPECTOR_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: gi_whoami, gi_inventory, gi_module_usage, gi_stale_tests, gi_find_tests, gi_get_test, gi_test_result, gi_test_history, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json