test

A command for testing MCP servers, which are services that let AI tools access capabilities through a standard protocol. It can check connectivity, create test scenarios from server capabilities, run them, and manage them locally or on pmcp.run.

In plain words
What is it for?
Use it to check a server’s connection and capabilities, generate or run test scenarios, and upload, download, or list scenarios.
Why use it?
It gives you one place to verify that an MCP server responds correctly and to test its available operations. This makes basic connection checks and repeatable scenario testing easier.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/paiml/rust-mcp-sdk/test
Clone the repo
git clone --depth 1 https://github.com/paiml/rust-mcp-sdk
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,231 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01231
Opus 5 $0.00000 $0.00616
Sonnet 5 $0.00000 $0.00246
Haiku 4.5 $0.00000 $0.00123

Measured 2d ago against content hash 402dbc5a8927, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cargo-pmcp/docs/commands/test.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cargo pmcp test

Test MCP servers with mcp-tester.

Usage

cargo pmcp test <SUBCOMMAND>

Description

Run tests locally, generate scenarios from server capabilities, and manage scenarios on pmcp.run for cloud-based testing.

Subcommands

Subcommand Description
check Quick sanity check of MCP server connectivity
run Run test scenarios against an MCP server
generate Generate test scenarios from server capabilities
upload Upload scenarios to pmcp.run
download Download scenarios from pmcp.run
list List scenarios on pmcp.run

test check

Quick sanity check of an MCP server.

cargo pmcp test check --url <URL> [OPTIONS]

Verifies the server is reachable, responds to the initialize handshake, and reports its capabilities. Fastest way to verify a server is working.

Options

Option Default Description
--url <URL> (required) URL of the MCP server to check
--transport <TYPE> auto-detected Transport type: http, jsonrpc, or stdio
--verbose, -v - Show raw JSON-RPC messages
--timeout <SECS> 30 Connection timeout in seconds

Example

cargo pmcp test check --url http://localhost:3000
cargo pmcp test check --url https://my-server.example.com --verbose

test run

Run test scenarios against an MCP server.

cargo pmcp test run [OPTIONS]

Runs scenarios from the local filesystem against a local or remote server.

Options

Option Default Description
--server <NAME> - Name of the local server to test (uses localhost)
--url <URL> - URL of the server (for remote testing)
--port <PORT> 3000 Port to connect to
--scenarios <PATH> auto-discovered Path to scenario files or directory
--transport <TYPE> auto-detected Transport type: http, jsonrpc, or stdio
--detailed - Show detailed test output

Read the full file on GitHub · 192 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 192 lines · 0 tokens per session scan A 402dbc5a8927

Subscribe to this mod's changes

test is a command published in the GitHub repository paiml/rust-mcp-sdk (53 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,231 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.