/postman:mcp-testingfrom Postman
Checks, debugs, and writes tests for MCP servers using Postman CLI. Handles tool call failures, schema validation, and CI integration via collection runs.
Ships in Postman. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
postman mcp is a scriptable MCP client in the CLI, not only in the app. Each
command connects to one server, does one operation and disconnects;
postman mcp -h has the targets, credential order and exit codes. If the
command is missing, update the CLI rather than conclude Postman cannot do this.
One postman mcp tools call answers whether a tool works. Save the call as an
MCP request (postman collection request add --type mcp) when the check should
outlive the session: collection run repeats it locally and in CI with the same
transport, auth and scripts, so what you proved by hand is what CI checks.
Take expectations from the tool's contract: its inputSchema, outputSchema
and description, which are what a calling agent relies on. A test copied from
the output the tool just returned only proves the server agrees with itself.
tools call checks some schema rules before sending: it blocks a call
that breaks one of them (exit 2) and sends one that breaks another. To test
how the server handles bad input, save the call as a request message, which
is sent as written.inspect: one list method failed, often an optional one such
as resources/templates/list. The rest of the server may be fine.Each MCP request runs its scripts at four points. Put each script where its job belongs:
beforeConnect is setup, before the session opens: a value unique to the
run, or a token.
pm.request.headers.push({ key: "Authorization", value: "Bearer " + pm.variables.get("token") })
sends the token on every call in the session. Headers are a {key, value}
array; assigning an object is silently ignored.afterConnect tests the server itself: pm.response.tools, resources,
prompts, capabilities, server, protocolVersion and instructions. A
request with no message only connects, so it checks what the server
advertises once.afterResponse tests the call: pm.response.result, including isError.afterDisconnect is cleanup, after the session closes, so it can no longer
call the server's tools. Unset the variables a run no longer needs, or remove
data the run created with pm.sendRequest.A collection or folder definition holds the same hooks as mcp:<event>, and
they run for every MCP request under it. That suits auth in
mcp:beforeConnect. A server check or cleanup placed there repeats on every
request, so give those their own request. A run that stops early, as with
--bail, skips a cleanup request; when leftover data matters, clean up from
the CI script after the run.
A collection runs its requests in order, and scripts pass values between them,
so a collection can be a workflow rather than a list of separate checks: create
something, act on it by the id the first call returned, then check the result.
An afterResponse script stores a value with
pm.collectionVariables.set("todoId", ...), and a later request uses it as
{{todoId}}. The values a run captures replace hard-coded fixtures. CI then
repeats the whole flow unattended, and nobody has to rebuild it in test code.
{{id}} fails the JSON check, so a numeric argument cannot be
chained yet.postman mcp login opens a browser for the user and keeps the sign-in on this
machine. CI has neither, so CI for a server that needs auth takes a token from
the CI secret store, set as the request's auth through a variable
(see variables).
Keep three results apart: the server answered, the tool succeeded (no
isError), and the assertions passed. postman mcp exits 1 for an isError
result, but collection run does not: a tool error there fails the run only
when a test checks isError, so every success check in a saved request
asserts it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
20 skills in this plugin
/ai-readinessUse when assessing or improving how well AI agents can discover, call, and recover from errors with an API. Scores an existing Postman collection or OpenAPI spec and turns measured gaps into contract improvements; supports a separate CI readiness threshold. Use for requests such as "is this API ready for agents"./api-discoveryUse when finding an API or owner, integrating a public provider, locating Postman resources, or investigating consumers and change impact across services. Turns discovered contracts and mocks into reusable dependencies and identifies evidence outside the current checkout. Use for requests such as "who consumes this endpoint"./api-documentationUse when defining or improving an API contract, generating documentation from a collection or OpenAPI spec, publishing API docs, or sharing a documentation link. Makes auth, inputs, responses, and examples reusable by callers, tests, and mocks. Use for requests such as "publish API docs"./api-engineerUse when an HTTP API task spans several steps, such as building a new endpoint end to end with its contract, implementation, tests and mocks, or when it is API work and no narrower Postman skill fits. Prefer the narrower Postman skill when one fits. Routes to the relevant Postman skills and keeps contracts, tests and mocks reusable across the work, using organization-wide dependency context. Not for UI-only changes, library or CLI code, or questions about what existing code does. Use for requests such as "implement this endpoint"./api-mockingUse when something needs an API that isn't built or reachable yet (a frontend, client or demo), when other teams should build against your API before it ships, or when asked to mock an API or fake a backend. Finds, builds, runs and publishes a stand-in for one API — a published mock when its owner or a verified publisher has one, otherwise one built from its spec or collection, stateful when callers write then read, answering with real records from a sheet or database. To run your own code against the services it calls, use api-simulation. Covers `postman mock` and `postman dependency add mock`./api-monitoringUse when setting up recurring API checks, running or diagnosing a Postman Monitor, changing its schedule, or reaching private APIs through a self-hosted runner. Reuses collection assertions and their test rows to detect live regressions and traces failures to individual run evidence. Use for requests such as "check this API every minute".npx claudepluginhub postmanlabs/postman-plugin --plugin postmanOther plugins' skills for the same job