Carved out from the "did not solve" list of #1452 (port of CLI/TUI/launcher to v2).
Problem
mcp-inspector --web (production, no --dev) serves static assets from clients/web/dist/, which only exists after npm run build. If dist/ is absent, the prod web path serves a broken page (serveIndexHtml ENOENT on index.html). The launcher smoke test only checks --help / --cli --help / --tui --help; it never starts prod web end-to-end, so this path is unverified in CI.
Proposed solution
Pick one (or both):
- (a) Have the launcher detect a missing
clients/web/dist/ and either build it on demand or exit with a clear, actionable message.
- (b) Add a CI step that builds web and starts the prod web launcher path end-to-end, asserting
/ returns the SPA (HTTP 200) with the injected token.
Acceptance criteria
Carved out from the "did not solve" list of #1452 (port of CLI/TUI/launcher to v2).
Problem
mcp-inspector --web(production, no--dev) serves static assets fromclients/web/dist/, which only exists afternpm run build. Ifdist/is absent, the prod web path serves a broken page (serveIndexHtmlENOENTonindex.html). The launcher smoke test only checks--help/--cli --help/--tui --help; it never starts prod web end-to-end, so this path is unverified in CI.Proposed solution
Pick one (or both):
clients/web/dist/and either build it on demand or exit with a clear, actionable message./returns the SPA (HTTP 200) with the injected token.Acceptance criteria
mcp-inspector --webeither works after a documented build step or fails with a clear, actionable error whendist/is missing (no silent broken page).dist/(servesindex.html200).AGENTS.md/ launcher README.