GitHub 0
Skip to content

Check a server

Read a running MCP server or a saved tools/list, send headers, sign in with OAuth, and pick the clients to check.

Give is-mcp-ok a Streamable HTTP endpoint. It sends what a client sends when it connects, initialize and then every page of tools/list, and checks the result:

npx is-mcp-ok http://localhost:3000/mcp

Use the final endpoint URL. is-mcp-ok refuses redirects instead of following them. The output names only the endpoint's origin, since a path or query can hold a token.

A file works in place of a URL:

npx is-mcp-ok tools.json

It reads a tools array, { tools }, { initialize, tools }, or a JSON-RPC tools/list response. A file with calls is a recorded session; see Answers.

The CLI reads Streamable HTTP only. For a stdio server, write its tools/list to a file with the MCP Inspector's CLI, which starts the server, prints the list as { tools } and stops it:

npx -y @modelcontextprotocol/inspector --cli node dist/index.js --method tools/list > tools.json
npx is-mcp-ok tools.json

A list without initialize skips the checks for missing server instructions.

Send a header with every request with --header. It is repeatable, and is-mcp-ok never prints the value:

npx is-mcp-ok https://mcp.example.com/mcp --header "Authorization: Bearer $TOKEN"

Some servers answer 401 until you sign in with OAuth. Sign in from the CLI or from ismcpok.dev. Either way the token lives in memory only, for that run or that tab, and ismcpok.dev never sees it.

npx is-mcp-ok https://mcp.example.com/mcp --login

is-mcp-ok first reads the server without a token, and signs in only if it answers 401. It listens for the callback on 127.0.0.1 port 33418, or on any free port when that one is taken. It prints the sign-in link and opens it in your browser when it runs in a terminal. Set BROWSER=none to only print the link.

The token covers that one run: the read, and with --call the calls in the same session. It is never printed or written to disk. If you decline the sign-in, or don't finish within 5 minutes, the command exits 3. --login can't be combined with a file or an Authorization header.

When a server answers 401, ismcpok.dev looks for OAuth from your browser and shows a "Sign in to" button when it finds it. Your browser runs the whole sign-in with the server and its authorization server, reads tools/list with the token, and checks it in the tab.

The token stays in that tab's memory, never in storage, a cookie or the URL, and is gone when you leave or reload the page. The one-time code the authorization server sends back in the URL is taken out of the address bar at once, and is useless without the PKCE verifier, which never leaves the tab.

This works only when the server lets a web page call it (CORS). When it doesn't, the page gives you the CLI command to run instead.

Authorization servers that support client ID metadata documents read is-mcp-ok's from these URLs:

  • https://ismcpok.dev/oauth/web-client.json for the page, which redirects to https://ismcpok.dev/.
  • https://ismcpok.dev/oauth/cli-client.json for the CLI, which redirects to http://127.0.0.1:33418/callback or http://127.0.0.1/callback.

Both require the authorization server to return a matching iss before the code exchange, with dynamic registration too. If yours doesn't, pass a token with --header instead. Sign-in needs HTTPS, except for loopback URLs.

By default every client is checked. --client narrows it to the ones you support, and is repeatable:

npx is-mcp-ok http://localhost:3000/mcp --client claude-code --client vscode

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

Copilot Studio documents $ref and an integer exclusiveMinimum as problems on its standard harness, but the Microsoft Copilot harness accepted the latter in a test. So both are warnings by default. To fail on them for the standard harness, add --copilot-studio-standard:

npx is-mcp-ok http://localhost:3000/mcp --client copilot-studio --copilot-studio-standard

The output fits whoever reads it:

  • A person, a pipe or CI gets text: the budget and answers, then the verdict, then one line per finding with its code, tool and message. Errors and warnings add why they matter and the fix. next: lines at the end suggest what to run next.
  • A coding agent gets a compact report. See Coding agents.
  • A program gets JSON with --json.

--quiet leaves info findings, the budget and the answers out of the text. CLI covers every format.