Skip to content

docs(inspector): add load testing and Active Sessions docs - #3503

Merged
dend merged 8 commits into
mainfrom
docs/inspector-load-testing
Nov 18, 2026
Merged

dend merged 8 commits into
mainfrom
docs/inspector-load-testing

Conversation

@cliffhall

@cliffhall cliffhall commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Adds a dedicated Load testing page, and an Active sessions section on the web client page. The load mode is run by the web client's Load test panel, the CLI (--load) and mcpdo (tools/call --load) on one shared engine. Active Sessions is a new web-client view of every session the backend holds open, with a way to end one (modelcontextprotocol/inspector#2901). Before this, the flags were listed only inside a dense CI-gates bullet on the CLI page and in one sentence on the mcpdo page (from #3483). Tracked in modelcontextprotocol/inspector#2869. Both doc versions (draft and 2026-07-28) change identically, apart from their link prefixes.

What changed

Page Change
tools/inspector/load-testing (new) An overview of the three front ends, then: In the web client, with five screenshots (the Load test button, the form, a run in progress, a tool summary, and a scenario stepped over three concurrency levels); From the command line, with a core flag table and a topic table for the rest; The summary (the three output shapes, each field, p50–p999 and the bounded histogram, the --load-rate fields, stoppedEarly, the mode-specific blocks); then Watching a run, Saving every call, Varying the arguments, Scenarios, Stepped and ramped load, Open loop, When a run fails or stops, Thresholds (all five, exit 10), Comparing against a baseline, Multiple sessions, Session churn, Notification fan-out, Multiple generator processes (--load-workers), and On an mcpdo connection (runs inside the daemon, files read by mcpdo, later commands queue, Ctrl+C, connection_lost / consecutive_errors, extra sessions, elicitations).
tools/inspector/cli A short Load testing a tool section with one example, the exit behavior, and a link to the new page. The exit-code 10 row and the CI-gates bullet now link to the new page.
tools/inspector/mcpdo A short Load testing section with one example and a link to the new page's mcpdo section.
tools/inspector/web A short Load testing subsection under Tools, linking to the new page's web section. A new Active sessions section with three screenshots: the header button, the list (with This tab / Attached / Detached / Closed explained), and the list after a Terminate. It also covers the 60-second detach grace that lets a session outlive its tab, and the GET / DELETE /api/mcp/sessions routes behind the session token.
tools/inspector/configuration The Load test flag row names representative flags and links to the new page.
tools/inspector A Load testing card under "Where to go next".
docs.json The new page in both versions' navigation, after mcpdo.
images/inspector/load-test-*.png The five screenshots, from modelcontextprotocol/inspector#2929 (a real run against a composable test server). The two summary shots are cropped to the modal.
images/inspector/web-active-sessions*.png Three screenshots from modelcontextprotocol/inspector#2901 (a production build against a real backend).
images/inspector/web-tools.png (replaced) The Tools section's screenshot now shows a tool's form filled in and ready to run, matching the text, instead of a collapsed result panel. Captured from the current v2/main web build at the original 3840×2160, with its caption updated to match.

Sources: clients/cli/README.md, clients/mcpdo/README.md and clients/web/README.md on the Inspector's current v2/main (2c03413b), plus core/cli/error-handler.ts for exit code 130 clients/web/src/components/groups/LoadTestModal for the load panel, and ActiveSessionsModal plus core/mcp/remote/node/remote-session.ts for Active Sessions.

Verification

  • npm run check:docs:format: passes.
  • scripts/check-mdx-comments.ts: OK.
  • npx mint broken-links: no broken links. Every fragment link in the Inspector pages, including the cross-page ones into the new page, was also checked against its target heading by script, since broken-links doesn't check fragments.
  • All changed .mdx files compile with @mdx-js/mdx + remark-gfm, confirming the {{seq}}-style placeholders stay inside code or attribute strings.

🤖 Generated with Claude Code

The --load flags were listed only inside the CLI's CI-gates bullet and in one
sentence on the mcpdo page. Add a "Load testing a tool" section to the CLI page
(flags, summary fields, stop and exit behavior, thresholds, multiple sessions)
and a "Load testing" section to the mcpdo page covering how a run differs on a
daemon connection. Adds exit code 130 to the CLI table and repoints the CI-gates
bullet and the configuration flag table at the new section. Both doc versions
change identically apart from their link prefixes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
@cliffhall
cliffhall requested review from a team as code owners November 4, 2026 16:02
@mintlify

mintlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
mcp-staging 🟢 Ready View Preview Nov 18, 2026, 8:23 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@mintlify

mintlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
mcp 🟢 Ready View Preview Nov 18, 2026, 8:23 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

…ts off

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
The load mode has grown well past what the first revision described. Sync
the CLI, mcpdo and configuration pages with clients/cli/README.md and
clients/mcpdo/README.md on the Inspector's v2/main, and add the web
client's load panel.

- CLI: text summary by default on a terminal; p95/p999 and the bounded
  histogram; --output now writes per-call NDJSON samples instead of being
  refused; new sections for watching a run (progress, intervals, warm-up),
  varying the arguments, scenarios, stepped and ramped load, open loop,
  baselines, session churn and notification fan-out; all five thresholds;
  exit 10 and the CI-gates bullet cover them.
- mcpdo: what the shared engine now offers, the text summary and progress
  frames, files read by mcpdo rather than the daemon, extra sessions for
  churn and fan-out.
- web: a Load testing section under Tools.
- configuration: the Load test row no longer tries to list every flag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
…nshots

Load testing now has three front ends (the web client's Load test panel,
the CLI's --load and mcpdo's tools/call --load) over one engine, and the
CLI page's section had grown to a dozen subsections. Give it its own page,
tools/inspector/load-testing, in both doc versions:

- an overview of the three front ends;
- "In the web client", with five screenshots from
  modelcontextprotocol/inspector#2929 (the button, the form, a run in
  progress, a tool summary, and a stepped scenario summary);
- the command-line flags, the summary fields and every run mode, moved
  from the CLI page;
- "On an mcpdo connection", moved from the mcpdo page.

The CLI, mcpdo and web pages keep a short section under their existing
anchors that links to the new page; the exit-code 10 row, the CI-gates
bullet and the configuration flag row now point there too. Added to the
navigation after mcpdo and as a card on the Inspector overview.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
@cliffhall cliffhall changed the title docs(inspector): add a load-testing section for the CLI and mcpdo docs(inspector): add a load-testing page for the web client, CLI and mcpdo Nov 5, 2026
@cliffhall
cliffhall marked this pull request as draft November 5, 2026 22:33
- web: an Active sessions section with three screenshots from
  modelcontextprotocol/inspector#2901. It covers the header button, what
  each column and status means, Terminate, the 60-second detach grace that
  lets a session outlive its tab, and the GET/DELETE /api/mcp/sessions
  routes behind the session token.
- load-testing: a Multiple generator processes section for the CLI's
  --load-workers (modelcontextprotocol/inspector#2914), which merged after
  the previous revision's source snapshot. It also adds the topic-table
  row, the summary's workers field, and why mcpdo has no equivalent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
@cliffhall cliffhall changed the title docs(inspector): add a load-testing page for the web client, CLI and mcpdo docs(inspector): add load testing and Active Sessions docs Nov 5, 2026
The Tools section describes selecting a tool and filling its form, but
its screenshot showed only a result panel, with the form already
collapsed. Replace it with a get_temp form: a required text field and an
enum dropdown, filled in, with Execute Tool and Load test below. It was
captured from the current v2/main web build at the same 3840x2160 as the
image it replaces. Both doc versions point at the same file, so only the
caption changes in the pages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
@olaservo

Copy link
Copy Markdown
Member

/lgtm

@dend
dend merged commit c5c0da7 into main Nov 18, 2026
11 checks passed
@dend
dend deleted the docs/inspector-load-testing branch November 18, 2026 20:29

This branch was successfully deployed

1 active deployment
staging - docs — 132c5330 Deployed Nov 18, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants