Skip to main content
The mcp-use package installs the mcp-use executable and includes the prebuilt @mcp-use/cli implementation. Use this page as the exhaustive command reference for local development, production builds, cloud deploys, saved MCP client sessions, and CLI environment variables. For hands-on workflows, see the CLI Client guide, Tunneling guide, and Manufact Cloud deployment guide.

Command map

Run locally

mcp-use dev starts the development server, view watcher, and Inspector.

Build and start

mcp-use build writes production artifacts. mcp-use start runs the built server.

Deploy

mcp-use deploy, mcp-use deployments, and mcp-use servers manage Manufact Cloud resources.

Client CLI

mcp-use client saves MCP servers, calls tools, reads resources, gets prompts, and handles OAuth.

Tunnels

mcp-use dev --tunnel exposes a local server through a public URL.

Typecheck

mcp-use typecheck refreshes MCP view types and runs the project’s own TypeScript compiler.

Install the CLI

Most projects install the framework, CLI, and Inspector together:
The CLI package can also be installed directly:
create-mcp-use-app installs mcp-use, which supplies the CLI and Inspector at matching versions.

dev

Purpose: Start a development server with TypeScript watching, view builds, automatic reloads, and the Inspector. Syntax:
Options: Examples:
Notes and behavior:
  • The MCP endpoint is served at /mcp.
  • Address precedence is --port / --host, then PORT / HOST, then the defaults. dev does not import the server until after its listener is chosen, so it cannot use a server-configured address.
  • The Inspector supplied by mcp-use is mounted at /mcp/inspector and opens automatically unless --no-open is set.
  • Inspector UI, proxy, and OAuth routes remain local-only. A public tunnel exposes the MCP endpoint but returns 404 for /mcp/inspector.
  • The command sets NODE_ENV=development when it is not already set and sets PORT to the chosen listener port before importing the entry.
  • When MCP_URL is unset and the listener binds a loopback host, the command sets MCP_URL to http://localhost:<port> only while it imports the entry, so module-scope OAuth configuration sees the local origin. Request handlers and tool code do not see this value. With --tunnel, the command still sets this local value and does not replace it with the public tunnel URL.
  • Source changes reload the exported server without dropping the long-lived HTTP listener. View modules use Vite HMR when views exist at startup.
  • Adding the first view to a project that started with none requires restarting mcp-use dev.
  • mcp-use dev keeps its Vite cache in .mcp-use/cache/ and the tunnel subdomain in .mcp-use/state/tunnel.json.
  • See Tunneling reference for the lifecycle and limits of --tunnel.

typecheck

Purpose: Refresh the managed mcp-env.d.ts declaration for the discovered server entry, then run the project’s installed TypeScript compiler with --noEmit. Syntax:
The command accepts --path, --entry, and --mcp-dir with the same meanings as dev and build. Arguments after -- are forwarded to TypeScript:
mcp-env.d.ts is scaffolded into new projects, so editors and plain tsc --noEmit work before the first CLI run. The command refreshes declarations carrying an mcp-use generated header when the entry changes and never overwrites a user-owned declaration. TypeScript must be installed in the selected project.

build

Purpose: Build the exported MCP server and its views into .mcp-use/build/. Syntax:
Options: Examples:
Notes and behavior:
  • The command bundles the default-exported server as .mcp-use/build/index.js and writes .mcp-use/build/manifest.json.
  • Each views/<name>/view.tsx builds to hashed external assets under .mcp-use/build/views/<name>/ by default.
  • Pass --inline to embed each view’s bundled JavaScript and CSS directly in the HTML returned by resources/read. There is no --no-inline; omit --inline to use external assets.
  • The build is transpile-only. Run mcp-use typecheck as a separate project script when type checking is required.
  • TypeScript path aliases come from the selected project’s tsconfig.json.
  • If MCP_ASSETS_URL is set for an external build, view paths are rewritten to that asset origin using the server’s basePath. Inline view bundles are not rewritten.
  • The selected project’s public/ directory is copied to .mcp-use/build/views/public/.

start

Purpose: Run the production server previously written to .mcp-use/build/. Syntax:
Options: Examples:
Notes and behavior:
  • Address precedence is CLI flag, environment variable, server configuration, then default: --port → PORT → config.port → 3000, and --host → HOST → config.host → 127.0.0.1.
  • --tunnel starts the tunnel only after the production server binds. The command prints the public MCP URL and closes the tunnel when the process shuts down.
  • The command requires .mcp-use/build/manifest.json; run mcp-use build first.
  • It imports the manifest’s built entryPoint and requires that module to default-export an MCPServer.
  • start does not rediscover source entries or views. --entry, --mcp-dir, and --views-dir belong to dev and build.
  • The command sets NODE_ENV=production when it is not already defined and loads the selected project’s production .env values before importing the built entry.
  • The build manifest never records Inspector state. --with-inspector is a runtime-only opt-in that mounts the Inspector on the same listener; it does not rebuild or alter .mcp-use/build.
  • The Inspector can call tools and proxy OAuth flows. Keep --with-inspector behind access controls when serving beyond localhost.

Tunneling reference

mcp-use dev --tunnel and mcp-use start --tunnel create a public URL that forwards to the local MCP server.
Tunnel limits and lifecycle: The standalone package is also available:
See the Tunneling guide for client setup and testing workflows.

Cloud command conventions

Manufact Cloud commands work with any MCP framework. With --json, stdout contains one JSON result or an error envelope:
Exit codes are 0 for success, 1 for an operational failure, and 2 for invalid or missing arguments. JSON and non-interactive commands never prompt for missing input. Use each command’s --help for its complete flag list. Cloud credentials live in ~/.manufact/auth.json (mode 0600). Project links live in .manufact/project.json. Server selection is --server, MANUFACT_SERVER, then the project link. Organization selection is --org, MANUFACT_ORG, the project link, the active organization, the organization that owns the server, then the account default.

Authentication commands

login

Sign in to Manufact Cloud.
--api-key uses an existing key; --device-code completes an approved device flow. They are mutually exclusive. --no-open leaves browser navigation to you. In a terminal, login opens the verification URL and waits. Without a terminal or with --json, it prints the device code and exits. Approve it in a browser, then run the returned completion command. Device login creates a named key. Credentials are stored in ~/.manufact/auth.json with mode 0600.

logout

Remove the local credential and revoke the key created by device login.
Pass --yes to confirm non-interactively. --json emits the result. An existing key supplied by the user is removed locally without revoking that shared key remotely.

whoami

Show the signed-in account, active organization, credential source, and key name.
MANUFACT_TOKEN overrides stored credentials; MCP_USE_API_KEY is the fallback.

Projects commands

Link a project directory to a Cloud server.
Writes .manufact/project.json and adds .manufact/ to the project ignore rules. This works for projects using any MCP framework. Without a terminal, supply a server or an existing link. Remove the local project link.
The Cloud server and deployments remain available.

deploy

deploy

Deploy from GitHub, upload local source, or register an already-hosted MCP URL.
--no-github uploads local source. --external-url <url> registers a hosted endpoint. --new creates another server. Use --name, --branch, --root-dir, --build-command, --start-command, --dockerfile, and --region as needed. Repeat --env KEY=VALUE or use --env-file <path>. --no-wait returns early; --open opens the dashboard from a terminal. Deployment waits by default. A project link is stored in .manufact/project.json. Cloud deployment works with any MCP framework. Deploy-time variables use production scope on the saved production branch, otherwise a preview override for the deployed branch.

Organization commands

org list

List your organizations.

org current

Show the active organization.

org use

Save the active organization.

org create

Create an organization.

org update

Update the selected organization.

org members

List organization members.

org invites list

List organization invitations.

org invites send

Invite a member to the organization.

org invites cancel

Cancel a pending invitation.

Servers commands

servers list

List accessible Cloud servers.

servers get

Inspect a server.

servers update

Change server and repository settings.
--name, --description, --branch, --root-dir, --build-command, --start-command, --watch-paths, --deploy-branches, --wait-for-ci / --no-wait-for-ci, --repo <owner/name>, --disconnect-repo, and --allow-ip <cidr> configure supported settings.

servers rm

Remove a Cloud server.

Environment commands

env list

List environment keys and metadata.
--environment production|preview|development selects scope; --branch selects a preview override. Set/push support --phase runtime|build|both. Use env set --help for passing a secret through stdin with --sensitive. Values are write-only. Listing returns keys and metadata. A branch-specific override can shadow the shared preview value.

env set

Create or update environment variables.
--environment production|preview|development selects scope; --branch selects a preview override. Set/push support --phase runtime|build|both. Use env set --help for passing a secret through stdin with --sensitive. Values are write-only. Listing returns keys and metadata. A branch-specific override can shadow the shared preview value.

env rm

Remove an environment variable.
--environment production|preview|development selects scope; --branch selects a preview override. Set/push support --phase runtime|build|both. Use env set --help for passing a secret through stdin with --sensitive. Values are write-only. Listing returns keys and metadata. A branch-specific override can shadow the shared preview value.

env push

Apply variables from an environment file.
--environment production|preview|development selects scope; --branch selects a preview override. Set/push support --phase runtime|build|both. Use env set --help for passing a secret through stdin with --sensitive. Values are write-only. Listing returns keys and metadata. A branch-specific override can shadow the shared preview value.

Deployments commands

deployments list

List deployments.

deployments get

Inspect one deployment.

deployments restart

Start a replacement deployment.

deployments promote

Promote a deployment to production.

deployments stop

Stop a deployment.

deployments rm

Remove a deployment.

logs

Read runtime or build logs.
--build selects build output; --follow follows updates. Runtime logs support a time window and line limit. Runtime following continues until interrupted; build following ends at a terminal status. With --json, output is emitted when following ends. Use the deployment ID returned by deploy to inspect a failed build. When omitting it, select the server through its project link or --server.

Domains commands

domains get

Inspect server domain and DNS details.

domains set-subdomain

Choose a hosted subdomain.

domains add

Attach a custom domain.
Configure the exact CNAME target returned by domains add at your DNS provider, then verify the domain.

domains verify

Verify a domain DNS record.
Configure the exact CNAME target returned by domains add at your DNS provider, then verify the domain.

domains rm

Remove a custom domain.

GitHub commands

github connect

Get the GitHub App installation URL.

github installations

List available GitHub App installations.

github repos

List repositories accessible to the GitHub App.

Checklist commands

checklist run

Run the publishing checklist for a server.
Retain the run ID when using --no-wait, then inspect it with checklist get. A completed check does not publish the server. By default the command exits 0 once the run finishes, whatever the results. In CI, pass --fail-on to set the exit code from the results: Policy concerns, the findings under Policy review, count as warnings, as on the dashboard: they may need store review but aren’t failed publishing checks. --fail-on can’t be combined with --no-wait. To keep the readable report in CI logs and still read the result from a script, pass --json-file <path>. The report prints as usual, and the same result --json would print is written to the file. The --json result of checklist run, get and cancel includes fixPrompt: Cloud’s copyable prompt for fixing the run’s failed checks, the same text as the dashboard’s Copy fix prompt. It is null when the run isn’t complete, has no failed checks, or Cloud doesn’t provide one. Pass --markdown-file <path> to also write a Markdown report in the same format as the Manufact GitHub app’s publishing check: an outcome title such as Ready to submit or 2 required fixes before submission, a summary, tables of required fixes, policy concerns and recommendations (live tests excluded), a copyable fix prompt when Cloud returns one, and a dashboard link. The report always starts with the line ## Publishing checks. Like the app’s check output, it stays under 50,000 bytes: findings that don’t fit are replaced by More findings in the checklist., and a fix prompt that doesn’t fit is shortened, with a note pointing to the dashboard and the --json fixPrompt field. Use it for pull request comments or CI job summaries. checklist get accepts it too. For an External URL server, two more options change what a run checks:
  • --url <url> checks this MCP URL instead of the server’s own, for example a preview deployment. It must be an absolute http or https URL.
  • --profile <id> authenticates with this profile instead of the one bound to the server. It must be one of your profiles or a profile shared with the organization.
Neither can be combined with --branch, because External URL servers have no branches. Reports show the URL that was checked.

checklist list

List publishing checklist runs.

checklist get

Inspect a publishing checklist run.

checklist cancel

Cancel a checklist run.

Alerts commands

alerts list

List server alert rules.

alerts get

Inspect an alert rule.

alerts create

Create an alert from dashboard-format YAML.
Use the dashboard YAML format. Choose a minimum traffic count alongside rate thresholds and separate trigger/recovery thresholds. alerts options lists current metrics.

alerts update

Update an alert from dashboard-format YAML.
Use the dashboard YAML format. Choose a minimum traffic count alongside rate thresholds and separate trigger/recovery thresholds. alerts options lists current metrics.

alerts rm

Remove an alert rule.

alerts options

List available alert metrics and limits.
Use the dashboard YAML format. Choose a minimum traffic count alongside rate thresholds and separate trigger/recovery thresholds. alerts options lists current metrics.

Evals commands

Keep eval suites in your repository as YAML files, push them to Manufact Cloud, and run them against a deployed server. The file format belongs to the CLI: it validates each file and writes the suite through Cloud’s API, which takes suites as JSON, the same way alerts create --file works.
evals/rome-weather.yaml
Every key the format defines is kebab-case; keys under args are your tool’s own parameter names. Each client takes model or models (not both), and every model runs as its own execution. clients is required: a file without it fails, for a new suite and an existing one alike, so a push never depends on Cloud’s default model. A file is the suite’s whole definition: writing it over an existing suite resets every omitted field to its default. Unknown keys are rejected, so a typo fails instead of being ignored. disallowed-tools lists tools hidden from the model, at most 100, each once. Manufact Inspector and the agent harnesses hide them; the web and native apps can’t hide tools. Experimental clients (Cursor, the native apps) and plugin lifecycle settings have no key yet; a push keeps what the suite already has for them, and export leaves them out. Every suite has a UUID and a slug, its ID within the server. A suite ID is either one. In a file, id names the suite to write: a UUID must belong to a suite on the server, and a slug updates the suite with that slug or creates one with it. A slug is lowercase letters and digits in groups joined by single hyphens, at most 64 characters, unique per server. It is never taken from name, because names aren’t unique, so renaming a suite in its file keeps the same suite. Cloud gives suites created elsewhere (the dashboard, the API) a slug made from their name; evals list shows it, and evals export writes it. evals models lists model IDs for clients.manufact-inspector, and evals options lists the web apps and harnesses your organization can run, with their models. Commands that select an existing suite (get, export, update, rm, run, migrate and runs --suite) take its suite ID, the UUID or the slug, because suite names aren’t unique. A UUID match wins over a slug. An argument that isn’t a suite ID, such as a suite name or a file path, fails with eval_suite_not_found. Suite files only supply a suite’s content, through push, create --file and update --file. In CI, push the suites and wait for the results. --wait exits 1 unless every run passes:

evals push

Update the suite each file’s id names, or create one with that slug. Prints Created or Updated for each file.
Directories contribute their .yaml, .yml, and .json files, not subdirectories. Push checks every file before writing any, against the server’s suites: if a file is invalid, its id is a UUID no suite has, or two files name the same suite, push lists every file’s error, writes nothing, and exits 1. It then creates or updates one suite per file. If Cloud rejects a suite (an unknown model, for example), push reports that file, still writes the others, and exits 1. --dry-run runs the same checks and prints what would be created or updated without writing. Deleting a file does not delete its suite; use evals rm.

evals list

List eval suites with their latest run.

evals get

Show a suite as YAML with its latest run.

evals export

Print a suite as a file that evals push accepts, for example to move a suite built in the dashboard into your repository. The file starts with id: <slug> and leaves out the experimental clients, which push keeps. A suite that runs only on experimental clients exports without clients, so the file starts with a comment (and the output with a warning) saying to add a client before pushing it.
When --out is a directory (one that exists, or a path ending in /), the file is <slug>.yaml inside it. A suite in the old multi-turn format (follow-up turns after the task) can’t be written as a suite file, so export and get refuse it with eval_suite_needs_migration and name the evals migrate command to run first. See Migrate multi-turn suites.

evals migrate

Move suites in the old multi-turn format to the new format: each suite’s turns become its task, in order, and their checks become required tools. Without suite IDs, every suite still in the old format is migrated; suites already in the new format are left as they are. The change is saved right away.
--dry-run lists the suites that would be migrated without changing them. See Migrate multi-turn suites for what migration changes and how to do it in the dashboard.

evals create

Create a suite from a file. Fails with eval_suite_exists if a suite already has the file’s id; use push or update to replace it.

evals update

Replace a suite with a file’s definition, including its name. The file’s id must name that suite; to write another suite, use push.

evals rm

Delete a suite and all of its runs. Runs in progress are cancelled.

evals run

Start one run per suite against the server’s production endpoint.
Pass suite IDs (UUIDs or slugs) or --all. --all runs every enabled suite, and --branch targets a branch environment. --profile signs in with that profile of the server’s organization instead of the server’s own, so the same suites can run as different accounts. It doesn’t apply to native apps or to clients running the plugin lifecycle, which sign in with the suite’s test account; Cloud refuses the run for those. If Cloud doesn’t apply the profile, the command cancels the run and fails. The output names the profile by its label or account (falling back to its ID): in the first line of the live log, the Markdown report, and profile in the JSON. Runs continue on Cloud after the command returns. With --wait, the command polls until every run finishes (default limit: 1800 seconds) and exits 1 unless every run passes. While it waits, it prints each suite’s dashboard link, then a line as each client and model finishes, so a CI log shows results as they come. Stopping the command while it waits (Ctrl+C, or a cancelled CI job) cancels the runs it started that haven’t finished. Runs still going when --timeout runs out keep running on Cloud. One suite that can’t start doesn’t stop the others. A dropped connection, a timeout, a 5xx or a 429 gets up to 3 attempts in all. Before sending a start again, the command looks for a run the lost request created (with the --profile asked for) and uses it instead. That check is best effort: a run someone else starts for the same suite at that moment can be taken for this one, and a start is sent again if Cloud can’t be read in time, so a suite can occasionally run twice. A suite Cloud rejects (for example, an invalid configuration) is skipped, and a 401 or 403 (signed out, no access, or out of credits) stops further starts. The suites without a run are listed under notStarted in the JSON, in --json-file and in the Markdown report, also when no suite started, and the command exits 1 after reporting the runs that started. For CI, --json-file also writes the --json result to a file while the readable report still prints. With --wait, --markdown-file writes a Markdown report for pull request comments and job summaries. On a timeout, both files still get the runs as they stand before the command fails.

evals runs

List eval runs, newest first.

evals report

Show each client’s result for one or more runs, and why each failed execution failed.

evals cancel

Cancel a run’s remaining executions. Finished results are kept.

evals options

Show the web apps and agent harnesses this organization can run, with the model IDs for clients.chatgpt-web, clients.claude-web and the harness keys (claude-code, codex, pi).
Without filters, each web app and harness lists its first 10 models. --harness (pi, codex, claude-code, or cursor) shows one harness, and --query keeps web-app and harness models whose ID or name contains the text; filtered output lists every match.

evals models

List model IDs for clients.manufact-inspector, most popular first.

Analytics commands

Query a deployed MCP server’s analytics through Manufact Cloud using the existing CLI login. Both commands accept --server <id-or-slug>, --org, --path, and --json. Server selection uses --server, then MANUFACT_SERVER, then the project link. No PostHog credentials are needed.

analytics catalog

Read the live ClickHouse schema before constructing a query:
Returns relations and columns, metric SQL expressions and units, worked examples, branch mappings, retention, freshness, and current query limits. Human output is the complete formatted catalog; --json emits one compact JSON document.

analytics query

Run one read-only ClickHouse SELECT or UNION over catalog relations:
Pass exactly one quoted SQL argument, up to 16384 UTF-8 bytes. For SQL starting with a dash, place flags before a literal delimiter:
Custom dates replace --time-range; both dates are required and the start must precede the end. They bind {from:DateTime64(3)} and {to:DateTime64(3)}. Include predicates in SQL using the catalog relation’s time column (time for raw events, bucket for rollups). For example, query one complete UTC day:
Cloud enforces server authorization, retention, and execution budgets, and rejects SETTINGS, FORMAT, INTO, table functions, and non-catalog relations. Query requests have a 30-second client timeout and no automatic retries. JSON output preserves queryId, columns, positional rows, truncated, statistics, and meta, including retention and freshness. Pair row values with columns in order and preserve 64-bit integer strings. Human output shows a table plus query metadata and a truncation notice when applicable. Empty results describe matching retained data, not all historical activity. Exit codes are 0 for success/help, 1 for operational failures, and 2 for invalid arguments. JSON errors use the standard error.code, error.message, and error.nextSteps shape. Analytics-specific API codes are retained, including ANALYTICS_SQL_REJECTED, ANALYTICS_QUERY_BUDGET, and ANALYTICS_UNAVAILABLE; authentication and network errors use the existing Cloud CLI codes. Query SQL and scope values are excluded from passive command telemetry. Install the version-matched manufact-analytics skill with mcp-use skills install for catalog discovery, SQL aggregation, and result interpretation.

Feedback commands

feedback send

Send feedback about the CLI to Manufact through the SDK’s PostHog project. No Cloud login or linked server is required.
Pass a single quoted message with 1–10,000 characters after trimming. The only options are --json for one JSON result and -h/--help for offline help. For dash-leading text, use mcp-use feedback send -- '--json output is missing'. Place output options before --, e.g. feedback send --json -- '--help is unclear'. Only the supplied message, report ID, random installation ID, CLI version, OS, architecture, Node version, and CI/terminal indicators are sent. Files, logs, credentials, account details, and conversations are not collected. Review the message and omit secrets or personal data. This explicit action works even with MCP_USE_ANONYMIZED_TELEMETRY=false, DO_NOT_TRACK=1, or NODE_ENV=test. It reuses the anonymous usage installation ID; if storage is unavailable, it uses a temporary random ID. Feedback events (mcp_use_cli_feedback) are separate from passive usage events (mcp_use_cli_command), which never include report text. Exit 0 and { "accepted": true, "reportId": "<uuid>" } mean the capture endpoint accepted the request. They do not confirm downstream ingestion or human review. The request times out after 10 seconds and is not automatically retried. Exit 1 returns feedback_rejected for HTTP errors, feedback_network_error for network failures, or feedback_timeout. Network failures and timeouts leave acceptance unknown; check connectivity before retrying. Invalid input exits 2 with usage_error. Without --json, success prints a receipt and failures go to stderr.

Agent skills commands

skills install

Install version-matched coding-agent guidance, including the Cloud CLI and manufact-analytics skills.
Installs into .cursor/skills, .claude/skills, and .agents/skills. The skills are bundled with the CLI and work offline. skills add remains an alias. Other project skills are preserved. Destructive removals and deployment promotion/stopping require --yes without a terminal.

client

Purpose: Save HTTP MCP server connections, call tools, read resources, get prompts, and manage OAuth credentials from the terminal. Syntax:
Top-level subcommands: Per-server scopes: Every action in this table accepts --json except where the top-level table does not advertise it. Examples:
Notes and behavior:
  • Saved server metadata is stored in ~/.mcp-use/client/servers.json. Credentials are stored separately under ~/.mcp-use/client/credentials/.
  • In an interactive TTY, OAuth displays This server requires OAuth. Press Enter to open your browser. and opens the browser only after Enter.
  • When protected-resource metadata identifies mixed auth, connect succeeds anonymously, reports that public tools are available, and suggests mcp-use client <name> auth login. The JSON connection result includes authorization metadata.
  • auth login starts OAuth for an already-saved server; otherwise the first wire-level OAuth challenge can start the flow later and the CLI retries that operation once.
  • --no-open and non-TTY human output never prompt or open a browser; they print a state-free local launcher URL while the loopback callback continues waiting. The local route redirects to the provider without exposing OAuth state in terminal output.
  • --json never opens a browser or prints an OAuth URL or state. If fresh consent is required, it exits 1 with oauth_interaction_required and an interactive retry command in error.details.nextSteps.
  • connect --no-oauth prevents automatic OAuth when the server returns 401.
  • --protocol auto prefers the modern wire and falls back to legacy. legacy selects only the legacy wire. modern selects the stateless, sessionless modern wire with no fallback.
  • Repeated -H, --header <"Key: Value"> options store static headers as credentials.
  • Tool and prompt arguments accept key=value, key:=<json>, or a single JSON object argument.
  • --json may appear anywhere after client. Success emits exactly one JSON value to stdout. Errors emit exactly one JSON error envelope to stderr and no stdout value.
  • Calls, resource reads, and prompt gets emit raw MCP result envelopes. Lists emit arrays, and tools describe emits one tool object.
  • Tool isError results exit 1 and retain the original protocol result in error.details under --json; they and auth-like error text are not interpreted as OAuth challenges.

CLI Client guide

Use the guide for connection workflows, OAuth behavior, argument parsing examples, and scripting patterns.

screenshot

Purpose: Call a view-backed MCP tool and capture its rendered MCP App as a PNG. Syntax:
Pass tool arguments after the options, either as one JSON object or as key=value / key:=<json> pairs. Source options: Capture options: Examples:
Exit codes: If the tool returns an error result, the command exits with 1 and prints the tool’s text content after the error message. With --json, the error envelope has code tool_failed, and error.details holds the original MCP tool result.

Environment variables

Examples: