{"slug": "show-hn-mcp-master-tester-test-mcp-servers-locally-and-in-ci", "title": "Show HN: MCP Master Tester – test MCP servers locally and in CI", "summary": "An open-source tool called MCP Master Tester, run via `npx mcp-master-tester`, lets developers debug any Model Context Protocol server in a local web UI and then guard it in CI with lint, a smoke test, a breaking-change diff, tool-selection evals and a registry entry check. Version 1.13 adds a `registry` check that validates a server.json and the command it gives clients before publishing, a `lint --time-sensitive` flag that makes tools with stale results report their age, and an `eval` command that compares models, including OpenAI's or a local one, with other servers' tools added as distractors. The tool supports stdio, Streamable HTTP and SSE transports, builds tool forms from each tool's inputSchema, and runs the same lint and smoke test from the command line and as a GitHub Action.", "body_md": "**Debug any [MCP](https://modelcontextprotocol.io) server in a local web UI, then guard it in CI with lint, a smoke test, a breaking-change diff, tool-selection evals and a registry entry check.**\n\n```\nnpx mcp-master-tester\n```\n\nPoint it at a server, either a local command over stdio or a remote URL over Streamable HTTP or SSE. It lists the server's tools, resources and prompts and gives each one a form, so you can call it and see exactly what comes back, down to every JSON-RPC message. The same lint and smoke test run from the command line and as a [GitHub Action](#github-action).\n\n**[Website and docs](https://simplymanas.github.io/mcp-master-tester/)** · **[Tutorial](https://medium.com/simplymanas/testing-any-mcp-server-step-by-step-with-mcp-master-tester-5b5cf4c0cc35)** · **[Video](https://www.youtube.com/watch?v=XXQ25jPZsh0)** · **[Monthly scorecard: what popular MCP servers send on every request](https://simplymanas.github.io/mcp-master-tester/scorecard.html)** · [How it works](https://simplymanas.github.io/mcp-master-tester/how-it-works.html)\n\n**New in 1.13:** `registry` checks a server.json and the command it gives clients, [before you publish](#check-your-registry-entry); `lint --time-sensitive` makes tools whose results go stale say how old they are; and `eval` compares models, including OpenAI's or a local one, with other servers' tools added as distractors. 1.11 and 1.10 added the [token budget](#token-budget), counted with OpenAI's tokenizer if you like, 1.9 [tool-selection evals](#tool-selection-evals), 1.8 [catching breaking changes](#breaking-changes) with a lockfile, and 1.6 the [GitHub Action](#github-action). Earlier changes are in the [CHANGELOG](https://github.com/simplymanas/mcp-master-tester/blob/main/CHANGELOG.md).\n\nOpen source and looking for collaborators: see [Contributing](#contributing), first-timers welcome. If it's useful to you, a [star on GitHub](https://github.com/simplymanas/mcp-master-tester) helps other people find it.\n\n- **Every transport:** stdio, Streamable HTTP and SSE. The Node backend proxies all traffic, so remote servers don't hit browser CORS limits.\n- **Connection panel:** shows whether you're connected:\n  - Not connected, Connecting… or Connected\n  - when connected: the server's name and version, the transport, the command or URL, and the pid\n  - edit any field and click **Reconnect** to apply it\n  - one connection attempt runs at a time\n  - closing or reloading the tab ends the session and stops the server process\n- **Keys and auth:**  - Environment variables for stdio servers. Headers or a Bearer token for remote ones.\n  - Keys named like `*KEY*` ,`*TOKEN*` ,`*SECRET*` or`*PASSWORD*` are hidden automatically.\n  - If a remote server answers **401** , the app prompts for a token and retries.\n  - If a stdio server crashes and its error output mentions a missing key, the app offers to add it as an env var and reconnect.\n- **Tool forms from the schema:** each tool's`inputSchema` becomes a form, with fields for each type:\n  - strings, numbers and integers\n  - booleans\n  - enums, including `oneOf` /`const` with titles\n  - multi-select arrays\n  - JSON editors for objects\n  - required-field checks before anything is sent, plus an *Edit as JSON* mode\n- **Running tools:** set a timeout per call. Progress shows live from`notifications/progress` . Tools marked destructive ask for confirmation, and each tool keeps a call history.\n- **Result viewer:** shows the result in readable form:\n  - text (JSON is pretty-printed), images, audio, resource links and embedded resources\n  - `structuredContent` , with multi-line strings broken at each`\\n` so text blocks stay readable, and a hint when it only wraps the text output in one string (as Python FastMCP does when a tool returns a`str` )\n  - an `isError` tool result shown separately from a protocol error\n  - a result whose `structuredContent` breaks the tool's`outputSchema` , shown in full with each problem listed above it (`celsius: must be number` )\n  - how long the call took\n- **Resources:** static resources and URI templates (fill in the variables, then read). Both text and blob contents display.\n- **Prompts:** fill in the arguments and see the messages the prompt returns.\n- **Elicitation:** if a server sends`elicitation/create` to ask the user for input, a form built from its`requestedSchema` appears. (URL-mode requests aren't supported yet; see[Limitations](#limitations) .)\n- **Lint:** checks each tool definition against the spec and against what models handle well:\n  - **Spec:**`inputSchema` and`outputSchema` must be of type object, required fields must be defined, names must be valid and unique\n  - **Confusable tools:** names that overlap so much a model may pick the wrong one (`get_user` vs`getUsers` ), and near-identical descriptions\n  - **Descriptions:** missing, very short, never saying when*not* to use the tool, so long they eat context (it's sent with every request), or padded with indentation from the source code; also flags a whole tool list that is too big\n  - **Parameters:**    - missing types or descriptions\n    - no `required` list when a parameter has no default\n    - free-form strings that list fixed values (should be an enum)\n    - strings that should be typed (booleans, numbers, dates, URLs, emails)\n    - enums and strings that give no example\n    - the same long description pasted into many tools (it's sent once per tool, on every request)\n  - **Naming:** non-snake_case names, and names that break the server's own convention\n  - **Annotations:** missing readOnly/destructive hints, and tools marked read-only whose name says they change something (`cancel_booking` ) or that are marked destructive too\n  - **Output size:** list/search tools with no limit or pagination parameter\n  - **From real calls:**    - a badge and a warning when a result is over ~10k tokens\n    - a badge and a warning when an `isError` result has no useful message for the model to recover from\n  - **The tab count** shows errors + warnings, coloured by the worst one, followed by the info findings in muted text. For example,`2 · 14`\n  - **Copy as Markdown** puts the report on the clipboard as a table, for an issue or a pull request means 2 errors or warnings and 14 info suggestions.\n- **Smoke test:** the**Smoke** tab calls every read-only tool once and shows which ones pass:\n  - it fails a tool that doesn't answer in time, crashes the server, throws a protocol error, or returns a result that breaks its `outputSchema`\n  - arguments come from your last run of the tool in this session, else from the schema's defaults, examples and enums, else they are made up (and an error for a made-up value is a warning, not a failure)\n  - tools that may change data are left out unless you tick the box, and it asks before running them. That means tools not marked read-only, and tools marked read-only but named like a write (`cancel_booking` )\n  - click a result to open the tool with the arguments sent and the full result\n  - the same test runs from the command line: see [Smoke test in CI](#smoke-test-in-ci)\n- it fails a tool that doesn't answer in time, crashes the server, throws a protocol error, or returns a result that breaks its \n- **Protocol log:** shows traffic and server output, newest at the bottom:\n  - every JSON-RPC frame in both directions, with request → response time\n  - the server's stderr\n  - `notifications/message` log entries\n  - a `logging/setLevel` control, available when the server declares the`logging` capability (otherwise it reads \"no logging support\")\n- **Breaking changes:** a[lockfile](#breaking-changes) of your tools, and`diff` in CI to flag what would break callers.\n- **Profiles:** saved in your browser. Secrets are never stored, so the app asks for them when you connect.**Import** turns the`mcpServers` JSON from Claude Desktop, Cursor or VS Code into profiles, leaving out secret values.\n- **No build step:** Express on the backend and plain JavaScript in the browser. Light and dark themes follow your system setting, or pick one with the button at the top right; the choice is remembered. The ⓘ button next to it shows the version and project links, and the layout works on phone-sized screens.\n\nStaying small is a goal of this project, and the test suite enforces it.\n\n|  | MCP Master Tester 1.13.0 | MCP Inspector 2.15.0 | \n|---|---|---|\n| Runtime dependencies | 2 | 22 | \n| Packages installed | 96 | 121 | \n| Size on disk after install | 27 MB | 100 MB | \n| The package itself, unpacked | 286 kB | 6.6 MB | \n\nMeasured with `npm install <package>` in an empty folder on macOS: MCP Master Tester on 2026-12-03, MCP Inspector on 2026-11-12. The two tools differ in scope, so this compares install weight only.\n\n- **Two dependencies:** the official MCP SDK and Express. (`eval` also needs the Anthropic or OpenAI SDK, and`lint --tokenizer o200k` needs gpt-tokenizer, each installed only when you use it.) Nearly all of the 27 MB is the SDK's own dependency tree; this project's code is an 88 kB download.\n- **No build step, no frontend framework, no install scripts.**\n- **Nothing loads from the internet:** no CDN, fonts or analytics. The page's Content-Security-Policy blocks it.\n- **A weight budget in the tests** (`test/package.test.js` ): a pull request that adds a dependency or pushes the package past its size limit fails CI.\n\n**Running a tool:** the form built from the tool's schema, the result, call history and the live protocol log.\n\n**Lint report:** each finding links to its tool.\n\n**Smoke test:** every read-only tool called once, with the arguments that were sent.\n\n```\nnpx mcp-master-tester\n```\n\nOr run from source:\n\n```\ngit clone https://github.com/simplymanas/mcp-master-tester.git\ncd mcp-master-tester\nnpm install\nnpm start\n```\n\nOpen **[http://127.0.0.1:6280](http://127.0.0.1:6280)** and click **Connect**. The default fields launch the reference server (`npx -y @modelcontextprotocol/server-everything`), which uses every feature above.\n\nRequires **Node.js 20+**. To use a different port, set `PORT`, for example `PORT=7000 npx mcp-master-tester`. If the port is already taken, it says so and exits instead of starting.\n\nRuns lint and the smoke test in one step. Each finding shows as an annotation on the workflow run, and the job page gets a summary table. Save this as `.github/workflows/mcp.yml`:\n\n```\nname: MCP server checks\non: [push, pull_request]\n\njobs:\n  mcp:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v7\n      - uses: actions/setup-node@v7\n        with:\n          node-version: 22\n      - run: npm ci && npm run build\n      - uses: simplymanas/mcp-master-tester@v1\n        with:\n          command: node dist/index.js\n```\n\nFor a server in another language, swap the setup and build steps for your own (for Python, `actions/setup-python` and `pip install .`) and set `command`, for example `python -m my_server`. The action itself needs Node.js 20 or newer, which GitHub-hosted runners already have.\n\nA remote server, with only lint, failing on warnings:\n\n```\n- uses: simplymanas/mcp-master-tester@v1\n  with:\n    url: https://staging.example.com/mcp\n    headers: |\n      Authorization: Bearer ${{ secrets.MCP_TOKEN }}\n    checks: lint\n    lint-fail-on: warn\n```\n\n| Input | What it does | \n|---|---|\n| `command` | Command that starts a stdio server, e.g. `node dist/index.js` . Split on spaces and run without a shell; use a script if an argument has a space in it. | \n| `url` ,`sse` ,`headers` | A remote server instead: its URL, `sse: true` for the legacy transport, and one`Name: value` header per line | \n| `env` ,`cwd` | One `KEY=VALUE` per line for a stdio server, and its working directory. The server doesn't see the step's`env:` , apart from`PATH` ,`HOME` and a few others, so put what it needs here. | \n| `checks` | Any of `lint` ,`smoke` ,`diff` ,`eval` . Left empty:`lint` and`smoke` , plus`diff` when the lockfile exists, plus`eval` when the cases file exists and`anthropic-api-key` is set | \n| `lockfile` ,`diff-fail-on` | For `diff` : the lockfile (default`mcp-tools.lock.json` ), and`breaking` (default),`warn` ,`info` or`never` | \n| `lint-fail-on` | `error` (default),`warn` ,`info` or`never` | \n| `max-tokens` ,`max-tool-tokens` | A [token budget](#token-budget) for the whole tool list, and for any one tool. lint fails when either is exceeded. | \n| `tokenizer` | How lint counts tokens: `estimate` (default, characters / 4) or`o200k` (OpenAI's tokenizer, exact). | \n| `smoke-fail-on` | `fail` (default),`warn` ,`skip` or`never` | \n| `tools` | Smoke-test only these tools, comma- or newline-separated, read-only or not. The safest way to choose what runs. | \n| `skip` ,`all` ,`args` | Leave tools out; also run tools that aren't clearly read-only; a JSON file of arguments. As in the [smoke test](#smoke-test-in-ci) . | \n| `anthropic-api-key` ,`eval-cases` | For `eval` : a key from your secrets, and the cases file (default`mcp-evals.json` ). Also`eval-model` ,`eval-effort` ,`eval-pass-rate` and`eval-fail-on` , as in[evals](#tool-selection-evals) . | \n| `timeout` | Milliseconds for connecting, listing tools, or one tool call (default 30000) | \n\nThe outputs `lint`, `smoke`, `diff` and `eval` are `passed`, `failed`, `error` (it couldn't run) or `skipped`. Every check runs even when an earlier one fails, and the step fails if any does.\n\nBy default the smoke test only calls tools marked read-only, with made-up arguments. If the server in CI holds anything you care about, list the tools to run in `tools`.\n\n`@v1` follows the latest 1.x release. To stay on one version, use `@v1.13.1` or a commit SHA.\n\nThe same lint rules run from the command line, so you can check your server's tool definitions on every commit. The command connects to the server, lists its tools, prints the findings and exits non-zero when there are any at your chosen level.\n\n```\n# stdio: put the server command after --\nnpx mcp-master-tester lint -- node dist/index.js\n\n# Streamable HTTP (add --sse for the legacy SSE transport)\nnpx mcp-master-tester lint --url https://example.com/mcp --header \"Authorization: Bearer $TOKEN\"\nmcp-master-tester lint · my-server v1.4.0 · 12 tools · stdio\n\n  error  send_mail    required \"subject\" is not defined in properties\n  warn   get_user     name is very close to \"getUsers\" — models may confuse them; …\n  warn   send_mail    missing description — models cannot tell when to use it\n\nTool list: ~3,150 tokens (descriptions ~1,020, input schemas ~1,690, other ~440)\nLargest: send_mail ~610, search_mail ~480, get_user ~350, list_folders ~300, get_thread ~290\nParameters: 6 of 31 have no description\n\n✖ failed: 1 error, 2 warnings, 9 info (add --show-info to list the info findings). Failing on: error.\n```\n\n| Option | What it does | \n|---|---|\n| `--fail-on <level>` | Exit 1 at `error` (default),`warn` or`info` findings, or`never` | \n| `--format <format>` | `text` (default),`json` , or`github` for GitHub Actions annotations | \n| `--show-info` | List info findings too (they're always counted) | \n| `--max-tokens <n>` ,`--max-tool-tokens <n>` | A [token budget](#token-budget) for the whole tool list, and for any one tool. Over it is an error. | \n| `--tokenizer <name>` | `estimate` (default) or`o200k` : how to count tokens for the size and the budgets. See[Token budget](#token-budget) . | \n| `--env KEY=VALUE` ,`--cwd <dir>` | Environment and working directory for a stdio server | \n| `--url <url>` ,`--sse` ,`--header \"Name: value\"` | Connect to a remote server | \n| `--timeout <ms>` | Give up after this long (default 30000) | \n\nExit codes: `0` passed, `1` findings at or above `--fail-on`, `2` the server couldn't be started or reached, or the options were wrong. If a stdio server crashes on start, its stderr is printed.\n\n**GitHub Actions:**\n\n```\n- run: npm ci && npm run build\n- run: npx -y mcp-master-tester lint --format github --fail-on warn -- node dist/index.js\n```\n\nWith `--format github`, each finding shows up as an annotation on the workflow run.\n\nA client sends your whole tool list to the model with every request, so it's worth knowing when it grows. Lint warns at about 10,000 tokens. With a budget of your own, going over it is an error, so CI fails and each new tool becomes a decision rather than something that just happens:\n\n```\nnpx mcp-master-tester lint --max-tokens 6000 --max-tool-tokens 800 -- node dist/index.js\nerror  search_mail  all 14 tool definitions add up to ~6,420 tokens, over the budget of 6,000; largest: search_mail ~910, …\n```\n\nThe summary under the findings says where the size comes from (descriptions, input schemas, output schemas) and names the largest tools, so you know what to trim first. In the GitHub Action, set `max-tokens` and `max-tool-tokens`. Ways to get under a budget, and what each costs, are in [Shrinking an MCP tool list](https://simplymanas.github.io/mcp-master-tester/shrink-tool-list.html).\n\nBy default tokens are estimated as the characters of each tool definition, as compact JSON, divided by four. Real tokenizers usually count somewhat fewer: about 13% fewer across the servers in the [survey](https://simplymanas.github.io/mcp-master-tester/survey.html). For exact counts, use `--tokenizer o200k` (OpenAI's tokenizer, the one the monthly [scorecard](https://simplymanas.github.io/mcp-master-tester/scorecard.html) counts with, so the two agree). It needs the `gpt-tokenizer` package, which isn't installed with MCP Master Tester:\n\n```\nnpx -p mcp-master-tester -p gpt-tokenizer mcp-master-tester lint --tokenizer o200k --max-tokens 6000 -- node dist/index.js\n```\n\nOr add it to your project with `npm install --save-dev gpt-tokenizer`. In the GitHub Action, set `tokenizer: o200k` and the action installs it. Anthropic doesn't publish a tokenizer for current Claude models, so Claude's count will differ a little from either.\n\nA price, a stock level or an order status goes stale, and an agent can't tell a result from an hour ago from one fetched now unless the result says so. MCP results carry no HTTP headers, so the time has to be in the result, and only the output schema can promise it's there. List your time-sensitive tools, and lint fails unless each one's output schema has a source timestamp that's required and can't be null:\n\n```\nnpx mcp-master-tester lint --time-sensitive get_price,get_stock -- node dist/index.js\nerror  get_price  output field \"as_of\" can be null, so a result without its source time still passes — make it required and non-null, and have the tool fail rather than leave it out\n  warn   get_price  outputSchema has no fetched-at time (such as \"fetched_at\"), so a cached copy can't be told from a fresh read\n  info   get_quote  returns \"price\", which usually goes stale, but isn't listed as time-sensitive; ...\n```\n\nA source timestamp is a field such as `source_updated_at`, `updated_at`, `last_modified` or `as_of`, at any depth. A tool you didn't list but that returns prices, statuses or stock levels gets an info finding, since an unlisted tool is treated as timeless. In the GitHub Action, set `time-sensitive-tools`.\n\nA smoke test answers a different question from lint: not \"are the tool definitions good?\" but \"do the tools actually work?\". The command calls each read-only tool once and fails if one doesn't answer properly.\n\n```\nnpx mcp-master-tester smoke -- node dist/index.js\nmcp-master-tester smoke · my-server v1.4.0 · 6 tools · stdio\n\n  pass  ping_db           2 ms\n  pass  get_weather      48 ms\n  warn  find_user         3 ms  returned an error for the made-up \"id\": No user with id \"test\". Ids look like \"u_1\".\n  fail  get_report       12 ms  result breaks its outputSchema: … data/celsius must be number\n  fail  slow_query    30001 ms  no answer: timed out after 30001 ms\n  skip  delete_user             not marked read-only\n\n✖ failed: 2 failed, 1 warning, 2 passed, 1 skipped. Failing on: fail.\n```\n\n**What runs, and how far to trust it.** `readOnlyHint` is the server describing itself. If a tool is mislabelled, the smoke test calls a tool that writes. So choose by what is at stake:\n\n| The server | Use | What runs | \n|---|---|---|\n| Holds real data, or isn't yours | `--tool a --tool b` | Exactly the tools you name. An allow-list is the only mode that doesn't rely on the server's own labels. | \n| A local or test instance | no flag | Tools marked `annotations.readOnlyHint: true` , except those whose name or other annotations contradict it: named like a write (`cancel_booking` ,`booking_delete` ), or marked destructive as well. | \n| A throwaway instance | `--all` | Every tool. | \n\nThe name check only catches careless labels. A `get_quote` that also fires a webhook looks read-only to any tool, which is why the allow-list comes first. If no tool runs at all, the command fails, because a run that called nothing has proved nothing.\n\nHow the arguments are chosen, how each answer is judged, and how to list the skips you expect (`--skip` with `--fail-on skip`) are in the [docs](https://simplymanas.github.io/mcp-master-tester/guide.html#smoke-args).\n\n**Give real arguments** to turn warnings into real checks. Print what would be sent, replace the made-up values, and pass the file back:\n\n```\nnpx mcp-master-tester smoke --print-args -- node dist/index.js > smoke.json\n# edit smoke.json, for example:  { \"find_user\": { \"id\": \"u_1\" } }\nnpx mcp-master-tester smoke --args smoke.json -- node dist/index.js\n```\n\n| Option | What it does | \n|---|---|\n| `--all` | Also run tools that aren't clearly read-only. They may change data. | \n| `--tool <name>` | Run only this tool (repeatable), read-only or not. The safest way to choose what runs. | \n| `--skip <name>` | Leave this tool out (repeatable). With `--fail-on skip` , this is how you list the skips you expect. | \n| `--args <file>` | JSON file of arguments: `{ \"tool_name\": { \"param\": \"value\" } }` | \n| `--print-args` | Print the arguments that would be sent, and run nothing | \n| `--fail-on <level>` | Exit 1 on `fail` (default), also on`warn` , also on`skip` (a tool went untested and you didn't leave it out yourself), or`never` | \n| `--timeout <ms>` | How long each tool may take (default 30000) | \n\n`--format`, `--env`, `--cwd`, `--url`, `--sse` and `--header` work as they do for `lint`, and so do the exit codes. A misspelt tool name in `--tool`, `--skip` or the `--args` file is an error (exit 2), so a renamed tool can't quietly drop out of the test.\n\nIn GitHub Actions, the [action](#github-action) runs it for you.\n\nA lockfile records your server's tools. In CI, `diff` compares the live server with it, so a pull request that renames a parameter or drops a tool fails before your users' agents do.\n\n```\nnpx mcp-master-tester snapshot -- node dist/index.js   # writes mcp-tools.lock.json; commit it\nnpx mcp-master-tester diff -- node dist/index.js       # in CI: exit 1 on a breaking change\nbreaking  get_user     parameter \"org\": new required parameter, so existing calls without it fail\n  breaking  get_weather  output field \"celsius\": no longer always present\n  warn      search       description changed (412 → 980 characters): models read it on every request, so check the new text\n  info      export_csv   new tool\n```\n\n| Level | What counts | \n|---|---|\n| `breaking` | A tool or parameter removed; a new required parameter; a narrower type, enum or limit on an input; an output field removed, no longer always present, or of a new type; the outputSchema removed | \n| `warn` | A changed description (models act on it, and a changed description is how a tool can be repurposed), annotation or default, or a schema change it can't classify | \n| `info` | A new tool, optional parameter or output field; a wider type | \n\n`--fail-on breaking` is the default; `warn`, `info` and `never` are the others. `--lock <file>` reads another lockfile, and `snapshot --out <file>` writes one. When a change is intended, run `snapshot` again and commit the new lockfile in the same pull request. The [GitHub Action](#github-action) runs `diff` by itself once `mcp-tools.lock.json` is in the repo.\n\nThe lockfile has no dates or server version, so it only changes when the tools do.\n\nIt works on servers you depend on but don't own, too: a scheduled `diff --fail-on info` names any tool a server update adds before it reaches your agents ([recipe](https://simplymanas.github.io/mcp-master-tester/guide.html#diff-upstream)).\n\nLint checks how your tools are written; `eval` checks whether a model actually picks the right one. List requests a user might make and the tool each should lead to, in `mcp-evals.json`:\n\n```\n[\n  { \"prompt\": \"What's the weather in Paris tomorrow?\", \"expect\": \"get_forecast\", \"args\": { \"city\": \"Paris\" } },\n  { \"prompt\": \"Find the user with email ana@example.com\", \"expect\": [\"find_user\", \"search_users\"] },\n  { \"prompt\": \"Thanks, that's all\", \"expect\": null }\n]\nexport ANTHROPIC_API_KEY=...\nnpx -p mcp-master-tester -p @anthropic-ai/sdk mcp-master-tester eval -- node dist/index.js\npass   get_forecast              What's the weather in Paris tomorrow?\n  fail   find_user / search_users  Find the user with email ana@example.com\n                                   → called \"get_user\", expected \"find_user\" or \"search_users\"\n  pass   (no tool)                 Thanks, that's all\n\n✖ failed: 2 of 3 passed (66%), 1 failed, 0 errors; needs 100%. Failing on: fail.\nMixed up: find_user/search_users → get_user. Clearer descriptions usually fix this.\nTokens: 14,670 in, 930 out.\n```\n\nEach case is one request to the Anthropic API, with your server's real tool list and a short neutral system prompt. Nothing is called on the server. `expect` is a tool, a list of acceptable tools, or `null` when no tool fits; `args` lists values the call must have (strings ignore case; other arguments are ignored).\n\n- `--model` picks the model (default`claude-opus-5-5` , or`\"model\"` in the cases file);`--effort` sets its effort.\n- Models vary a little between runs, so `--pass-rate 90` passes when 90% of cases do.`--fail-on never` only reports.\n- The Anthropic SDK is installed only for `eval` , so everything else keeps two dependencies: use`npx -p` as above, or`npm install --save-dev @anthropic-ai/sdk` . The[GitHub Action](#github-action) installs it for you.\n\nA confusable pair can trip one model and not another. Give `--model` more than once, and each case runs on each model; prefix OpenAI models with `openai:`. The report gives each model's pass rate and lists the cases where they differ:\n\n```\nnpx -p mcp-master-tester -p @anthropic-ai/sdk -p openai mcp-master-tester eval \\\n  --model claude-opus-5-5 --model openai:<model> -- node dist/index.js\nCompared:\n  claude-opus-5-5   12 of 12 passed (100%)\n  openai:<model>    10 of 12 passed (83%)\n\nDifferent results on 2 cases:\n  find_user  Find the user with email ana@example.com\n               claude-opus-5-5: pass\n               openai:<model>: called \"get_user\"\n```\n\nIn a real agent, your tools sit next to other servers' tools. `--with other.lock.json` adds another server's tool list, saved with `snapshot --out other.lock.json`, and runs every case with and without it, so you can see whether a larger list changes the model's choice. A pick of the other server's look-alike is reported under its own name (`other.lock.json/search`) and fails the case.\n\nEach extra model or `--with` multiplies the requests, and each request is billed. OpenAI models need `OPENAI_API_KEY` and the `openai` package (`npx -p openai`, or `npm install --save-dev openai`). `OPENAI_BASE_URL` points it at any API compatible with OpenAI's Chat Completions, such as a local model server. `--effort` applies to Claude models only. In the GitHub Action, set `eval-model` to a comma-separated list, `openai-api-key`, and `eval-with`.\n\nPublishing to the [official MCP Registry](https://registry.modelcontextprotocol.io) means writing a `server.json`, and clients build the command that starts your server from it. An entry can pass the registry's validation and still give a command that doesn't start the server. `registry` checks the file the way the registry's schema defines it, and shows the command clients will run:\n\n```\nnpx mcp-master-tester registry server.json --start\nnpx mcp-master-tester registry --name io.github.you/your-server   # an entry already published\nerror  packages[0] firebase-tools  \"runtimeArguments\" go to npx, before the package, so \"mcp\" is read as the\n                                     package to run (the command is: npx -y mcp firebase-tools@14.27.0).\n                                     Arguments for the server itself belong in \"packageArguments\".\n\nHow a client runs it:\n  packages[0] firebase-tools  npx -y mcp firebase-tools@14.27.0\n```\n\nIt checks the fields the registry requires (a reverse-DNS `name`, a `description` of 100 characters or fewer, an exact `version`, not a range) and the mistakes that break installs:\n\n- arguments for the server put in `runtimeArguments` , which go to`npx` or`uvx` instead\n- a positional argument with only a `valueHint` , which clients leave off the command\n- a missing `runtimeHint` , or one for the wrong kind of package\n- a secret with a default every user gets\n- `{placeholders}` with nothing to fill them\n- remote URLs that aren't https\n\n`--start` runs each npm and PyPI package, and connects to each remote, exactly as the entry says, and lists the tools. It runs the package, so use it on your own servers or ones you trust. It never starts a command that would run a different package from the one named. Pass any keys a server needs with `--env` or `--header`. In the [GitHub Action](#github-action), add `registry` to `checks`; it needs no `command` or `url`.\n\nTwo other tools cover parts of the same ground, and they work well alongside this one. As of 3 December 2026, going by each project's own documentation:\n\n|  | [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector) (official) | [QAmcp](https://qamcp.dev) | MCP Master Tester | \n|---|---|---|---|\n| Call tools by hand | Web UI and a terminal UI | No; it points to the Inspector for this | Web UI | \n| Command line for CI | Yes, with JSON output and a strict schema check | Yes, plus a pre-commit hook | Yes, with text, JSON or GitHub annotations | \n| GitHub Action | — | Yes, fails under a score | Yes, runs every check below | \n| Sign in with OAuth | Yes | Checks the login flow | No: pass a token as a header | \n| A score out of 100 | — | Yes, from fixed weighted checks | No: findings with a severity | \n| Security checks on what tools say and return | — | Yes: hidden instructions, leaked secrets | Escapes everything a server sends; no content scanning | \n| Calls tools automatically | Only the ones you name | Read-only ones | Read-only ones, holding back any whose name says they write | \n| Size of the tool list in tokens | — | A tip, not scored | Measured, with a budget that fails CI | \n| Tool definitions linted | Schema portability ( `--strict` ) | Descriptions and safety labels | Spec, descriptions, look-alike tools, labels, parameters, size | \n| Changes between versions | — | Reports tool changes since the last run, can fail CI | Lockfile diff that grades each change as breaking, warning or additive | \n| Does a model pick the right tool | — | — | `eval` , with Claude, OpenAI or a compatible local model | \n| Registry entry (server.json) | — | — | `registry` , and the command clients would run | \n| Hosted test and uptime monitoring | — | Yes, with paid plans | No: everything runs on your machine or in your CI | \n\n— means the project's documentation doesn't mention it. If anything here is wrong or out of date, please [open an issue](https://github.com/simplymanas/mcp-master-tester/issues) and I'll fix it.\n\nIn short: the Inspector is the reference client, with OAuth and the newest protocol features. QAmcp gives a quick score with security checks, and monitors a deployed server. MCP Master Tester is for the server you're building: the questions a model's point of view raises (how big, how clear, will it pick the right tool) and the changes a pull request makes.\n\n| Server type | Settings | \n|---|---|\n| Local npm package | stdio → Command `npx` , Arguments`-y @modelcontextprotocol/server-filesystem /path/to/dir` | \n| Local script | stdio → Command `python` , Arguments`my_server.py` , Working dir as needed | \n| Needs an API key | stdio → **+ var** →`GITHUB_PERSONAL_ACCESS_TOKEN` =`…` (hidden automatically) | \n| Remote (current spec) | Streamable HTTP → URL `https://host/mcp` , plus a Bearer token if required | \n| Remote (legacy) | SSE → URL `https://host/sse` | \n\nShortcut: `Ctrl`/`⌘` + `Enter` runs the selected tool, prompt or resource.\n\n```\nBrowser UI ──REST──▶ Express backend ──MCP──▶ your server (stdio | Streamable HTTP | SSE)\n           ◀──SSE───  (one MCP Client per session; streams RPC frames, stderr, logs, elicitations)\n```\n\nThe full walk-through, from the messages on the wire to the backend, lint, the smoke test, the lockfile diff, evals and the registry check, is on the website: [How MCP Master Tester works](https://simplymanas.github.io/mcp-master-tester/how-it-works.html). The project layout, the REST API and how to run the tests are in [CONTRIBUTING.md](https://github.com/simplymanas/mcp-master-tester/blob/main/CONTRIBUTING.md#set-up).\n\n- The backend listens on **`127.0.0.1` only** , because it can run any command you enter in the stdio form. Don't expose it on a network.\n- Requests with a `Host` header other than`127.0.0.1` or`localhost` are rejected, which blocks DNS-rebinding attacks from malicious websites.\n- Requests with an `Origin` other than the app itself are rejected, so another website open in your browser can't call the backend.\n- Everything a server sends (names, descriptions, schemas, results, logs) is treated as untrusted and escaped before display. A Content-Security-Policy backs that up: injected script and event handlers don't run, and the page can't load or send anything outside the app.\n- Secrets stay in memory in the browser tab and backend process. Profiles save names only, never values.\n- Closing or reloading the tab ends the session, so stdio server processes don't keep running in the background.\n- Tools are only run when you click Run. Tools marked destructive ask for confirmation first.\n- The smoke test calls tools without a click for each one, so it only runs tools the server marks read-only, and holds back any whose name or annotations contradict that. The label is still the server's own claim: point the smoke test at a test instance, or name the tools yourself with `--tool` .\n\n- No browser login (OAuth) flow for remote servers. Use a Bearer token or custom headers instead.\n- Sampling (`sampling/createMessage` ) and roots are not advertised to servers.\n- URL-mode elicitation is not advertised to servers, so they can only ask for input with a form.\n\nThis project is better with more people testing more MCP servers. All contributions are welcome, from typo fixes to new features.\n\n- **Try it on your MCP server** and[open an issue](https://github.com/simplymanas/mcp-master-tester/issues) for anything that breaks or looks wrong. Real-world servers are the best test suite.\n- **Pick up a roadmap item** below. Comment on its issue first (or open one) so we don't duplicate work.\n- **Improve the lint rules:** suggest checks that catch tool definitions models struggle with. The rules live in[`public/lint.js`](https://github.com/simplymanas/mcp-master-tester/blob/main/public/lint.js) , each with a case it must flag and a near-miss it must not flag in[`test/lint.test.js`](https://github.com/simplymanas/mcp-master-tester/blob/main/test/lint.test.js) . Open an issue with the idea, or a PR with the rule and its tests.\n- **Improve the docs:** add examples of configs for popular servers, write guides, or add screenshots.\n- **Share it** with people building on MCP. ⭐ Stars help others find the project.\n\n| Item | Difficulty | \n|---|---|\n| OAuth 2.1 sign-in for remote servers | Hard | \n| Sampling ( `sampling/createMessage` ) with a manual or LLM-backed responder | Medium | \n| Roots support | Easy | \n| URL-mode elicitation: advertise it and show the link (http and https only) | Easy | \n| Smoke test: resources and prompts too, and several argument sets per tool | Medium | \n| Export and import a session (calls and results) as JSON | Easy | \n| Resource subscriptions ( `resources/subscribe` ) with live updates | Medium | \n| Docker image | Easy | \n\nRead **[CONTRIBUTING.md](https://github.com/simplymanas/mcp-master-tester/blob/main/CONTRIBUTING.md)** for setup, the project layout, running tests and the guidelines. In short: fork the repo, create a branch, make your change, run `npm test`, and open a pull request.\n\nNot sure where to start? Open an issue with your idea or question. Happy to help you get your first pull request merged.\n\nPlease follow the [Code of Conduct](https://github.com/simplymanas/mcp-master-tester/blob/main/CODE_OF_CONDUCT.md). To report a security issue, see [SECURITY.md](https://github.com/simplymanas/mcp-master-tester/blob/main/SECURITY.md).\n\nRelease notes for every version are in [CHANGELOG.md](https://github.com/simplymanas/mcp-master-tester/blob/main/CHANGELOG.md).\n\nMIT\n\nAuthor: **@simplymanas**", "url": "https://wpnews.pro/news/show-hn-mcp-master-tester-test-mcp-servers-locally-and-in-ci", "canonical_source": "https://github.com/simplymanas/mcp-master-tester", "published_at": "2026-12-03 15:36:14+00:00", "updated_at": "2026-12-03 15:47:55.564365+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "developer-tools", "ai-tools"], "entities": ["MCP Master Tester", "Model Context Protocol", "GitHub", "OpenAI", "Python FastMCP"], "also_reported_by": [], "takeaway": "MCP Master Tester 1.13 adds `registry` to validate a server.json and its client command before publishing, `lint --time-sensitive` to flag stale tool results, and `eval` to compare models with other servers' tools as distractors.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-mcp-master-tester-test-mcp-servers-locally-and-in-ci", "markdown": "https://wpnews.pro/news/show-hn-mcp-master-tester-test-mcp-servers-locally-and-in-ci.md", "text": "https://wpnews.pro/news/show-hn-mcp-master-tester-test-mcp-servers-locally-and-in-ci.txt", "jsonld": "https://wpnews.pro/news/show-hn-mcp-master-tester-test-mcp-servers-locally-and-in-ci.jsonld"}}