npm 0.1.1
Section titled "npm 0.1.1"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.jsonThe 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.
Preview CLI
Section titled "Preview CLI"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]Options
Section titled "Options"| Option | What it does |
|---|---|
--header "Name: value" | Send this header with every request. Repeatable. Never printed. |
--login | Sign 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-standard | Fail 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, --help | Print the help. |
-v, --version | Print the version. |
The client ids are claude-code, claude, claude-directory, chatgpt, codex, cursor, vscode, gemini-cli and copilot-studio.
Budget
Section titled "Budget"These flags require the preview CLI.
| Option | What 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. |
One result
Section titled "One result"Use the preview CLI for the positional file or - syntax. With 0.1.1, use check-result and redirect the result to stdin instead.
| Option | What 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. |
Output
Section titled "Output"0.1.1 supports text and --json. The other output flags below require the preview CLI.
| Option | What it does |
|---|---|
--json | Print 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. |
--full | Print every finding with its docs link, past any limit. |
--max-chars <n> | Cut the agent output at <n> characters instead of 8,000. |
--quiet | Leave the info findings, the budget and the answers out of the text output. |
--verbose | Print on stderr why each output setting was picked. |
--color, --no-color | Color the text, or don't. |
Output formats
Section titled "Output formats"--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=0turns 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 thebudget,adviceandanswerssections. A run that fails before a report prints{ "status": "failed", "error": { "message", "fix" } }instead.jsonl, one JSON line per finding, ending with the report.
Exit codes
Section titled "Exit codes"| Code | Meaning |
|---|---|
0 | No error diagnostics, no client check warns on an answer, and the run is within any --max-warnings, --max-tokens or --max-increase limit. |
1 | At 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. |
2 | A bad flag, a file that can't be read, or a file that isn't a tools/list or a session. |
3 | is-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.
Environment
Section titled "Environment"| Variable | What it does |
|---|---|
IS_MCP_OK_FORMAT | The output format for every reader, as --format. |
AI_AGENT=0 | Text instead of the agent format when a coding agent runs the CLI. |
BROWSER=none | With --login, print the sign-in link without opening a browser. |