Skip to main content
Complete flag tables for every mcpjam command. For guides and recipes, see the individual command pages.

Global flags

FlagDefaultDescription
--timeout <ms>30000Request timeout in milliseconds
--rpcoffInclude raw JSON-RPC logs in JSON output under _rpcLogs
--format <format>human on TTY, json when pipedOutput format (json or human; junit-xml is available on OAuth conformance commands only)
-v, --versionPrint the CLI version

server commands

All server commands accept the shared connection flags below, plus command-specific options.

Shared connection flags

FlagDescription
--transport <transport>Explicit transport type (http or stdio)
--url <url>HTTP MCP server URL
--access-token <token>Bearer access token
--oauth-access-token <token>OAuth bearer access token
--refresh-token <token>OAuth refresh token
--client-id <id>OAuth client ID (with --refresh-token)
--client-secret <secret>OAuth client secret (with --refresh-token)
--header <header>HTTP header Key: Value (repeatable)
--client-capabilities <json>Client capabilities JSON object
--command <command>Stdio server command
--args <arg...>Preferred stdio command arguments
--command-args <arg>Legacy stdio command argument (repeatable)
-e, --env <env...>Stdio environment KEY=VALUE values
--cwd <path>Working directory for the stdio child process
Transport selection is inferred from --url vs --command when --transport is omitted. Use --transport http|stdio when you want an explicit validation step. For stdio targets, child processes inherit the parent shell environment by default. -e/--env adds or overrides child env values, and structured debug artifacts only record the explicit env keys you passed on the command line.

server probe

No additional flags beyond shared connection flags.

server doctor

FlagDescription
--out <path>Write the doctor JSON artifact to a file

server info

No additional flags.

server validate

No additional flags.

server ping

No additional flags.

server capabilities

No additional flags.

server export

No additional flags.

tools commands

tools list

Uses shared connection flags.

tools call

FlagDescription
--tool-name <name>Name of the tool to call
--name <name>Legacy alias for --tool-name
--tool-args <json>Tool arguments as a JSON string
--params <json>Legacy alias for --tool-args
--debug-out <path>Write debug artifact to file
Plus shared connection flags.

resources commands

resources list

Uses shared connection flags.

resources read

FlagDescription
--resource-uri <uri>URI of the resource to read
--uri <uri>Legacy alias for --resource-uri
Plus shared connection flags.

resources templates

Uses shared connection flags.

prompts commands

prompts list

Uses shared connection flags.

prompts get

FlagDescription
--prompt-name <name>Name of the prompt
--name <name>Legacy alias for --prompt-name
--prompt-args <json>Prompt arguments as a JSON string
Plus shared connection flags.

oauth commands

oauth login

FlagRequiredDefaultDescription
--url <url>YesMCP server URL
--protocol-version <v>Yes2025-03-26, 2025-06-18, or 2025-11-25
--registration <s>Yescimd, dcr, or preregistered
--auth-mode <m>Nointeractiveheadless, interactive, or client_credentials
--client-id <id>NoOAuth client ID
--client-secret <s>NoOAuth client secret
--client-metadata-url <url>NoCIMD metadata document URL
--redirect-url <url>NoAuto-generatedOAuth redirect URL
--scopes <scopes>NoSpace-separated scope string
--header <header>NoHTTP header Key: Value (repeatable)
--step-timeout <ms>No30000Per-step timeout
--verify-toolsNoAfter login, list tools
--verify-call-tool <name>NoAlso call the named tool
--debug-out <path>NoWrite debug artifact to file

oauth conformance

FlagRequiredDefaultDescription
--url <url>YesMCP server URL
--protocol-version <v>Yes2025-03-26, 2025-06-18, or 2025-11-25
--registration <s>Yescimd, dcr, or preregistered
--auth-mode <m>Nointeractiveheadless, interactive, or client_credentials
--client-id <id>NoOAuth client ID
--client-secret <s>NoOAuth client secret
--client-metadata-url <url>NoCIMD metadata document URL
--redirect-url <url>NoAuto-generatedOAuth redirect URL
--scopes <scopes>NoSpace-separated scope string
--header <header>NoHTTP header Key: Value (repeatable)
--step-timeout <ms>No30000Per-step timeout
--verify-toolsNoAfter OAuth, list tools
--verify-call-tool <name>NoAlso call the named tool
--conformance-checksNoRun additional negative OAuth checks, including DCR redirect URI policy and redirect-mismatch probes
--print-urlNoPrint consent URL to stderr (interactive only)

oauth conformance-suite

FlagRequiredDefaultDescription
--config <path>YesPath to JSON config file
--verify-toolsNoEnable tool listing on all flows
--verify-call-tool <name>NoCall the named tool after listing

oauth metadata

FlagRequiredDescription
--url <url>YesOAuth metadata URL to fetch

oauth proxy / oauth debug-proxy

FlagRequiredDefaultDescription
--url <url>YesOAuth request URL
--method <method>NoGETHTTP method
--header <header>NoHTTP header Key: Value (repeatable)
--body <value>NoRequest body (JSON or raw string)

protocol commands

protocol conformance

FlagRequiredDefaultDescription
--url <url>YesMCP server URL
--access-token <token>NoBearer access token
--header <header>NoHTTP header Key: Value (repeatable)
--check-timeout <ms>No15000Per-check timeout in milliseconds
--category <category>NoallRestrict checks to one or more categories
--check-id <id>NoallRestrict checks to one or more check IDs
Supports --format json and --format human. junit-xml is not supported on protocol conformance.

apps commands

Shared connection flags

FlagDescription
--transport <transport>Explicit transport type (http or stdio)
--url <url>HTTP MCP server URL
--access-token <token>Bearer access token
--oauth-access-token <token>OAuth bearer access token
--refresh-token <token>OAuth refresh token
--client-id <id>OAuth client ID (with --refresh-token)
--client-secret <secret>OAuth client secret (with --refresh-token)
--header <header>HTTP header Key: Value (repeatable)
--client-capabilities <json>Client capabilities JSON object
--command <command>Stdio server command
--args <arg...>Preferred stdio command arguments
--command-args <arg>Legacy stdio command argument (repeatable)
-e, --env <env...>Stdio environment KEY=VALUE values
--cwd <path>Working directory for the stdio child process
Apps conformance shares the same transport inference rules as the rest of the CLI: --url implies HTTP, --command implies stdio, and --transport is an optional explicit override.

apps conformance

MCP Apps server-side conformance checks. Uses shared connection flags plus:
FlagDescription
--category <category>Check category to run (tools, resources). Repeatable
--check-id <id>Specific check id to run. Repeatable

apps mcp-widget

Fetch hosted-style MCP App widget content.
FlagRequiredDescription
--resource-uri <uri>YesWidget resource URI
--uri <uri>NoLegacy alias for --resource-uri
--tool-id <id>YesTool call ID used for runtime injection
--tool-name <name>YesTool name used for runtime injection
--tool-input <json>NoTool input payload as JSON
--tool-output <json>NoTool output payload as JSON
--theme <theme>NoWidget theme: light or dark
--csp-mode <mode>NoCSP mode: permissive or widget-declared
--template <uri>NoOptional ui:// template override
--view-mode <mode>NoWidget view mode
--view-params <json>NoWidget view params as JSON
Plus shared connection flags.

apps chatgpt-widget

Fetch hosted-style ChatGPT App widget content.
FlagRequiredDescription
--resource-uri <uri>YesWidget resource URI
--uri <uri>NoLegacy alias for --resource-uri
--tool-id <id>YesTool call ID used for runtime injection
--tool-name <name>YesTool name used for runtime injection
--tool-input <json>NoTool input payload as JSON
--tool-output <json>NoTool output payload as JSON
--tool-response-metadata <json>NoTool response metadata as a JSON object
--theme <theme>NoWidget theme: light or dark
--csp-mode <mode>NoCSP mode: permissive or widget-declared
--locale <locale>NoLocale override
--device-type <type>NoDevice type: mobile, tablet, or desktop
Plus shared connection flags.

Exit codes

CodeMeaning
0Success / all checks passed
1Command ran but reported a failure
2Invalid arguments or configuration