--stdio <command...> | — | Launch the server as a command, any language. Consumes the rest of the command line, including the server’s own flags, so put every mcpscore option before it. Runs without a shell. |
--env NAME=VALUE | — | Set an environment variable for the --stdio server. Repeatable. The value lands in shell history and the process list, so use it for plain config only. |
--env NAME | — | Copy NAME from mcpscore’s own environment into the server’s. The form for secrets: the value never appears on a command line or in the report. It does sit in the server process’s environment, which process inspection can read with enough privilege, as with any secret passed by environment. |
--package <coordinate> | — | Score a published package instead of a running server: npm:@scope/name, npm:name@1.2.3, pypi:name==1.2.3. Reads registry metadata only. See package audits. |
--json | off | Write one JSON document to stdout. All logs go to stderr. Schema in the stability contract. |
--fail-under PCT | none | Exit 3 when the main score percentage (0–100, rounded) is below PCT. A partial audit always fails this gate. |
--fail-under-readiness PCT | none | Exit 3 when the readiness percentage is below PCT. Skipped when readiness was not assessed at all. |
--smoke | off | After the audit, call the server’s tools and check they behave. Only tools annotated readOnlyHint: true are called. Unavailable with --package; does not run on partial or modern-only probe audits. See smoke mode. |
--call-all | off | With --smoke: call every tool, not only read-only ones. Explicit consent to trigger side effects. |
--header 'Name: Value' | — | Extra HTTP header for URL targets. Repeatable. Values are never logged or reported. |
--token TOKEN | $MCPSCORE_TOKEN | Shorthand for --header 'Authorization: Bearer TOKEN'. |
--oauth | off | Open the browser for the server’s OAuth flow (authorization code + PKCE). The token lives in memory only. Needs dynamic client registration unless --client-id is given. |
--client-id ID | — | Pre-registered OAuth client for --oauth, for authorization servers without dynamic registration (GitHub’s, for one). The app must allow a loopback redirect, http://127.0.0.1:<port>/callback. |
--callback-port PORT | any free port | Pin the loopback port for the --oauth redirect, for authorization servers that require the exact registered URI. |
--version | — | Print mcpscore <version> to stdout and exit 0. Safe to parse. |