Overview

Global flags and CLI structure.


Command Structure

mcptrust [global-flags] <command> [command-flags] [-- <server-command>]

Global Flags

FlagDefaultDescription
--log-levelinfodebug, info, warn, error
--log-formatprettypretty or jsonl (SIEM-friendly)
--log-outputstderrstderr or file path
--otelfalseEnable OpenTelemetry tracing
--otel-endpoint(env or localhost:4318)OTel exporter endpoint
--otel-protocolotlphttpotlphttp or otlpgrpc
--otel-insecurefalseAllow insecure OTel connections (no TLS)
--otel-service-namemcptrustService name for traces
--otel-sample-ratio1.0Sampling ratio (0.0-1.0)
--receipt(empty)Path for receipt artifact
--receipt-modeoverwriteoverwrite or append

Exit Codes

CodeMeaning
0Success
1Failure (drift, policy violation, verification failed)