With the preview CLI, a coding agent gets a compact report: the verdict on line 1, then one line per finding with its fix, at most 8,000 characters. When findings don't fit, the last line counts what was cut and gives the command that prints it all. npm 0.1.1 doesn't have this format.
pnpm exec is-mcp-ok http://localhost:3000/mcpis-mcp-ok picks this agent format when Claude Code, Codex or another known agent runs it. --max-chars <n> moves the limit, and AI_AGENT=0 or --format text gives the agent the full text instead. The rerun command it prints never holds a token: each URL reads <url> and each header value <value>.
The loop
Section titled "The loop"- Run
npx is-mcp-ok <url or file>. - Fix each
errorandwarnfinding as itsfixsays, one at a time. - Run it again until it exits
0. Add--max-warnings 0to hold warnings to the same bar.
Some fixes only the server's author can decide, such as whether a tool only reads. MCP0002's fix says so: ask before setting readOnlyHint or destructiveHint.
Record a session
Section titled "Record a session"Your agent is already connected to the server, so it can record what its answers cost with its own client. Paste it the prompt in docs/mcp-session-prompt.md. The agent:
- writes
mcp-session.jsonfrom what its client received, never invented, - calls only tools marked
readOnlyHint: true, and one lookup with an id that doesn't exist, to see an error answer, - runs
npx is-mcp-ok mcp-session.json --jsonand walks you through the answers, - offers fixes one at a time and applies only those you accept.
The session holds real answers. Keep it out of commits.
Markdown docs
Section titled "Markdown docs"Every page on this site has a raw Markdown copy, and /llms.txt lists them all.