Technical guide · version 1.13.0
How MCP Master Tester works
What an MCP server does on the wire, and how the tester connects to one, calls it, checks it, and guards it in CI, showing you every message along the way.
The short version
An AI application connects to an MCP server, reads its list of tools, and calls them when the model decides to. MCP Master Tester does exactly the same thing, but for a person. Where the model would write arguments, you get a form. Where the application would hide the traffic, you see every message.
It has three parts. The page in your browser is the screen. A small Node program on your machine does the actual talking, because a web page can't start a process and can't freely call other servers. Your MCP server is on the far side.
eval talks to a model, and it never calls a tool. The GitHub Action is a thin wrapper that runs the command line.The same checks run without the page, from the command line and in CI: lint the tool definitions, call the read-only tools, fail a pull request when the tool list breaks callers or grows past a token budget, ask a model whether it picks the right tool, and check the entry you publish to the MCP Registry.
The rest of this guide has three parts. The first explains MCP from the server's side: what messages arrive, what must go back. The second follows those messages through the tester. The third covers the checks built for CI.
The MCP server side
What an MCP server is
The Model Context Protocol is an agreement about how an AI application asks an outside program for help. The outside program is the server. The application is the client. A server offers three kinds of things:
| Kind | What it is | Who decides to use it | Methods |
|---|---|---|---|
| Tools | Functions with typed arguments: search, create a ticket, run a query | The model | tools/list tools/call |
| Resources | Data addressed by a URI: a file, a row, a document | The application | resources/list resources/templates/list resources/read |
| Prompts | Message templates with arguments | The user | prompts/list prompts/get |
Everything travels as JSON-RPC 2.0, which has only three message shapes:
| Shape | Has | Meaning |
|---|---|---|
| Request | id, method, params | Do this and answer me. The id ties the answer to the question. |
| Response | the same id, and either result or error | The answer to exactly one request. |
| Notification | method, params, no id | For your information. Nobody replies. |
Both sides can send requests. Most go from client to server, but a server can also ask the client something, such as a question for the user. That detail shapes the tester's design, as the backend section shows.
A session, message by message
Every connection opens with a three-message handshake. After that the client discovers what the server has, then uses it.
The handshake on the wire
These are the real first two messages between the tester and the reference server. The client states the protocol version it speaks, what it can do, and who it is. The server answers in kind.
{
"jsonrpc": "2.0",
"id": 0,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {"elicitation": {}},
"clientInfo": {
"name": "mcp-master-tester",
"version": "1.13.0"
}
}
}{
"jsonrpc": "2.0",
"id": 0,
"result": {
"protocolVersion": "2025-11-25",
"capabilities": {
"tools": {"listChanged": true},
"prompts": {"listChanged": true},
"resources": {
"subscribe": true,
"listChanged": true
},
"logging": {},
"tasks": {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
}
}
},
"completions": {}
},
"serverInfo": {
"name": "mcp-servers/everything",
"title": "Everything Reference Server",
"version": "2.0.0"
},
"instructions": "# Everything Server – Server Instructions …"
}
}Capabilities are a contract
Each side lists what it supports, and neither may use what the other didn't list. A server that doesn't declare tools must not be sent tools/list. The tester follows this: it only requests the lists the server declared, and only enables the log-level control when the server declares logging.
| Declared by | Capability | What it allows |
|---|---|---|
| Server | tools | tools/list and tools/call. With listChanged, the server may announce that the list changed. |
| Server | resources | Listing and reading resources. With subscribe, the client may ask to be told when one changes. |
| Server | prompts | prompts/list and prompts/get. |
| Server | logging | The client may set a log level; the server sends notifications/message. |
| Server | tasks | Some calls may run as long-lived tasks that the client polls. The reference server now declares it. The tester doesn't run task-only tools. |
| Client | elicitation | The server may ask the user for input. The tester's page declares this. Its command line declares nothing. |
| Client | sampling, roots | The server may ask the client's model to write, or ask which folders it may use. The tester declares neither. |
This is why the page shows 14 tools on the reference server and the command line shows 13. The server adds an input-asking tool only for clients that declare elicitation.
Three transports
The messages are the same everywhere. What differs is how they are carried.
- stdio is for servers that run on the same machine. The client starts the server as a child process and writes one JSON message per line to its standard input. The server may print anything to stderr, but stdout carries protocol messages only. A stray
console.logthere corrupts the stream. - Streamable HTTP is for remote servers. Each message is one POST to a single URL. The server answers with plain JSON, or opens a stream when it has several messages to send back. After the handshake it issues an
Mcp-Session-Idheader that the client repeats on every request. - HTTP + SSE is the earlier remote design, kept for older servers. Replies arrive on a long-lived stream, and requests go to a second URL the server announces.
In the tester you pick the transport in the connection panel, or with --url and --sse on the command line. For stdio it shows the server's stderr in the protocol log, and prints the last of it when a server dies during startup, which is usually where a missing API key shows up.
A tool and its result
A tool is described to the client by a small JSON object. This is the reference server's echo tool exactly as it arrives in tools/list:
{
"name": "echo",
"title": "Echo Tool",
"description": "Echoes back the input string",
"inputSchema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Message to echo"
}
},
"required": ["message"],
"$schema": "http://json-schema.org/draft-07/schema#"
},
"annotations": {
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
},
"execution": {"taskSupport": "forbidden"}
}| Field | Purpose | What the tester does with it |
|---|---|---|
name | How the tool is called. Must be unique on the server. | Lint checks uniqueness, allowed characters, naming style, and names a model could mix up. |
description | The only thing a model reads to decide whether to use the tool. | Lint flags a missing, very short or very long one, and one that never says when not to use the tool. |
inputSchema | A JSON Schema of type object describing the arguments. | The page builds the form from it. The smoke test builds arguments from it. |
outputSchema | Optional. Promises the shape of structuredContent. | Every result is checked against it. A mismatch is reported as a failure. |
annotations | Hints about behaviour. Set by the server about itself, so they are claims, not guarantees. | Shown as badges. The smoke test uses readOnlyHint to decide what is safe to call. |
execution | Whether the tool may, must or must not run as a task. | A tool that must run as a task is reported as skipped. |
The four annotation hints
| Hint | Means | If absent, assume |
|---|---|---|
readOnlyHint | The tool changes nothing. | false: it may change things |
destructiveHint | Its changes can destroy data. Only meaningful when not read-only. | true |
idempotentHint | Calling it twice with the same arguments does nothing more than calling it once. | false |
openWorldHint | It reaches outside systems, such as the web. | true |
Calling it
A call names the tool and passes arguments. The result carries a list of content blocks: text, images, audio, links to resources, or embedded resources.
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "get-sum",
"arguments": {"a": 19, "b": 23},
"_meta": {"progressToken": 2}
}
}{
"jsonrpc": "2.0",
"id": 2,
"result": {
"content": [
{
"type": "text",
"text": "The sum of 19 and 23 is 42."
}
]
}
}The progressToken in the request is the client saying "you may send me progress updates under this number". The page always includes one, so long-running tools can report how far along they are, and each update restarts the timeout.
A tool with an outputSchema also returns structuredContent: the same answer as data, in the promised shape. Servers send the text form too, for clients that only read text:
{
"content": [
{
"type": "text",
"text": "{\"temperature\":36,\"conditions\":\"Light rain / drizzle\",\"humidity\":82}"
}
],
"structuredContent": {
"temperature": 36,
"conditions": "Light rain / drizzle",
"humidity": 82
}
}Two kinds of failure
This distinction matters more than any other when you build a server, because the two kinds reach the model differently.
{
"jsonrpc": "2.0",
"id": 4,
"result": {
"content": [
{
"type": "text",
"text": "MCP error -32602: Tool nope not found"
}
],
"isError": true
}
}{
"jsonrpc": "2.0",
"id": 2,
"error": {
"code": -32603,
"message": "MCP error -32603: TypeError: stats is undefined"
}
}| Code | Name | Typical cause |
|---|---|---|
-32700 | Parse error | The message wasn't valid JSON. On stdio, often a log line printed to stdout. |
-32600 | Invalid request | Valid JSON, but not a valid JSON-RPC message. |
-32601 | Method not found | The server doesn't implement that method. |
-32602 | Invalid params | Wrong or missing arguments, or an unknown tool name. |
-32603 | Internal error | The handler threw. |
-32000 | Connection closed | Raised by the client library when the server goes away mid-request. |
-32001 | Request timed out | Raised by the client library when no answer came in time. |
The tester shows the two kinds with different badges, and the smoke test judges them differently: an error result for a made-up argument is only a warning, while a thrown exception is always a failure.
Inside the tester
One tool call, end to end
When you press Run tool, two things happen in parallel. The call itself goes out and comes back as an ordinary HTTP request and reply. Meanwhile a second channel streams a copy of every protocol message to the log.
The page never speaks MCP. It posts a small JSON body to the backend and gets back an envelope:
{
"ok": true,
"ms": 2,
"result": {
"content": [
{
"type": "text",
"text": "The sum of 19 and 23 is 42."
}
]
}
}msis measured in the backend, around the call to the MCP client, so it is the server's response time without browser overhead.- A protocol error becomes
{ ok: false, error, code, data }with an HTTP error status. An authentication failure also setsauthRequired, which makes the page ask for a token. - The output-schema check uses the validator the MCP client library compiles for each tool after
tools/list. The library on its own throws away a result that doesn't fit, so the backend sends the call itself, runs the same check, and returns the result with anoutputSchemaErrorbeside it. The page shows the result with the exact field that broke the promise above it.
The backend
server.js is one file of about 320 lines. It holds a map of sessions. Each session owns one MCP client, one transport, and one list of events.
The tap
To show every message, the backend wraps the transport before the client starts using it. Outgoing messages are copied as they are sent. Incoming ones are copied by replacing the transport's message handler with one that records first and then passes the message on:
tap(transport) {
const send = transport.send.bind(transport);
transport.send = (msg, opts) => {
this.emit({ type: 'rpc', dir: 'out', msg }); // copy, then send
return send(msg, opts);
};
let handler;
Object.defineProperty(transport, 'onmessage', {
get: () => handler,
set: (fn) => {
handler = fn && ((msg, extra) => {
this.emit({ type: 'rpc', dir: 'in', msg }); // copy, then deliver
fn(msg, extra);
});
},
});
}The event stream
Each session keeps its last 2,000 events. The page opens GET /api/sessions/:id/events, receives the backlog, and then gets new events as they happen. One event looks like this:
{
"ts": 1796265600000,
"type": "rpc",
"dir": "out",
"msg": {
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {"name": "get-sum", "arguments": {"a": 19, "b": 23}}
}
}| Event type | Source | What the page does |
|---|---|---|
rpc | The tap, for every message in either direction | Adds a log row. Pairs a response with its request by id to show the time between them. |
stderr | A stdio server's standard error | Adds a log row. |
log | notifications/message from the server | Adds a log row with its level. |
progress | notifications/progress | Updates the Run button: "Running… 3/5". |
list_changed | The server announced a changed list | Fetches that list again and re-runs lint. |
elicit | The server asked the user something | Shows a form. See below. |
closed | The connection ended | Marks the session disconnected and keeps the results on screen. |
When the server asks the questions
Elicitation is a request from server to client, in the middle of a tool call. A request needs a response, but the answer has to come from a person in a browser. The backend bridges the gap by holding the request open:
The REST API
| Call | Does |
|---|---|
POST /api/sessions | Builds the transport, connects, runs the handshake. Returns the session id, server info and capabilities. |
DELETE /api/sessions/:id | Closes the client, which also stops a stdio server process. |
GET /api/sessions/:id/events | The event stream. |
POST …/tools/list …/tools/call | The tools/* methods. Lists accept a cursor for paging. |
POST …/resources/list …/templates …/read | The resources/* methods. |
POST …/prompts/list …/prompts/get | The prompts/* methods. |
POST …/logging/level …/ping | logging/setLevel and ping. |
POST …/elicit/:reqId | The user's answer to an elicitation. |
Nothing is written to disk. Sessions live in memory, and closing or reloading the tab sends a DELETE so a stdio server isn't left running.
The page
The page is plain JavaScript modules with no framework and no build step. It keeps one state object and redraws the affected part when something changes.
From schema to form
forms.js turns each property of a tool's inputSchema into a control, and turns the filled form back into typed arguments. It refuses to send anything while a field is invalid.
| In the schema | Control | Sent as |
|---|---|---|
enum, or oneOf of constants | Dropdown | The chosen value, with its original type |
| an array of enum values | Multi-select | Array |
boolean | Dropdown: unset, true, false | Boolean, or left out |
integer, number | Number input with minimum and maximum | Number |
string | Text input. A password field when the name looks secret; a text area when it looks long. | String |
| objects, arrays, unions | A JSON text area | Parsed JSON |
Empty optional fields are left out of the call, not sent as empty strings, so the server applies its own defaults. An Edit as JSON switch replaces the form with the raw arguments for anything the form can't express.
Everything from the server is untrusted
Names, descriptions, schemas, results and log lines all come from the server and are all written into the page. Every one passes through an escaping function first, and schema numbers become attributes only if they really are numbers. A Content-Security-Policy stands behind that: even if an escape were missed, injected script would not run. The security section has the full list.
Secrets and profiles
A saved profile stores the command or URL and the names of environment variables and headers. Values marked secret are never stored; the page asks for them when you load the profile. A field is treated as secret automatically when its name contains words like key, token or password.
Import reads the config file a client already has (Claude Desktop, Cursor, Windsurf, Cline and VS Code each keep a list of servers) and turns every entry into a profile by the same rule: a value whose name looks secret, or that is a placeholder such as ${input:token}, keeps its name and loses its value. config-import.js does the parsing as pure functions.
The Lint tab's Copy as Markdown button puts the findings in a table for an issue or a pull request, with the server's name and the size of its tool list at the top.
Lint
Lint answers one question: are these tool definitions good enough for a model to use correctly? It never calls a tool. It is a pure function, lintTools(tools), that takes the array from tools/list and returns findings, each with a severity, a tool name and a message. The same function runs in the page, on the command line and in the tests.
| Group | Severity | Examples |
|---|---|---|
| Spec | error | Duplicate tool name. inputSchema or outputSchema not of type object. A required field that isn't defined. |
| Confusable tools | warn | get_user next to getUsers. Two descriptions that say nearly the same thing. |
| Descriptions | warn info | Missing, very short, or so long it eats context. Never says when not to use the tool. Padded with indentation from the source code, which is sent on every request too. |
| Parameters | warn info | No type or description. A string that lists fixed values and should be an enum. A string named like a number, boolean, date or URL. No example. The same long description pasted into three or more tools. |
| Naming | warn info | A tool that breaks the server's own naming style. Names that aren't snake_case. |
| Annotations | warn info | None at all. Marked read-only but named like a write (cancel_booking), or marked read-only and destructive at once. |
| Size | error warn info | A list or search tool with no limit parameter. All definitions together larger than about 10,000 tokens, or over the budget you set, which is an error. |
| Freshness | error warn info | A tool you list as time-sensitive whose output schema can't say how old its data is. |
| From real calls | warn | A result over about 10,000 tokens. An error result whose message gives the model nothing to act on. Found only in the page, after you run a tool. |
Several rules compare tools with each other, which is why lint works on the whole list. Name similarity, for example, splits every name into words, drops filler such as "get" and "by", strips plurals, and compares the remaining sets.
Smoke test
The smoke test answers a different question: do the tools actually respond? It calls each one once. The logic is four pure functions in smoke.js: decide what runs, build arguments, call, judge.
--all, and the run reports them as untested.Where the arguments come from
The test sends a value for each required parameter and nothing else. For each one it takes the first of these that exists:
- Arguments you supplied: a file passed with
--args, or in the page, the arguments you last ran that tool with. - The schema's own
default, firstexamplesentry,const, or firstenumvalue. A boolean is sent asfalse. - A made-up placeholder:
"test", the number1moved inside anyminimumandmaximum, or a value fitting theformatsuch ashttps://example.com.
The test remembers which of the three it used, because that changes the verdict.
How an answer is judged
| What came back | Arguments were made up | Arguments came from you or the schema |
|---|---|---|
| A normal result | pass | pass |
| A result over about 10,000 tokens | warn | warn |
An error result (isError) | warn | fail |
Protocol error -32602, invalid params | warn | fail |
| Any other protocol error | fail | fail |
A result that breaks the outputSchema | fail | fail |
| No answer before the timeout | fail | fail |
| The connection closed | fail | fail |
The middle rows are the judgement call. A server is right to reject a placeholder like "test" as a user id, so that only earns a warning. Rejecting its own default, or arguments you wrote, is a real failure.
Tools run one at a time, in list order. If a tool takes the server down, the remaining tools are marked "not run" with the name of the tool that did it. A run that called nothing at all fails, because it proved nothing.
How far to trust it. readOnlyHint is the server describing itself. The name check catches careless labels, but nothing can see a get_quote that also fires a webhook. Against a server that holds real data, name the tools yourself with --tool.
Command line
cli.js is the package's entry point. With no arguments it starts the backend and prints the page's address. With a command, it connects to a server directly, prints a report and exits. The commands don't use the backend or the browser at all.
| Command | Does |
|---|---|
npx mcp-master-tester | Starts the page at http://127.0.0.1:6280. Set PORT to change it. |
… lint -- node server.js | Connects, lists the tools, runs the lint rules and measures the list. |
… smoke -- node server.js | Connects, lists the tools, calls the read-only ones. |
… snapshot -- node server.js | Saves the tool list to a lockfile to commit. |
… diff -- node server.js | Compares the tool list with the lockfile and grades each change. |
… eval -- node server.js | Asks a model which tool it would call for each request in a cases file. |
… registry server.json | Checks a registry entry and the command it gives clients. Needs no server, unless you add --start. |
… lint --url https://host/mcp | Any command over Streamable HTTP. Add --sse for the older transport and --header for a token. |
Every command is built for CI. Output is text, JSON, or GitHub Actions annotations. The exit code carries the verdict:
| Exit code | Meaning |
|---|---|
0 | Passed. |
1 | Findings, failures or changes at or above the --fail-on level. |
2 | The options were wrong, or the server couldn't be started or reached. Its stderr is printed. |
A misspelt tool name in --tool, --skip, --time-sensitive, the arguments file or the eval cases is an error, not a warning. Otherwise a renamed tool would quietly drop out of the check and the run would still pass.
Guarding a server in CI
Token budget
Unless a client loads tools on demand, every tool definition is sent to the model with every request. Lint measures that cost the way it reaches the model: each tool as compact JSON, the whole list counted as one text. The same function, toolListSize, then counts the descriptions, input schemas and output schemas on their own, so you can see where the size comes from. Whatever is left (names, titles, annotations, punctuation) is "other".
By default the count is an estimate, characters divided by four, marked with a "~". With --tokenizer o200k it is counted with OpenAI's o200k tokenizer, which comes from the optional gpt-tokenizer package and loads only when asked for. Across the survey's servers, the estimate ran about 13% high. Claude's tokenizer isn't published, so neither count is exact for every model. Use them to compare servers, and to notice growth.
$ mcp-master-tester lint --tokenizer o200k --max-tokens 3000 -- node everything.js stdio
mcp-master-tester lint · mcp-servers/everything v2.0.0 · 13 tools · stdio
Tool list: 1,708 o200k tokens, budget 3,000 (descriptions 216, input schemas 708, output schemas 74, other 710)
Largest: gzip-file-as-resource 248, get-structured-content 193, simulate-research-query 174, get-annotated-message 147, trigger-long-running-operation 129
Parameters: 1 of 16 have no description
✔ passed: 0 errors, 0 warnings, 28 info (add --show-info to list the info findings). Failing on: error.--max-tokens, going over is an error, so the build fails and a new tool becomes a decision someone makes. --max-tool-tokens does the same for any single tool.Lockfile diff
A server can change its tools without anyone noticing: a parameter renamed, a description rewritten, a tool removed. Clients and agents built against the old list then fail, or quietly behave differently. snapshot writes the tool list to mcp-tools.lock.json, and diff compares the live list with it in CI.
The lockfile is built to change only when the tools do. Tools are sorted by name, every object's keys are sorted, and only title, description, the two schemas and annotations are kept. There's no date and no server version in it, so a pull request shows a lockfile change only when a tool changed.
| Grade | Means | Examples |
|---|---|---|
| breaking | Existing callers or clients can fail. | A tool or parameter removed. A new required parameter. A narrower type. An enum value removed. An output field that may now be missing. |
| warn | Worth a look. | A changed description: models read it on every request, and a rewritten description is how a tool can be quietly repurposed. Changed annotations or defaults. A schema change the diff can't classify. |
| info | Additive. | A new tool. A new optional parameter. A wider type. |
Input and output schemas are compared in opposite directions. A narrower input type breaks callers who send the old values. For output, the risk is the other way: a field that used to be required and may now be missing breaks code that reads it.
$ mcp-master-tester diff -- node smoke-server.js
mcp-master-tester diff · smoke-fixture v0.0.1 · 4 tools · stdio
Compared with mcp-tools.lock.json (4 tools).
breaking find_user parameter "include_deleted": removed, so calls that send it may be rejected
warn find_user description changed (33 → 24 characters): models read it on every request, so check the new text
✖ failed: 1 breaking, 1 warning, 0 info. Failing on: breaking.
If these changes are intended, update the lockfile with "mcp-master-tester snapshot" and commit it.include_deleted parameter and a longer description. When a change is intended, running snapshot again and committing the lockfile records the decision in the pull request.Tool-selection evals
Lint checks how tools are written. eval checks whether a model actually picks the right one. A cases file lists requests a user might make and the tool each should lead to, or null when no tool fits.
tools/call is never sent.- What the model sees: the server's real tool list, a one-line neutral system prompt ("When one of the tools fits the request, call it. When none fits, answer without calling a tool."), and the request. The prompt is kept short so the result reflects the tool list, not the prompt.
- One choice per case: the model may call a tool or answer in text, but only one tool at a time, so there is one choice to grade.
- Grading: a case passes when the model calls the expected tool, or one of a list of acceptable tools, or calls nothing when
expectisnull. When the case listsargs, those values must match (strings ignoring case); other arguments are ignored. A refusal, or running out of tokens before choosing, is an error, not a failure. - Several models:
--modelcan be given more than once. A model writtenopenai:<name>goes through OpenAI's Chat Completions API, or any API compatible with it throughOPENAI_BASE_URL, such as a local Ollama. Tools are converted to that format and the answer converted back, so every model is graded by the same function. - Other servers' tools:
--with other.lock.jsonadds another server's tool list, taken from its lockfile, and runs every case with and without it. Its tools are labelled with the file name, so a pick of the other server's look-alike shows up as such and fails.
$ mcp-master-tester eval --model claude-opus-5-5 --model openai:qwen2:7b -- node smoke-server.js
mcp-master-tester eval · smoke-fixture v0.0.1 · 4 tools · stdio
Models: claude-opus-5-5, openai:qwen2:7b · 3 cases from test/fixtures/smoke-server.evals.json · 6 requests
claude-opus-5-5
pass get_weather What is the weather? Use get_weather with {"city": "Pune"}
pass ping_db Is the database answering? ping_db
pass small talk Thanks, that is all.
3 of 3 passed (100%), 0 failed, 0 errors.
Tokens: 2,068 in, 91 out.
openai:qwen2:7b
pass get_weather What is the weather? Use get_weather with {"city": "Pune"}
pass ping_db Is the database answering? ping_db
pass small talk Thanks, that is all.
3 of 3 passed (100%), 0 failed, 0 errors.
Tokens: 932 in, 74 out.
Compared:
claude-opus-5-5 3 of 3 passed (100%)
openai:qwen2:7b 3 of 3 passed (100%)
Every run gave the same results.
✔ passed: every run reached 100%. Failing on: fail.Each case is a billed request to the model's provider, and each extra model or --with multiplies them. The API key is read from the environment and never written anywhere. The provider SDKs are optional packages, loaded only by eval.
Time-sensitive tools
An HTTP API can say how old a response is with headers such as Age or Last-Modified. An MCP result has no headers. If a tool returns prices, stock levels or statuses, the only place it can promise to say how old they are is its outputSchema.
lint --time-sensitive <tool> checks that promise for the tools you name:
- error when the tool has no output schema, or no source timestamp (
source_updated_at,updated_at,last_modified,as_ofand similar, at any depth) that is required and can't be null. An optional timestamp is one the server can leave out exactly when it doesn't know. - warn when there's no fetched-at time, so a cached copy can't be told from a fresh read.
- info for a tool you didn't name whose output has fields like
price,statusorstock, as a hint it may belong on the list.
$ mcp-master-tester lint --time-sensitive get_summary -- node smoke-server.js unstructured
mcp-master-tester lint · smoke-fixture v0.0.1 · 1 tool · stdio
error get_summary is time-sensitive but its outputSchema has no source timestamp (when the source last changed the data, such as "source_updated_at" or "as_of"), so a stale result looks current
warn get_summary outputSchema has no fetched-at time (such as "fetched_at"), so a cached copy can't be told from a fresh read
Tool list: ~72 tokens (descriptions ~5, input schemas ~12, output schemas ~29, other ~26)
✖ failed: 1 error, 1 warning, 1 info (add --show-info to list the info findings). Failing on: error.Nothing changes for servers that don't use the option. The check came from people testing agents against bad data, two of whom had written it by hand.
Registry entry check
A server published to the official MCP Registry is described by a server.json. Clients that install from the registry don't read your README: they build the command from that file. For a package, the command is the runner for its type (npx, uvx, docker or dnx), then the runtimeArguments, then the package at its exact version, then the packageArguments, with environment variables from the entry.
The registry validates the file's shape, not whether that command works. The monthly scorecard found popular servers whose entries pass validation and still start the wrong program. registry checks for those mistakes and prints the command each package gives clients:
- Server arguments put in
runtimeArguments, where npx or uvx reads them as the package to run. - A positional argument with only a
valueHint, which clients leave off the command. - A missing or wrong
runtimeHint, a version range instead of an exact version, a name that isn't in reverse-DNS form. - Secrets with literal defaults,
{placeholders}with no value, and remotes over plain http.
$ mcp-master-tester registry server.json
mcp-master-tester registry · io.github.example/demo v1.0.0 · from server.json
error packages[0] demo-mcp "runtimeArguments" go to npx, before the package, so "serve" is read as the package to run (the command is: npx -y serve demo-mcp@1.0.0). Arguments for the server itself belong in "packageArguments".
How a client runs it:
packages[0] demo-mcp npx -y serve demo-mcp@1.0.0
✖ failed: 1 error, 0 warnings, 1 info (add --show-info to list the info findings). Failing on: error.demo-mcp serve, but clients run npx -y serve demo-mcp@1.0.0, which installs and starts an unrelated package called serve.--name io.github.owner/server checks an entry that is already published, fetched from the registry's API. --start goes further and starts each package and remote the way its entry says, and lists its tools. It never runs a command that would start a different package from the one the entry names: that command is reported, not run.
The same code, registry.js, builds the commands the scorecard runs, so the scorecard measures each server exactly the way a client would start it.
GitHub Action
The Action is a thin layer over the command line. action.yml turns its inputs into environment variables, and action/run.mjs turns those into cli.js runs, one per check, each with --format github so findings appear as annotations on the run. It then writes a table to the job summary and sets one output per check: passed, failed, error or skipped.
- uses: simplymanas/mcp-master-tester@v1
with:
command: node dist/index.jschecks left empty it runs lint and the smoke test, adds diff when a lockfile exists, and adds eval when a cases file exists and an API key is set. registry needs no server and runs only when listed.Every check runs even when an earlier one fails, so one run reports everything, and the step fails if any check did. The optional packages (the model SDKs, the tokenizer) are installed only when a check needs them, so a plain lint run stays fast.
The monthly scorecard
On the 1st of each month a workflow in this repository measures the 100 most downloaded servers in the official MCP Registry, plus the servers from the first survey, and publishes the scorecard. It runs other people's packages, so it is split into three jobs, and only the last one can write:
| Job | Does | Can write? |
|---|---|---|
select | Reads the registry and npm and PyPI download counts, and plans the run. | No |
scan | Starts each server inside a container, the way its registry entry says, with no keys. Sends initialize and tools/list (twice, to check the list is stable), nothing else, and measures the list with lint and o200k. | No, and the repository's token isn't passed into the container |
publish | Checks the results, builds the page and its JSON data, and opens a pull request that is reviewed before it goes live. | Yes, but it runs no server |
GitHub sometimes starts a scheduled run hours late. If the month already has a scorecard, published or waiting as a pull request, the scheduled run stops after its first step; a run started by hand always goes ahead.
The scorecard isn't part of the npm package. It uses the package's own code for everything it measures, so its numbers match what lint --tokenizer o200k reports for your server.
Security model
The backend can start any command you type into the stdio form. That is its job, and it is also why it must only ever obey you.
| Threat | What stops it |
|---|---|
| Someone else on your network calls the backend | It listens on 127.0.0.1 only. |
| A website you have open sends requests to the backend | Any request whose Origin isn't the app itself is refused. |
| A hostile hostname that resolves to your machine (DNS rebinding) | Any request whose Host isn't 127.0.0.1 or localhost on the right port is refused. |
| An MCP server sends HTML or script in a name, schema or result | Everything is escaped before display. A Content-Security-Policy blocks inline script and blocks the page from loading or sending anything elsewhere. |
| A token ends up on disk | Secrets stay in memory. Profiles store names, never values. |
| A tool that changes data is called by accident | Tools run only when you press Run. Destructive ones ask first. The smoke test holds back anything not clearly read-only. eval never calls a tool at all. |
An API key for eval leaks | It is read from the environment for the run and never written to a file, the report or the JSON output. |
| A registry entry starts the wrong program | registry --start refuses any command that would run a package other than the one the entry names. |
The fourth row is not theoretical. Version 1.2.1 fixed a case where a number field's minimum reached the page unescaped. The policy header was added in the same release so that one missed escape can no longer run code.
Reference
What your server must do
Each row is something the protocol requires or a model needs, with the way the tester tells you when it's missing.
| Your server should | If it doesn't, you'll see |
|---|---|
| On stdio, write only JSON-RPC to stdout and send logs to stderr | The connection fails or drops, with your stray output in the error. |
Answer initialize and declare the capabilities it really has | An empty Tools tab, or "no logging support" on the log-level control. |
Give every tool a unique name and an inputSchema of type object | Lint errors. |
List required parameters, and define every one it lists | A lint error for an undefined one. An info finding when the list is missing. |
| Describe each tool well enough to choose it, and say when not to | Lint warnings and info findings on descriptions. |
| Set annotations, and set them truthfully | An info finding when absent. A warning when a read-only tool is named like a write. The smoke test skips unmarked tools. |
Return problems as a result with isError: true and a message that says how to fix the call | A "protocol error" badge instead of "tool error". A smoke-test failure. A lint warning for a vague message. |
Return structuredContent that matches any outputSchema it declares | The result is shown with the exact field that didn't match above it, and the smoke test fails the tool. |
| Answer every call, and keep results a reasonable size | A timeout failure. A warning above about 10,000 tokens. |
| Give examples, defaults or enums for required parameters | Info findings in lint. Made-up arguments, and so weaker checks, in the smoke test. |
| Keep the whole tool list a size clients can afford on every request | A warning above about 10,000 tokens, or an error over your own --max-tokens. |
| Change tools on purpose, not by accident | A breaking change or a rewritten description in diff, until the lockfile is updated. |
| Say how old time-sensitive results are | An error from --time-sensitive when the output schema has no required source timestamp. |
| Publish a registry entry that starts the server | An error from registry, with the command clients would really run. |
What it doesn't do
- No browser sign-in. For a remote server that needs OAuth, get a token another way and pass it as a Bearer token or header.
- No sampling and no roots. The tester doesn't declare them, so a server can't ask it to run a model or list folders.
- Form elicitation only. The newer mode where a server sends the user to a URL isn't declared.
- No task-based tools. A tool that must run as a long-lived task is reported as skipped.
- No resource subscriptions. Resources can be listed and read, not watched.
- Tools only, for the automated checks. Resources and prompts are browsed by hand.
- Evals need a model.
evalcalls Anthropic's API, OpenAI's, or one compatible with it, with your key, and each case is billed by the provider. - Token counts are approximate for some models. The o200k count is exact for OpenAI's recent models. Claude's tokenizer isn't published.
registry --startruns npm and PyPI packages and remotes. Docker and NuGet packages are checked but not started.
File map
| File | Lines | Responsibility |
|---|---|---|
cli.js | 916 | Entry point. Starts the backend, or runs lint, smoke, snapshot, diff, eval and registry, including the model API calls. |
server.js | 318 | Sessions, transports, the tap, the event stream, the REST API, the request checks, the output-schema check. |
public/app.js | 1,060 | The page: connection form, lists, results, protocol log, the Lint and Smoke tabs. |
public/forms.js | 72 | Schema to form, with all escaping. |
public/config-import.js | 86 | Client config files to profiles, without secret values. |
public/lint.js | 543 | The lint rules, the read-only check, the size count and the freshness check. |
public/smoke.js | 208 | Plan, arguments, judging. |
public/diff.js | 172 | The lockfile format and the breaking-change grades. |
public/evals.js | 216 | Cases, tool conversion for each API, grading, comparing runs. |
public/registry.js | 258 | The server.json checks and the command a client builds from it. |
public/theme.js | 36 | Light and dark theme. |
action/run.mjs | 193 | The GitHub Action: inputs to command-line runs, the job summary and outputs. Not in the npm package. |
scorecard/ | 687 | The monthly scorecard: choose the servers, list their tools in a container, build the page. Not in the npm package. |
test/ | 179 tests: unit tests for every rule file; the REST API and the command line against the reference server and small fixture servers; stand-ins for the model APIs; the Action and the scorecard; a size and dependency budget. |
Everything in public/ except app.js and theme.js is pure functions, with no access to the page or the network. That is what lets the browser, the command line, the Action, the scorecard and the tests share one implementation of each rule.
MCP Master Tester is open source under the MIT licence: github.com/simplymanas/mcp-master-tester. The wire captures and command output on this page come from version 1.13.0, talking over stdio to the reference server (@modelcontextprotocol/server-everything 2026.8.31) and to the project's test fixture server, using MCP protocol version 2025-11-25. For how to use each command, see the docs.