You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f19b308
Browse filesBrowse the repository at this point in the historyBrowse files
|`--method <method>`| MCP method to invoke. Supports `initialize` (connect-only probe → `{serverInfo, protocolVersion, capabilities, instructions}`), `tools/list`, `tools/call`, `resources/list`, `resources/read`, `resources/templates/list`, `prompts/list`, `prompts/get`, `logging/setLevel`, `skills/list`, `skills/get`, `resources/directory/read`, plus catalog-only `servers/list` / `servers/show` and `servers/add` / `servers/edit` / `servers/remove` (no MCP connect; see [Editing the server catalog](#editing-the-server-catalog)). Stream / session-only methods (e.g. `logging/tail`) are rejected. |
136
+
|`--method <method>`| MCP method to invoke. Supports `initialize` (connect-only probe → `{serverInfo, protocolVersion, capabilities, instructions}`), `tools/list`, `tools/call`, `resources/list`, `resources/read`, `resources/templates/list`, `prompts/list`, `prompts/get`, `logging/setLevel`, `skills/list`, `skills/get`, `resources/directory/read`, `events/list`, `events/poll` (see [Events](#events-eventslist-eventspoll)), plus catalog-only `servers/list` / `servers/show` and `servers/add` / `servers/edit` / `servers/remove` (no MCP connect; see [Editing the server catalog](#editing-the-server-catalog)). Stream / session-only methods (e.g. `logging/tail`) are rejected. |
137
137
|`--rename <name>`| New name for the entry, with `--method servers/edit` only. Secrets stored under the old name move with it. |
138
138
|`--tool-name <name>`| Tool name (for `tools/call`). |
139
139
|`--tool-arg <key=value>`| Tool argument; repeat for multiple. Use `key='{"json":true}'` for JSON. Values are coerced (JSON-parsed, so `count=1` becomes a number). |
140
140
|`--tool-args-json <json>`| Tool arguments as a single JSON object (e.g. `'{"zip":"10001"}'`). Passed verbatim — no `key=value` coercion, so `"012"` stays a string. Mutually exclusive with `--tool-arg`. |
141
141
|`--uri <uri>`| Resource URI (`resources/read`), directory URI (`resources/directory/read`), or skill URI (`skills/get`). |
142
-
|`--cursor <cursor>`| Opaque pagination cursor for `resources/directory/read` — pass back the `nextCursor` from the previous page. The listing is not recursive and pages are not aggregated: SEP-2640 gives the cursor to the client, and descending is the caller's job. |
142
+
|`--cursor <cursor>`| Opaque pagination cursor for `resources/directory/read` — pass back the `nextCursor` from the previous page. The listing is not recursive and pages are not aggregated: SEP-2640 gives the cursor to the client, and descending is the caller's job. For `events/poll`, the subscription position: pass back the `cursor` the previous poll returned; omitted, the poll starts from now. |
143
+
|`--event-name <name>`| Event type name (for `events/poll`). |
144
+
|`--event-arg <key=value>`| Event subscription argument (for `events/poll`); repeat for multiple. Values are coerced like `--tool-arg`. An argument the event type annotates with `x-mcp-header` is also sent as its `Mcp-Param-*` header. |
143
145
|`--prompt-name <name>`| Prompt name (for `prompts/get`). |
144
146
|`--prompt-args <key=value>`| Prompt arguments; repeat for multiple. Values are sent verbatim as strings (`price=1.50` sends `"1.50"`; `q=` sends `""`). |
145
147
|`--log-level <level>`| Logging level for `logging/setLevel` (e.g. `debug`, `info`). |
@@ -1257,6 +1259,37 @@ covers:
1257
1259
A read failure is recorded against the file it happened on and the walk
1258
1260
continues, so one unreadable file never hides the findings after it.
1259
1261
1262
+
### Events (`events/list`, `events/poll`)
1263
+
1264
+
The [Events extension](https://modelcontextprotocol.io/extensions/events/overview)
1265
+
(`io.modelcontextprotocol/events`, SEP-3415) lets a server publish event types a
1266
+
client subscribes to. It exists only on the 2026-07-28 protocol and later, so it
1267
+
needs `--protocol-era modern` (or a catalog entry with `protocolEra: "modern"`).
1268
+
Against a server that does not advertise it, or on a legacy connection, both
1269
+
methods fail with exit `1` and code `events_unsupported` without sending
1270
+
anything.
1271
+
1272
+
```bash
1273
+
# Every event type, across all pages. `excluded` names the types the CLI left
1274
+
# out because their x-mcp-header annotations are invalid, with the reason.
1275
+
mcp-inspector --cli https://example.com/mcp --protocol-era modern \
1276
+
--method events/list
1277
+
1278
+
# One poll. The result is printed whole: `events`, the `cursor` to pass back
1279
+
# next time, `hasMore` (poll again now) and `nextPollMs` (when to poll next).
1280
+
mcp-inspector --cli https://example.com/mcp --protocol-era modern \
0 commit comments