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.

2runtime dependencies 4,078lines of JavaScript 179automated tests 0build steps

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.

Browser tabapp.jsscreen and stateforms.jsschema to formlint.jsthe rulessmoke.jsplan and judgeplain JavaScript, no frameworkLocal backend (Node)server.jsExpressSessionone per connectionSDK Clientspeaks MCPtapcopies every framelistens on 127.0.0.1 onlyYour MCP servertoolsfunctions to callresourcesdata to readpromptsmessage templatesa child process, or a URLRESTeventsJSON-RPCCommand linecli.jssix commandsJSON-RPCsame SDK Client, no browsersame rule filesfrom public/GitHub Actionaction/run.mjsrunsModel APIAnthropic, or OpenAI-compatibleeval only
The parts and what flows between them. Solid arrows are requests and replies. The dashed arrow is a one-way event stream that copies every protocol message to the page. The command line reaches the server through the same client and imports the same rule files as the page. Only 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:

KindWhat it isWho decides to use itMethods
ToolsFunctions with typed arguments: search, create a ticket, run a queryThe modeltools/list tools/call
ResourcesData addressed by a URI: a file, a row, a documentThe applicationresources/list resources/templates/list resources/read
PromptsMessage templates with argumentsThe userprompts/list prompts/get

Everything travels as JSON-RPC 2.0, which has only three message shapes:

ShapeHasMeaning
Requestid, method, paramsDo this and answer me. The id ties the answer to the question.
Responsethe same id, and either result or errorThe answer to exactly one request.
Notificationmethod, params, no idFor 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.

Clientthe tester, or an AI appMCP serveryour codeHANDSHAKEinitializeprotocolVersion, capabilities, clientInforesultprotocolVersion, capabilities, serverInfo, instructionsnotifications/initializeda notification: no id, so no replyDISCOVERY, ONCE PER CAPABILITY THE SERVER DECLAREDtools/listalso resources/list, resources/templates/list, prompts/listresulttools[ name, description, inputSchema, annotations ], nextCursorUSEtools/callname, argumentsnotifications/progressoptional, while the tool worksresultcontent[], structuredContent, isErrorAT ANY TIMEnotifications/tools/list_changedthe client lists againelicitation/createthe server asks the user a questionresultaction: accept, decline or cancelping
The order of an MCP session. Solid arrows are requests and their responses. Dashed arrows are notifications, which get no reply.

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.

CLIENT → SERVER
{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-11-25",
    "capabilities": {"elicitation": {}},
    "clientInfo": {
      "name": "mcp-master-tester",
      "version": "1.13.0"
    }
  }
}
SERVER → CLIENT
{
  "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 byCapabilityWhat it allows
Servertoolstools/list and tools/call. With listChanged, the server may announce that the list changed.
ServerresourcesListing and reading resources. With subscribe, the client may ask to be told when one changes.
Serverpromptsprompts/list and prompts/get.
ServerloggingThe client may set a log level; the server sends notifications/message.
ServertasksSome 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.
ClientelicitationThe server may ask the user for input. The tester's page declares this. Its command line declares nothing.
Clientsampling, rootsThe 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.

The testerclientMCP serverSTDIO: THE TESTER STARTS THE SERVER AS A CHILD PROCESSstdinone JSON message per linestdoutone JSON message per line, and nothing elsestderrfree text: logs and crash outputSTREAMABLE HTTP: ONE URL, SUCH AS HTTPS://HOST/MCPPOST /mcpone message; header Mcp-Session-Id after the handshake200 application/jsonor text/event-stream carrying several messagesGET /mcpoptional: a stream for messages the server startsHTTP + SSE: THE OLDER DESIGN, TWO URLSGET /sseopens a stream that stays openevent: endpointthe URL to post to; every reply then arrives on this streamPOST <that endpoint>one message
The same JSON-RPC messages over three carriers. Dashed arrows mark what is optional or informal: stderr text, the extra stream, and the legacy endpoint announcement.
  • 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.log there 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-Id header 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"}
}
FieldPurposeWhat the tester does with it
nameHow the tool is called. Must be unique on the server.Lint checks uniqueness, allowed characters, naming style, and names a model could mix up.
descriptionThe 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.
inputSchemaA JSON Schema of type object describing the arguments.The page builds the form from it. The smoke test builds arguments from it.
outputSchemaOptional. Promises the shape of structuredContent.Every result is checked against it. A mismatch is reported as a failure.
annotationsHints 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.
executionWhether 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

HintMeansIf absent, assume
readOnlyHintThe tool changes nothing.false: it may change things
destructiveHintIts changes can destroy data. Only meaningful when not read-only.true
idempotentHintCalling it twice with the same arguments does nothing more than calling it once.false
openWorldHintIt 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.

CLIENT → SERVER
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "get-sum",
    "arguments": {"a": 19, "b": 23},
    "_meta": {"progressToken": 2}
  }
}
SERVER → CLIENT
{
  "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.

A TOOL ERROR: A NORMAL RESULT WITH isError
{
  "jsonrpc": "2.0",
  "id": 4,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "MCP error -32602: Tool nope not found"
      }
    ],
    "isError": true
  }
}
The call worked; the tool is reporting a problem. The model reads the text and can try again with better arguments. Use this for anything the caller could fix.
A PROTOCOL ERROR: NO RESULT AT ALL
{
  "jsonrpc": "2.0",
  "id": 2,
  "error": {
    "code": -32603,
    "message": "MCP error -32603: TypeError: stats is undefined"
  }
}
The request itself failed. Applications usually treat this as a broken call, and the model may never see the message. An uncaught exception in a handler ends up here.
CodeNameTypical cause
-32700Parse errorThe message wasn't valid JSON. On stdio, often a log line printed to stdout.
-32600Invalid requestValid JSON, but not a valid JSON-RPC message.
-32601Method not foundThe server doesn't implement that method.
-32602Invalid paramsWrong or missing arguments, or an unknown tool name.
-32603Internal errorThe handler threw.
-32000Connection closedRaised by the client library when the server goes away mid-request.
-32001Request timed outRaised 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.

Browserapp.jsBackendserver.js + SDK ClientMCP serverPOST /api/sessions/:id/tools/call{ name, arguments, timeout }start the timertools/call id 2event: rpc outnotifications/progressevent: progressresult id 2event: rpc incheck structuredContent against outputSchema200 { ok, ms, result }draw the result; the log shows both frames
The path of one call. Solid arrows are the call and its answer. Dashed arrows are the event stream that feeds the protocol log, and the server's optional progress updates.

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."
      }
    ]
  }
}
  • ms is 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 sets authRequired, 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 an outputSchemaError beside 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);
      });
    },
  });
}
Because the copy is taken at the transport, the log shows what was actually on the wire, including messages the client library sends by itself, such as the handshake and cancellations.

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 typeSourceWhat the page does
rpcThe tap, for every message in either directionAdds a log row. Pairs a response with its request by id to show the time between them.
stderrA stdio server's standard errorAdds a log row.
lognotifications/message from the serverAdds a log row with its level.
progressnotifications/progressUpdates the Run button: "Running… 3/5".
list_changedThe server announced a changed listFetches that list again and re-runs lint.
elicitThe server asked the user somethingShows a form. See below.
closedThe connection endedMarks 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:

Browserapp.jsBackendserver.jsMCP serverelicitation/create id 7message, requestedSchemakeep an unresolved promise under reqIdevent: elicit{ reqId, params }show a form built from requestedSchemaPOST …/elicit/:reqId{ action: "accept", content }resolve the promiseresult id 7{ action: "accept", content }
A server-to-user question. The backend parks the request as an unresolved promise, hands the question to the page over the event stream, and resolves the promise when the page posts the answer. During a smoke test it answers "decline" by itself, so the run doesn't wait for anyone.

The REST API

CallDoes
POST /api/sessionsBuilds the transport, connects, runs the handshake. Returns the session id, server info and capabilities.
DELETE /api/sessions/:idCloses the client, which also stops a stdio server process.
GET /api/sessions/:id/eventsThe event stream.
POST …/tools/list …/tools/callThe tools/* methods. Lists accept a cursor for paging.
POST …/resources/list …/templates …/readThe resources/* methods.
POST …/prompts/list …/prompts/getThe prompts/* methods.
POST …/logging/level …/pinglogging/setLevel and ping.
POST …/elicit/:reqIdThe 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 schemaControlSent as
enum, or oneOf of constantsDropdownThe chosen value, with its original type
an array of enum valuesMulti-selectArray
booleanDropdown: unset, true, falseBoolean, or left out
integer, numberNumber input with minimum and maximumNumber
stringText input. A password field when the name looks secret; a text area when it looks long.String
objects, arrays, unionsA JSON text areaParsed 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.

GroupSeverityExamples
SpecerrorDuplicate tool name. inputSchema or outputSchema not of type object. A required field that isn't defined.
Confusable toolswarnget_user next to getUsers. Two descriptions that say nearly the same thing.
Descriptionswarn infoMissing, 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.
Parameterswarn infoNo 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.
Namingwarn infoA tool that breaks the server's own naming style. Names that aren't snake_case.
Annotationswarn infoNone at all. Marked read-only but named like a write (cancel_booking), or marked read-only and destructive at once.
Sizeerror warn infoA 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.
Freshnesserror warn infoA tool you list as time-sensitive whose output schema can't say how old its data is.
From real callswarnA 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.

for each tool in tools/listLeft out with --skip, or not in the --tool list?yesskipyour choice: not counted as untestednoNamed with --tool, or is --all set?yesnoMarked readOnlyHint: true?noheld backnot marked read-onlyyesNamed like a write, or destructive too?yesheld backthe label is contradictednorun it: build arguments, send tools/calljudge the answerpasswarnfailheld-back tools are reported as untested
What happens to each tool. Amber boxes are tools held back because they may change data. They are never called unless you name them or pass --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:

  1. Arguments you supplied: a file passed with --args, or in the page, the arguments you last ran that tool with.
  2. The schema's own default, first examples entry, const, or first enum value. A boolean is sent as false.
  3. A made-up placeholder: "test", the number 1 moved inside any minimum and maximum, or a value fitting the format such as https://example.com.

The test remembers which of the three it used, because that changes the verdict.

How an answer is judged

What came backArguments were made upArguments came from you or the schema
A normal resultpasspass
A result over about 10,000 tokenswarnwarn
An error result (isError)warnfail
Protocol error -32602, invalid paramswarnfail
Any other protocol errorfailfail
A result that breaks the outputSchemafailfail
No answer before the timeoutfailfail
The connection closedfailfail

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.

CommandDoes
npx mcp-master-testerStarts the page at http://127.0.0.1:6280. Set PORT to change it.
… lint -- node server.jsConnects, lists the tools, runs the lint rules and measures the list.
… smoke -- node server.jsConnects, lists the tools, calls the read-only ones.
… snapshot -- node server.jsSaves the tool list to a lockfile to commit.
… diff -- node server.jsCompares the tool list with the lockfile and grades each change.
… eval -- node server.jsAsks a model which tool it would call for each request in a cases file.
… registry server.jsonChecks a registry entry and the command it gives clients. Needs no server, unless you add --start.
… lint --url https://host/mcpAny 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 codeMeaning
0Passed.
1Findings, failures or changes at or above the --fail-on level.
2The 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.
The reference server, measured. Without a budget, lint warns once the list passes about 10,000 tokens. With --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.

GradeMeansExamples
breakingExisting 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.
warnWorth 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.
infoAdditive.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.
A release that dropped a parameter. The lockfile was edited to play the previous version, which had an optional 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.

Command lineevalMCP serverModel APIClaude or OpenAI-compatibleinitialize, tools/listtools[ name, description, inputSchema ]FOR EACH CASE, ON EACH MODELthe request, the tool list, a neutral system promptthe model may call one tool, or answer in texttool_use get_weather { city: "Pune" }or a text answergrade: expected tool? expected args?tools/call is never sent: nothing runs on the server
One case. The tool list comes from the real server, once. Each case is one request to the model with that list. The model's choice is graded and never carried out: 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 expect is null. When the case lists args, 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: --model can be given more than once. A model written openai:<name> goes through OpenAI's Chat Completions API, or any API compatible with it through OPENAI_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.json adds 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.
The release check for 1.13.0. Claude through Anthropic's API, and qwen2 running locally in Ollama through its OpenAI-compatible API, on the fixture server's three cases. When models disagree, the report lists the cases where they differ, and which tool each one picked instead.

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_of and 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, status or stock, 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.
The most common mistake. The entry meant to run 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.js
The smallest setup. With checks 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:

JobDoesCan write?
selectReads the registry and npm and PyPI download counts, and plans the run.No
scanStarts 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
publishChecks 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.

ThreatWhat stops it
Someone else on your network calls the backendIt listens on 127.0.0.1 only.
A website you have open sends requests to the backendAny 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 resultEverything 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 diskSecrets stay in memory. Profiles store names, never values.
A tool that changes data is called by accidentTools 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 leaksIt 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 programregistry --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 shouldIf it doesn't, you'll see
On stdio, write only JSON-RPC to stdout and send logs to stderrThe connection fails or drops, with your stray output in the error.
Answer initialize and declare the capabilities it really hasAn empty Tools tab, or "no logging support" on the log-level control.
Give every tool a unique name and an inputSchema of type objectLint errors.
List required parameters, and define every one it listsA 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 toLint warnings and info findings on descriptions.
Set annotations, and set them truthfullyAn 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 callA "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 declaresThe 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 sizeA timeout failure. A warning above about 10,000 tokens.
Give examples, defaults or enums for required parametersInfo 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 requestA warning above about 10,000 tokens, or an error over your own --max-tokens.
Change tools on purpose, not by accidentA breaking change or a rewritten description in diff, until the lockfile is updated.
Say how old time-sensitive results areAn error from --time-sensitive when the output schema has no required source timestamp.
Publish a registry entry that starts the serverAn 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. eval calls 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 --start runs npm and PyPI packages and remotes. Docker and NuGet packages are checked but not started.

File map

FileLinesResponsibility
cli.js916Entry point. Starts the backend, or runs lint, smoke, snapshot, diff, eval and registry, including the model API calls.
server.js318Sessions, transports, the tap, the event stream, the REST API, the request checks, the output-schema check.
public/app.js1,060The page: connection form, lists, results, protocol log, the Lint and Smoke tabs.
public/forms.js72Schema to form, with all escaping.
public/config-import.js86Client config files to profiles, without secret values.
public/lint.js543The lint rules, the read-only check, the size count and the freshness check.
public/smoke.js208Plan, arguments, judging.
public/diff.js172The lockfile format and the breaking-change grades.
public/evals.js216Cases, tool conversion for each API, grading, comparing runs.
public/registry.js258The server.json checks and the command a client builds from it.
public/theme.js36Light and dark theme.
action/run.mjs193The GitHub Action: inputs to command-line runs, the job summary and outputs. Not in the npm package.
scorecard/687The 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.