postman-cli-completion 1.86.0 → 1.88.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/completions/bash/postman.bash +372 -28
- package/completions/fish/postman.fish +223 -15
- package/completions/zsh/_postman +423 -17
- package/package.json +1 -1
package/completions/zsh/_postman
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#compdef postman
|
|
2
2
|
compdef _postman postman
|
|
3
|
-
# Zsh completion for Postman CLI (postman v1.
|
|
3
|
+
# Zsh completion for Postman CLI (postman v1.88.0)
|
|
4
4
|
# Auto-generated by scripts/generate.mjs — DO NOT EDIT
|
|
5
5
|
# Source: spec/commands.json
|
|
6
6
|
# https://github.com/yokawasa/postman-cli-completion
|
|
@@ -25,6 +25,7 @@ _postman() {
|
|
|
25
25
|
dataset) _postman_dataset ;;
|
|
26
26
|
environment) _postman_environment ;;
|
|
27
27
|
flows|fl) _postman_flows ;;
|
|
28
|
+
fn) _postman_fn ;;
|
|
28
29
|
globals) _postman_globals ;;
|
|
29
30
|
mock) _postman_mock ;;
|
|
30
31
|
monitor) _postman_monitor ;;
|
|
@@ -45,6 +46,7 @@ _postman() {
|
|
|
45
46
|
application|app) _postman_application ;;
|
|
46
47
|
dependency) _postman_dependency ;;
|
|
47
48
|
feedback) _postman_feedback ;;
|
|
49
|
+
mcp) _postman_mcp ;;
|
|
48
50
|
performance) _postman_performance ;;
|
|
49
51
|
secret) _postman_secret ;;
|
|
50
52
|
simulation) _postman_simulation ;;
|
|
@@ -66,10 +68,11 @@ _postman_commands() {
|
|
|
66
68
|
'environment:Work with local and cloud Postman environments'
|
|
67
69
|
'flows:Manage and interact with flows'
|
|
68
70
|
'fl:Alias for flows'
|
|
71
|
+
'fn:Build code-based workflows'
|
|
69
72
|
'globals:Work with local and cloud Postman globals'
|
|
70
73
|
'mock:Create, run, and manage Postman mocks'
|
|
71
74
|
'monitor:Run and manage Postman monitors'
|
|
72
|
-
'request:Send HTTP requests with full Postman capabilities'
|
|
75
|
+
'request:Send HTTP and gRPC requests with full Postman capabilities'
|
|
73
76
|
'runner:Start and inspect self-hosted runners, and list Postman-operated regions'
|
|
74
77
|
'sdk:Generate and manage your SDKs directly from the command line'
|
|
75
78
|
'spec:Lint and validate specifications from the command line'
|
|
@@ -88,6 +91,7 @@ _postman_commands() {
|
|
|
88
91
|
'app:Alias for application'
|
|
89
92
|
'dependency:Manage workspace dependencies reused from other workspaces'
|
|
90
93
|
'feedback:Submit feedback about CLI usability, gaps, and improvements'
|
|
94
|
+
'mcp:Explore MCP servers\: inspect them, list and call tools, read resources, and get prompts'
|
|
91
95
|
'performance:Manage performance tests on your collections'
|
|
92
96
|
'secret:Create and manage Postman secrets in a team'\''s shared vault'
|
|
93
97
|
'simulation:Create, run and manage simulations'
|
|
@@ -184,7 +188,7 @@ _postman_collection_commands() {
|
|
|
184
188
|
'migrate:Migrate a v2.1 collection to the v3 format'
|
|
185
189
|
'lint:Run linting on a local v3 collection at the given file or directory path.'
|
|
186
190
|
'ai-readiness:Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
187
|
-
'get:
|
|
191
|
+
'get:Read a local collection path or fetch a cloud collection by id, and print V3 JSON.'
|
|
188
192
|
'delete:Delete a cloud collection by id or a local collection directory by path. Prompts unless --yes is passed.'
|
|
189
193
|
'publish:Publish a cloud collection'\''s documentation (or request Community Manager approval).'
|
|
190
194
|
'generate:Generate artifacts from a collection.'
|
|
@@ -240,7 +244,7 @@ _postman_collection_get() {
|
|
|
240
244
|
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
241
245
|
'--json[Print the collection as machine-readable V3 JSON instead of a table]' \
|
|
242
246
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
243
|
-
'*:id:'
|
|
247
|
+
'*:id-or-path:_files -g "*.json"'
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
_postman_collection_delete() {
|
|
@@ -379,7 +383,7 @@ _postman_collection_request_add() {
|
|
|
379
383
|
_arguments \
|
|
380
384
|
'--collection[Target collection\: name, directory, id, cloud id, or path. Required.]:id|name' \
|
|
381
385
|
'--folder[Folder within the collection, e.g. "Users/Admin". Defaults to the root.]:id|name|path' \
|
|
382
|
-
'--type[Request type\: http, graphql, grpc, websocket, socketio. (default\: "http")]:type' \
|
|
386
|
+
'--type[Request type\: http, graphql, grpc, websocket, socketio, mcp. (default\: "http")]:type' \
|
|
383
387
|
'(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
|
|
384
388
|
'(-m --message)'{-m,--message}'[Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Cloud mode only.]:text' \
|
|
385
389
|
'--json[JSON output.]' \
|
|
@@ -402,7 +406,9 @@ _postman_collection_request_update() {
|
|
|
402
406
|
'--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
|
|
403
407
|
'--folder[Folder to scope the request selector, e.g. "Users/Admin" (local\: name/path; cloud\: id).]:id|name|path' \
|
|
404
408
|
'--rename[Rename the request (moves its file). Any request type.]:name' \
|
|
405
|
-
'--url[Request URL; its query string becomes the query parameters. Any request type.]:url' \
|
|
409
|
+
'--url[Request URL; its query string becomes the query parameters. Any request type; moves an mcp request to the HTTP transport.]:url' \
|
|
410
|
+
'--command[Command that starts a local MCP server; moves an mcp request to the stdio transport (mcp requests only, local mode).]:command' \
|
|
411
|
+
'--command-env[Replace the environment variables of a stdio mcp request'\''s server. Repeatable (local mode). (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
406
412
|
'--method[HTTP method (http requests only).]:method' \
|
|
407
413
|
'--param[Replace all query parameters and the url query string. Repeatable (http requests only). (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
408
414
|
'--clear-params[Remove all query parameters and the url query string (http requests only).]' \
|
|
@@ -411,9 +417,9 @@ _postman_collection_request_update() {
|
|
|
411
417
|
'--description[Request description.]:text' \
|
|
412
418
|
'--headers[Replace request headers. Repeatable; any request type with headers. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
413
419
|
'--auth[Request auth\: none, inherit, bearer\:TOKEN, basic\:USER\:PASS, apikey\:KEY\:VALUE\[\:header|query\], oauth2\:TOKEN. Any request type.]:spec' \
|
|
414
|
-
'--scripts[Replace scripts. event is prerequest or test; script is @file, - for stdin, or inline. Repeatable; any request type. (default\: \[\])]:event\:script' \
|
|
420
|
+
'--scripts[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\: \[\])]:event\:script' \
|
|
415
421
|
'(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
|
|
416
|
-
'--type[Request type for cloud mode\: http, graphql, grpc, websocket, socketio. (default\: "http")]:type' \
|
|
422
|
+
'--type[Request type for cloud mode\: http, graphql, grpc, websocket, socketio, mcp. (default\: "http")]:type' \
|
|
417
423
|
'(-m --message)'{-m,--message}'[Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Cloud mode only.]:text' \
|
|
418
424
|
'--json[JSON output.]' \
|
|
419
425
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -425,7 +431,7 @@ _postman_collection_request_rm() {
|
|
|
425
431
|
'--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
|
|
426
432
|
'--folder[Folder to scope the request selector, e.g. "Users/Admin" (local\: name/path; cloud\: id).]:id|name|path' \
|
|
427
433
|
'(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
|
|
428
|
-
'--type[Request type for cloud mode\: http, graphql, grpc, websocket, socketio. (default\: "http")]:type' \
|
|
434
|
+
'--type[Request type for cloud mode\: http, graphql, grpc, websocket, socketio, mcp. (default\: "http")]:type' \
|
|
429
435
|
'(-m --message)'{-m,--message}'[Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Cloud mode only.]:text' \
|
|
430
436
|
'--json[JSON output.]' \
|
|
431
437
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -739,7 +745,7 @@ _postman_dataset_list() {
|
|
|
739
745
|
_postman_dataset_get() {
|
|
740
746
|
_arguments \
|
|
741
747
|
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
742
|
-
'--no-populate[Skip
|
|
748
|
+
'--no-populate[Skip the table/column structure for a local dataset, or datasources/views for a cloud one]' \
|
|
743
749
|
'--json[Output the full dataset as JSON]' \
|
|
744
750
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
745
751
|
'*:datasetPathOrId:'
|
|
@@ -825,7 +831,7 @@ _postman_dataset_source_add() {
|
|
|
825
831
|
'--source-id[Override the generated source id (local dataset only)]:uuid' \
|
|
826
832
|
'--format[Use this format instead of extension/type inference; file contents are not sniffed. A spreadsheet (xlsx/xls/ods) is added as one source per worksheet, each named source_<worksheet>]:csv|json|xlsx|xls|ods|jdbc|mysql|postgres|sqlserver' \
|
|
827
833
|
'--type[Source kind; local is inferred from --file, jdbc from --driver-jar]:local|mysql|postgresql|sqlserver|jdbc' \
|
|
828
|
-
'--file[Path to a local CSV/JSON/spreadsheet file (absolute or cwd-relative)]:path:_files -g "*.json"' \
|
|
834
|
+
'--file[Path to a local CSV/JSON/NDJSON/spreadsheet file (absolute or cwd-relative); .ndjson and .jsonl are read as json]:path:_files -g "*.json"' \
|
|
829
835
|
'--ref-only[Reference the file in place; do NOT copy into data_dir (local dataset)]' \
|
|
830
836
|
'--force[When copying, overwrite an existing file at the destination (local dataset)]' \
|
|
831
837
|
'--upload[Cloud dataset only\: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem source read by the local engine. Either way a cloud dataset takes csv/json only — add a spreadsheet to a local .dataset.yaml, where each worksheet becomes its own source.]' \
|
|
@@ -978,7 +984,7 @@ _postman_dataset_view_run() {
|
|
|
978
984
|
'(-d --dataset)'{-d,--dataset}'[Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
|
|
979
985
|
'(-p --param)'{-p,--param}'[Bind values to $1, $2, ... in order; pass multiple values after -p or repeat -p]:value...' \
|
|
980
986
|
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
981
|
-
'--json[Output rows as JSON instead of a table]' \
|
|
987
|
+
'--json[Output rows as JSON instead of a table; a failure prints a JSON error on stdout]' \
|
|
982
988
|
'--debug[Include safe classified dataset diagnostics]' \
|
|
983
989
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
984
990
|
'*:viewNameOrId:'
|
|
@@ -991,6 +997,7 @@ _postman_dataset_view_create() {
|
|
|
991
997
|
'(-q --query)'{-q,--query}'[SQL query the view executes]:sql' \
|
|
992
998
|
'(-s --source)'{-s,--source}'[Bind the view to one datasource and run the query natively against it, instead of through the federated SQLite layer. Same reference `dataset query -s` takes]:nameOrIdOrSlug' \
|
|
993
999
|
'--view-id[Override the generated view id (local only; cloud assigns its own)]:uuid' \
|
|
1000
|
+
'--no-validate[Save the view without first checking that its query runs against the dataset]' \
|
|
994
1001
|
'--json[Emit the result as JSON instead of prose]' \
|
|
995
1002
|
'--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
996
1003
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
@@ -1357,6 +1364,76 @@ _postman_flows_get_run() {
|
|
|
1357
1364
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1358
1365
|
}
|
|
1359
1366
|
|
|
1367
|
+
_postman_fn() {
|
|
1368
|
+
local context state state_descr line
|
|
1369
|
+
typeset -A opt_args
|
|
1370
|
+
_arguments -C \
|
|
1371
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1372
|
+
'1: :_postman_fn_commands' \
|
|
1373
|
+
'*::arg:->args'
|
|
1374
|
+
case $state in
|
|
1375
|
+
args)
|
|
1376
|
+
case $words[1] in
|
|
1377
|
+
init) _postman_fn_init ;;
|
|
1378
|
+
describe) _postman_fn_describe ;;
|
|
1379
|
+
check) _postman_fn_check ;;
|
|
1380
|
+
run) _postman_fn_run ;;
|
|
1381
|
+
esac
|
|
1382
|
+
;;
|
|
1383
|
+
esac
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
_postman_fn_commands() {
|
|
1387
|
+
local -a sub
|
|
1388
|
+
sub=(
|
|
1389
|
+
'init:Create a starter workflow in the current or chosen directory (requires Postman login)'
|
|
1390
|
+
'describe:Describe workflow primitives and blocks (requires Postman login)'
|
|
1391
|
+
'check:Validate a workflow definition without running its steps (requires Postman login)'
|
|
1392
|
+
'run:Run a workflow using Postman login for AI and evals'
|
|
1393
|
+
)
|
|
1394
|
+
_describe -t commands 'fn command' sub
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
_postman_fn_init() {
|
|
1398
|
+
_arguments \
|
|
1399
|
+
'--json[Output JSON (default when stdout is piped)]' \
|
|
1400
|
+
'--api-key[Postman API key (otherwise use postman login or POSTMAN_API_KEY)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1401
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1402
|
+
'*:path:_files -g "*.json"'
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
_postman_fn_describe() {
|
|
1406
|
+
_arguments \
|
|
1407
|
+
'--json[Output JSON (default when stdout is piped)]' \
|
|
1408
|
+
'--api-key[Postman API key (otherwise use postman login or POSTMAN_API_KEY)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1409
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1410
|
+
'*:subject:'
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
_postman_fn_check() {
|
|
1414
|
+
_arguments \
|
|
1415
|
+
'--json[Output JSON (default when stdout is piped)]' \
|
|
1416
|
+
'--api-key[Postman API key (otherwise use postman login or POSTMAN_API_KEY)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1417
|
+
'--timeout[Maximum time to load and validate the workflow (default\: "30000")]:ms' \
|
|
1418
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1419
|
+
'*:workflow.ts:'
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
_postman_fn_run() {
|
|
1423
|
+
_arguments \
|
|
1424
|
+
'--input[JSON array of workflow inputs]:input.json' \
|
|
1425
|
+
'--config[Workflow configuration JSON file]:config.json' \
|
|
1426
|
+
'--json[Output JSON (default when stdout is piped)]' \
|
|
1427
|
+
'--api-key[Postman API key (otherwise use postman login or POSTMAN_API_KEY)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1428
|
+
'--timeout[Maximum time to load and run the workflow (default\: "300000")]:ms' \
|
|
1429
|
+
'--verbose[Show workflow logs and step details without changing the workflow log level]' \
|
|
1430
|
+
'--stream[Stream JSON events and workflow logs followed by a summary]' \
|
|
1431
|
+
'--visualize[Write an HTML visualization of the execution]' \
|
|
1432
|
+
'--out[New visualization file path (requires --visualize)]:output.html' \
|
|
1433
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1434
|
+
'*:workflow.ts:'
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1360
1437
|
_postman_globals() {
|
|
1361
1438
|
local context state state_descr line
|
|
1362
1439
|
typeset -A opt_args
|
|
@@ -1510,17 +1587,17 @@ _postman_mock_generate() {
|
|
|
1510
1587
|
'--mode[How the mock behaves\: static (replays examples, the default), stateful (keeps records\: create, read, list, update, delete), or ai (stateful, plus realistic data and business rules; generated by Postman, needs `postman login`).]:mode' \
|
|
1511
1588
|
'--stateful[Same as --mode stateful. Generated offline for a local file, by Postman with --workspace, --spec, --collection or --dataset (validated, with seed data). Endpoints that are not CRUD-shaped stay static.]' \
|
|
1512
1589
|
'--instructions[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.]:text' \
|
|
1513
|
-
'--strict[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.]' \
|
|
1590
|
+
'--strict[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).]' \
|
|
1514
1591
|
'--spec[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.]:specId' \
|
|
1515
1592
|
'--collection[Generate from a collection in Postman (by id) instead of a local file. With --workspace, the mock stays linked to it and is regenerated when it changes.]:collectionId:_files -g "*.json"' \
|
|
1516
1593
|
'--dataset[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.]:datasetIdOrPath' \
|
|
1517
|
-
'--force[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.]' \
|
|
1594
|
+
'--force[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.]' \
|
|
1518
1595
|
'(-u --update)'{-u,--update}'[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.]:mockPathOrId:_files -g "*.json"' \
|
|
1519
1596
|
'(-w --workspace)'{-w,--workspace}'[Save the mock to this Postman cloud workspace (by id) instead of your repository. Cannot be used with --output, --force, or --update <mockPath>; with --deploy it only picks the workspace, and with --update <cloudMockId> it names the workspace the mock is in.]:id' \
|
|
1520
1597
|
'--deploy[After generating, upload the mock to Postman cloud and deploy it to a live mock server (private by default). Uses --workspace, else the workspace linked to this project.]' \
|
|
1521
1598
|
'--public[With --deploy, let anyone with the link reach the server (default\: callers need an API key). Requires --deploy.]' \
|
|
1522
1599
|
'(-s --slug)'{-s,--slug}'[With --deploy, the short label used in the server'\''s web address. Requires --deploy.]:slug' \
|
|
1523
|
-
'--timeout[How long to wait for Postman to
|
|
1600
|
+
'--timeout[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.]:ms' \
|
|
1524
1601
|
'--api-key[Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1525
1602
|
'--json[Print the result as machine-readable data instead of a summary\: the generated mock, or with --deploy the live server details]' \
|
|
1526
1603
|
'(-x --suppress-exit-code)'{-x,--suppress-exit-code}'[Always exit with code 0, even on failure]' \
|
|
@@ -1887,7 +1964,9 @@ _postman_monitor_share() {
|
|
|
1887
1964
|
}
|
|
1888
1965
|
|
|
1889
1966
|
_postman_request() {
|
|
1890
|
-
|
|
1967
|
+
local context state state_descr line
|
|
1968
|
+
typeset -A opt_args
|
|
1969
|
+
_arguments -C \
|
|
1891
1970
|
'(-H --header)'{-H,--header}'[Add HTTP header in key\:value format. Can be used multiple times. Example\: -H "Content-Type\:application/json" -H "X-API-Key\:abc123" (default\: \[\])]:header' \
|
|
1892
1971
|
'(-d --body)'{-d,--body}'[Request body content. Supports\: inline string, @filepath for file content, or "-" for stdin. Example\: --body '\''{"name"\:"John"}'\'' or --body @data.json]:body' \
|
|
1893
1972
|
'(-f --form)'{-f,--form}'[Add multipart/form-data field in key=value format. Can be used multiple times. For file uploads use key=@filepath. Example\: -f "name=John" -f "avatar=@photo.jpg" (default\: \[\])]:field' \
|
|
@@ -1943,7 +2022,40 @@ _postman_request() {
|
|
|
1943
2022
|
'--auth-apikey-key[Supply authentication parameters dynamically.]:value' \
|
|
1944
2023
|
'--auth-apikey-value[Supply authentication parameters dynamically.]:value' \
|
|
1945
2024
|
'--auth-apikey-in[Supply authentication parameters dynamically.]:value' \
|
|
1946
|
-
'
|
|
2025
|
+
'1: :_postman_request_commands' \
|
|
2026
|
+
'*::arg:->args'
|
|
2027
|
+
case $state in
|
|
2028
|
+
args)
|
|
2029
|
+
case $words[1] in
|
|
2030
|
+
grpc) _postman_request_grpc ;;
|
|
2031
|
+
esac
|
|
2032
|
+
;;
|
|
2033
|
+
esac
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
_postman_request_commands() {
|
|
2037
|
+
local -a sub
|
|
2038
|
+
sub=(
|
|
2039
|
+
'grpc:Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless --proto or --protoset is given.'
|
|
2040
|
+
)
|
|
2041
|
+
_describe -t commands 'request command' sub
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
_postman_request_grpc() {
|
|
2045
|
+
_arguments \
|
|
2046
|
+
'--list-methods[List the services and methods instead of invoking one, with each method'\''s streaming kind and message types.]' \
|
|
2047
|
+
'--describe[Describe the method instead of invoking it\: its message types and a request message template to fill in.]' \
|
|
2048
|
+
'--proto[Read the service definition from a .proto file (or URL) instead of server reflection. Can be used multiple times. (default\: \[\])]:path:_files -g "*.json"' \
|
|
2049
|
+
'--import-path[Directory to resolve --proto imports from. Can be used multiple times. (default\: \[\])]:dir:_files -g "*.json"' \
|
|
2050
|
+
'--protoset[Read the service definition from a compiled FileDescriptorSet (protoc --descriptor_set_out, buf build -o). Can be used multiple times. (default\: \[\])]:path:_files -g "*.json"' \
|
|
2051
|
+
'--tls[Connect with TLS to an address without a scheme, the same as grpcs\://.]' \
|
|
2052
|
+
'--server-name[Name to verify the server'\''s TLS certificate against, when it differs from the address.]:name' \
|
|
2053
|
+
'--emit-defaults[Include fields that hold their default value in response messages.]' \
|
|
2054
|
+
'--script-before-invoke[Script run before the call is invoked. Inline JavaScript or @path. pm.request holds the message and metadata.]:script' \
|
|
2055
|
+
'--script-on-message[Script run on every response message as it arrives. Inline JavaScript or @path. pm.message holds the message.]:script' \
|
|
2056
|
+
'--script-after-response[Script run once the call has ended. Inline JavaScript or @path. pm.response holds the status, metadata and messages; pm.test() results are reported.]:script' \
|
|
2057
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2058
|
+
'*:method:'
|
|
1947
2059
|
}
|
|
1948
2060
|
|
|
1949
2061
|
_postman_runner() {
|
|
@@ -3269,6 +3381,299 @@ _postman_feedback() {
|
|
|
3269
3381
|
'*:text:'
|
|
3270
3382
|
}
|
|
3271
3383
|
|
|
3384
|
+
_postman_mcp() {
|
|
3385
|
+
local context state state_descr line
|
|
3386
|
+
typeset -A opt_args
|
|
3387
|
+
_arguments -C \
|
|
3388
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3389
|
+
'1: :_postman_mcp_commands' \
|
|
3390
|
+
'*::arg:->args'
|
|
3391
|
+
case $state in
|
|
3392
|
+
args)
|
|
3393
|
+
case $words[1] in
|
|
3394
|
+
inspect) _postman_mcp_inspect ;;
|
|
3395
|
+
tools) _postman_mcp_tools ;;
|
|
3396
|
+
resources) _postman_mcp_resources ;;
|
|
3397
|
+
prompts) _postman_mcp_prompts ;;
|
|
3398
|
+
esac
|
|
3399
|
+
;;
|
|
3400
|
+
esac
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
_postman_mcp_commands() {
|
|
3404
|
+
local -a sub
|
|
3405
|
+
sub=(
|
|
3406
|
+
'inspect:Show what an MCP server reports at initialize\: capabilities and counts of tools, resources, resource templates and prompts (initialize, then every */list)'
|
|
3407
|
+
'tools:List and call the tools an MCP server offers'
|
|
3408
|
+
'resources:List and read the resources an MCP server offers'
|
|
3409
|
+
'prompts:List and get the prompts an MCP server offers'
|
|
3410
|
+
)
|
|
3411
|
+
_describe -t commands 'mcp command' sub
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
_postman_mcp_inspect() {
|
|
3415
|
+
_arguments \
|
|
3416
|
+
'--json[Print the report as JSON]' \
|
|
3417
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3418
|
+
'--request[Reuse a saved local-mode MCP request ($kind\: mcp-request)\: a .request.yaml path, or the id of an MCP request in postman/collections/]:path|id:_files -g "*.json"' \
|
|
3419
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3420
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3421
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3422
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3423
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3424
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3425
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3426
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3427
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3428
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3429
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3430
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
_postman_mcp_tools() {
|
|
3434
|
+
local context state state_descr line
|
|
3435
|
+
typeset -A opt_args
|
|
3436
|
+
_arguments -C \
|
|
3437
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3438
|
+
'1: :_postman_mcp_tools_commands' \
|
|
3439
|
+
'*::arg:->args'
|
|
3440
|
+
case $state in
|
|
3441
|
+
args)
|
|
3442
|
+
case $words[1] in
|
|
3443
|
+
list) _postman_mcp_tools_list ;;
|
|
3444
|
+
call) _postman_mcp_tools_call ;;
|
|
3445
|
+
esac
|
|
3446
|
+
;;
|
|
3447
|
+
esac
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
_postman_mcp_tools_commands() {
|
|
3451
|
+
local -a sub
|
|
3452
|
+
sub=(
|
|
3453
|
+
'list:List the tools an MCP server offers (tools/list)'
|
|
3454
|
+
'call:Call one tool and print its result (tools/call)'
|
|
3455
|
+
)
|
|
3456
|
+
_describe -t commands 'tools command' sub
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
_postman_mcp_tools_list() {
|
|
3460
|
+
_arguments \
|
|
3461
|
+
'--json[Print { tools } as JSON]' \
|
|
3462
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3463
|
+
'--request[Reuse a saved local-mode MCP request ($kind\: mcp-request)\: a .request.yaml path, or the id of an MCP request in postman/collections/]:path|id:_files -g "*.json"' \
|
|
3464
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3465
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3466
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3467
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3468
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3469
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3470
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3471
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3472
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3473
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3474
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3475
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
_postman_mcp_tools_call() {
|
|
3479
|
+
_arguments \
|
|
3480
|
+
'--args[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]:json|@file|-' \
|
|
3481
|
+
'--arg[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\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3482
|
+
'--json[Print the CallToolResult as JSON]' \
|
|
3483
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3484
|
+
'--request[Reuse a saved local-mode MCP request ($kind\: mcp-request)\: a .request.yaml path, or the id of an MCP request in postman/collections/]:path|id:_files -g "*.json"' \
|
|
3485
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3486
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3487
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3488
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3489
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3490
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3491
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3492
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3493
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3494
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3495
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3496
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3497
|
+
'*:tool:'
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
_postman_mcp_resources() {
|
|
3501
|
+
local context state state_descr line
|
|
3502
|
+
typeset -A opt_args
|
|
3503
|
+
_arguments -C \
|
|
3504
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3505
|
+
'1: :_postman_mcp_resources_commands' \
|
|
3506
|
+
'*::arg:->args'
|
|
3507
|
+
case $state in
|
|
3508
|
+
args)
|
|
3509
|
+
case $words[1] in
|
|
3510
|
+
list) _postman_mcp_resources_list ;;
|
|
3511
|
+
templates) _postman_mcp_resources_templates ;;
|
|
3512
|
+
read) _postman_mcp_resources_read ;;
|
|
3513
|
+
esac
|
|
3514
|
+
;;
|
|
3515
|
+
esac
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
_postman_mcp_resources_commands() {
|
|
3519
|
+
local -a sub
|
|
3520
|
+
sub=(
|
|
3521
|
+
'list:List the resources an MCP server offers (resources/list)'
|
|
3522
|
+
'templates:List the resource templates an MCP server offers'
|
|
3523
|
+
'read:Read one resource and print its contents (resources/read)'
|
|
3524
|
+
)
|
|
3525
|
+
_describe -t commands 'resources command' sub
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
_postman_mcp_resources_list() {
|
|
3529
|
+
_arguments \
|
|
3530
|
+
'--json[Print { resources } as JSON]' \
|
|
3531
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3532
|
+
'--request[Reuse a saved local-mode MCP request ($kind\: mcp-request)\: a .request.yaml path, or the id of an MCP request in postman/collections/]:path|id:_files -g "*.json"' \
|
|
3533
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3534
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3535
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3536
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3537
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3538
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3539
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3540
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3541
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3542
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3543
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3544
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
_postman_mcp_resources_templates() {
|
|
3548
|
+
local context state state_descr line
|
|
3549
|
+
typeset -A opt_args
|
|
3550
|
+
_arguments -C \
|
|
3551
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3552
|
+
'1: :_postman_mcp_resources_templates_commands' \
|
|
3553
|
+
'*::arg:->args'
|
|
3554
|
+
case $state in
|
|
3555
|
+
args)
|
|
3556
|
+
case $words[1] in
|
|
3557
|
+
list) _postman_mcp_resources_templates_list ;;
|
|
3558
|
+
esac
|
|
3559
|
+
;;
|
|
3560
|
+
esac
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
_postman_mcp_resources_templates_commands() {
|
|
3564
|
+
local -a sub
|
|
3565
|
+
sub=(
|
|
3566
|
+
'list:List the resource templates an MCP server offers (resources/templates/list)'
|
|
3567
|
+
)
|
|
3568
|
+
_describe -t commands 'templates command' sub
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3571
|
+
_postman_mcp_resources_templates_list() {
|
|
3572
|
+
_arguments \
|
|
3573
|
+
'--json[Print { resourceTemplates } as JSON]' \
|
|
3574
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3575
|
+
'--request[Reuse a saved local-mode MCP request ($kind\: mcp-request)\: a .request.yaml path, or the id of an MCP request in postman/collections/]:path|id:_files -g "*.json"' \
|
|
3576
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3577
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3578
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3579
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3580
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3581
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3582
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3583
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3584
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3585
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3586
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3587
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
_postman_mcp_resources_read() {
|
|
3591
|
+
_arguments \
|
|
3592
|
+
'--json[Print the ReadResourceResult as JSON (blob contents stay base64)]' \
|
|
3593
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3594
|
+
'--request[Reuse a saved local-mode MCP request ($kind\: mcp-request)\: a .request.yaml path, or the id of an MCP request in postman/collections/]:path|id:_files -g "*.json"' \
|
|
3595
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3596
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3597
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3598
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3599
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3600
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3601
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3602
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3603
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3604
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3605
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3606
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3607
|
+
'*:uri:'
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
_postman_mcp_prompts() {
|
|
3611
|
+
local context state state_descr line
|
|
3612
|
+
typeset -A opt_args
|
|
3613
|
+
_arguments -C \
|
|
3614
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3615
|
+
'1: :_postman_mcp_prompts_commands' \
|
|
3616
|
+
'*::arg:->args'
|
|
3617
|
+
case $state in
|
|
3618
|
+
args)
|
|
3619
|
+
case $words[1] in
|
|
3620
|
+
list) _postman_mcp_prompts_list ;;
|
|
3621
|
+
get) _postman_mcp_prompts_get ;;
|
|
3622
|
+
esac
|
|
3623
|
+
;;
|
|
3624
|
+
esac
|
|
3625
|
+
}
|
|
3626
|
+
|
|
3627
|
+
_postman_mcp_prompts_commands() {
|
|
3628
|
+
local -a sub
|
|
3629
|
+
sub=(
|
|
3630
|
+
'list:List the prompts an MCP server offers (prompts/list)'
|
|
3631
|
+
'get:Get one prompt with its arguments filled in (prompts/get)'
|
|
3632
|
+
)
|
|
3633
|
+
_describe -t commands 'prompts command' sub
|
|
3634
|
+
}
|
|
3635
|
+
|
|
3636
|
+
_postman_mcp_prompts_list() {
|
|
3637
|
+
_arguments \
|
|
3638
|
+
'--json[Print { prompts } as JSON]' \
|
|
3639
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3640
|
+
'--request[Reuse a saved local-mode MCP request ($kind\: mcp-request)\: a .request.yaml path, or the id of an MCP request in postman/collections/]:path|id:_files -g "*.json"' \
|
|
3641
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3642
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3643
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3644
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3645
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3646
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3647
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3648
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3649
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3650
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3651
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3652
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
_postman_mcp_prompts_get() {
|
|
3656
|
+
_arguments \
|
|
3657
|
+
'--args[Prompt arguments as a JSON object of strings, @path, or - for stdin]:json|@file|-' \
|
|
3658
|
+
'--arg[One prompt argument, always sent as a string. Repeatable; a repeated key keeps the last value. Not with --args (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3659
|
+
'--json[Print the GetPromptResult as JSON]' \
|
|
3660
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3661
|
+
'--request[Reuse a saved local-mode MCP request ($kind\: mcp-request)\: a .request.yaml path, or the id of an MCP request in postman/collections/]:path|id:_files -g "*.json"' \
|
|
3662
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3663
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3664
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3665
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3666
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3667
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3668
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3669
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3670
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3671
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3672
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3673
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3674
|
+
'*:name:'
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3272
3677
|
_postman_performance() {
|
|
3273
3678
|
local context state state_descr line
|
|
3274
3679
|
typeset -A opt_args
|
|
@@ -3606,6 +4011,7 @@ _postman_team_list() {
|
|
|
3606
4011
|
_postman_update() {
|
|
3607
4012
|
_arguments \
|
|
3608
4013
|
'--check[Check whether a Postman CLI update is available.]' \
|
|
4014
|
+
'--timeout[Timeout for the update check in milliseconds (default\: 30000).]:ms' \
|
|
3609
4015
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3610
4016
|
}
|
|
3611
4017
|
|