GitHub 0
Skip to content

CLI

Every is-mcp-ok command, option, output format and exit code.
npx is-mcp-ok@0.1.1 <url | file> [options]
npx is-mcp-ok@0.1.1 check-result --tool <name> [--tools <file>] [--json] < result.json
text

The first form reads a running server over Streamable HTTP, or a tools/list or session saved as JSON. The second checks one tools/call result from stdin. Run npx is-mcp-ok@0.1.1 --help (or check-result --help for the subcommand) for the release's flags.

Install the preview CLI to use the newer syntax and options on this page. The URL and list forms still work, but the single-result form replaces check-result:

pnpm exec is-mcp-ok <url | file> [options]
pnpm exec is-mcp-ok <file | -> --tool <name> [options]
text
OptionWhat it does
--header "Name: value"Send this header with every request. Repeatable. Never printed.
--loginSign in through your browser when the server answers 401 with an OAuth challenge. See Sign in.
--call <file>After tools/list, call the read-only tools listed in the file and check their answers. See Sample calls.
--client <id>Check only this client. Repeatable.
--copilot-studio-standardFail on Copilot Studio's standard-harness findings when checking that client.
--max-warnings <n>Also exit 1 when there are more than <n> warnings.
-h, --helpPrint the help.
-v, --versionPrint the version.

The client ids are claude-code, claude, claude-directory, chatgpt, codex, cursor, vscode, gemini-cli and copilot-studio.

These flags require the preview CLI.

OptionWhat it does
--save <file>With a URL: write the { initialize, tools } it read to <file>, as a baseline. Never the calls, a header or the URL.
--baseline <file>Compare the budget with a saved tools/list, and print what each tool added or removed.
--max-increase <n|n%>With --baseline: exit 1 when the budget grew by more than <n> Claude tokens, or <n> percent.
--max-tokens <n>Exit 1 when the budget is over <n> Claude tokens.

Use the preview CLI for the positional file or - syntax. With 0.1.1, use check-result and redirect the result to stdin instead.

OptionWhat it does
--tool <name>Read the file, or stdin with -, as one tools/call result of this tool. Only --tools, --client and the output options other than --summary apply.
--tools <file>With --tool: the server's tools/list, for the tool's output schema and limits and the checks that need every tool.

0.1.1 supports text and --json. The other output flags below require the preview CLI.

OptionWhat it does
--jsonPrint the result as JSON, the shape POST /api/mcp on ismcpok.dev answers. With --tool, one entry of its answers.
--format <name>text, agent, json or jsonl. Without it, is-mcp-ok picks one for its reader.
--summary <file>Also append the result as Markdown to <file>, such as "$GITHUB_STEP_SUMMARY". See Run in CI.
--fullPrint every finding with its docs link, past any limit.
--max-chars <n>Cut the agent output at <n> characters instead of 8,000.
--quietLeave the info findings, the budget and the answers out of the text output.
--verbosePrint on stderr why each output setting was picked.
--color, --no-colorColor the text, or don't.

--format, or the IS_MCP_OK_FORMAT environment variable, picks one format for every reader. Without either, the reader decides:

  • text, for a person, a pipe or CI. The budget and the answers come first, then the verdict: the counts by severity, the server, and how many tools and clients it checked. Each finding gets one line with its code, file, tool and a short message, and each error and warning adds why it matters and its fix. next: lines suggest what to run next. On GitHub Actions, each finding of a checked file is also an annotation.
  • agent, for a coding agent. The verdict on line 1, then one line per finding with its fix, at most 8,000 characters. AI_AGENT=0 turns it off. See Coding agents.
  • json, the same as --json: the full findings, their backing client findings with source and evidence, a client-by-tool matrix, and the budget, advice and answers sections. A run that fails before a report prints { "status": "failed", "error": { "message", "fix" } } instead.
  • jsonl, one JSON line per finding, ending with the report.
CodeMeaning
0No error diagnostics, no client check warns on an answer, and the run is within any --max-warnings, --max-tokens or --max-increase limit.
1At least one error diagnostic, a client check at warn or error on an answer, more warnings than --max-warnings allows, or a budget over its limit.
2A bad flag, a file that can't be read, or a file that isn't a tools/list or a session.
3is-mcp-ok can't read the server: the connection fails, it answers 401, or it returns an error. A --login sign-in declined or not finished in time exits 3 too.

info never affects the exit code, and neither do the advice or an answer's causes. A sample call that fails or isn't made doesn't either. Without --max-warnings, diagnostic warnings alone don't fail a run.

An answer's client checks fail a run at warn. None of them is an error: the client still gets the answer, but cuts it, saves it to a file, or drops the part the model needed. That warning is the failure worth catching.

VariableWhat it does
IS_MCP_OK_FORMATThe output format for every reader, as --format.
AI_AGENT=0Text instead of the agent format when a coding agent runs the CLI.
BROWSER=noneWith --login, print the sign-in link without opening a browser.