# What's new in Postman: MCP Events and CLI testing

An MCP server used to be something you called. You sent a request, got a response, and the conversation was over. Servers that push events change that: a deploy finishes or a build fails, and the server tells you instead of waiting to be asked. Testing that behavior means holding a connection open, picking a delivery mode and reading a stream of payloads as they arrive. We've shipped updates that cover this end to end. MCP Events works in the Postman app, Agent Mode and the Postman CLI. The Postman CLI can now test any MCP server from the terminal. And Fabric connects to OAuth-protected MCP servers that don't support dynamic client registration. Here's what changed and how to use each one.

## MCP Events in the Postman app, Agent Mode and the CLI

 Postman now supports the MCP Events extension (SEP-3415) across MCP requests, Agent Mode and the Postman CLI. Connect to any [Model Context Protocol](https://modelcontextprotocol.io/) server on protocol version `2026-07-28`, subscribe to real-time events, and inspect or react to them from the app or your terminal. It's available on the Free, Solo, Team and Enterprise plans in Postman app version 12.39.0 and Postman CLI version 1.95.0. ### Subscribe from the Events tab

 When a server declares the `io.modelcontextprotocol/events` capability, a new **Events** tab appears next to **Tools**, **Prompts** and **Resources**. Browse the event types the server offers, fill in typed argument filters and subscribe directly. To subscribe: 1. Open an MCP request and connect to your server.
2. Open the **Events** tab and select an event type.
3. Fill in any argument filters.
4. Choose a delivery mode and click **Subscribe**.
 
 Incoming events stream into the response timeline as `events / <name>`, next to subscription status changes (active, gap, error or ended). You can inspect each payload as it arrives. ### Pick a delivery mode

 Postman supports every delivery mode in the extension, so you can match the mode to how your client runs: | Mode | Server method | Use it when |
|---|---|---|
| Push | `events/stream` | You want events delivered over the open connection as they happen |
| Poll | `events/poll` | You want to fetch events on your own schedule |
| Webhook | `events/subscribe` | You want the server to call a URL when an event fires |

 You can set the SEP-3415 options `cursor`, `maxAgeMs`, `maxEvents`, `heartbeatMs` and `ttlMs` from the card UI. The card and the message editor stay in sync in both directions, so a change in one shows up in the other. Webhook delivery works without extra setup. On desktop and in the CLI, Postman creates a per-user callback URL and tunnel for you. If you'd rather use your own endpoint, you can still provide your own webhook URL. ### Ask Agent Mode to listen

 You can also describe what you want in plain language. Ask Agent Mode to subscribe to a server's events, and it picks a delivery mode the server supports, listens in the background and wakes up to react when an event arrives. ### List and subscribe from the Postman CLI

 The Postman CLI covers the same workflow in the terminal. List what a server offers: ```
postman mcp events list --url https://mcp.example.com/mcp

```

 The output shows each event type and its delivery modes. The same information is counted in `postman mcp inspect`. Then stream one event type to your terminal: ```
postman mcp events subscribe deployment.finished \
  --url https://mcp.example.com/mcp \
  --arg environment=staging \
  --limit 5 \
  --timeout 60 \
  --json

```

 Use `--arg` or `--args` to filter events and `--cursor` to resume from where a previous run stopped. `--limit` and `--timeout` bound the run so it finishes on its own. With `--json`, the CLI writes line-delimited JSON to stdout and keeps logs on stderr, and it exits with structured exit codes, so you can pipe events straight into a script: ```
postman mcp events subscribe deployment.finished \
  --url https://mcp.example.com/mcp \
  --limit 10 --json \
  | jq -r 'select(.data.status == "failed") | .data.service'

```

 Try changing the delivery mode and the `--cursor` value to see how each one affects the events you receive. ## MCP testing in the Postman CLI

 Anything you can do with an MCP request in the Postman app, you can now do from the terminal in headless mode with the Postman CLI. Explore a server, call its tools, prompts and resources, run your MCP scripts and tests, and run MCP requests in a collection run next to your HTTP requests. It works locally, in CI or from your coding agent, on every plan including Consumption Pricing. ### Inspect a server

 `postman mcp inspect` connects to a server and reports its name, protocol version, capabilities and everything it exposes. It works with Streamable HTTP servers and with local STDIO servers: ```
# Remote server over Streamable HTTP
postman mcp inspect --url https://mcp.example.com/mcp

# Local STDIO server
postman mcp inspect --allow-stdio -- node server.js

```

### Call tools, prompts and resources

 Each primitive has its own command: ```
postman mcp tools list --url https://mcp.example.com/mcp
postman mcp tools call create_issue \
  --url https://mcp.example.com/mcp \
  --arg title="Checkout returns 500" \
  --arg priority=high \
  --json

postman mcp prompts list --url https://mcp.example.com/mcp
postman mcp resources list --url https://mcp.example.com/mcp
postman mcp resources templates list --url https://mcp.example.com/mcp

```

 Pass arguments as JSON, or with `--arg key=value`, which the CLI types from the tool's input schema. Add `--json` to get output that scripts and agents can parse. ### Reuse saved requests, scripts and tests

 If you've already built an MCP request in a collection, run it as it is with `--request`. The CLI uses the saved URL or command, headers, auth and variables. Switch environments with `-e` or `--env-var`. The four script hooks, **Before connect**, **After connect**, **After response** and **After disconnect**, run in the same order as in the app. Collection and folder `mcp:*` scripts are inherited too. Here's an **After connect** script that checks the server exposes the tool you depend on: ```
pm.test("Server exposes create_issue", () => {
  const tool = pm.mcp.tools.find((t) => t.name === "create_issue");
  pm.expect(tool).to.exist;
  pm.expect(tool.inputSchema.required).to.include("title");
});

```

 `pm.test` results print under **Tests** and appear in the `--json` output. A failing test exits with code `1`, so it fails a CI pipeline without extra wiring. ### Run MCP requests in a collection run

 `postman collection run` runs MCP requests with their scripts and tests in the same run as HTTP and other protocols, and values pass between steps. One run can call your API and then check the MCP tool that reads the result. ### Sign in and create requests from the CLI

 `postman mcp login` runs the MCP authorization flow in your browser, including discovery, dynamic client registration and [PKCE](https://datatracker.ietf.org/doc/html/rfc7636). The CLI then stores and refreshes the tokens. If a server answers `401`, the CLI offers to sign you in and retries the command. Over SSH, `--no-browser` lets you paste the redirect URL back. To add a request without opening the app, use `postman collection request add --type mcp`, and attach scripts with `--scripts afterResponse:@tests.js`. ## Non-DCR OAuth for MCP servers in Fabric

 Fabric can now connect to OAuth-protected MCP servers that don't support [dynamic client registration](https://datatracker.ietf.org/doc/html/rfc7591), such as Slack and GitHub. You bring your own OAuth app, add it to Fabric and link it to the MCP connection. It's available on the Free, Solo, Team, Enterprise and Consumption Pricing plans. To set it up: 1. Register an OAuth app with the MCP server's provider, and add the redirect URI that Fabric shows you.
2. In **Admin** **&gt;** **OAuth clients**, add the app's client ID, client secret and MCP server URL.
3. When you create or edit the MCP connection, select that client.
 
 Users then sign in through the provider's [OAuth 2.0 authorization flow](https://datatracker.ietf.org/doc/html/rfc6749). Because the client secret lives in Admin, you set it up once and every user of the connection signs in with their own account. ## Try it this week

- Run `postman mcp inspect` against an MCP server you use and read what it exposes.
- If the server declares the events capability, run `postman mcp events list`, then subscribe to one event type with `--limit 5 --json`.
- Add an **After connect** test for the tools you rely on, save the request in a collection and run it with `postman collection run` in your pipeline.
- Register an OAuth app with a provider that doesn't support dynamic client registration and connect it to Fabric.
 
 Chain these and you can watch an event arrive, check the tool that handles it and gate your pipeline on the result. ## Resources

- [Postman Docs](https://learning.postman.com/docs/)
- [The Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)
- [Model Context Protocol](https://modelcontextprotocol.io/)
- [OAuth 2.0 (RFC 6749)](https://datatracker.ietf.org/doc/html/rfc6749)
- [OAuth 2.0 Dynamic Client Registration (RFC 7591)](https://datatracker.ietf.org/doc/html/rfc7591)
- [Proof Key for Code Exchange (RFC 7636)](https://datatracker.ietf.org/doc/html/rfc7636)