postman-cli 1.87.0 → 1.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/man/postman.1 +939 -11
- package/package.json +6 -6
package/man/postman.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH POSTMAN 1 "2026-11-
|
|
1
|
+
.TH POSTMAN 1 "2026-11-13" "v1.89.0" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -216,6 +216,9 @@ Update Postman CLI using the original installation method.
|
|
|
216
216
|
.TP
|
|
217
217
|
.B \-\-check
|
|
218
218
|
Check whether a Postman CLI update is available.
|
|
219
|
+
.TP
|
|
220
|
+
.B \-\-timeout <ms>
|
|
221
|
+
Timeout for the update check in milliseconds (default: 30000).
|
|
219
222
|
|
|
220
223
|
.SS "skills"
|
|
221
224
|
Check and update the agent skills in this repository.
|
|
@@ -683,7 +686,7 @@ Target collection: name, directory, id, cloud id, or path. Required.
|
|
|
683
686
|
Folder within the collection, e.g. "Users/Admin". Defaults to the root.
|
|
684
687
|
.TP
|
|
685
688
|
.B \-\-type <type>
|
|
686
|
-
Request type: http, graphql, grpc, websocket, socketio. (default: http)
|
|
689
|
+
Request type: http, graphql, grpc, websocket, socketio, mcp. (default: http)
|
|
687
690
|
.TP
|
|
688
691
|
.B \-w, \-\-workspace <id>
|
|
689
692
|
Target a Postman cloud workspace by id (cloud mode).
|
|
@@ -696,12 +699,13 @@ JSON output.
|
|
|
696
699
|
|
|
697
700
|
.TP Examples:
|
|
698
701
|
|
|
699
|
-
Creates an empty request (name + type only). Configure it with `collection request update`.
|
|
702
|
+
Creates an empty request (name + type only). Configure it with `collection request update`. An mcp request starts on the HTTP transport; `update \-\-command` moves it to stdio.
|
|
700
703
|
|
|
701
704
|
Examples:
|
|
702
705
|
postman collection request add "Get user" \-\-collection "My API"
|
|
703
706
|
postman collection request add \-\-collection "My API" # named "New request"
|
|
704
707
|
postman collection request add "List" \-\-collection "My API" \-\-folder Users \-\-type http
|
|
708
|
+
postman collection request add "Weather" \-\-collection "My API" \-\-type mcp
|
|
705
709
|
|
|
706
710
|
|
|
707
711
|
|
|
@@ -755,7 +759,13 @@ Folder to scope the request selector, e.g. "Users/Admin" (local: name/path; clou
|
|
|
755
759
|
Rename the request (moves its file). Any request type.
|
|
756
760
|
.TP
|
|
757
761
|
.B \-\-url <url>
|
|
758
|
-
Request URL; its query string becomes the query parameters. Any request type.
|
|
762
|
+
Request URL; its query string becomes the query parameters. Any request type; moves an mcp request to the HTTP transport.
|
|
763
|
+
.TP
|
|
764
|
+
.B \-\-command <command>
|
|
765
|
+
Command that starts a local MCP server; moves an mcp request to the stdio transport (mcp requests only, local mode).
|
|
766
|
+
.TP
|
|
767
|
+
.B \-\-command\-env <key=value>
|
|
768
|
+
Replace the environment variables of a stdio mcp request's server. Repeatable (local mode). (default: )
|
|
759
769
|
.TP
|
|
760
770
|
.B \-\-method <method>
|
|
761
771
|
HTTP method (http requests only).
|
|
@@ -782,13 +792,13 @@ Replace request headers. Repeatable; any request type with headers. (default: )
|
|
|
782
792
|
Request auth: none, inherit, bearer:TOKEN, basic:USER:PASS, apikey:KEY:VALUE[:header|query], oauth2:TOKEN. Any request type.
|
|
783
793
|
.TP
|
|
784
794
|
.B \-\-scripts <event:script>
|
|
785
|
-
Replace scripts. event is prerequest or test; script is @file, \- for stdin, or inline. Repeatable; any request type. (default: )
|
|
795
|
+
Replace scripts. event is prerequest or test, or on an mcp request beforeConnect, afterConnect, afterResponse or afterDisconnect; script is @file, \- for stdin, or inline. Repeatable; any request type. (default: )
|
|
786
796
|
.TP
|
|
787
797
|
.B \-w, \-\-workspace <id>
|
|
788
798
|
Target a Postman cloud workspace by id (cloud mode).
|
|
789
799
|
.TP
|
|
790
800
|
.B \-\-type <type>
|
|
791
|
-
Request type for cloud mode: http, graphql, grpc, websocket, socketio. (default: http)
|
|
801
|
+
Request type for cloud mode: http, graphql, grpc, websocket, socketio, mcp. (default: http)
|
|
792
802
|
.TP
|
|
793
803
|
.B \-m, \-\-message <text>
|
|
794
804
|
Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Cloud mode only.
|
|
@@ -798,7 +808,7 @@ JSON output.
|
|
|
798
808
|
|
|
799
809
|
.TP Examples:
|
|
800
810
|
|
|
801
|
-
Works on any request type; \-\-rename/\-\-url/\-\-description/\-\-headers/\-\-auth/\-\-scripts apply to all, while \-\-method/\-\-param/\-\-clear\-params are http\-only and \-\-body is interpreted per type. \-\-param and \-\-clear\-params apply after \-\-url. Select the request by the <request> selector: local — a name or "Folder/Name" path (or \-\-folder to scope a bare name); cloud (\-\-workspace) — a request id, with \-\-collection an id too.
|
|
811
|
+
Works on any request type; \-\-rename/\-\-url/\-\-description/\-\-headers/\-\-auth/\-\-scripts apply to all, while \-\-method/\-\-param/\-\-clear\-params are http\-only and \-\-body is interpreted per type. \-\-param and \-\-clear\-params apply after \-\-url. On an mcp request, \-\-url moves it to the HTTP transport and \-\-command to stdio, removing the other transport's fields (url and headers, or command and env). Select the request by the <request> selector: local — a name or "Folder/Name" path (or \-\-folder to scope a bare name); cloud (\-\-workspace) — a request id, with \-\-collection an id too.
|
|
802
812
|
|
|
803
813
|
Examples:
|
|
804
814
|
postman collection request update "Get user" \-\-collection "My API" \-\-url "{{baseUrl}}/users/:id"
|
|
@@ -806,6 +816,7 @@ Examples:
|
|
|
806
816
|
postman collection request update "List" \-\-collection "My API" \-\-clear\-params
|
|
807
817
|
postman collection request update "Get user" \-\-collection "My API" \-\-folder Users \-\-rename "Fetch user"
|
|
808
818
|
postman collection request update "Get user" \-\-collection "My API" \-\-headers "Authorization:Bearer x" \-\-auth bearer:TOKEN \-\-scripts "test:@check.js"
|
|
819
|
+
postman collection request update "Weather" \-\-collection "My API" \-\-command "node server.js \-\-transport stdio" \-\-command\-env "API_KEY={{apiKey}}"
|
|
809
820
|
postman collection request update <requestId> \-\-collection <collectionId> \-\-url "..." \-w <workspaceId>
|
|
810
821
|
|
|
811
822
|
|
|
@@ -828,7 +839,7 @@ Folder to scope the request selector, e.g. "Users/Admin" (local: name/path; clou
|
|
|
828
839
|
Target a Postman cloud workspace by id (cloud mode).
|
|
829
840
|
.TP
|
|
830
841
|
.B \-\-type <type>
|
|
831
|
-
Request type for cloud mode: http, graphql, grpc, websocket, socketio. (default: http)
|
|
842
|
+
Request type for cloud mode: http, graphql, grpc, websocket, socketio, mcp. (default: http)
|
|
832
843
|
.TP
|
|
833
844
|
.B \-m, \-\-message <text>
|
|
834
845
|
Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Cloud mode only.
|
|
@@ -1424,6 +1435,9 @@ Prevents reading the files situated outside of the working directory
|
|
|
1424
1435
|
.B \-k, \-\-insecure
|
|
1425
1436
|
Disables SSL validations
|
|
1426
1437
|
.TP
|
|
1438
|
+
.B \-\-allow\-stdio
|
|
1439
|
+
Allow MCP requests on the stdio transport to start their local server process
|
|
1440
|
+
.TP
|
|
1427
1441
|
.B \-\-ssl\-client\-cert\-list <path>
|
|
1428
1442
|
Specify the path to a client certificates configurations (JSON)
|
|
1429
1443
|
.TP
|
|
@@ -4454,6 +4468,166 @@ Examples:
|
|
|
4454
4468
|
|
|
4455
4469
|
|
|
4456
4470
|
|
|
4471
|
+
.SS "fn"
|
|
4472
|
+
Build code\-based workflows
|
|
4473
|
+
|
|
4474
|
+
.B Usage:
|
|
4475
|
+
[options] [command]
|
|
4476
|
+
|
|
4477
|
+
.B Subcommands:
|
|
4478
|
+
.TP
|
|
4479
|
+
.B fn init
|
|
4480
|
+
Create a starter workflow in the current or chosen directory (requires Postman login)
|
|
4481
|
+
.TP
|
|
4482
|
+
.B fn describe
|
|
4483
|
+
Describe workflow primitives and blocks (requires Postman login)
|
|
4484
|
+
.TP
|
|
4485
|
+
.B fn check
|
|
4486
|
+
Validate a workflow definition without running its steps (requires Postman login)
|
|
4487
|
+
.TP
|
|
4488
|
+
.B fn run
|
|
4489
|
+
Run a workflow using Postman login for AI and evals
|
|
4490
|
+
|
|
4491
|
+
.SS "fn init"
|
|
4492
|
+
Create a starter workflow in the current or chosen directory (requires Postman login)
|
|
4493
|
+
|
|
4494
|
+
.B Usage:
|
|
4495
|
+
[options] [path]
|
|
4496
|
+
|
|
4497
|
+
.B Options:
|
|
4498
|
+
.TP
|
|
4499
|
+
.B \-\-json
|
|
4500
|
+
Output JSON (default when stdout is piped)
|
|
4501
|
+
.TP
|
|
4502
|
+
.B \-\-api\-key <key>
|
|
4503
|
+
Postman API key (otherwise use postman login or POSTMAN_API_KEY)
|
|
4504
|
+
|
|
4505
|
+
.TP Examples:
|
|
4506
|
+
|
|
4507
|
+
Examples:
|
|
4508
|
+
postman fn init
|
|
4509
|
+
postman fn init ./my\-workflow
|
|
4510
|
+
postman fn init ./my\-workflow \-\-json
|
|
4511
|
+
|
|
4512
|
+
Creates workflow.mts and any missing destination directories. Existing files are never overwritten.
|
|
4513
|
+
The starter prints "Welcome to Postman Flows" when run with postman fn run workflow.mts.
|
|
4514
|
+
Does not install packages, add editor configuration, or execute the workflow.
|
|
4515
|
+
The .mts extension works in both CommonJS and ES module projects.
|
|
4516
|
+
|
|
4517
|
+
|
|
4518
|
+
|
|
4519
|
+
.SS "fn describe"
|
|
4520
|
+
Describe workflow primitives and blocks (requires Postman login)
|
|
4521
|
+
|
|
4522
|
+
.B Usage:
|
|
4523
|
+
[options] [subject]
|
|
4524
|
+
|
|
4525
|
+
.B Options:
|
|
4526
|
+
.TP
|
|
4527
|
+
.B \-\-json
|
|
4528
|
+
Output JSON (default when stdout is piped)
|
|
4529
|
+
.TP
|
|
4530
|
+
.B \-\-api\-key <key>
|
|
4531
|
+
Postman API key (otherwise use postman login or POSTMAN_API_KEY)
|
|
4532
|
+
|
|
4533
|
+
.TP Examples:
|
|
4534
|
+
|
|
4535
|
+
Examples:
|
|
4536
|
+
postman fn describe
|
|
4537
|
+
postman fn describe workflow
|
|
4538
|
+
postman fn describe http.fetch \-\-json
|
|
4539
|
+
postman fn describe fetchRequest
|
|
4540
|
+
|
|
4541
|
+
Read\-only. Lists primitives and blocks; a subject shows readable details and examples.
|
|
4542
|
+
Use \-\-json for full structured documentation, including schemas.
|
|
4543
|
+
|
|
4544
|
+
|
|
4545
|
+
|
|
4546
|
+
.SS "fn check"
|
|
4547
|
+
Validate a workflow definition without running its steps (requires Postman login)
|
|
4548
|
+
|
|
4549
|
+
.B Usage:
|
|
4550
|
+
[options] <workflow.ts>
|
|
4551
|
+
|
|
4552
|
+
.B Options:
|
|
4553
|
+
.TP
|
|
4554
|
+
.B \-\-json
|
|
4555
|
+
Output JSON (default when stdout is piped)
|
|
4556
|
+
.TP
|
|
4557
|
+
.B \-\-api\-key <key>
|
|
4558
|
+
Postman API key (otherwise use postman login or POSTMAN_API_KEY)
|
|
4559
|
+
.TP
|
|
4560
|
+
.B \-\-timeout <ms>
|
|
4561
|
+
Maximum time to load and validate the workflow (default: 30000)
|
|
4562
|
+
|
|
4563
|
+
.TP Examples:
|
|
4564
|
+
|
|
4565
|
+
Examples:
|
|
4566
|
+
postman fn check ./workflow.ts
|
|
4567
|
+
postman fn check ./workflow.mts
|
|
4568
|
+
postman fn check ./workflow.ts \-\-json
|
|
4569
|
+
postman fn check ./workflow.ts \-\-timeout 60000
|
|
4570
|
+
|
|
4571
|
+
Supports import/export workflows and local helpers using the fn packages shipped with this CLI.
|
|
4572
|
+
Imports the workflow module, so top\-level code runs; workflow steps are not executed.
|
|
4573
|
+
Validates the workflow definition, not TypeScript types. Returns exit code 1 when validation fails.
|
|
4574
|
+
|
|
4575
|
+
|
|
4576
|
+
|
|
4577
|
+
.SS "fn run"
|
|
4578
|
+
Run a workflow using Postman login for AI and evals
|
|
4579
|
+
|
|
4580
|
+
.B Usage:
|
|
4581
|
+
[options] <workflow.ts>
|
|
4582
|
+
|
|
4583
|
+
.B Options:
|
|
4584
|
+
.TP
|
|
4585
|
+
.B \-\-input <input.json>
|
|
4586
|
+
JSON array of workflow inputs
|
|
4587
|
+
.TP
|
|
4588
|
+
.B \-\-config <config.json>
|
|
4589
|
+
Workflow configuration JSON file
|
|
4590
|
+
.TP
|
|
4591
|
+
.B \-\-json
|
|
4592
|
+
Output JSON (default when stdout is piped)
|
|
4593
|
+
.TP
|
|
4594
|
+
.B \-\-api\-key <key>
|
|
4595
|
+
Postman API key (otherwise use postman login or POSTMAN_API_KEY)
|
|
4596
|
+
.TP
|
|
4597
|
+
.B \-\-timeout <ms>
|
|
4598
|
+
Maximum time to load and run the workflow (default: 300000)
|
|
4599
|
+
.TP
|
|
4600
|
+
.B \-\-verbose
|
|
4601
|
+
Show workflow logs and step details without changing the workflow log level
|
|
4602
|
+
.TP
|
|
4603
|
+
.B \-\-stream
|
|
4604
|
+
Stream JSON events and workflow logs followed by a summary
|
|
4605
|
+
.TP
|
|
4606
|
+
.B \-\-visualize
|
|
4607
|
+
Write an HTML visualization of the execution
|
|
4608
|
+
.TP
|
|
4609
|
+
.B \-\-out <output.html>
|
|
4610
|
+
New visualization file path (requires \-\-visualize)
|
|
4611
|
+
|
|
4612
|
+
.TP Examples:
|
|
4613
|
+
|
|
4614
|
+
Examples:
|
|
4615
|
+
postman fn run ./workflow.ts
|
|
4616
|
+
postman fn run ./workflow.mts
|
|
4617
|
+
postman fn run ./workflow.ts \-\-input inputs.json \-\-config config.json \-\-json
|
|
4618
|
+
postman fn run ./workflow.ts \-\-stream
|
|
4619
|
+
postman fn run ./workflow.ts \-\-visualize \-\-out run.html
|
|
4620
|
+
|
|
4621
|
+
Runs workflow code and may change external systems. Runs are not automatically retried.
|
|
4622
|
+
AI and eval blocks use Postman login; separate service credentials are not needed.
|
|
4623
|
+
console.print values are shown without \-\-verbose. Use \-\-verbose for workflow logs and step details.
|
|
4624
|
+
Use console.print to display workflow values in the terminal.
|
|
4625
|
+
JSON and stream output retain returned values and workflow logs.
|
|
4626
|
+
Inputs/config and captured execution output are limited to 2 MiB each. Import\-time logs are suppressed.
|
|
4627
|
+
Ctrl+C cancels the run; cancellation and timeout do not roll back completed actions.
|
|
4628
|
+
|
|
4629
|
+
|
|
4630
|
+
|
|
4457
4631
|
.SS "request"
|
|
4458
4632
|
Send HTTP requests from the command line with full Postman capabilities including authentication, environment variables, assertions, retries, and detailed output control. Use `postman request grpc` for gRPC.
|
|
4459
4633
|
|
|
@@ -5356,7 +5530,7 @@ Same as \-\-mode stateful. Generated offline for a local file, by Postman with \
|
|
|
5356
5530
|
With \-\-mode ai: guidance for the AI, up to 2000 characters, e.g. "Orders can only be cancelled before they ship". Recorded with the mock, so \-\-update reuses them.
|
|
5357
5531
|
.TP
|
|
5358
5532
|
.B \-\-strict
|
|
5359
|
-
With \-\-mode ai: fail instead of falling back. Postman refuses a mock it would build without AI (exit 1, nothing written or saved). A mock whose AI rules reached only some operations, or one an older Postman built without AI anyway, is kept but exits 4.
|
|
5533
|
+
With \-\-mode ai: fail instead of falling back. Postman refuses a mock it would build without AI (exit 1, nothing written or saved). A mock whose AI rules reached only some operations, or one an older Postman built without AI anyway, is kept but exits 4. A cloud mock is saved before AI runs, so when AI fails it keeps its contract\-derived version (exit 1).
|
|
5360
5534
|
.TP
|
|
5361
5535
|
.B \-\-spec <specId>
|
|
5362
5536
|
Generate from a spec in Postman (by id) instead of a local file. With \-\-workspace, the mock stays linked to it and is regenerated when it changes.
|
|
@@ -5368,7 +5542,7 @@ Generate from a collection in Postman (by id) instead of a local file. With \-\-
|
|
|
5368
5542
|
Generate from a dataset: its tables become resources and their first 20 rows the records. A dataset in Postman (by id) or a local .dataset.yaml (CSV and JSON sources). Generated by Postman in stateful (the default) or ai mode; AI sees the column names and types, never the rows.
|
|
5369
5543
|
.TP
|
|
5370
5544
|
.B \-\-force
|
|
5371
|
-
Replace the mock's files if the target folder already holds a mock. A folder with other files and no mock is never written to.
|
|
5545
|
+
Replace the mock's files if the target folder already holds a mock. A folder with other files and no mock is never written to. With \-\-update, regenerate a handler that was edited by hand.
|
|
5372
5546
|
.TP
|
|
5373
5547
|
.B \-u, \-\-update <mockPathOrId>
|
|
5374
5548
|
Regenerate an existing mock in place: one in your repository by path (e.g. ./postman/mocks/orders), or one in Postman cloud by id. Without a source or \-\-mode, it uses the ones the mock recorded (and an ai mock's instructions). Cannot be used with \-\-output.
|
|
@@ -5386,7 +5560,7 @@ With \-\-deploy, let anyone with the link reach the server (default: callers nee
|
|
|
5386
5560
|
With \-\-deploy, the short label used in the server's web address. Requires \-\-deploy.
|
|
5387
5561
|
.TP
|
|
5388
5562
|
.B \-\-timeout <ms>
|
|
5389
|
-
How long to wait for Postman to
|
|
5563
|
+
How long to wait for Postman to answer the generate request, in milliseconds (default 75000). With \-\-mode ai, the AI step that follows is waited for up to 10 minutes.
|
|
5390
5564
|
.TP
|
|
5391
5565
|
.B \-\-api\-key <key>
|
|
5392
5566
|
Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)
|
|
@@ -9114,6 +9288,760 @@ Examples:
|
|
|
9114
9288
|
|
|
9115
9289
|
|
|
9116
9290
|
|
|
9291
|
+
.SS "mcp"
|
|
9292
|
+
Explore MCP servers: inspect them, list and call tools, read resources, get prompts, and sign in to servers that use OAuth
|
|
9293
|
+
|
|
9294
|
+
.B Usage:
|
|
9295
|
+
[options] [command]
|
|
9296
|
+
|
|
9297
|
+
.TP Examples:
|
|
9298
|
+
|
|
9299
|
+
Each command takes one target: \-\-request <path|id>, \-\-url <url>, or a local stdio server with
|
|
9300
|
+
\-\-allow\-stdio and either \-\-command "<cmd>" or the command after \-\-, e.g.
|
|
9301
|
+
$ postman mcp tools list \-\-allow\-stdio \-\- node server.js \-\-transport stdio
|
|
9302
|
+
Every MCP operation has a 60000 ms time limit; change it with \-\-timeout\-request.
|
|
9303
|
+
|
|
9304
|
+
Which credentials a command sends to an HTTP server, first match wins:
|
|
9305
|
+
1. \-H "Authorization: ..."
|
|
9306
|
+
2. the saved request's own auth (\-\-request)
|
|
9307
|
+
3. auth the request inherits from its folder, then its collection
|
|
9308
|
+
4. the sign\-in `postman mcp login \-\-url <url>` stored (refreshed when it expires)
|
|
9309
|
+
5. none
|
|
9310
|
+
Levels 1\-3 are sent as given, never refreshed, and never lead to a sign\-in.
|
|
9311
|
+
|
|
9312
|
+
When a server that offers OAuth answers 401/403 and nothing was sent (or the stored sign\-in expired),
|
|
9313
|
+
a command in a terminal asks to sign in in your browser, then retries once. \-\-login signs in without
|
|
9314
|
+
asking (exit 8 where no browser can open); \-\-no\-login never asks. POSTMAN_MCP_LOGIN=prompt|always|never
|
|
9315
|
+
sets the default (prompt). List stored sign\-ins with `postman mcp credentials`; remove them with
|
|
9316
|
+
`postman mcp logout \-\-url <url>` or `\-\-all`.
|
|
9317
|
+
POSTMAN_MCP_CREDENTIALS_STORE=file|none sets where sign\-ins are kept: file (default,
|
|
9318
|
+
~/.postman/mcp\-credentials.json) or none (memory only; a sign\-in lasts one command, and stored
|
|
9319
|
+
sign\-ins are not read). Another value of either variable exits 2; a stdio target ignores both.
|
|
9320
|
+
|
|
9321
|
+
Exit codes: 0 ok, 1 failure (including a tool result with isError), 2 usage, 3 the server
|
|
9322
|
+
rejected or requires credentials (HTTP 401/403), 4 inspect could not list everything, 5 cancelled,
|
|
9323
|
+
8 refused (stdio without \-\-allow\-stdio, login or \-\-login cannot open a browser here, or
|
|
9324
|
+
logout \-\-all without a terminal or \-\-yes).
|
|
9325
|
+
|
|
9326
|
+
|
|
9327
|
+
.B Subcommands:
|
|
9328
|
+
.TP
|
|
9329
|
+
.B mcp inspect
|
|
9330
|
+
Show what an MCP server reports at initialize: capabilities and counts of tools, resources, resource templates and prompts (initialize, then every */list)
|
|
9331
|
+
.TP
|
|
9332
|
+
.B mcp tools
|
|
9333
|
+
List and call the tools an MCP server offers
|
|
9334
|
+
.TP
|
|
9335
|
+
.B mcp resources
|
|
9336
|
+
List and read the resources an MCP server offers
|
|
9337
|
+
.TP
|
|
9338
|
+
.B mcp prompts
|
|
9339
|
+
List and get the prompts an MCP server offers
|
|
9340
|
+
.TP
|
|
9341
|
+
.B mcp login
|
|
9342
|
+
Sign in to an MCP server that uses OAuth, in a browser, and store the token every postman mcp command then sends to it
|
|
9343
|
+
.TP
|
|
9344
|
+
.B mcp logout
|
|
9345
|
+
Remove the credentials postman mcp login stored for an MCP server, and revoke them at its authorization server
|
|
9346
|
+
.TP
|
|
9347
|
+
.B mcp credentials
|
|
9348
|
+
List the sign\-ins postman mcp login stored: server, issuer, client, scopes, expiry and whether they refresh. Never shows a token or secret
|
|
9349
|
+
|
|
9350
|
+
.SS "mcp inspect"
|
|
9351
|
+
Show what an MCP server reports at initialize: capabilities and counts of tools, resources, resource templates and prompts (initialize, then every */list)
|
|
9352
|
+
|
|
9353
|
+
.B Usage:
|
|
9354
|
+
[options]
|
|
9355
|
+
|
|
9356
|
+
.B Options:
|
|
9357
|
+
.TP
|
|
9358
|
+
.B \-\-json
|
|
9359
|
+
Print the report as JSON
|
|
9360
|
+
.TP
|
|
9361
|
+
.B \-\-debug
|
|
9362
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9363
|
+
.TP
|
|
9364
|
+
.B \-\-request <path|id>
|
|
9365
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9366
|
+
.TP
|
|
9367
|
+
.B \-\-url <url>
|
|
9368
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9369
|
+
.TP
|
|
9370
|
+
.B \-H, \-\-header <key:value>
|
|
9371
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9372
|
+
.TP
|
|
9373
|
+
.B \-\-transport <transport>
|
|
9374
|
+
Check the transport the target uses
|
|
9375
|
+
.TP
|
|
9376
|
+
.B \-\-command <command>
|
|
9377
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9378
|
+
.TP
|
|
9379
|
+
.B \-\-command\-env <key=value>
|
|
9380
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9381
|
+
.TP
|
|
9382
|
+
.B \-\-allow\-stdio
|
|
9383
|
+
Allow starting a local process for a stdio server
|
|
9384
|
+
.TP
|
|
9385
|
+
.B \-k, \-\-insecure
|
|
9386
|
+
Disable TLS certificate verification for HTTP servers
|
|
9387
|
+
.TP
|
|
9388
|
+
.B \-\-timeout\-request <ms>
|
|
9389
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9390
|
+
.TP
|
|
9391
|
+
.B \-\-protocol\-version <version>
|
|
9392
|
+
Protocol version negotiation (default: auto)
|
|
9393
|
+
.TP
|
|
9394
|
+
.B \-e, \-\-environment <path>
|
|
9395
|
+
Resolve {{variables}} from a local environment file
|
|
9396
|
+
.TP
|
|
9397
|
+
.B \-\-env\-var <key=value>
|
|
9398
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9399
|
+
.TP
|
|
9400
|
+
.B \-\-login
|
|
9401
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9402
|
+
.TP
|
|
9403
|
+
.B \-\-no\-login
|
|
9404
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9405
|
+
|
|
9406
|
+
.TP Examples:
|
|
9407
|
+
|
|
9408
|
+
The Auth line (`auth` in \-\-json) names the credentials the session sent and where they came from:
|
|
9409
|
+
the Authorization header (\-H), saved auth on the request, a folder or the collection, your
|
|
9410
|
+
postman mcp login sign\-in, or none. It never shows their value.
|
|
9411
|
+
|
|
9412
|
+
Examples:
|
|
9413
|
+
$ postman mcp inspect \-\-url https://example.com/mcp \-H "Authorization: Bearer $TOKEN"
|
|
9414
|
+
$ postman mcp inspect \-\-command "npx \-y @modelcontextprotocol/server\-everything" \-\-allow\-stdio \-\-json
|
|
9415
|
+
$ postman mcp inspect \-\-request "postman/collections/My Server/whoami.request.yaml"
|
|
9416
|
+
|
|
9417
|
+
|
|
9418
|
+
.SS "mcp tools"
|
|
9419
|
+
List and call the tools an MCP server offers
|
|
9420
|
+
|
|
9421
|
+
.B Usage:
|
|
9422
|
+
[options] [command]
|
|
9423
|
+
|
|
9424
|
+
.B Subcommands:
|
|
9425
|
+
.TP
|
|
9426
|
+
.B mcp tools list
|
|
9427
|
+
List the tools an MCP server offers (tools/list)
|
|
9428
|
+
.TP
|
|
9429
|
+
.B mcp tools call
|
|
9430
|
+
Call one tool and print its result (tools/call)
|
|
9431
|
+
|
|
9432
|
+
.SS "mcp tools list"
|
|
9433
|
+
List the tools an MCP server offers (tools/list)
|
|
9434
|
+
|
|
9435
|
+
.B Usage:
|
|
9436
|
+
[options]
|
|
9437
|
+
|
|
9438
|
+
.B Options:
|
|
9439
|
+
.TP
|
|
9440
|
+
.B \-\-json
|
|
9441
|
+
Print { tools } as JSON
|
|
9442
|
+
.TP
|
|
9443
|
+
.B \-\-debug
|
|
9444
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9445
|
+
.TP
|
|
9446
|
+
.B \-\-request <path|id>
|
|
9447
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9448
|
+
.TP
|
|
9449
|
+
.B \-\-url <url>
|
|
9450
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9451
|
+
.TP
|
|
9452
|
+
.B \-H, \-\-header <key:value>
|
|
9453
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9454
|
+
.TP
|
|
9455
|
+
.B \-\-transport <transport>
|
|
9456
|
+
Check the transport the target uses
|
|
9457
|
+
.TP
|
|
9458
|
+
.B \-\-command <command>
|
|
9459
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9460
|
+
.TP
|
|
9461
|
+
.B \-\-command\-env <key=value>
|
|
9462
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9463
|
+
.TP
|
|
9464
|
+
.B \-\-allow\-stdio
|
|
9465
|
+
Allow starting a local process for a stdio server
|
|
9466
|
+
.TP
|
|
9467
|
+
.B \-k, \-\-insecure
|
|
9468
|
+
Disable TLS certificate verification for HTTP servers
|
|
9469
|
+
.TP
|
|
9470
|
+
.B \-\-timeout\-request <ms>
|
|
9471
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9472
|
+
.TP
|
|
9473
|
+
.B \-\-protocol\-version <version>
|
|
9474
|
+
Protocol version negotiation (default: auto)
|
|
9475
|
+
.TP
|
|
9476
|
+
.B \-e, \-\-environment <path>
|
|
9477
|
+
Resolve {{variables}} from a local environment file
|
|
9478
|
+
.TP
|
|
9479
|
+
.B \-\-env\-var <key=value>
|
|
9480
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9481
|
+
.TP
|
|
9482
|
+
.B \-\-login
|
|
9483
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9484
|
+
.TP
|
|
9485
|
+
.B \-\-no\-login
|
|
9486
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9487
|
+
|
|
9488
|
+
.SS "mcp tools call"
|
|
9489
|
+
Call one tool and print its result (tools/call)
|
|
9490
|
+
|
|
9491
|
+
.B Usage:
|
|
9492
|
+
[options] <tool>
|
|
9493
|
+
|
|
9494
|
+
.B Options:
|
|
9495
|
+
.TP
|
|
9496
|
+
.B \-\-args <json|@file|\->
|
|
9497
|
+
Tool arguments as a JSON object, @path to a JSON file, or \- for stdin. Defaults to the \-\-request message's saved arguments for the same tool
|
|
9498
|
+
.TP
|
|
9499
|
+
.B \-\-arg <key=value>
|
|
9500
|
+
One tool argument, typed by the tool's inputSchema (a number, boolean, JSON object or array, or a string). Repeatable; a repeated key keeps the last value. Not with \-\-args (default: )
|
|
9501
|
+
.TP
|
|
9502
|
+
.B \-\-json
|
|
9503
|
+
Print the CallToolResult as JSON
|
|
9504
|
+
.TP
|
|
9505
|
+
.B \-\-debug
|
|
9506
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9507
|
+
.TP
|
|
9508
|
+
.B \-\-request <path|id>
|
|
9509
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9510
|
+
.TP
|
|
9511
|
+
.B \-\-url <url>
|
|
9512
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9513
|
+
.TP
|
|
9514
|
+
.B \-H, \-\-header <key:value>
|
|
9515
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9516
|
+
.TP
|
|
9517
|
+
.B \-\-transport <transport>
|
|
9518
|
+
Check the transport the target uses
|
|
9519
|
+
.TP
|
|
9520
|
+
.B \-\-command <command>
|
|
9521
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9522
|
+
.TP
|
|
9523
|
+
.B \-\-command\-env <key=value>
|
|
9524
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9525
|
+
.TP
|
|
9526
|
+
.B \-\-allow\-stdio
|
|
9527
|
+
Allow starting a local process for a stdio server
|
|
9528
|
+
.TP
|
|
9529
|
+
.B \-k, \-\-insecure
|
|
9530
|
+
Disable TLS certificate verification for HTTP servers
|
|
9531
|
+
.TP
|
|
9532
|
+
.B \-\-timeout\-request <ms>
|
|
9533
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9534
|
+
.TP
|
|
9535
|
+
.B \-\-protocol\-version <version>
|
|
9536
|
+
Protocol version negotiation (default: auto)
|
|
9537
|
+
.TP
|
|
9538
|
+
.B \-e, \-\-environment <path>
|
|
9539
|
+
Resolve {{variables}} from a local environment file
|
|
9540
|
+
.TP
|
|
9541
|
+
.B \-\-env\-var <key=value>
|
|
9542
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9543
|
+
.TP
|
|
9544
|
+
.B \-\-login
|
|
9545
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9546
|
+
.TP
|
|
9547
|
+
.B \-\-no\-login
|
|
9548
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9549
|
+
|
|
9550
|
+
.TP Examples:
|
|
9551
|
+
|
|
9552
|
+
Before calling, the arguments are checked against the tool's inputSchema: required properties, enum
|
|
9553
|
+
and const values, and null. A failed check exits 2 and sends nothing. A \-\-request's saved message is
|
|
9554
|
+
sent as written.
|
|
9555
|
+
|
|
9556
|
+
Examples:
|
|
9557
|
+
$ postman mcp tools call add \-\-arg a=2 \-\-arg b=3 \-\-url http://localhost:3000/mcp
|
|
9558
|
+
$ postman mcp tools call echo \-\-args '{"text":"hi"}' \-\-allow\-stdio \-\- node server.js \-\-stdio
|
|
9559
|
+
$ postman mcp tools call search \-\-args @args.json \-\-request search.request.yaml \-\-json | jq .structuredContent
|
|
9560
|
+
|
|
9561
|
+
|
|
9562
|
+
.SS "mcp resources"
|
|
9563
|
+
List and read the resources an MCP server offers
|
|
9564
|
+
|
|
9565
|
+
.B Usage:
|
|
9566
|
+
[options] [command]
|
|
9567
|
+
|
|
9568
|
+
.B Subcommands:
|
|
9569
|
+
.TP
|
|
9570
|
+
.B mcp resources list
|
|
9571
|
+
List the resources an MCP server offers (resources/list)
|
|
9572
|
+
.TP
|
|
9573
|
+
.B mcp resources templates
|
|
9574
|
+
List the resource templates an MCP server offers
|
|
9575
|
+
.TP
|
|
9576
|
+
.B mcp resources read
|
|
9577
|
+
Read one resource and print its contents (resources/read)
|
|
9578
|
+
|
|
9579
|
+
.SS "mcp resources list"
|
|
9580
|
+
List the resources an MCP server offers (resources/list)
|
|
9581
|
+
|
|
9582
|
+
.B Usage:
|
|
9583
|
+
[options]
|
|
9584
|
+
|
|
9585
|
+
.B Options:
|
|
9586
|
+
.TP
|
|
9587
|
+
.B \-\-json
|
|
9588
|
+
Print { resources } as JSON
|
|
9589
|
+
.TP
|
|
9590
|
+
.B \-\-debug
|
|
9591
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9592
|
+
.TP
|
|
9593
|
+
.B \-\-request <path|id>
|
|
9594
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9595
|
+
.TP
|
|
9596
|
+
.B \-\-url <url>
|
|
9597
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9598
|
+
.TP
|
|
9599
|
+
.B \-H, \-\-header <key:value>
|
|
9600
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9601
|
+
.TP
|
|
9602
|
+
.B \-\-transport <transport>
|
|
9603
|
+
Check the transport the target uses
|
|
9604
|
+
.TP
|
|
9605
|
+
.B \-\-command <command>
|
|
9606
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9607
|
+
.TP
|
|
9608
|
+
.B \-\-command\-env <key=value>
|
|
9609
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9610
|
+
.TP
|
|
9611
|
+
.B \-\-allow\-stdio
|
|
9612
|
+
Allow starting a local process for a stdio server
|
|
9613
|
+
.TP
|
|
9614
|
+
.B \-k, \-\-insecure
|
|
9615
|
+
Disable TLS certificate verification for HTTP servers
|
|
9616
|
+
.TP
|
|
9617
|
+
.B \-\-timeout\-request <ms>
|
|
9618
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9619
|
+
.TP
|
|
9620
|
+
.B \-\-protocol\-version <version>
|
|
9621
|
+
Protocol version negotiation (default: auto)
|
|
9622
|
+
.TP
|
|
9623
|
+
.B \-e, \-\-environment <path>
|
|
9624
|
+
Resolve {{variables}} from a local environment file
|
|
9625
|
+
.TP
|
|
9626
|
+
.B \-\-env\-var <key=value>
|
|
9627
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9628
|
+
.TP
|
|
9629
|
+
.B \-\-login
|
|
9630
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9631
|
+
.TP
|
|
9632
|
+
.B \-\-no\-login
|
|
9633
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9634
|
+
|
|
9635
|
+
.SS "mcp resources templates"
|
|
9636
|
+
List the resource templates an MCP server offers
|
|
9637
|
+
|
|
9638
|
+
.B Usage:
|
|
9639
|
+
[options] [command]
|
|
9640
|
+
|
|
9641
|
+
.B Subcommands:
|
|
9642
|
+
.TP
|
|
9643
|
+
.B mcp resources templates list
|
|
9644
|
+
List the resource templates an MCP server offers (resources/templates/list)
|
|
9645
|
+
|
|
9646
|
+
.SS "mcp resources templates list"
|
|
9647
|
+
List the resource templates an MCP server offers (resources/templates/list)
|
|
9648
|
+
|
|
9649
|
+
.B Usage:
|
|
9650
|
+
[options]
|
|
9651
|
+
|
|
9652
|
+
.B Options:
|
|
9653
|
+
.TP
|
|
9654
|
+
.B \-\-json
|
|
9655
|
+
Print { resourceTemplates } as JSON
|
|
9656
|
+
.TP
|
|
9657
|
+
.B \-\-debug
|
|
9658
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9659
|
+
.TP
|
|
9660
|
+
.B \-\-request <path|id>
|
|
9661
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9662
|
+
.TP
|
|
9663
|
+
.B \-\-url <url>
|
|
9664
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9665
|
+
.TP
|
|
9666
|
+
.B \-H, \-\-header <key:value>
|
|
9667
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9668
|
+
.TP
|
|
9669
|
+
.B \-\-transport <transport>
|
|
9670
|
+
Check the transport the target uses
|
|
9671
|
+
.TP
|
|
9672
|
+
.B \-\-command <command>
|
|
9673
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9674
|
+
.TP
|
|
9675
|
+
.B \-\-command\-env <key=value>
|
|
9676
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9677
|
+
.TP
|
|
9678
|
+
.B \-\-allow\-stdio
|
|
9679
|
+
Allow starting a local process for a stdio server
|
|
9680
|
+
.TP
|
|
9681
|
+
.B \-k, \-\-insecure
|
|
9682
|
+
Disable TLS certificate verification for HTTP servers
|
|
9683
|
+
.TP
|
|
9684
|
+
.B \-\-timeout\-request <ms>
|
|
9685
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9686
|
+
.TP
|
|
9687
|
+
.B \-\-protocol\-version <version>
|
|
9688
|
+
Protocol version negotiation (default: auto)
|
|
9689
|
+
.TP
|
|
9690
|
+
.B \-e, \-\-environment <path>
|
|
9691
|
+
Resolve {{variables}} from a local environment file
|
|
9692
|
+
.TP
|
|
9693
|
+
.B \-\-env\-var <key=value>
|
|
9694
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9695
|
+
.TP
|
|
9696
|
+
.B \-\-login
|
|
9697
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9698
|
+
.TP
|
|
9699
|
+
.B \-\-no\-login
|
|
9700
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9701
|
+
|
|
9702
|
+
.SS "mcp resources read"
|
|
9703
|
+
Read one resource and print its contents (resources/read)
|
|
9704
|
+
|
|
9705
|
+
.B Usage:
|
|
9706
|
+
[options] <uri>
|
|
9707
|
+
|
|
9708
|
+
.B Options:
|
|
9709
|
+
.TP
|
|
9710
|
+
.B \-\-json
|
|
9711
|
+
Print the ReadResourceResult as JSON (blob contents stay base64)
|
|
9712
|
+
.TP
|
|
9713
|
+
.B \-\-debug
|
|
9714
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9715
|
+
.TP
|
|
9716
|
+
.B \-\-request <path|id>
|
|
9717
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9718
|
+
.TP
|
|
9719
|
+
.B \-\-url <url>
|
|
9720
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9721
|
+
.TP
|
|
9722
|
+
.B \-H, \-\-header <key:value>
|
|
9723
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9724
|
+
.TP
|
|
9725
|
+
.B \-\-transport <transport>
|
|
9726
|
+
Check the transport the target uses
|
|
9727
|
+
.TP
|
|
9728
|
+
.B \-\-command <command>
|
|
9729
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9730
|
+
.TP
|
|
9731
|
+
.B \-\-command\-env <key=value>
|
|
9732
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9733
|
+
.TP
|
|
9734
|
+
.B \-\-allow\-stdio
|
|
9735
|
+
Allow starting a local process for a stdio server
|
|
9736
|
+
.TP
|
|
9737
|
+
.B \-k, \-\-insecure
|
|
9738
|
+
Disable TLS certificate verification for HTTP servers
|
|
9739
|
+
.TP
|
|
9740
|
+
.B \-\-timeout\-request <ms>
|
|
9741
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9742
|
+
.TP
|
|
9743
|
+
.B \-\-protocol\-version <version>
|
|
9744
|
+
Protocol version negotiation (default: auto)
|
|
9745
|
+
.TP
|
|
9746
|
+
.B \-e, \-\-environment <path>
|
|
9747
|
+
Resolve {{variables}} from a local environment file
|
|
9748
|
+
.TP
|
|
9749
|
+
.B \-\-env\-var <key=value>
|
|
9750
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9751
|
+
.TP
|
|
9752
|
+
.B \-\-login
|
|
9753
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9754
|
+
.TP
|
|
9755
|
+
.B \-\-no\-login
|
|
9756
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9757
|
+
|
|
9758
|
+
.SS "mcp prompts"
|
|
9759
|
+
List and get the prompts an MCP server offers
|
|
9760
|
+
|
|
9761
|
+
.B Usage:
|
|
9762
|
+
[options] [command]
|
|
9763
|
+
|
|
9764
|
+
.B Subcommands:
|
|
9765
|
+
.TP
|
|
9766
|
+
.B mcp prompts list
|
|
9767
|
+
List the prompts an MCP server offers (prompts/list)
|
|
9768
|
+
.TP
|
|
9769
|
+
.B mcp prompts get
|
|
9770
|
+
Get one prompt with its arguments filled in (prompts/get)
|
|
9771
|
+
|
|
9772
|
+
.SS "mcp prompts list"
|
|
9773
|
+
List the prompts an MCP server offers (prompts/list)
|
|
9774
|
+
|
|
9775
|
+
.B Usage:
|
|
9776
|
+
[options]
|
|
9777
|
+
|
|
9778
|
+
.B Options:
|
|
9779
|
+
.TP
|
|
9780
|
+
.B \-\-json
|
|
9781
|
+
Print { prompts } as JSON
|
|
9782
|
+
.TP
|
|
9783
|
+
.B \-\-debug
|
|
9784
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9785
|
+
.TP
|
|
9786
|
+
.B \-\-request <path|id>
|
|
9787
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9788
|
+
.TP
|
|
9789
|
+
.B \-\-url <url>
|
|
9790
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9791
|
+
.TP
|
|
9792
|
+
.B \-H, \-\-header <key:value>
|
|
9793
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9794
|
+
.TP
|
|
9795
|
+
.B \-\-transport <transport>
|
|
9796
|
+
Check the transport the target uses
|
|
9797
|
+
.TP
|
|
9798
|
+
.B \-\-command <command>
|
|
9799
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9800
|
+
.TP
|
|
9801
|
+
.B \-\-command\-env <key=value>
|
|
9802
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9803
|
+
.TP
|
|
9804
|
+
.B \-\-allow\-stdio
|
|
9805
|
+
Allow starting a local process for a stdio server
|
|
9806
|
+
.TP
|
|
9807
|
+
.B \-k, \-\-insecure
|
|
9808
|
+
Disable TLS certificate verification for HTTP servers
|
|
9809
|
+
.TP
|
|
9810
|
+
.B \-\-timeout\-request <ms>
|
|
9811
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9812
|
+
.TP
|
|
9813
|
+
.B \-\-protocol\-version <version>
|
|
9814
|
+
Protocol version negotiation (default: auto)
|
|
9815
|
+
.TP
|
|
9816
|
+
.B \-e, \-\-environment <path>
|
|
9817
|
+
Resolve {{variables}} from a local environment file
|
|
9818
|
+
.TP
|
|
9819
|
+
.B \-\-env\-var <key=value>
|
|
9820
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9821
|
+
.TP
|
|
9822
|
+
.B \-\-login
|
|
9823
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9824
|
+
.TP
|
|
9825
|
+
.B \-\-no\-login
|
|
9826
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9827
|
+
|
|
9828
|
+
.SS "mcp prompts get"
|
|
9829
|
+
Get one prompt with its arguments filled in (prompts/get)
|
|
9830
|
+
|
|
9831
|
+
.B Usage:
|
|
9832
|
+
[options] <name>
|
|
9833
|
+
|
|
9834
|
+
.B Options:
|
|
9835
|
+
.TP
|
|
9836
|
+
.B \-\-args <json|@file|\->
|
|
9837
|
+
Prompt arguments as a JSON object of strings, @path, or \- for stdin
|
|
9838
|
+
.TP
|
|
9839
|
+
.B \-\-arg <key=value>
|
|
9840
|
+
One prompt argument, always sent as a string. Repeatable; a repeated key keeps the last value. Not with \-\-args (default: )
|
|
9841
|
+
.TP
|
|
9842
|
+
.B \-\-json
|
|
9843
|
+
Print the GetPromptResult as JSON
|
|
9844
|
+
.TP
|
|
9845
|
+
.B \-\-debug
|
|
9846
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9847
|
+
.TP
|
|
9848
|
+
.B \-\-request <path|id>
|
|
9849
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9850
|
+
.TP
|
|
9851
|
+
.B \-\-url <url>
|
|
9852
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9853
|
+
.TP
|
|
9854
|
+
.B \-H, \-\-header <key:value>
|
|
9855
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9856
|
+
.TP
|
|
9857
|
+
.B \-\-transport <transport>
|
|
9858
|
+
Check the transport the target uses
|
|
9859
|
+
.TP
|
|
9860
|
+
.B \-\-command <command>
|
|
9861
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9862
|
+
.TP
|
|
9863
|
+
.B \-\-command\-env <key=value>
|
|
9864
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9865
|
+
.TP
|
|
9866
|
+
.B \-\-allow\-stdio
|
|
9867
|
+
Allow starting a local process for a stdio server
|
|
9868
|
+
.TP
|
|
9869
|
+
.B \-k, \-\-insecure
|
|
9870
|
+
Disable TLS certificate verification for HTTP servers
|
|
9871
|
+
.TP
|
|
9872
|
+
.B \-\-timeout\-request <ms>
|
|
9873
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9874
|
+
.TP
|
|
9875
|
+
.B \-\-protocol\-version <version>
|
|
9876
|
+
Protocol version negotiation (default: auto)
|
|
9877
|
+
.TP
|
|
9878
|
+
.B \-e, \-\-environment <path>
|
|
9879
|
+
Resolve {{variables}} from a local environment file
|
|
9880
|
+
.TP
|
|
9881
|
+
.B \-\-env\-var <key=value>
|
|
9882
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9883
|
+
.TP
|
|
9884
|
+
.B \-\-login
|
|
9885
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9886
|
+
.TP
|
|
9887
|
+
.B \-\-no\-login
|
|
9888
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9889
|
+
|
|
9890
|
+
.SS "mcp login"
|
|
9891
|
+
Sign in to an MCP server that uses OAuth, in a browser, and store the token every postman mcp command then sends to it
|
|
9892
|
+
|
|
9893
|
+
.B Usage:
|
|
9894
|
+
[options]
|
|
9895
|
+
|
|
9896
|
+
.B Options:
|
|
9897
|
+
.TP
|
|
9898
|
+
.B \-\-scope <scopes>
|
|
9899
|
+
Space\-separated scopes to request (default: what the server asks for)
|
|
9900
|
+
.TP
|
|
9901
|
+
.B \-\-client\-id <id>
|
|
9902
|
+
Use a client registered with the authorization server, instead of registering one dynamically
|
|
9903
|
+
.TP
|
|
9904
|
+
.B \-\-client\-secret <secret>
|
|
9905
|
+
The \-\-client\-id client's secret, if it has one
|
|
9906
|
+
.TP
|
|
9907
|
+
.B \-\-callback\-port <port>
|
|
9908
|
+
Receive the sign\-in on this port of 127.0.0.1, to match a registered redirect URI http://127.0.0.1:<port>/callback
|
|
9909
|
+
.TP
|
|
9910
|
+
.B \-\-no\-browser
|
|
9911
|
+
Print the sign\-in link to stderr instead of opening a browser. In a terminal, also accepts the URL the browser was redirected to, pasted, for a browser on another machine
|
|
9912
|
+
.TP
|
|
9913
|
+
.B \-H, \-\-header <key:value>
|
|
9914
|
+
Add an HTTP header to the sign\-in's first request to the server, in key:value format. Repeatable. (default: )
|
|
9915
|
+
.TP
|
|
9916
|
+
.B \-k, \-\-insecure
|
|
9917
|
+
Disable TLS certificate verification
|
|
9918
|
+
.TP
|
|
9919
|
+
.B \-\-timeout\-request <ms>
|
|
9920
|
+
Time limit for each request in ms (default: 60000, 0 for none)
|
|
9921
|
+
.TP
|
|
9922
|
+
.B \-\-debug
|
|
9923
|
+
Print each OAuth request's method, URL without its query, and status to stderr
|
|
9924
|
+
.TP
|
|
9925
|
+
.B \-\-request <path|id>
|
|
9926
|
+
A saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9927
|
+
.TP
|
|
9928
|
+
.B \-\-url <url>
|
|
9929
|
+
The MCP server URL
|
|
9930
|
+
.TP
|
|
9931
|
+
.B \-e, \-\-environment <path>
|
|
9932
|
+
Resolve {{variables}} from a local environment file
|
|
9933
|
+
.TP
|
|
9934
|
+
.B \-\-env\-var <key=value>
|
|
9935
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9936
|
+
.TP
|
|
9937
|
+
.B \-\-json
|
|
9938
|
+
Print the result as JSON
|
|
9939
|
+
|
|
9940
|
+
.TP Examples:
|
|
9941
|
+
|
|
9942
|
+
Stores the tokens in the Postman home directory (~/.postman/mcp\-credentials.json), readable only by
|
|
9943
|
+
you. Signing in again replaces what was stored for the server. List what is stored with
|
|
9944
|
+
`postman mcp credentials`. With POSTMAN_MCP_CREDENTIALS_STORE=none nothing is stored: the sign\-in
|
|
9945
|
+
only checks that you can sign in, and its token is lost when the command ends.
|
|
9946
|
+
|
|
9947
|
+
Which credentials a command sends, first match wins:
|
|
9948
|
+
1. \-H "Authorization: ..."
|
|
9949
|
+
2. the saved request's own auth (\-\-request)
|
|
9950
|
+
3. auth the request inherits from its folder, then its collection
|
|
9951
|
+
4. the sign\-in this command stored
|
|
9952
|
+
5. none
|
|
9953
|
+
Levels 1\-3 are sent as given, never refreshed, and never lead to a sign\-in. A stored sign\-in is
|
|
9954
|
+
refreshed when it expires.
|
|
9955
|
+
|
|
9956
|
+
With \-\-no\-browser in a terminal, sign in on any machine, then paste the URL the browser ended on
|
|
9957
|
+
(http://127.0.0.1:<port>/callback?...). The pasted URL is not shown.
|
|
9958
|
+
|
|
9959
|
+
Examples:
|
|
9960
|
+
$ postman mcp login \-\-url https://example.com/mcp
|
|
9961
|
+
$ postman mcp login \-\-url https://example.com/mcp \-\-no\-browser
|
|
9962
|
+
$ postman mcp login \-\-request "postman/collections/My Server/whoami.request.yaml" \-\-scope "read write"
|
|
9963
|
+
$ postman mcp login \-\-url https://example.com/mcp \-\-client\-id my\-client \-\-callback\-port 8765
|
|
9964
|
+
|
|
9965
|
+
|
|
9966
|
+
.SS "mcp logout"
|
|
9967
|
+
Remove the credentials postman mcp login stored for an MCP server, and revoke them at its authorization server
|
|
9968
|
+
|
|
9969
|
+
.B Usage:
|
|
9970
|
+
[options]
|
|
9971
|
+
|
|
9972
|
+
.B Options:
|
|
9973
|
+
.TP
|
|
9974
|
+
.B \-\-all
|
|
9975
|
+
Remove every stored sign\-in
|
|
9976
|
+
.TP
|
|
9977
|
+
.B \-y, \-\-yes
|
|
9978
|
+
With \-\-all, skip the confirmation; required when there is no terminal
|
|
9979
|
+
.TP
|
|
9980
|
+
.B \-\-no\-revoke
|
|
9981
|
+
Only remove the credentials from this machine; do not revoke them
|
|
9982
|
+
.TP
|
|
9983
|
+
.B \-k, \-\-insecure
|
|
9984
|
+
Disable TLS certificate verification for the revocation
|
|
9985
|
+
.TP
|
|
9986
|
+
.B \-\-timeout\-request <ms>
|
|
9987
|
+
Time limit for each revocation request in ms (default: 60000, 0 for none)
|
|
9988
|
+
.TP
|
|
9989
|
+
.B \-\-debug
|
|
9990
|
+
Print each revocation request's method, URL without its query, and status to stderr
|
|
9991
|
+
.TP
|
|
9992
|
+
.B \-\-request <path|id>
|
|
9993
|
+
A saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9994
|
+
.TP
|
|
9995
|
+
.B \-\-url <url>
|
|
9996
|
+
The MCP server URL
|
|
9997
|
+
.TP
|
|
9998
|
+
.B \-e, \-\-environment <path>
|
|
9999
|
+
Resolve {{variables}} from a local environment file
|
|
10000
|
+
.TP
|
|
10001
|
+
.B \-\-env\-var <key=value>
|
|
10002
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
10003
|
+
.TP
|
|
10004
|
+
.B \-\-json
|
|
10005
|
+
Print the result as JSON
|
|
10006
|
+
|
|
10007
|
+
.TP Examples:
|
|
10008
|
+
|
|
10009
|
+
Removes the credentials from this machine first, then revokes the refresh and access tokens at the
|
|
10010
|
+
authorization server (RFC 7009), best effort: a failed revocation is a warning on stderr and does
|
|
10011
|
+
not change the exit code. \-\-no\-revoke skips it. \-\-all asks first in a terminal; without one it
|
|
10012
|
+
needs \-\-yes, and exits 8 otherwise.
|
|
10013
|
+
|
|
10014
|
+
Works on the credentials file with POSTMAN_MCP_CREDENTIALS_STORE=none too, so it can remove and revoke
|
|
10015
|
+
a sign\-in stored before; it never adds to the file.
|
|
10016
|
+
|
|
10017
|
+
Examples:
|
|
10018
|
+
$ postman mcp logout \-\-url https://example.com/mcp
|
|
10019
|
+
$ postman mcp logout \-\-request "postman/collections/My Server/whoami.request.yaml" \-\-json
|
|
10020
|
+
$ postman mcp logout \-\-all \-\-yes \-\-json
|
|
10021
|
+
|
|
10022
|
+
|
|
10023
|
+
.SS "mcp credentials"
|
|
10024
|
+
List the sign\-ins postman mcp login stored: server, issuer, client, scopes, expiry and whether they refresh. Never shows a token or secret
|
|
10025
|
+
|
|
10026
|
+
.B Usage:
|
|
10027
|
+
[options]
|
|
10028
|
+
|
|
10029
|
+
.B Options:
|
|
10030
|
+
.TP
|
|
10031
|
+
.B \-\-json
|
|
10032
|
+
Print the sign\-ins as JSON
|
|
10033
|
+
|
|
10034
|
+
.TP Examples:
|
|
10035
|
+
|
|
10036
|
+
Reads ~/.postman/mcp\-credentials.json only; nothing is sent. Remove a sign\-in with
|
|
10037
|
+
`postman mcp logout \-\-url <url>`, or all of them with `postman mcp logout \-\-all`.
|
|
10038
|
+
With POSTMAN_MCP_CREDENTIALS_STORE=none, the file is not read and the list says storage is off.
|
|
10039
|
+
|
|
10040
|
+
Examples:
|
|
10041
|
+
$ postman mcp credentials
|
|
10042
|
+
$ postman mcp credentials \-\-json
|
|
10043
|
+
|
|
10044
|
+
|
|
9117
10045
|
.SH SEE ALSO
|
|
9118
10046
|
Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
|
|
9119
10047
|
.SH AUTHOR
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.89.0",
|
|
4
4
|
"description": "Official Postman CLI - Command-line companion for API development, testing, and automation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postman",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"scripts/"
|
|
58
58
|
],
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@postman/pm-bin-macos-arm64": "1.
|
|
61
|
-
"@postman/pm-bin-macos-x64": "1.
|
|
62
|
-
"@postman/pm-bin-linux-x64": "1.
|
|
63
|
-
"@postman/pm-bin-linux-arm64": "1.
|
|
64
|
-
"@postman/pm-bin-windows-x64": "1.
|
|
60
|
+
"@postman/pm-bin-macos-arm64": "1.89.0",
|
|
61
|
+
"@postman/pm-bin-macos-x64": "1.89.0",
|
|
62
|
+
"@postman/pm-bin-linux-x64": "1.89.0",
|
|
63
|
+
"@postman/pm-bin-linux-arm64": "1.89.0",
|
|
64
|
+
"@postman/pm-bin-windows-x64": "1.89.0"
|
|
65
65
|
}
|
|
66
66
|
}
|