Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · mcp

One read of Model Context Protocolmcp-20261031T080706Z

14 pages moved out of 359 read.

Pages moved 14 significant first
Pages read 359 in this capture
Captured 08:07 UTC
Corpus hash 87ea8b0366b2 corpus-hash

What this read moved

1-14 of 14

docs/2026-07-28/tools/inspector/cli Changed · +9 / -5 lines

from line 39
3939> [!NOTE]
4040>
4141> **The config file is the only durable way to give a run its
42> [roots](https://modelcontextprotocol.io/specification/draft/client/roots.md):** there is no roots flag, and the
43> CLI has no `roots/set` method. Roots configured for a server are advertised at
44> connect, so a server that calls `roots/list` (as
42> [roots](https://modelcontextprotocol.io/specification/2026-07-28/client/roots.md):** there is no roots flag, and
43> the CLI has no `roots/set` method. Roots configured for a server are
44> advertised at connect, so a server that calls `roots/list` (as
4545> `@modelcontextprotocol/server-filesystem` does, to learn its allowed
4646> directories) gets them.
4747 
from line 134
134134| `7` | `--verify` found a skill that violates SEP-2640 (conformance, digest, or size mismatch). |
135135| `8` | `--verify` couldn't check every skill within its read bounds. |
136136| `9` | `--verify --require-digests` found a skill that advertises no digests. |
137| `10` | A `--load` run breached a `--load-max-error-rate` or `--load-max-p99` threshold. The summary is printed first, and the envelope `code` names the threshold: `load_error_rate_exceeded` or `load_p99_exceeded`. |
138| `11` | The server answered HTTP 429 (envelope `code` `rate_limited`). The envelope also carries `method`, plus `retryAfter` (the `Retry-After` header as sent) and `retryAfterMs` when the server sent one that parses. |
137139 
138140On any non-zero exit the CLI also writes a **single JSON line to stderr**:
139141 
from line 150
148150}
149151```
150152 
151The envelope carries `code` and `message` always, plus `cause` (the underlying error, such as a DNS failure), `status` (the HTTP status) and `url` when known. Query-string secrets in a URL are redacted. `code` is a stable name for the failure: `auth_required`, `unreachable`, `tool_not_found`, `tool_is_error`, `no_app`, `schema_unportable`, `store_unavailable`, `oauth_state_unrecognized`, or the catch-all `error`, among others.
153The envelope carries `code` and `message` always, plus `cause` (the underlying error, such as a DNS failure), `status` (the HTTP status) and `url` when known. Query-string secrets in a URL are redacted. `code` is a stable name for the failure: `auth_required`, `unreachable`, `tool_not_found`, `tool_is_error`, `no_app`, `schema_unportable`, `store_unavailable`, `oauth_state_unrecognized`, `rate_limited`, or the catch-all `error`, among others.
152154 
153155Because it's one line, a caller can parse it with `2>&1 | tail -1 | jq .error`.
154156 
from line 182
180182 
181183### CI gates
182184 
183Three flags turn a check into a non-zero exit, each with its own code so a job can tell the failures apart:
185These flags turn a check into a non-zero exit, each with its own code so a job can tell the failures apart:
184186 
185187* `--strict` (with `tools/list`): reports tool-schema portability problems in full on stderr (path, issue, suggested fix) and exits `6` if any is error-severity. Without it, `tools/list` prints only a one-line count. Under `--format json` the findings are folded into the output as `schemaFindings`.
186188* `--verify` (with `skills/list` or `skills/get`): runs the SEP-2640 conformance and digest checks, writes one JSON report per skill on stdout, and exits `7` on a violation or `8` when the read bounds stopped it before every skill was checked. `--skill-catalog-max-skills` and `--skill-catalog-max-bytes` set those bounds.
187189* `--require-digests` (with `--verify`): exits `9` for a skill that advertises no digests, instead of reporting it as unverifiable and exiting `0`.
190* `--load-max-error-rate <fraction>` and `--load-max-p99 <ms>` (with `--load`): turn a load run into a gate. The run prints its summary, then exits `10` when the share of failed calls is above the fraction (`0` to `1`, so `0` fails on any failed call), when the p99 latency is above the given milliseconds, or when no call completed. `--load` (with `tools/call --tool-name`) calls the tool repeatedly and concurrently and prints a latency and error-rate summary instead of a result, bounded by `--load-duration <sec>` (default `10` when `--load-requests` is not set) and `--load-requests <n>`, with in-flight calls still finishing. `--load-concurrency <n>` (default `10`) caps the calls in flight, `--load-connections <n>` (default `1`, at most `--load-concurrency`, HTTP and SSE servers only) spreads them over independent sessions opened before timing starts, and `--load-rate <n>` (default unlimited) caps the calls started per second.
188191 
189192```bash theme={null}
190193mcp-inspector --cli <server> --method tools/list --strict > /dev/null
191194mcp-inspector --cli <server> --method skills/list --verify --require-digests
195mcp-inspector --cli <server> --method tools/call --tool-name get_weather --load --load-requests 200 --load-max-p99 500
192196```
193197 
194198### Branch on the failure class

docs/2026-07-28/tools/inspector/configuration Changed · +50 / -8 lines

from line 10
1010| - | - |
1111| `--web` / `--cli` / `--tui` | Selects the client, `--web` by default. Passing more than one fails with `Specify at most one of --web, --cli, or --tui.` Launcher flags must come first: parsing stops at the first argument the launcher does not own, and everything from that point on is forwarded to the client unchanged. |
1212| `-h` / `--help` | With no mode flag, prints the launcher's own help and exits. With a mode flag it is forwarded, so `mcp-inspector --cli --help` prints the CLI's help. |
13| `-V` / `--version` | Listed in the launcher's help, but the launcher does not act on it. The flag is forwarded to the selected client, which prints the Inspector version, so `mcp-inspector -V` prints it through the web client and `mcp-inspector --cli -V` through the CLI. |
1314 
1415Everything below belongs to a client.
1516 
from line 140
139140| - | - |
140141| **What to invoke** | `--method`, `--tool-name`, `--tool-arg`, `--tool-args-json`, `--uri`, `--cursor`, `--prompt-name`, `--prompt-args`, `--log-level`, `--metadata`, `--tool-metadata`, `--rename` |
141142| **How to run it** | `--connect-timeout`, `--format`, `-q` / `--quiet`, `--output`, `--output-format`, `--app-info`, `--advertise-apps`, `--strict`, `--verify`, `--require-digests`, `--completion <shell>` (`bash`, `zsh`, or `fish`) |
143| **Load test** | `--load`, `--load-concurrency`, `--load-connections`, `--load-duration`, `--load-requests`, `--load-rate`, `--load-max-error-rate`, `--load-max-p99` (see [CI gates](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/cli.md#ci-gates)) |
142144| **Auth** | `--use-stored-auth`, `--stored-auth-only`, `--relogin`, `--no-revoke`, `--wait-for-auth`, `--list-stored-auth`, `--print-handoff` |
143145 
144146## Environment variables
from line 154
152154| `MCP_DEBUG` | Append the error stack to a top-level `--web` or `--tui` failure (a `--cli` failure always prints its [JSON error envelope](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/cli.md#exit-codes-and-error-envelopes) instead). Only when set to a meaningful value: `0`, `false`, and empty read as off. |
153155| `DEBUG` | Same, with the same meaningful-value rule, so a stray `DEBUG=0` doesn't turn stack traces on and `DEBUG` still works as the npm `debug` package's namespace filter. |
154156 
157The TUI reads both variables itself, with the same rule, for its own top-level failure.
158 
155159### CLI and TUI
156160 
157Some of these are read by the web backend too, as the **Read by** column shows.
161Some of these are read by the web backend or by `mcpdo` too, as the **Read by** column shows.
158162 
159163| Variable | Read by | Effect |
160164| - | - | - |
161| `MCP_CATALOG_PATH` | Web, CLI, TUI | Fallback for `--catalog`. The CLI honors it only when no ad-hoc target is given, so a shell that exports it can still run one-off ad-hoc invocations. The web client and TUI apply it regardless, so combining it with an ad-hoc target is rejected there. |
162| `MCP_CLIENT_CONFIG_PATH` | CLI, TUI | Fallback for `--client-config`. |
163| `MCP_OAUTH_CALLBACK_URL` | CLI, TUI | Fallback for `--callback-url`. |
164| `MCP_STORAGE_DIR` | Web, CLI, TUI | Storage directory. Relocates the OAuth state file (`<dir>/oauth.json`) and the secrets file (`<dir>/secrets.json`). |
165| `MCP_INSPECTOR_OAUTH_STATE_PATH` | CLI, TUI | Per-file override of the OAuth state path. Takes precedence over `MCP_STORAGE_DIR`. |
166| `MCP_AUTO_OPEN_ENABLED` | Web, CLI | Controls browser auto-open. `false` never opens one. In the CLI, `true` forces auto-open and lets interactive OAuth run without a TTY, and unset opens only on a TTY. In the web client, unset opens the UI at launch. The TUI does not read it. |
165| `MCP_CATALOG_PATH` | Web, CLI, TUI, mcpdo | Fallback for `--catalog`. The CLI honors it only when no ad-hoc target is given, so a shell that exports it can still run one-off ad-hoc invocations. The web client and TUI apply it regardless, so combining it with an ad-hoc target is rejected there. |
166| `MCP_CLIENT_CONFIG_PATH` | CLI, TUI, mcpdo | Fallback for `--client-config`. |
167| `MCP_OAUTH_CALLBACK_URL` | CLI, TUI, mcpdo | Fallback for `--callback-url`. |
168| `MCP_STORAGE_DIR` | Web, CLI, TUI, mcpdo | Storage directory. Relocates the OAuth state file (`<dir>/oauth.json`) and the secrets file (`<dir>/secrets.json`). |
169| `MCP_INSPECTOR_OAUTH_STATE_PATH` | CLI, TUI, mcpdo | Per-file override of the OAuth state path. Takes precedence over `MCP_STORAGE_DIR`. |
170| `MCP_AUTO_OPEN_ENABLED` | Web, CLI, mcpdo | Controls browser auto-open. `false` never opens one. In the CLI, `true` forces auto-open and lets interactive OAuth run without a TTY, and unset opens only on a TTY. In the web client, unset opens the UI at launch. The TUI does not read it. |
171| `MCP_INSPECTOR_LOG_DIR` | TUI | Directory of the TUI's `auth.log`. Defaults to `~/.mcp-inspector`. |
172| `LOG_LEVEL` | TUI | Level of that log, as a pino level name. Defaults to `info`. |
173| `NO_COLOR` | CLI, mcpdo | Any non-empty value disables ANSI styling in human-readable output: all of mcpdo's `--format text` output (the same as `--plain`), and the sign-in prompt the CLI writes to stderr. |
167174 
168175### Web backend environment variables
169176 
from line 182
175182| `CLIENT_PORT` | Web UI port. Defaults to `6274`. |
176183| `DANGEROUSLY_BIND_ALL_INTERFACES` | Required opt-in to bind a wildcard host (`0.0.0.0`, `::`, or any equivalent spelling). |
177184| `ALLOWED_ORIGINS` | Comma-separated origin allow-list. **Replaces** the default list rather than merging. |
185| `MCP_INSPECTOR_ALLOWED_HOSTS` | Comma-separated extra hostnames accepted in the `Host` header, for a reverse proxy that rewrites `Host`. `localhost` and `*.localhost`, IPv4 and bracketed IPv6 literals, the bind host (unless it is a wildcard), and the hostname of every `ALLOWED_ORIGINS` entry are always accepted. An entry starting with `.` (`.example.com`) admits that domain and its subdomains. An entry with a scheme, port, path, wildcard, or whitespace is dropped with a warning. The port is not compared. Any other `Host` gets a `403`. |
178186| `MCP_PROXY_AUTH_TOKEN` | Deprecated v1 name for `MCP_INSPECTOR_API_TOKEN`, used only when the new name is unset. |
179187| `MCP_SANDBOX_PORT` | MCP Apps sandbox port. Defaults to `6275`; `0` asks the OS for a free port. |
180188| `SERVER_PORT` | v1's proxy port, now only a fallback for the sandbox port when `MCP_SANDBOX_PORT` is unset or invalid. |
from line 190
182190| `MCP_SANDBOX_FULL_ADDRESS` | Public URL of the MCP Apps sandbox proxy, for running behind a reverse proxy. |
183191| `MCP_APP_ORIGIN_FULL_ADDRESS` | Public origin that `_meta.ui.domain` app documents are served from, for running behind a reverse proxy. |
184192| `MCP_LOG_FILE` | Append the backend's structured (JSON lines) log to this file. |
193| `INSPECTOR_TLS_KEY_PATH` | PEM private key for the web UI listener. Set together with `INSPECTOR_TLS_CERT_PATH` to serve the UI over `https`. Setting one without the other, an unreadable file, or a key and certificate that are not a usable pair is a startup error. The listener does not fall back to `http`. A blank value counts as unset. Only the UI listener is covered. The sandbox and app-origin listeners stay `http`. The CLI's `--print-handoff` emits an `https://` deep link when both are set. |
194| `INSPECTOR_TLS_CERT_PATH` | PEM certificate (or chain) for the key in `INSPECTOR_TLS_KEY_PATH`. |
185195| `MCP_AUTO_OPEN_ENABLED` | `false` stops the browser from opening at launch. See [CLI and TUI](#cli-and-tui). |
186196| `MCP_CATALOG_PATH`, `MCP_STORAGE_DIR` | As described under [CLI and TUI](#cli-and-tui). |
187197| `HTTPS_PROXY` / `HTTP_PROXY` / `NO_PROXY` | Standard proxy routing for outbound MCP connections. |
from line 302
292302}
293303```
294304 
295Fields that equal their default are omitted when the Inspector writes the file back, keeping diffs minimal. `protocolEra` (see [Protocol eras](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/protocol-eras.md)) defaults to `legacy` and `modernLogLevel` to `debug`.
305Fields that equal their default are omitted when the Inspector writes the file back, keeping diffs minimal. `protocolEra` (see [Protocol eras](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/protocol-eras.md)) defaults to `legacy` and `modernLogLevel` to `debug`. `"type": "http"` is accepted as an alias of `"streamable-http"` and written back in the long form.
306 
307The Inspector-specific fields and their defaults:
308 
309| Field | Default | Meaning |
310| - | - | - |
311| `headers` | | HTTP headers for an SSE or Streamable HTTP server, as a flat object. |
312| `metadata` | | Default `_meta` object merged into every outgoing request. Values may be any JSON. |
313| `protocolEra` | `legacy` | `legacy`, `auto`, or `modern`. See [Protocol eras](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/protocol-eras.md). |
314| `elicitCapability` | `both` | Elicitation capability advertised to the server: `off`, `url`, `form`, or `both`. Read by `mcpdo` only. |
315| `modernLogLevel` | `debug` | Per-request log level stamped on modern connections, or `off`. Legacy connections ignore it. |
316| `connectionTimeout` | `30000` | Connect-time timeout in ms. `0` disables it. |
317| `requestTimeout` | | Per-request timeout in ms. |
318| `taskTtl` | `60000` | TTL in ms for tasks created with **Run as task**. |
319| `autoRefreshOnListChanged` | `false` | Refresh the tools, resources, and prompts lists on `list_changed` instead of only flagging the indicator. |
320| `paginatedLists` | `false` | Fetch the lists one page at a time instead of aggregating every page on load. |
321| `suppressNotificationStream` | `false` | Legacy-era Streamable HTTP only: do not open the standalone `GET` notification stream. |
322| `advertisedExtensions` | | Per-extension overrides of which extensions the Inspector advertises, keyed by extension id. |
323| `maxFetchRequests` | `1000` | HTTP requests kept in the Network log for this server. `0` means unlimited. |
324| `skillCatalogMaxSkills` | `256` | Most skills read in one skills verification run. A positive integer. |
325| `skillCatalogMaxBytes` | `67108864` | Most bytes read across all skills in one skills verification run (64 MiB). A positive integer. |
326| `roots` | | Roots advertised through the `roots` capability, each `{ "uri", "name" }`. |
327| `oauth.clientId` | | OAuth client ID for a static client. |
328| `oauth.clientSecret` | | OAuth client secret for a confidential client. |
329| `oauth.scopes` | | Scopes to request, as one string. |
330| `oauth.enterpriseManaged` | | `true` connects through the enterprise IdP (EMA) instead of standard OAuth. |
331| `oauth.onInsufficientScope` | `reauthorize` | Step-up policy for `403 insufficient_scope`: `reauthorize` or `throw`. |
332| `oauth.requestRefreshToken` | `true` | Whether the client declares the `refresh_token` grant when it registers. Only `false` is written. |
333| `oauth.scopeOnRefresh` | `false` | Whether a refresh-token request carries `scope`. Only `true` is written. |
334| `oauth.revokeOnClear` | `true` | Whether clearing this server's OAuth state also revokes the grant at the authorization server (RFC 7009). Only `false` is written. |
335| `oauth.authorizationParams` | | Extra query parameters for the authorization request. Reserved keys are dropped with a warning. |
336| `oauth.authorizationUrl` | | Overrides the `authorization_endpoint` the authorization server's metadata advertises. |
337| `oauth.tokenUrl` | | Overrides the `token_endpoint` the authorization server's metadata advertises. |
296338 
297339You do not have to hand-write these; the web client can [import an existing client config](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/recipes.md#importing-an-existing-client-config) from Claude Desktop, Cursor, Cline, or VS Code, or a registry `server.json`.
298340 

docs/2026-07-28/tools/inspector/mcpdo Changed · +8 / -4 lines

from line 72
7272 
7373Omitting the name falls back to the most recently used connection, but only on an interactive TTY. From a script or an agent, where stdin is not a TTY, an unqualified command is an error, so that a background job never acts on whichever server you last used. Set `MCP_ALLOW_DEFAULT_CONNECTION=1` to allow the fallback anyway.
7474 
75`mcpdo connections/use <name>` sets the most recently used connection without sending anything to the server.
76 
7577Connections **self-heal**: a dropped transport (an expired HTTP session, an exited stdio child) is re-dialed transparently on next use with the stored credentials. Only an `auth_required` error needs you to run `connect` again.
7678 
7779A connection runs **one call at a time**. Commands against it from other shells queue behind the call in flight, and while a call is parked on an [elicitation](#elicitation), new calls on that connection are refused until it is answered. A long call does not block other connections.
7880 
81`tools/call` also accepts the one-shot CLI's `--load` family (`--load`, `--load-concurrency`, `--load-connections`, `--load-duration`, `--load-requests`, `--load-rate`, `--load-max-error-rate`, `--load-max-p99`), with the same defaults and the same summary, run inside the daemon against the connection (see [CI gates](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/cli.md#ci-gates)). `--load-connections` opens its extra sessions with stored credentials only. Later commands on the connection wait until the run ends.
82 
7983## Tasks
8084 
81A tool that requires task support is refused by a plain `tools/call`; add `--task` to make a task-augmented call. It still **blocks** until the task finishes, then prints the final result:
85On a legacy connection, a plain `tools/call` refuses a tool that requires task support. Add `--task` to make a task-augmented call. `--task` applies to legacy servers only. On a modern connection the server decides per request whether to return a task, and the flag changes nothing on the wire. The call still **blocks** until the task finishes, then prints the final result:
8286 
8387```bash theme={null}
84mcpdo @my-server tools/call --task start_job size:=large
88mcpdo @my-server tools/call --task start_job size:=large # task-augmented call on a legacy connection
8589```
8690 
8791If the task reaches `input_required`, its question is handled like any other [elicitation](#elicitation).
from line 111
107111| `mcpdo disconnect <name> --clear-auth` (`-c`) | Close the connection **and** clear its stored tokens, so the next `connect` signs in fresh. |
108112| `mcpdo auth/list` | Stored credentials, each annotated with the catalog or connection names it is "known as", and `● live` when an open connection holds it. |
109113| `mcpdo auth/clear <url-or-name>` | Clear one stored credential, by store URL or friendly name. `--all --yes` clears every one. |
110| `mcpdo auth/ema-login` / `auth/ema-status` / `auth/ema-logout` | Enterprise-managed authorization: sign in to the IdP once, then connect to EMA servers silently. |
114| `mcpdo auth/ema-login` / `auth/ema-status` / `auth/ema-logout` | Enterprise-managed authorization: sign in to the IdP once, then connect to EMA servers silently. `mcpdo connect <name> --ema` treats a catalog entry as enterprise-managed for that connect, overriding its `oauth.enterpriseManaged`. It needs the entry's OAuth client ID and secret, so it cannot be used with an ad-hoc target. |
111115 
112116When a browser sign-in is needed and neither stdin nor stderr is a TTY (and `MCP_AUTO_OPEN_ENABLED` is not forced on), `connect` exits `0` immediately with `pendingAuth: true` and an `authUrl`. Relay that URL to whoever will sign in. The connection completes on its own once they do: the next real command against it finishes the connection, and `connections/list` reports `pendingAuthSignedIn` in the meantime. Don't reconnect to fix a pending sign-in.
113117 
from line 173
169173 
170174## Using mcpdo from a coding agent
171175 
172The package ships an agent skill that teaches an agent to drive `mcpdo`: connections it holds then extend the agent's toolset, and it knows to relay sign-in URLs and answer parked elicitations. `mcpdo agent-help` prints the guide, `mcpdo agent-help --skill-path` prints the path of the installable skill file, and `mcpdo agent-help --instructions` prints a block to append to a project's `CLAUDE.md` or `AGENTS.md`.
176The package ships an agent skill that teaches an agent to drive `mcpdo`: connections it holds then extend the agent's toolset, and it knows to relay sign-in URLs and answer parked elicitations. `mcpdo agent-help` prints the guide, `mcpdo agent-help --skill-path` prints the path of the installable skill file, and `mcpdo agent-help --instructions` prints a block to append to a project's `CLAUDE.md` or `AGENTS.md`. The skill can also be installed with `npx skills add modelcontextprotocol/inspector --skill mcpdo`.
173177 

docs/2026-07-28/tools/inspector/protocol-eras Changed · +4 / -4 lines

from line 117
117117>
118118> Tasks are an **extension** (`io.modelcontextprotocol/tasks`, [SEP-2663](https://modelcontextprotocol.io/seps/2663-tasks-extension.md)), so the tab is gated on the server *advertising that extension* rather than on `capabilities.tasks`.
119119>
120> Run a tool as a task and `tools/call` returns a `CreateTaskResult` (`resultType: "task"`, visible in the Protocol and Network tabs). The Inspector polls **`tasks/get`** only; there is no `tasks/list`, so **Refresh** re-polls the handles the client already knows about. A completed task **inlines its result**, with no blocking `tasks/result` call.
120> There is no **Run as task** control on a modern connection. Task creation is server-directed, so the server decides per request whether `tools/call` returns a `CreateTaskResult` (`resultType: "task"`, visible in the Protocol and Network tabs). The Inspector polls **`tasks/get`** only; there is no `tasks/list`, so **Refresh** re-polls the handles the client already knows about. A completed task **inlines its result**, with no blocking `tasks/result` call.
121121>
122> A task that needs more information moves to `input_required` and surfaces an embedded [elicitation](https://modelcontextprotocol.io/specification/draft/client/elicitation.md) in the pending-request modal (the dialog the web client opens whenever a request is waiting on you). Answering it sends **`tasks/update`** carrying the `inputResponses`, and the next poll completes.
122> A task that needs more information moves to `input_required` and surfaces an embedded [elicitation](https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation.md) in the pending-request modal (the dialog the web client opens whenever a request is waiting on you). Answering it sends **`tasks/update`** carrying the `inputResponses`, and the next poll completes.
123123>
124124> Reproduce with `test-servers/configs/tasks-modern-http.json` (tools `modern_task` and `modern_input_task`).
125125 
from line 135
135135 
136136## Multi-round tool results (MRTR)
137137 
138On the modern era a tool can return `input_required` instead of a final result, embedding an [elicitation](https://modelcontextprotocol.io/specification/draft/client/elicitation.md), a [sampling](https://modelcontextprotocol.io/specification/draft/client/sampling.md) request, or a [`roots/list`](https://modelcontextprotocol.io/specification/draft/client/roots) request. The client answers that embedded request and retries the `tools/call` under a fresh JSON-RPC id until the call reaches `complete`.
138On the modern era a tool can return `input_required` instead of a final result, embedding an [elicitation](https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation.md), a [sampling](https://modelcontextprotocol.io/specification/2026-07-28/client/sampling.md) request, or a [`roots/list`](https://modelcontextprotocol.io/specification/2026-07-28/client/roots) request. The client answers that embedded request and retries the `tools/call` under a fresh JSON-RPC id until the call reaches `complete`.
139139 
140140The Inspector drives MRTR **manually**, so each round pauses at the **pending-request modal**, tagged `input_required`, for you to answer. The Protocol view groups the whole exchange as one MRTR conversation rather than as unrelated calls.
141141 

docs/draft/tools/inspector/cli Changed · +6 / -2 lines

from line 134
134134| `7` | `--verify` found a skill that violates SEP-2640 (conformance, digest, or size mismatch). |
135135| `8` | `--verify` couldn't check every skill within its read bounds. |
136136| `9` | `--verify --require-digests` found a skill that advertises no digests. |
137| `10` | A `--load` run breached a `--load-max-error-rate` or `--load-max-p99` threshold. The summary is printed first, and the envelope `code` names the threshold: `load_error_rate_exceeded` or `load_p99_exceeded`. |
138| `11` | The server answered HTTP 429 (envelope `code` `rate_limited`). The envelope also carries `method`, plus `retryAfter` (the `Retry-After` header as sent) and `retryAfterMs` when the server sent one that parses. |
137139 
138140On any non-zero exit the CLI also writes a **single JSON line to stderr**:
139141 
from line 150
148150}
149151```
150152 
151The envelope carries `code` and `message` always, plus `cause` (the underlying error, such as a DNS failure), `status` (the HTTP status) and `url` when known. Query-string secrets in a URL are redacted. `code` is a stable name for the failure: `auth_required`, `unreachable`, `tool_not_found`, `tool_is_error`, `no_app`, `schema_unportable`, `store_unavailable`, `oauth_state_unrecognized`, or the catch-all `error`, among others.
153The envelope carries `code` and `message` always, plus `cause` (the underlying error, such as a DNS failure), `status` (the HTTP status) and `url` when known. Query-string secrets in a URL are redacted. `code` is a stable name for the failure: `auth_required`, `unreachable`, `tool_not_found`, `tool_is_error`, `no_app`, `schema_unportable`, `store_unavailable`, `oauth_state_unrecognized`, `rate_limited`, or the catch-all `error`, among others.
152154 
153155Because it's one line, a caller can parse it with `2>&1 | tail -1 | jq .error`.
154156 
from line 182
180182 
181183### CI gates
182184 
183Three flags turn a check into a non-zero exit, each with its own code so a job can tell the failures apart:
185These flags turn a check into a non-zero exit, each with its own code so a job can tell the failures apart:
184186 
185187* `--strict` (with `tools/list`): reports tool-schema portability problems in full on stderr (path, issue, suggested fix) and exits `6` if any is error-severity. Without it, `tools/list` prints only a one-line count. Under `--format json` the findings are folded into the output as `schemaFindings`.
186188* `--verify` (with `skills/list` or `skills/get`): runs the SEP-2640 conformance and digest checks, writes one JSON report per skill on stdout, and exits `7` on a violation or `8` when the read bounds stopped it before every skill was checked. `--skill-catalog-max-skills` and `--skill-catalog-max-bytes` set those bounds.
187189* `--require-digests` (with `--verify`): exits `9` for a skill that advertises no digests, instead of reporting it as unverifiable and exiting `0`.
190* `--load-max-error-rate <fraction>` and `--load-max-p99 <ms>` (with `--load`): turn a load run into a gate. The run prints its summary, then exits `10` when the share of failed calls is above the fraction (`0` to `1`, so `0` fails on any failed call), when the p99 latency is above the given milliseconds, or when no call completed. `--load` (with `tools/call --tool-name`) calls the tool repeatedly and concurrently and prints a latency and error-rate summary instead of a result, bounded by `--load-duration <sec>` (default `10` when `--load-requests` is not set) and `--load-requests <n>`, with in-flight calls still finishing. `--load-concurrency <n>` (default `10`) caps the calls in flight, `--load-connections <n>` (default `1`, at most `--load-concurrency`, HTTP and SSE servers only) spreads them over independent sessions opened before timing starts, and `--load-rate <n>` (default unlimited) caps the calls started per second.
188191 
189192```bash theme={null}
190193mcp-inspector --cli <server> --method tools/list --strict > /dev/null
191194mcp-inspector --cli <server> --method skills/list --verify --require-digests
195mcp-inspector --cli <server> --method tools/call --tool-name get_weather --load --load-requests 200 --load-max-p99 500
192196```
193197 
194198### Branch on the failure class

docs/draft/tools/inspector/configuration Changed · +50 / -8 lines

from line 10
1010| - | - |
1111| `--web` / `--cli` / `--tui` | Selects the client, `--web` by default. Passing more than one fails with `Specify at most one of --web, --cli, or --tui.` Launcher flags must come first: parsing stops at the first argument the launcher does not own, and everything from that point on is forwarded to the client unchanged. |
1212| `-h` / `--help` | With no mode flag, prints the launcher's own help and exits. With a mode flag it is forwarded, so `mcp-inspector --cli --help` prints the CLI's help. |
13| `-V` / `--version` | Listed in the launcher's help, but the launcher does not act on it. The flag is forwarded to the selected client, which prints the Inspector version, so `mcp-inspector -V` prints it through the web client and `mcp-inspector --cli -V` through the CLI. |
1314 
1415Everything below belongs to a client.
1516 
from line 140
139140| - | - |
140141| **What to invoke** | `--method`, `--tool-name`, `--tool-arg`, `--tool-args-json`, `--uri`, `--cursor`, `--prompt-name`, `--prompt-args`, `--log-level`, `--metadata`, `--tool-metadata`, `--rename` |
141142| **How to run it** | `--connect-timeout`, `--format`, `-q` / `--quiet`, `--output`, `--output-format`, `--app-info`, `--advertise-apps`, `--strict`, `--verify`, `--require-digests`, `--completion <shell>` (`bash`, `zsh`, or `fish`) |
143| **Load test** | `--load`, `--load-concurrency`, `--load-connections`, `--load-duration`, `--load-requests`, `--load-rate`, `--load-max-error-rate`, `--load-max-p99` (see [CI gates](https://modelcontextprotocol.io/docs/draft/tools/inspector/cli.md#ci-gates)) |
142144| **Auth** | `--use-stored-auth`, `--stored-auth-only`, `--relogin`, `--no-revoke`, `--wait-for-auth`, `--list-stored-auth`, `--print-handoff` |
143145 
144146## Environment variables
from line 154
152154| `MCP_DEBUG` | Append the error stack to a top-level `--web` or `--tui` failure (a `--cli` failure always prints its [JSON error envelope](https://modelcontextprotocol.io/docs/draft/tools/inspector/cli.md#exit-codes-and-error-envelopes) instead). Only when set to a meaningful value: `0`, `false`, and empty read as off. |
153155| `DEBUG` | Same, with the same meaningful-value rule, so a stray `DEBUG=0` doesn't turn stack traces on and `DEBUG` still works as the npm `debug` package's namespace filter. |
154156 
157The TUI reads both variables itself, with the same rule, for its own top-level failure.
158 
155159### CLI and TUI
156160 
157Some of these are read by the web backend too, as the **Read by** column shows.
161Some of these are read by the web backend or by `mcpdo` too, as the **Read by** column shows.
158162 
159163| Variable | Read by | Effect |
160164| - | - | - |
161| `MCP_CATALOG_PATH` | Web, CLI, TUI | Fallback for `--catalog`. The CLI honors it only when no ad-hoc target is given, so a shell that exports it can still run one-off ad-hoc invocations. The web client and TUI apply it regardless, so combining it with an ad-hoc target is rejected there. |
162| `MCP_CLIENT_CONFIG_PATH` | CLI, TUI | Fallback for `--client-config`. |
163| `MCP_OAUTH_CALLBACK_URL` | CLI, TUI | Fallback for `--callback-url`. |
164| `MCP_STORAGE_DIR` | Web, CLI, TUI | Storage directory. Relocates the OAuth state file (`<dir>/oauth.json`) and the secrets file (`<dir>/secrets.json`). |
165| `MCP_INSPECTOR_OAUTH_STATE_PATH` | CLI, TUI | Per-file override of the OAuth state path. Takes precedence over `MCP_STORAGE_DIR`. |
166| `MCP_AUTO_OPEN_ENABLED` | Web, CLI | Controls browser auto-open. `false` never opens one. In the CLI, `true` forces auto-open and lets interactive OAuth run without a TTY, and unset opens only on a TTY. In the web client, unset opens the UI at launch. The TUI does not read it. |
165| `MCP_CATALOG_PATH` | Web, CLI, TUI, mcpdo | Fallback for `--catalog`. The CLI honors it only when no ad-hoc target is given, so a shell that exports it can still run one-off ad-hoc invocations. The web client and TUI apply it regardless, so combining it with an ad-hoc target is rejected there. |
166| `MCP_CLIENT_CONFIG_PATH` | CLI, TUI, mcpdo | Fallback for `--client-config`. |
167| `MCP_OAUTH_CALLBACK_URL` | CLI, TUI, mcpdo | Fallback for `--callback-url`. |
168| `MCP_STORAGE_DIR` | Web, CLI, TUI, mcpdo | Storage directory. Relocates the OAuth state file (`<dir>/oauth.json`) and the secrets file (`<dir>/secrets.json`). |
169| `MCP_INSPECTOR_OAUTH_STATE_PATH` | CLI, TUI, mcpdo | Per-file override of the OAuth state path. Takes precedence over `MCP_STORAGE_DIR`. |
170| `MCP_AUTO_OPEN_ENABLED` | Web, CLI, mcpdo | Controls browser auto-open. `false` never opens one. In the CLI, `true` forces auto-open and lets interactive OAuth run without a TTY, and unset opens only on a TTY. In the web client, unset opens the UI at launch. The TUI does not read it. |
171| `MCP_INSPECTOR_LOG_DIR` | TUI | Directory of the TUI's `auth.log`. Defaults to `~/.mcp-inspector`. |
172| `LOG_LEVEL` | TUI | Level of that log, as a pino level name. Defaults to `info`. |
173| `NO_COLOR` | CLI, mcpdo | Any non-empty value disables ANSI styling in human-readable output: all of mcpdo's `--format text` output (the same as `--plain`), and the sign-in prompt the CLI writes to stderr. |
167174 
168175### Web backend environment variables
169176 
from line 182
175182| `CLIENT_PORT` | Web UI port. Defaults to `6274`. |
176183| `DANGEROUSLY_BIND_ALL_INTERFACES` | Required opt-in to bind a wildcard host (`0.0.0.0`, `::`, or any equivalent spelling). |
177184| `ALLOWED_ORIGINS` | Comma-separated origin allow-list. **Replaces** the default list rather than merging. |
185| `MCP_INSPECTOR_ALLOWED_HOSTS` | Comma-separated extra hostnames accepted in the `Host` header, for a reverse proxy that rewrites `Host`. `localhost` and `*.localhost`, IPv4 and bracketed IPv6 literals, the bind host (unless it is a wildcard), and the hostname of every `ALLOWED_ORIGINS` entry are always accepted. An entry starting with `.` (`.example.com`) admits that domain and its subdomains. An entry with a scheme, port, path, wildcard, or whitespace is dropped with a warning. The port is not compared. Any other `Host` gets a `403`. |
178186| `MCP_PROXY_AUTH_TOKEN` | Deprecated v1 name for `MCP_INSPECTOR_API_TOKEN`, used only when the new name is unset. |
179187| `MCP_SANDBOX_PORT` | MCP Apps sandbox port. Defaults to `6275`; `0` asks the OS for a free port. |
180188| `SERVER_PORT` | v1's proxy port, now only a fallback for the sandbox port when `MCP_SANDBOX_PORT` is unset or invalid. |
from line 190
182190| `MCP_SANDBOX_FULL_ADDRESS` | Public URL of the MCP Apps sandbox proxy, for running behind a reverse proxy. |
183191| `MCP_APP_ORIGIN_FULL_ADDRESS` | Public origin that `_meta.ui.domain` app documents are served from, for running behind a reverse proxy. |
184192| `MCP_LOG_FILE` | Append the backend's structured (JSON lines) log to this file. |
193| `INSPECTOR_TLS_KEY_PATH` | PEM private key for the web UI listener. Set together with `INSPECTOR_TLS_CERT_PATH` to serve the UI over `https`. Setting one without the other, an unreadable file, or a key and certificate that are not a usable pair is a startup error. The listener does not fall back to `http`. A blank value counts as unset. Only the UI listener is covered. The sandbox and app-origin listeners stay `http`. The CLI's `--print-handoff` emits an `https://` deep link when both are set. |
194| `INSPECTOR_TLS_CERT_PATH` | PEM certificate (or chain) for the key in `INSPECTOR_TLS_KEY_PATH`. |
185195| `MCP_AUTO_OPEN_ENABLED` | `false` stops the browser from opening at launch. See [CLI and TUI](#cli-and-tui). |
186196| `MCP_CATALOG_PATH`, `MCP_STORAGE_DIR` | As described under [CLI and TUI](#cli-and-tui). |
187197| `HTTPS_PROXY` / `HTTP_PROXY` / `NO_PROXY` | Standard proxy routing for outbound MCP connections. |
from line 302
292302}
293303```
294304 
295Fields that equal their default are omitted when the Inspector writes the file back, keeping diffs minimal. `protocolEra` (see [Protocol eras](https://modelcontextprotocol.io/docs/draft/tools/inspector/protocol-eras.md)) defaults to `legacy` and `modernLogLevel` to `debug`.
305Fields that equal their default are omitted when the Inspector writes the file back, keeping diffs minimal. `protocolEra` (see [Protocol eras](https://modelcontextprotocol.io/docs/draft/tools/inspector/protocol-eras.md)) defaults to `legacy` and `modernLogLevel` to `debug`. `"type": "http"` is accepted as an alias of `"streamable-http"` and written back in the long form.
306 
307The Inspector-specific fields and their defaults:
308 
309| Field | Default | Meaning |
310| - | - | - |
311| `headers` | | HTTP headers for an SSE or Streamable HTTP server, as a flat object. |
312| `metadata` | | Default `_meta` object merged into every outgoing request. Values may be any JSON. |
313| `protocolEra` | `legacy` | `legacy`, `auto`, or `modern`. See [Protocol eras](https://modelcontextprotocol.io/docs/draft/tools/inspector/protocol-eras.md). |
314| `elicitCapability` | `both` | Elicitation capability advertised to the server: `off`, `url`, `form`, or `both`. Read by `mcpdo` only. |
315| `modernLogLevel` | `debug` | Per-request log level stamped on modern connections, or `off`. Legacy connections ignore it. |
316| `connectionTimeout` | `30000` | Connect-time timeout in ms. `0` disables it. |
317| `requestTimeout` | | Per-request timeout in ms. |
318| `taskTtl` | `60000` | TTL in ms for tasks created with **Run as task**. |
319| `autoRefreshOnListChanged` | `false` | Refresh the tools, resources, and prompts lists on `list_changed` instead of only flagging the indicator. |
320| `paginatedLists` | `false` | Fetch the lists one page at a time instead of aggregating every page on load. |
321| `suppressNotificationStream` | `false` | Legacy-era Streamable HTTP only: do not open the standalone `GET` notification stream. |
322| `advertisedExtensions` | | Per-extension overrides of which extensions the Inspector advertises, keyed by extension id. |
323| `maxFetchRequests` | `1000` | HTTP requests kept in the Network log for this server. `0` means unlimited. |
324| `skillCatalogMaxSkills` | `256` | Most skills read in one skills verification run. A positive integer. |
325| `skillCatalogMaxBytes` | `67108864` | Most bytes read across all skills in one skills verification run (64 MiB). A positive integer. |
326| `roots` | | Roots advertised through the `roots` capability, each `{ "uri", "name" }`. |
327| `oauth.clientId` | | OAuth client ID for a static client. |
328| `oauth.clientSecret` | | OAuth client secret for a confidential client. |
329| `oauth.scopes` | | Scopes to request, as one string. |
330| `oauth.enterpriseManaged` | | `true` connects through the enterprise IdP (EMA) instead of standard OAuth. |
331| `oauth.onInsufficientScope` | `reauthorize` | Step-up policy for `403 insufficient_scope`: `reauthorize` or `throw`. |
332| `oauth.requestRefreshToken` | `true` | Whether the client declares the `refresh_token` grant when it registers. Only `false` is written. |
333| `oauth.scopeOnRefresh` | `false` | Whether a refresh-token request carries `scope`. Only `true` is written. |
334| `oauth.revokeOnClear` | `true` | Whether clearing this server's OAuth state also revokes the grant at the authorization server (RFC 7009). Only `false` is written. |
335| `oauth.authorizationParams` | | Extra query parameters for the authorization request. Reserved keys are dropped with a warning. |
336| `oauth.authorizationUrl` | | Overrides the `authorization_endpoint` the authorization server's metadata advertises. |
337| `oauth.tokenUrl` | | Overrides the `token_endpoint` the authorization server's metadata advertises. |
296338 
297339You do not have to hand-write these; the web client can [import an existing client config](https://modelcontextprotocol.io/docs/draft/tools/inspector/recipes.md#importing-an-existing-client-config) from Claude Desktop, Cursor, Cline, or VS Code, or a registry `server.json`.
298340 

docs/draft/tools/inspector/mcpdo Changed · +8 / -4 lines

from line 72
7272 
7373Omitting the name falls back to the most recently used connection, but only on an interactive TTY. From a script or an agent, where stdin is not a TTY, an unqualified command is an error, so that a background job never acts on whichever server you last used. Set `MCP_ALLOW_DEFAULT_CONNECTION=1` to allow the fallback anyway.
7474 
75`mcpdo connections/use <name>` sets the most recently used connection without sending anything to the server.
76 
7577Connections **self-heal**: a dropped transport (an expired HTTP session, an exited stdio child) is re-dialed transparently on next use with the stored credentials. Only an `auth_required` error needs you to run `connect` again.
7678 
7779A connection runs **one call at a time**. Commands against it from other shells queue behind the call in flight, and while a call is parked on an [elicitation](#elicitation), new calls on that connection are refused until it is answered. A long call does not block other connections.
7880 
81`tools/call` also accepts the one-shot CLI's `--load` family (`--load`, `--load-concurrency`, `--load-connections`, `--load-duration`, `--load-requests`, `--load-rate`, `--load-max-error-rate`, `--load-max-p99`), with the same defaults and the same summary, run inside the daemon against the connection (see [CI gates](https://modelcontextprotocol.io/docs/draft/tools/inspector/cli.md#ci-gates)). `--load-connections` opens its extra sessions with stored credentials only. Later commands on the connection wait until the run ends.
82 
7983## Tasks
8084 
81A tool that requires task support is refused by a plain `tools/call`; add `--task` to make a task-augmented call. It still **blocks** until the task finishes, then prints the final result:
85On a legacy connection, a plain `tools/call` refuses a tool that requires task support. Add `--task` to make a task-augmented call. `--task` applies to legacy servers only. On a modern connection the server decides per request whether to return a task, and the flag changes nothing on the wire. The call still **blocks** until the task finishes, then prints the final result:
8286 
8387```bash theme={null}
84mcpdo @my-server tools/call --task start_job size:=large
88mcpdo @my-server tools/call --task start_job size:=large # task-augmented call on a legacy connection
8589```
8690 
8791If the task reaches `input_required`, its question is handled like any other [elicitation](#elicitation).
from line 111
107111| `mcpdo disconnect <name> --clear-auth` (`-c`) | Close the connection **and** clear its stored tokens, so the next `connect` signs in fresh. |
108112| `mcpdo auth/list` | Stored credentials, each annotated with the catalog or connection names it is "known as", and `● live` when an open connection holds it. |
109113| `mcpdo auth/clear <url-or-name>` | Clear one stored credential, by store URL or friendly name. `--all --yes` clears every one. |
110| `mcpdo auth/ema-login` / `auth/ema-status` / `auth/ema-logout` | Enterprise-managed authorization: sign in to the IdP once, then connect to EMA servers silently. |
114| `mcpdo auth/ema-login` / `auth/ema-status` / `auth/ema-logout` | Enterprise-managed authorization: sign in to the IdP once, then connect to EMA servers silently. `mcpdo connect <name> --ema` treats a catalog entry as enterprise-managed for that connect, overriding its `oauth.enterpriseManaged`. It needs the entry's OAuth client ID and secret, so it cannot be used with an ad-hoc target. |
111115 
112116When a browser sign-in is needed and neither stdin nor stderr is a TTY (and `MCP_AUTO_OPEN_ENABLED` is not forced on), `connect` exits `0` immediately with `pendingAuth: true` and an `authUrl`. Relay that URL to whoever will sign in. The connection completes on its own once they do: the next real command against it finishes the connection, and `connections/list` reports `pendingAuthSignedIn` in the meantime. Don't reconnect to fix a pending sign-in.
113117 
from line 173
169173 
170174## Using mcpdo from a coding agent
171175 
172The package ships an agent skill that teaches an agent to drive `mcpdo`: connections it holds then extend the agent's toolset, and it knows to relay sign-in URLs and answer parked elicitations. `mcpdo agent-help` prints the guide, `mcpdo agent-help --skill-path` prints the path of the installable skill file, and `mcpdo agent-help --instructions` prints a block to append to a project's `CLAUDE.md` or `AGENTS.md`.
176The package ships an agent skill that teaches an agent to drive `mcpdo`: connections it holds then extend the agent's toolset, and it knows to relay sign-in URLs and answer parked elicitations. `mcpdo agent-help` prints the guide, `mcpdo agent-help --skill-path` prints the path of the installable skill file, and `mcpdo agent-help --instructions` prints a block to append to a project's `CLAUDE.md` or `AGENTS.md`. The skill can also be installed with `npx skills add modelcontextprotocol/inspector --skill mcpdo`.
173177 

docs/2026-07-28/tools/inspector/recipes Changed · +2 / -2 lines

from line 242
242242| Goal | What to do |
243243| - | - |
244244| **Reach it from another machine on the LAN** | `HOST=192.168.1.50`. The default origin allow-list follows the bind host, so `http://192.168.1.50:6274` is accepted with no further config. |
245| **Behind TLS or a reverse proxy** | The browser's `Origin` becomes the public origin, which won't match the bind host. Set `ALLOWED_ORIGINS=https://inspector.example.com`, and for MCP Apps set `MCP_SANDBOX_FULL_ADDRESS` (see below). |
245| **Behind TLS or a reverse proxy** | The browser's `Origin` becomes the public origin, which won't match the bind host. Set `ALLOWED_ORIGINS=https://inspector.example.com`, and for MCP Apps set `MCP_SANDBOX_FULL_ADDRESS` (see below). If the proxy rewrites `Host` to a name that is not in `ALLOWED_ORIGINS`, also set `MCP_INSPECTOR_ALLOWED_HOSTS=inspector.example.com` (or `.example.com` for a domain and its subdomains), or the backend answers `403`. Without a proxy, `INSPECTOR_TLS_KEY_PATH` and `INSPECTOR_TLS_CERT_PATH` serve the UI itself over `https`. |
246246| **Wildcard bind (containers)** | Set `DANGEROUSLY_BIND_ALL_INTERFACES=true`. Loopback access still works out of the box; reaching it at a non-loopback address needs `ALLOWED_ORIGINS`. |
247247 
248248> [!WARNING]
from line 269
269269 
270270```bash theme={null}
271271mcpdo connect my-server
272mcpdo @my-server tools/call --task start_job size:=large # task-augmented; blocks until the task finishes
272mcpdo @my-server tools/call --task start_job size:=large # task-augmented on a legacy connection, blocks until the task finishes
273273mcpdo @my-server tools/call get_job_report
274274mcpdo @my-server logging/tail # long-lived; Ctrl-C to stop
275275mcpdo disconnect my-server

docs/2026-07-28/tools/inspector/security Changed · +1 / -1 lines

from line 17
1717 
1818What the token does and does not protect:
1919 
20* **The token is the real guard for non-browser clients.** The origin allow-list (`ALLOWED_ORIGINS`) stops other web pages from driving the backend, but a request that arrives with **no** `Origin` header (curl, a script, any non-browser client) skips that check entirely.
20* **The token is the real guard for non-browser clients.** The origin allow-list (`ALLOWED_ORIGINS`) stops other web pages from driving the backend, but a request that arrives with **no** `Origin` header (curl, a script, any non-browser client) skips that check entirely. A `Host` header allow-list runs ahead of every route, including `GET /`, and answers `403` to a request whose `Host` is not a loopback name, an IP literal, the bind host, an `ALLOWED_ORIGINS` hostname, or an entry of `MCP_INSPECTOR_ALLOWED_HOSTS`, so a DNS-rebinding page cannot load the page and read the token (see [Host binding and origins](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/web.md#host-binding-and-origins)).
2121* **`GET /` discloses the token.** The backend injects it into the served HTML so that a reload or a bookmark keeps working. Anyone who can load the page can therefore read the token, which is why the bind address matters more than the token's value. Pinning your own `MCP_INSPECTOR_API_TOKEN` does not change this, since a custom token is disclosed exactly like a generated one.
2222* **`DANGEROUSLY_OMIT_AUTH=true` removes the guard completely.** Anything that can reach the port can then spawn processes as you and use any OAuth token the Inspector holds. Only `true` or `1` turns auth off; any other value, including `false`, keeps it on.
2323* **Only `/api/*` is gated.** The page itself, its static assets and `GET /healthz` are served without the token. `/healthz` returns only `{"status":"ok"}`, for container and orchestrator probes.

docs/2026-07-28/tools/inspector/web Changed · +3 / -1 lines

from line 125
125125 
126126* The sandbox listens on its own port, `6275` by default (set it with `MCP_SANDBOX_PORT`). An app whose UI resource declares `_meta.ui.domain` has its document served from a third listener, the app origin, on `6278` by default (`MCP_APP_ORIGIN_PORT`). Expose or forward both along with the web port.
127127* The sandbox is gated by a `frame-ancestors` CSP, and a bracketed IPv6 literal is not a valid CSP host-source, so browse the Inspector at `localhost`, `127.0.0.1`, a hostname, or a LAN IPv4, **not** at a bare `http://[::1]:...`.
128* By default the sandbox URL is plain `http` on the bind address, so an `https://` Inspector page blocks the frame as mixed content. Behind a TLS reverse proxy, set `MCP_SANDBOX_FULL_ADDRESS` (and `MCP_APP_ORIGIN_FULL_ADDRESS`) to the public `https://` address the browser reaches each listener at. Neither may share an origin with the Inspector UI; a value that does is ignored with a warning.
128* By default the sandbox URL is plain `http` on the bind address, so an `https://` Inspector page blocks the frame as mixed content. That applies whether the page is `https` through a proxy or through `INSPECTOR_TLS_KEY_PATH` and `INSPECTOR_TLS_CERT_PATH`, which cover the UI listener only. Behind a TLS reverse proxy, set `MCP_SANDBOX_FULL_ADDRESS` (and `MCP_APP_ORIGIN_FULL_ADDRESS`) to the public `https://` address the browser reaches each listener at. Neither may share an origin with the Inspector UI; a value that does is ignored with a warning.
129129 
130130See [Recipes](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/recipes.md#reviewing-an-mcp-app) for the CLI-first automated review flow.
131131 
from line 166
166166## Host binding and origins
167167 
168168By default the Inspector binds `127.0.0.1` and accepts requests only from the loopback origins for its port. Treat both defaults as security boundaries, since the backend spawns processes on your machine.
169 
170A `Host` header allow-list runs ahead of every route, including `GET /`. A request is answered `403` unless its `Host` is `localhost` or a `*.localhost` name, an IPv4 or bracketed IPv6 literal, the bind host, the hostname of an `ALLOWED_ORIGINS` entry, or an entry of `MCP_INSPECTOR_ALLOWED_HOSTS`. The port is not compared. A same-origin `GET /` carries no `Origin` header, so the origin allow-list never sees it, and the `Host` check is what stops a DNS-rebinding page from loading the page and reading the token out of it.
169171 
170172Binding all interfaces (`HOST=0.0.0.0`) is **refused** unless you set `DANGEROUSLY_BIND_ALL_INTERFACES=true`. Binding a *specific* non-loopback address is allowed with no opt-in, since that's a single deliberate exposure rather than every interface at once.
171173 

docs/draft/tools/inspector/protocol-eras Changed · +1 / -1 lines

from line 117
117117>
118118> Tasks are an **extension** (`io.modelcontextprotocol/tasks`, [SEP-2663](https://modelcontextprotocol.io/seps/2663-tasks-extension.md)), so the tab is gated on the server *advertising that extension* rather than on `capabilities.tasks`.
119119>
120> Run a tool as a task and `tools/call` returns a `CreateTaskResult` (`resultType: "task"`, visible in the Protocol and Network tabs). The Inspector polls **`tasks/get`** only; there is no `tasks/list`, so **Refresh** re-polls the handles the client already knows about. A completed task **inlines its result**, with no blocking `tasks/result` call.
120> There is no **Run as task** control on a modern connection. Task creation is server-directed, so the server decides per request whether `tools/call` returns a `CreateTaskResult` (`resultType: "task"`, visible in the Protocol and Network tabs). The Inspector polls **`tasks/get`** only; there is no `tasks/list`, so **Refresh** re-polls the handles the client already knows about. A completed task **inlines its result**, with no blocking `tasks/result` call.
121121>
122122> A task that needs more information moves to `input_required` and surfaces an embedded [elicitation](https://modelcontextprotocol.io/specification/draft/client/elicitation.md) in the pending-request modal (the dialog the web client opens whenever a request is waiting on you). Answering it sends **`tasks/update`** carrying the `inputResponses`, and the next poll completes.
123123>

docs/draft/tools/inspector/recipes Changed · +2 / -2 lines

from line 242
242242| Goal | What to do |
243243| - | - |
244244| **Reach it from another machine on the LAN** | `HOST=192.168.1.50`. The default origin allow-list follows the bind host, so `http://192.168.1.50:6274` is accepted with no further config. |
245| **Behind TLS or a reverse proxy** | The browser's `Origin` becomes the public origin, which won't match the bind host. Set `ALLOWED_ORIGINS=https://inspector.example.com`, and for MCP Apps set `MCP_SANDBOX_FULL_ADDRESS` (see below). |
245| **Behind TLS or a reverse proxy** | The browser's `Origin` becomes the public origin, which won't match the bind host. Set `ALLOWED_ORIGINS=https://inspector.example.com`, and for MCP Apps set `MCP_SANDBOX_FULL_ADDRESS` (see below). If the proxy rewrites `Host` to a name that is not in `ALLOWED_ORIGINS`, also set `MCP_INSPECTOR_ALLOWED_HOSTS=inspector.example.com` (or `.example.com` for a domain and its subdomains), or the backend answers `403`. Without a proxy, `INSPECTOR_TLS_KEY_PATH` and `INSPECTOR_TLS_CERT_PATH` serve the UI itself over `https`. |
246246| **Wildcard bind (containers)** | Set `DANGEROUSLY_BIND_ALL_INTERFACES=true`. Loopback access still works out of the box; reaching it at a non-loopback address needs `ALLOWED_ORIGINS`. |
247247 
248248> [!WARNING]
from line 269
269269 
270270```bash theme={null}
271271mcpdo connect my-server
272mcpdo @my-server tools/call --task start_job size:=large # task-augmented; blocks until the task finishes
272mcpdo @my-server tools/call --task start_job size:=large # task-augmented on a legacy connection, blocks until the task finishes
273273mcpdo @my-server tools/call get_job_report
274274mcpdo @my-server logging/tail # long-lived; Ctrl-C to stop
275275mcpdo disconnect my-server

docs/draft/tools/inspector/security Changed · +1 / -1 lines

from line 17
1717 
1818What the token does and does not protect:
1919 
20* **The token is the real guard for non-browser clients.** The origin allow-list (`ALLOWED_ORIGINS`) stops other web pages from driving the backend, but a request that arrives with **no** `Origin` header (curl, a script, any non-browser client) skips that check entirely.
20* **The token is the real guard for non-browser clients.** The origin allow-list (`ALLOWED_ORIGINS`) stops other web pages from driving the backend, but a request that arrives with **no** `Origin` header (curl, a script, any non-browser client) skips that check entirely. A `Host` header allow-list runs ahead of every route, including `GET /`, and answers `403` to a request whose `Host` is not a loopback name, an IP literal, the bind host, an `ALLOWED_ORIGINS` hostname, or an entry of `MCP_INSPECTOR_ALLOWED_HOSTS`, so a DNS-rebinding page cannot load the page and read the token (see [Host binding and origins](https://modelcontextprotocol.io/docs/draft/tools/inspector/web.md#host-binding-and-origins)).
2121* **`GET /` discloses the token.** The backend injects it into the served HTML so that a reload or a bookmark keeps working. Anyone who can load the page can therefore read the token, which is why the bind address matters more than the token's value. Pinning your own `MCP_INSPECTOR_API_TOKEN` does not change this, since a custom token is disclosed exactly like a generated one.
2222* **`DANGEROUSLY_OMIT_AUTH=true` removes the guard completely.** Anything that can reach the port can then spawn processes as you and use any OAuth token the Inspector holds. Only `true` or `1` turns auth off; any other value, including `false`, keeps it on.
2323* **Only `/api/*` is gated.** The page itself, its static assets and `GET /healthz` are served without the token. `/healthz` returns only `{"status":"ok"}`, for container and orchestrator probes.

docs/draft/tools/inspector/web Changed · +3 / -1 lines

from line 125
125125 
126126* The sandbox listens on its own port, `6275` by default (set it with `MCP_SANDBOX_PORT`). An app whose UI resource declares `_meta.ui.domain` has its document served from a third listener, the app origin, on `6278` by default (`MCP_APP_ORIGIN_PORT`). Expose or forward both along with the web port.
127127* The sandbox is gated by a `frame-ancestors` CSP, and a bracketed IPv6 literal is not a valid CSP host-source, so browse the Inspector at `localhost`, `127.0.0.1`, a hostname, or a LAN IPv4, **not** at a bare `http://[::1]:...`.
128* By default the sandbox URL is plain `http` on the bind address, so an `https://` Inspector page blocks the frame as mixed content. Behind a TLS reverse proxy, set `MCP_SANDBOX_FULL_ADDRESS` (and `MCP_APP_ORIGIN_FULL_ADDRESS`) to the public `https://` address the browser reaches each listener at. Neither may share an origin with the Inspector UI; a value that does is ignored with a warning.
128* By default the sandbox URL is plain `http` on the bind address, so an `https://` Inspector page blocks the frame as mixed content. That applies whether the page is `https` through a proxy or through `INSPECTOR_TLS_KEY_PATH` and `INSPECTOR_TLS_CERT_PATH`, which cover the UI listener only. Behind a TLS reverse proxy, set `MCP_SANDBOX_FULL_ADDRESS` (and `MCP_APP_ORIGIN_FULL_ADDRESS`) to the public `https://` address the browser reaches each listener at. Neither may share an origin with the Inspector UI; a value that does is ignored with a warning.
129129 
130130See [Recipes](https://modelcontextprotocol.io/docs/draft/tools/inspector/recipes.md#reviewing-an-mcp-app) for the CLI-first automated review flow.
131131 
from line 166
166166## Host binding and origins
167167 
168168By default the Inspector binds `127.0.0.1` and accepts requests only from the loopback origins for its port. Treat both defaults as security boundaries, since the backend spawns processes on your machine.
169 
170A `Host` header allow-list runs ahead of every route, including `GET /`. A request is answered `403` unless its `Host` is `localhost` or a `*.localhost` name, an IPv4 or bracketed IPv6 literal, the bind host, the hostname of an `ALLOWED_ORIGINS` entry, or an entry of `MCP_INSPECTOR_ALLOWED_HOSTS`. The port is not compared. A same-origin `GET /` carries no `Origin` header, so the origin allow-list never sees it, and the `Host` check is what stops a DNS-rebinding page from loading the page and reading the token out of it.
169171 
170172Binding all interfaces (`HOST=0.0.0.0`) is **refused** unless you set `DANGEROUSLY_BIND_ALL_INTERFACES=true`. Binding a *specific* non-loopback address is allowed with no opt-in, since that's a single deliberate exposure rather than every interface at once.
171173 
Feedback