postman-cli-completion 1.87.0 → 1.90.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 +403 -6
- package/completions/fish/postman.fish +258 -12
- package/completions/zsh/_postman +447 -11
- 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.90.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,6 +68,7 @@ _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'
|
|
@@ -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, get prompts, and sign in to servers that use OAuth'
|
|
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'
|
|
@@ -193,7 +197,7 @@ _postman_collection_commands() {
|
|
|
193
197
|
'request:Add, get, update, or remove requests in a local v3 collection.'
|
|
194
198
|
'folder:Add, get, update, or remove folders in a local v3 collection.'
|
|
195
199
|
'example:Add, update, remove, get, or list examples (saved responses) under a request.'
|
|
196
|
-
'import:Import a cURL, HAR,
|
|
200
|
+
'import:Import a cURL, HAR, JMeter (.jmx), or ReadyAPI/SoapUI (.xml) source into a v3 collection (local, or cloud with --workspace).'
|
|
197
201
|
'list:List collections\: your local project'\''s collections by default, or a Postman cloud workspace'\''s collections with --workspace.'
|
|
198
202
|
'run:Run a collection by ID or path, or a request file.'
|
|
199
203
|
)
|
|
@@ -222,6 +226,8 @@ _postman_collection_lint() {
|
|
|
222
226
|
_arguments \
|
|
223
227
|
'(-f --fail-severity)'{-f,--fail-severity}'[Exit with failure if diagnostics at this level or above are present. \[choices\: "error", "warning"\] (default\: "error")]:value' \
|
|
224
228
|
'(-r --reporter)'{-r,--reporter}'[Output format\: cli (human-readable) or json. (default\: "cli")]:value' \
|
|
229
|
+
'--readyapi[Lint a ReadyAPI-imported collection\: every script parses as JavaScript, uses only real pm.* APIs, and has no unresolved Groovy placeholder.]' \
|
|
230
|
+
'--allow-pending[With --readyapi, treat un-translated Groovy placeholders as warnings, not errors.]' \
|
|
225
231
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
226
232
|
'*:path:_files -g "*.json"'
|
|
227
233
|
}
|
|
@@ -379,7 +385,7 @@ _postman_collection_request_add() {
|
|
|
379
385
|
_arguments \
|
|
380
386
|
'--collection[Target collection\: name, directory, id, cloud id, or path. Required.]:id|name' \
|
|
381
387
|
'--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' \
|
|
388
|
+
'--type[Request type\: http, graphql, grpc, websocket, socketio, mcp. (default\: "http")]:type' \
|
|
383
389
|
'(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
|
|
384
390
|
'(-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
391
|
'--json[JSON output.]' \
|
|
@@ -402,7 +408,9 @@ _postman_collection_request_update() {
|
|
|
402
408
|
'--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
|
|
403
409
|
'--folder[Folder to scope the request selector, e.g. "Users/Admin" (local\: name/path; cloud\: id).]:id|name|path' \
|
|
404
410
|
'--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' \
|
|
411
|
+
'--url[Request URL; its query string becomes the query parameters. Any request type; moves an mcp request to the HTTP transport.]:url' \
|
|
412
|
+
'--command[Command that starts a local MCP server; moves an mcp request to the stdio transport (mcp requests only, local mode).]:command' \
|
|
413
|
+
'--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
414
|
'--method[HTTP method (http requests only).]:method' \
|
|
407
415
|
'--param[Replace all query parameters and the url query string. Repeatable (http requests only). (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
408
416
|
'--clear-params[Remove all query parameters and the url query string (http requests only).]' \
|
|
@@ -411,9 +419,9 @@ _postman_collection_request_update() {
|
|
|
411
419
|
'--description[Request description.]:text' \
|
|
412
420
|
'--headers[Replace request headers. Repeatable; any request type with headers. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
413
421
|
'--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' \
|
|
422
|
+
'--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
423
|
'(-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' \
|
|
424
|
+
'--type[Request type for cloud mode\: http, graphql, grpc, websocket, socketio, mcp. (default\: "http")]:type' \
|
|
417
425
|
'(-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
426
|
'--json[JSON output.]' \
|
|
419
427
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -425,7 +433,7 @@ _postman_collection_request_rm() {
|
|
|
425
433
|
'--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
|
|
426
434
|
'--folder[Folder to scope the request selector, e.g. "Users/Admin" (local\: name/path; cloud\: id).]:id|name|path' \
|
|
427
435
|
'(-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' \
|
|
436
|
+
'--type[Request type for cloud mode\: http, graphql, grpc, websocket, socketio, mcp. (default\: "http")]:type' \
|
|
429
437
|
'(-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
438
|
'--json[JSON output.]' \
|
|
431
439
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -621,7 +629,7 @@ _postman_collection_example_list() {
|
|
|
621
629
|
|
|
622
630
|
_postman_collection_import() {
|
|
623
631
|
_arguments \
|
|
624
|
-
'--type[Source format\: curl, har, or
|
|
632
|
+
'--type[Source format\: curl, har, jmeter, or readyapi. Auto-detected from the extension/content when omitted.]:format' \
|
|
625
633
|
'--name[Collection display name. Defaults to a per-format fallback.]:name' \
|
|
626
634
|
'(-o --output)'{-o,--output}'[Output directory for the local collection (default\: postman/collections/<name>).]:dir:_files -g "*.json"' \
|
|
627
635
|
'(-w --workspace)'{-w,--workspace}'[Create the collection in a Postman cloud workspace by id (cloud mode).]:id' \
|
|
@@ -671,6 +679,7 @@ _postman_collection_run() {
|
|
|
671
679
|
'--working-dir[Specify the path to the working directory]:path:_files -/' \
|
|
672
680
|
'--no-insecure-file-read[Prevents reading the files situated outside of the working directory]' \
|
|
673
681
|
'(-k --insecure)'{-k,--insecure}'[Disables SSL validations]' \
|
|
682
|
+
'--allow-stdio[Allow MCP requests on the stdio transport to start their local server process]' \
|
|
674
683
|
'--ssl-client-cert-list[Specify the path to a client certificates configurations (JSON)]:path:_files -g "*.(pem|crt|key)"' \
|
|
675
684
|
'--ssl-client-cert[Specify the path to a client certificate (PEM)]:path:_files -g "*.(pem|crt|key)"' \
|
|
676
685
|
'--ssl-client-key[Specify the path to a client certificate private key]:path:_files -g "*.(pem|crt|key)"' \
|
|
@@ -1358,6 +1367,76 @@ _postman_flows_get_run() {
|
|
|
1358
1367
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1359
1368
|
}
|
|
1360
1369
|
|
|
1370
|
+
_postman_fn() {
|
|
1371
|
+
local context state state_descr line
|
|
1372
|
+
typeset -A opt_args
|
|
1373
|
+
_arguments -C \
|
|
1374
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1375
|
+
'1: :_postman_fn_commands' \
|
|
1376
|
+
'*::arg:->args'
|
|
1377
|
+
case $state in
|
|
1378
|
+
args)
|
|
1379
|
+
case $words[1] in
|
|
1380
|
+
init) _postman_fn_init ;;
|
|
1381
|
+
describe) _postman_fn_describe ;;
|
|
1382
|
+
check) _postman_fn_check ;;
|
|
1383
|
+
run) _postman_fn_run ;;
|
|
1384
|
+
esac
|
|
1385
|
+
;;
|
|
1386
|
+
esac
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
_postman_fn_commands() {
|
|
1390
|
+
local -a sub
|
|
1391
|
+
sub=(
|
|
1392
|
+
'init:Create a starter workflow in the current or chosen directory (requires Postman login)'
|
|
1393
|
+
'describe:Describe workflow primitives and blocks (requires Postman login)'
|
|
1394
|
+
'check:Validate a workflow definition without running its steps (requires Postman login)'
|
|
1395
|
+
'run:Run a workflow using Postman login for AI and evals'
|
|
1396
|
+
)
|
|
1397
|
+
_describe -t commands 'fn command' sub
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
_postman_fn_init() {
|
|
1401
|
+
_arguments \
|
|
1402
|
+
'--json[Output JSON (default when stdout is piped)]' \
|
|
1403
|
+
'--api-key[Postman API key (otherwise use postman login or POSTMAN_API_KEY)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1404
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1405
|
+
'*:path:_files -g "*.json"'
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
_postman_fn_describe() {
|
|
1409
|
+
_arguments \
|
|
1410
|
+
'--json[Output JSON (default when stdout is piped)]' \
|
|
1411
|
+
'--api-key[Postman API key (otherwise use postman login or POSTMAN_API_KEY)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1412
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1413
|
+
'*:subject:'
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
_postman_fn_check() {
|
|
1417
|
+
_arguments \
|
|
1418
|
+
'--json[Output JSON (default when stdout is piped)]' \
|
|
1419
|
+
'--api-key[Postman API key (otherwise use postman login or POSTMAN_API_KEY)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1420
|
+
'--timeout[Maximum time to load and validate the workflow (default\: "30000")]:ms' \
|
|
1421
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1422
|
+
'*:workflow.ts:'
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
_postman_fn_run() {
|
|
1426
|
+
_arguments \
|
|
1427
|
+
'--input[JSON array of workflow inputs]:input.json' \
|
|
1428
|
+
'--config[Workflow configuration JSON file]:config.json' \
|
|
1429
|
+
'--json[Output JSON (default when stdout is piped)]' \
|
|
1430
|
+
'--api-key[Postman API key (otherwise use postman login or POSTMAN_API_KEY)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1431
|
+
'--timeout[Maximum time to load and run the workflow (default\: "300000")]:ms' \
|
|
1432
|
+
'--verbose[Show workflow logs and step details without changing the workflow log level]' \
|
|
1433
|
+
'--stream[Stream JSON events and workflow logs followed by a summary]' \
|
|
1434
|
+
'--visualize[Write an HTML visualization of the execution]' \
|
|
1435
|
+
'--out[New visualization file path (requires --visualize)]:output.html' \
|
|
1436
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1437
|
+
'*:workflow.ts:'
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1361
1440
|
_postman_globals() {
|
|
1362
1441
|
local context state state_descr line
|
|
1363
1442
|
typeset -A opt_args
|
|
@@ -1511,17 +1590,17 @@ _postman_mock_generate() {
|
|
|
1511
1590
|
'--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' \
|
|
1512
1591
|
'--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.]' \
|
|
1513
1592
|
'--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' \
|
|
1514
|
-
'--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.]' \
|
|
1593
|
+
'--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).]' \
|
|
1515
1594
|
'--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' \
|
|
1516
1595
|
'--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"' \
|
|
1517
1596
|
'--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' \
|
|
1518
|
-
'--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.]' \
|
|
1597
|
+
'--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.]' \
|
|
1519
1598
|
'(-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"' \
|
|
1520
1599
|
'(-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' \
|
|
1521
1600
|
'--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.]' \
|
|
1522
1601
|
'--public[With --deploy, let anyone with the link reach the server (default\: callers need an API key). Requires --deploy.]' \
|
|
1523
1602
|
'(-s --slug)'{-s,--slug}'[With --deploy, the short label used in the server'\''s web address. Requires --deploy.]:slug' \
|
|
1524
|
-
'--timeout[How long to wait for Postman to
|
|
1603
|
+
'--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' \
|
|
1525
1604
|
'--api-key[Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1526
1605
|
'--json[Print the result as machine-readable data instead of a summary\: the generated mock, or with --deploy the live server details]' \
|
|
1527
1606
|
'(-x --suppress-exit-code)'{-x,--suppress-exit-code}'[Always exit with code 0, even on failure]' \
|
|
@@ -3305,6 +3384,362 @@ _postman_feedback() {
|
|
|
3305
3384
|
'*:text:'
|
|
3306
3385
|
}
|
|
3307
3386
|
|
|
3387
|
+
_postman_mcp() {
|
|
3388
|
+
local context state state_descr line
|
|
3389
|
+
typeset -A opt_args
|
|
3390
|
+
_arguments -C \
|
|
3391
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3392
|
+
'1: :_postman_mcp_commands' \
|
|
3393
|
+
'*::arg:->args'
|
|
3394
|
+
case $state in
|
|
3395
|
+
args)
|
|
3396
|
+
case $words[1] in
|
|
3397
|
+
inspect) _postman_mcp_inspect ;;
|
|
3398
|
+
tools) _postman_mcp_tools ;;
|
|
3399
|
+
resources) _postman_mcp_resources ;;
|
|
3400
|
+
prompts) _postman_mcp_prompts ;;
|
|
3401
|
+
login) _postman_mcp_login ;;
|
|
3402
|
+
logout) _postman_mcp_logout ;;
|
|
3403
|
+
credentials) _postman_mcp_credentials ;;
|
|
3404
|
+
esac
|
|
3405
|
+
;;
|
|
3406
|
+
esac
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3409
|
+
_postman_mcp_commands() {
|
|
3410
|
+
local -a sub
|
|
3411
|
+
sub=(
|
|
3412
|
+
'inspect:Show what an MCP server reports at initialize\: capabilities and counts of tools, resources, resource templates and prompts (initialize, then every */list)'
|
|
3413
|
+
'tools:List and call the tools an MCP server offers'
|
|
3414
|
+
'resources:List and read the resources an MCP server offers'
|
|
3415
|
+
'prompts:List and get the prompts an MCP server offers'
|
|
3416
|
+
'login:Sign in to an MCP server that uses OAuth, in a browser, and store the token every postman mcp command then sends to it'
|
|
3417
|
+
'logout:Remove the credentials postman mcp login stored for an MCP server, and revoke them at its authorization server'
|
|
3418
|
+
'credentials:List the sign-ins postman mcp login stored\: server, issuer, client, scopes, expiry and whether they refresh. Never shows a token or secret'
|
|
3419
|
+
)
|
|
3420
|
+
_describe -t commands 'mcp command' sub
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3423
|
+
_postman_mcp_inspect() {
|
|
3424
|
+
_arguments \
|
|
3425
|
+
'--json[Print the report as JSON]' \
|
|
3426
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3427
|
+
'--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"' \
|
|
3428
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3429
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3430
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3431
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3432
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3433
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3434
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3435
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3436
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3437
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3438
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3439
|
+
'--login[When an HTTP server needs an OAuth sign-in, sign in without asking (opens a browser)]' \
|
|
3440
|
+
'--no-login[Never ask to sign in; exit 3 when an HTTP server needs one]' \
|
|
3441
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
_postman_mcp_tools() {
|
|
3445
|
+
local context state state_descr line
|
|
3446
|
+
typeset -A opt_args
|
|
3447
|
+
_arguments -C \
|
|
3448
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3449
|
+
'1: :_postman_mcp_tools_commands' \
|
|
3450
|
+
'*::arg:->args'
|
|
3451
|
+
case $state in
|
|
3452
|
+
args)
|
|
3453
|
+
case $words[1] in
|
|
3454
|
+
list) _postman_mcp_tools_list ;;
|
|
3455
|
+
call) _postman_mcp_tools_call ;;
|
|
3456
|
+
esac
|
|
3457
|
+
;;
|
|
3458
|
+
esac
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
_postman_mcp_tools_commands() {
|
|
3462
|
+
local -a sub
|
|
3463
|
+
sub=(
|
|
3464
|
+
'list:List the tools an MCP server offers (tools/list)'
|
|
3465
|
+
'call:Call one tool and print its result (tools/call)'
|
|
3466
|
+
)
|
|
3467
|
+
_describe -t commands 'tools command' sub
|
|
3468
|
+
}
|
|
3469
|
+
|
|
3470
|
+
_postman_mcp_tools_list() {
|
|
3471
|
+
_arguments \
|
|
3472
|
+
'--json[Print { tools } as JSON]' \
|
|
3473
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3474
|
+
'--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"' \
|
|
3475
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3476
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3477
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3478
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3479
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3480
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3481
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3482
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3483
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3484
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3485
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3486
|
+
'--login[When an HTTP server needs an OAuth sign-in, sign in without asking (opens a browser)]' \
|
|
3487
|
+
'--no-login[Never ask to sign in; exit 3 when an HTTP server needs one]' \
|
|
3488
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
_postman_mcp_tools_call() {
|
|
3492
|
+
_arguments \
|
|
3493
|
+
'--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|-' \
|
|
3494
|
+
'--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)"' \
|
|
3495
|
+
'--json[Print the CallToolResult as JSON]' \
|
|
3496
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3497
|
+
'--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"' \
|
|
3498
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3499
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3500
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3501
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3502
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3503
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3504
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3505
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3506
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3507
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3508
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3509
|
+
'--login[When an HTTP server needs an OAuth sign-in, sign in without asking (opens a browser)]' \
|
|
3510
|
+
'--no-login[Never ask to sign in; exit 3 when an HTTP server needs one]' \
|
|
3511
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3512
|
+
'*:tool:'
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
_postman_mcp_resources() {
|
|
3516
|
+
local context state state_descr line
|
|
3517
|
+
typeset -A opt_args
|
|
3518
|
+
_arguments -C \
|
|
3519
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3520
|
+
'1: :_postman_mcp_resources_commands' \
|
|
3521
|
+
'*::arg:->args'
|
|
3522
|
+
case $state in
|
|
3523
|
+
args)
|
|
3524
|
+
case $words[1] in
|
|
3525
|
+
list) _postman_mcp_resources_list ;;
|
|
3526
|
+
templates) _postman_mcp_resources_templates ;;
|
|
3527
|
+
read) _postman_mcp_resources_read ;;
|
|
3528
|
+
esac
|
|
3529
|
+
;;
|
|
3530
|
+
esac
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
_postman_mcp_resources_commands() {
|
|
3534
|
+
local -a sub
|
|
3535
|
+
sub=(
|
|
3536
|
+
'list:List the resources an MCP server offers (resources/list)'
|
|
3537
|
+
'templates:List the resource templates an MCP server offers'
|
|
3538
|
+
'read:Read one resource and print its contents (resources/read)'
|
|
3539
|
+
)
|
|
3540
|
+
_describe -t commands 'resources command' sub
|
|
3541
|
+
}
|
|
3542
|
+
|
|
3543
|
+
_postman_mcp_resources_list() {
|
|
3544
|
+
_arguments \
|
|
3545
|
+
'--json[Print { resources } as JSON]' \
|
|
3546
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3547
|
+
'--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"' \
|
|
3548
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3549
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3550
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3551
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3552
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3553
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3554
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3555
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3556
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3557
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3558
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3559
|
+
'--login[When an HTTP server needs an OAuth sign-in, sign in without asking (opens a browser)]' \
|
|
3560
|
+
'--no-login[Never ask to sign in; exit 3 when an HTTP server needs one]' \
|
|
3561
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
_postman_mcp_resources_templates() {
|
|
3565
|
+
local context state state_descr line
|
|
3566
|
+
typeset -A opt_args
|
|
3567
|
+
_arguments -C \
|
|
3568
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3569
|
+
'1: :_postman_mcp_resources_templates_commands' \
|
|
3570
|
+
'*::arg:->args'
|
|
3571
|
+
case $state in
|
|
3572
|
+
args)
|
|
3573
|
+
case $words[1] in
|
|
3574
|
+
list) _postman_mcp_resources_templates_list ;;
|
|
3575
|
+
esac
|
|
3576
|
+
;;
|
|
3577
|
+
esac
|
|
3578
|
+
}
|
|
3579
|
+
|
|
3580
|
+
_postman_mcp_resources_templates_commands() {
|
|
3581
|
+
local -a sub
|
|
3582
|
+
sub=(
|
|
3583
|
+
'list:List the resource templates an MCP server offers (resources/templates/list)'
|
|
3584
|
+
)
|
|
3585
|
+
_describe -t commands 'templates command' sub
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
_postman_mcp_resources_templates_list() {
|
|
3589
|
+
_arguments \
|
|
3590
|
+
'--json[Print { resourceTemplates } as JSON]' \
|
|
3591
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3592
|
+
'--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"' \
|
|
3593
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3594
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3595
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3596
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3597
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3598
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3599
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3600
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3601
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3602
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3603
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3604
|
+
'--login[When an HTTP server needs an OAuth sign-in, sign in without asking (opens a browser)]' \
|
|
3605
|
+
'--no-login[Never ask to sign in; exit 3 when an HTTP server needs one]' \
|
|
3606
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
_postman_mcp_resources_read() {
|
|
3610
|
+
_arguments \
|
|
3611
|
+
'--json[Print the ReadResourceResult as JSON (blob contents stay base64)]' \
|
|
3612
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3613
|
+
'--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"' \
|
|
3614
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3615
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3616
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3617
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3618
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3619
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3620
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3621
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3622
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3623
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3624
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3625
|
+
'--login[When an HTTP server needs an OAuth sign-in, sign in without asking (opens a browser)]' \
|
|
3626
|
+
'--no-login[Never ask to sign in; exit 3 when an HTTP server needs one]' \
|
|
3627
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3628
|
+
'*:uri:'
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
_postman_mcp_prompts() {
|
|
3632
|
+
local context state state_descr line
|
|
3633
|
+
typeset -A opt_args
|
|
3634
|
+
_arguments -C \
|
|
3635
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3636
|
+
'1: :_postman_mcp_prompts_commands' \
|
|
3637
|
+
'*::arg:->args'
|
|
3638
|
+
case $state in
|
|
3639
|
+
args)
|
|
3640
|
+
case $words[1] in
|
|
3641
|
+
list) _postman_mcp_prompts_list ;;
|
|
3642
|
+
get) _postman_mcp_prompts_get ;;
|
|
3643
|
+
esac
|
|
3644
|
+
;;
|
|
3645
|
+
esac
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
_postman_mcp_prompts_commands() {
|
|
3649
|
+
local -a sub
|
|
3650
|
+
sub=(
|
|
3651
|
+
'list:List the prompts an MCP server offers (prompts/list)'
|
|
3652
|
+
'get:Get one prompt with its arguments filled in (prompts/get)'
|
|
3653
|
+
)
|
|
3654
|
+
_describe -t commands 'prompts command' sub
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3657
|
+
_postman_mcp_prompts_list() {
|
|
3658
|
+
_arguments \
|
|
3659
|
+
'--json[Print { prompts } 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
|
+
'--login[When an HTTP server needs an OAuth sign-in, sign in without asking (opens a browser)]' \
|
|
3674
|
+
'--no-login[Never ask to sign in; exit 3 when an HTTP server needs one]' \
|
|
3675
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
_postman_mcp_prompts_get() {
|
|
3679
|
+
_arguments \
|
|
3680
|
+
'--args[Prompt arguments as a JSON object of strings, @path, or - for stdin]:json|@file|-' \
|
|
3681
|
+
'--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)"' \
|
|
3682
|
+
'--json[Print the GetPromptResult as JSON]' \
|
|
3683
|
+
'--debug[Print each @postman/runtime event, and the MCP client'\''s debug messages, to stderr]' \
|
|
3684
|
+
'--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"' \
|
|
3685
|
+
'--url[Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)]:url' \
|
|
3686
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3687
|
+
'--transport[Check the transport the target uses (choices\: "http", "stdio")]:transport' \
|
|
3688
|
+
'--command[Start a local MCP server and talk to it over stdio. Needs --allow-stdio. Or pass the command and its arguments after --]:command' \
|
|
3689
|
+
'--command-env[Set an environment variable for the --command server. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3690
|
+
'--allow-stdio[Allow starting a local process for a stdio server]' \
|
|
3691
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for HTTP servers]' \
|
|
3692
|
+
'--timeout-request[Time limit for each MCP operation in ms (default\: 60000, 0 for none)]:ms' \
|
|
3693
|
+
'--protocol-version[Protocol version negotiation (default\: auto) (choices\: "auto", "legacy", "2026-07-28")]:version' \
|
|
3694
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3695
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3696
|
+
'--login[When an HTTP server needs an OAuth sign-in, sign in without asking (opens a browser)]' \
|
|
3697
|
+
'--no-login[Never ask to sign in; exit 3 when an HTTP server needs one]' \
|
|
3698
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3699
|
+
'*:name:'
|
|
3700
|
+
}
|
|
3701
|
+
|
|
3702
|
+
_postman_mcp_login() {
|
|
3703
|
+
_arguments \
|
|
3704
|
+
'--scope[Space-separated scopes to request (default\: what the server asks for)]:scopes' \
|
|
3705
|
+
'--client-id[Use a client registered with the authorization server, instead of registering one dynamically]:id' \
|
|
3706
|
+
'--client-secret[The --client-id client'\''s secret, if it has one]:secret' \
|
|
3707
|
+
'--callback-port[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]:port' \
|
|
3708
|
+
'--no-browser[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]' \
|
|
3709
|
+
'(-H --header)'{-H,--header}'[Add an HTTP header to the sign-in'\''s first request to the server, in key\:value format. Repeatable. (default\: \[\])]:key\:value:_files -g "*.(pem|crt|key)"' \
|
|
3710
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification]' \
|
|
3711
|
+
'--timeout-request[Time limit for each request in ms (default\: 60000, 0 for none)]:ms' \
|
|
3712
|
+
'--debug[Print each OAuth request'\''s method, URL without its query, and status to stderr]' \
|
|
3713
|
+
'--request[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"' \
|
|
3714
|
+
'--url[The MCP server URL]:url' \
|
|
3715
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3716
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3717
|
+
'--json[Print the result as JSON]' \
|
|
3718
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3719
|
+
}
|
|
3720
|
+
|
|
3721
|
+
_postman_mcp_logout() {
|
|
3722
|
+
_arguments \
|
|
3723
|
+
'--all[Remove every stored sign-in]' \
|
|
3724
|
+
'(-y --yes)'{-y,--yes}'[With --all, skip the confirmation; required when there is no terminal]' \
|
|
3725
|
+
'--no-revoke[Only remove the credentials from this machine; do not revoke them]' \
|
|
3726
|
+
'(-k --insecure)'{-k,--insecure}'[Disable TLS certificate verification for the revocation]' \
|
|
3727
|
+
'--timeout-request[Time limit for each revocation request in ms (default\: 60000, 0 for none)]:ms' \
|
|
3728
|
+
'--debug[Print each revocation request'\''s method, URL without its query, and status to stderr]' \
|
|
3729
|
+
'--request[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"' \
|
|
3730
|
+
'--url[The MCP server URL]:url' \
|
|
3731
|
+
'(-e --environment)'{-e,--environment}'[Resolve {{variables}} from a local environment file]:path:_files -g "*.json"' \
|
|
3732
|
+
'--env-var[Set an environment variable for {{variable}} resolution. Repeatable. (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
|
|
3733
|
+
'--json[Print the result as JSON]' \
|
|
3734
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
_postman_mcp_credentials() {
|
|
3738
|
+
_arguments \
|
|
3739
|
+
'--json[Print the sign-ins as JSON]' \
|
|
3740
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3741
|
+
}
|
|
3742
|
+
|
|
3308
3743
|
_postman_performance() {
|
|
3309
3744
|
local context state state_descr line
|
|
3310
3745
|
typeset -A opt_args
|
|
@@ -3642,6 +4077,7 @@ _postman_team_list() {
|
|
|
3642
4077
|
_postman_update() {
|
|
3643
4078
|
_arguments \
|
|
3644
4079
|
'--check[Check whether a Postman CLI update is available.]' \
|
|
4080
|
+
'--timeout[Timeout for the update check in milliseconds (default\: 30000).]:ms' \
|
|
3645
4081
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3646
4082
|
}
|
|
3647
4083
|
|