Analyze, validate and safely update Ghost Inspector end-to-end browser tests
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server for the Ghost Inspector API, so you can work with end-to-end browser tests from whatever agent you already use β Claude, OpenAI, OpenCode, your own automation β instead of clicking through the web UI.
Fourteen tools. Nine only read, four write, and one runs a test for real. All of them are always listed β the gated ones refuse when called without their opt-in rather than hiding, so nothing has to be inferred from an absent tool.
The table is a map of the surface. Each tool's own description, which is what your agent actually reads, is where the detail and the gotchas live.
Understand an account
| Tool | Access | What it does |
|---|---|---|
gi_whoami | read | Verifies your API key, lists the organizations it can reach with their ids, and reports which gates are open. Start here when something is misconfigured, or when an agent tells you this server cannot modify anything. |
gi_inventory | read | The whole account as a folder β suite tree, with per-suite counts of passing / failing / module / not-yet-run tests and the names of the failing ones. Filter by folder, or ask for failing suites only. |
gi_module_usage | read | The reverse index of execute steps: for every imported test, who imports it directly and its full transitive blast radius. Also finds modules nobody imports, imported tests missing the import-only flag, broken references, and cycles. One request per test. |
gi_get_test | read | One test's stored definition, identity and state β including the dateUpdated that gi_update_test requires as its concurrency token. Call it before composing any edit. |
Find what is wrong
| Tool | Access | What it does |
|---|---|---|
gi_stale_tests | read | Splits red tests into stale and genuinely broken by comparing the whole execute chain's dateUpdated against each test's last run. Also finds passing tests whose result predates a change. One request per test. |
gi_vacuous_tests | read | Green tests that prove nothing, in three separate classes: runs zero steps; runs its steps but contains no assertion at all; or a shortlist whose lone final assertion may have been true before the test did anything. |
gi_test_result | read | Why one test is red: the failing step, its error, the selectors it was authored with rather than only the one that resolved, and which test or module actually owns the step. Leads with a staleness verdict, because a result that predates a change is not evidence. |
Fix it
| Tool | Access | What it does |
|---|---|---|
gi_propose_repair | read | Turns a diagnosis into a concrete proposal: the rewritten step, which test owns it, and the token to write it. Applies nothing, and refuses on a stale diagnosis. |
gi_validate_test | readΒΉ | Runs a definition through on-demand execution, which executes and discards it, and reports every step. Inlines modules first, then truncates at the first step that could submit a form. dryRun shows what would run without starting a browser. |
gi_update_test | write | Replaces a test's steps and/or renames it, behind four guards and a concurrency token. |
gi_move_suite | write | Moves a suite with its tests to another folder. Reversible; returns the prior folder so the undo is one call. |
gi_create_suite | write | Creates an empty suite, in a folder if you name one. Refuses a same-named sibling unless you insist. |
gi_duplicate_test | write | Copies a test, places it in a suite and renames it in one call. The only way to get a new test β Ghost Inspector has no create endpoint β so a source test is required. Clears the copy's schedule by default. |
gi_run_test | run | Executes a test exactly as saved and waits for the verdict. Its own gate, separate from writes. A test that submits a form is refused unless you confirm on that call. |
ΒΉ gi_validate_test saves nothing, but it drives a real browser against a real URL, so it is not marked read-only.
The four write tools refuse unless GHOST_INSPECTOR_ALLOW_WRITES is exactly true, and gi_run_test refuses unless GHOST_INSPECTOR_ALLOW_RUNS is. A refusal changes nothing and names the variable to set. gi_whoami reports both gates.
Not included, on purpose. Deletion of any kind. DELETE /suites/{id}/ cascades to every test in the suite with no undo, and that blast radius does not belong behind an agent; deleting a test is left out for the same reason, since there is no version history to restore from.
Creating a test from nothing is not possible. Ghost Inspector exposes no create endpoint β POST /tests/ returns the test listing, the organization- and folder-scoped variants return 404, and the vendor documents update, duplicate and delete with no create. gi_duplicate_test is the supported route: copy an existing test, place it, rename it. It is named for what it does, because calling it "create" would set the wrong expectation about needing a source.
Not built. Dating a regression back to its last green run. Old results are purged, so there is a horizon past which the API cannot answer it, and a tool that silently stops working at an unknown depth is worse than no tool.
You talk to your agent, not to the tools. These are the questions the server is built to answer:
A note on scale. This server earns its place on accounts that have accumulated mess: hundreds of tests, shared modules with unclear ownership, a failing list nobody has triaged in months. On a small, well-tended account β a couple of dozen tests, no modules, everything green β gi_stale_tests, gi_module_usage and gi_vacuous_tests will correctly return nothing, and the server will look like it does very little. That is the honest answer for that account, not a malfunction.
Ghost Inspector's API is small and stable, so a 1:1 wrapper would add nothing over curl. This server is for the three things curl cannot give you:
Other community wrappers of this API exist. The difference here is the posture: nothing is written or executed until you opt in, no deletion at any opt-in level, and every write behind guards that cannot be turned off.
Two worked examples of that third point, because it is the whole thesis.
Marking a test Import Only β Ghost Inspector's way of saying "this is a module, other tests import its steps" β deletes its stored results. Every module is therefore permanently "never executed": no results, passing not a boolean, last-run date pinned to the 1970-01-01 epoch sentinel. The obvious implementation of stale-test detection sorts by last-run date, so it reports every module in your account as the deadest, most broken thing in it, and advises deleting exactly the steps all your live tests share. This server knows that, and ships the predicate that prevents it.
And a test whose steps are only execute calls into modules with no steps runs zero steps and passes, because nothing can fail. The dashboard shows it green while it asserts nothing, which is worse than red because nobody investigates green. Emptying one shared module does that to every test importing it, silently and all at once.
That is the smallest of three ways a test can be hollow. On a real account of a few hundred tests, gi_vacuous_tests found that the largest group by far was not this one but tests that run every step and contain no assertion at all β they can only fail if a step errors. A third group asserts only on its final step, which may well have been true before the test did anything. All of them green.
Requires Node 18+. There is nothing to install ahead of time β your MCP client launches the server with:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ghost-inspector-mcp)<a href="https://allmcps.com/mcp/ghost-inspector-mcp"><img src="https://allmcps.com/api/badge/ghost-inspector-mcp?style=directory" alt="Ghost Inspector MCP on AllMCPs" /></a>