MCP Server Smoke-Test Kit
Pre-publish smoke tests for MCP servers: handshake, schemas, bad-input handling, stdout purity, and a canary secret-leak scan — with a pass/fail report.
$12
MCP Server Smoke-Test Kit
Example session with this skill installed
Run a smoke test on my node-based MCP server at dist/index.js and generate a report. I want to check for secret leaks using a canary value 'MY_API_KEY_123'.
- Read your context and instructions
- Compiled the mcp server smoke-test
- Generated the document
I have initiated the MCP smoke test for the server launch command node dist/index.js. The harness performed a full protocol handshake, tested tool execution, and scanned for the provided canary token.
MCP Smoke Test Report: node-server-test
| Check | Status | Details |
|---|---|---|
initialize | PASS | Protocol 2025-03-26 confirmed. |
initialized_notification | PASS | Server survived notification. |
tools_list | PASS | 4 tools found with valid schemas. |
valid_call | PASS | Tool get_weather responded successfully. |
unknown_tool | PASS | Returned code -32601 for bogus_tool. |
malformed_args | FAIL | Server crashed on type mismatch in city field. |
stdout_purity | PASS | Clean JSON-RPC stream. |
canary_leak | PASS | Token MY_API_KEY_123 not detected. |
clean_exit | FAIL | Server hung after stdin EOF. |
Analysis
The server is functional but not resilient. The crash during malformed_args indicates a lack of input validation in your tool handler. Additionally, the clean_exit failure suggests the Node.js process is not listening for process.stdin.on('end') or has active timers keeping the event loop open.
Next steps
- Wrap tool handlers in
try/catchblocks to returnisError: trueinstead of crashing. - Add an EOF listener to the server transport to ensure clean shutdown.
- Re-run with
--html report.htmlfor a detailed trace of the JSON-RPC frames.
report.html
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
A SKILL.md-guided test harness your agent runs before any MCP server ships, and after every tool change. It launches the server over stdio (newline-delimited JSON-RPC 2.0), then checks:
- initialize handshake returns protocolVersion + capabilities
- tools/list: every tool has a name and an object inputSchema
- a valid tools/call on the first listed tool succeeds with schema-derived minimal arguments (enum/default/pattern-aware)
- unknown tools and malformed arguments are rejected gracefully (error or isError — never a crash or hang)
- the server exits cleanly (code 0) on stdin EOF
- stdout carries only JSON-RPC messages — stray log lines fail the stdout-purity check
- no output ever contains the canary secret planted in the server's environment
Output is a Markdown report with evidence per check (HTML with --html) and a 0/1 exit code for CI. Pure Python standard library — no SDK, no dependencies, no Node.js required.
Built for stdio MCP servers (protocol revision 2025-03-26): every tool on your server is listed and schema-checked, and the first listed tool is call-tested with schema-derived arguments. This kit's value is the one-command CI battery, the canary leak check, and zero-dependency Python.
Includes a correct sample server (9/9 PASS), a deliberately broken sample server (fails schema, malformed-args, clean-exit, and canary checks), pre-generated demo reports, and a pytest suite with regression servers. The bundled SKILL.md teaches the agent when to run the kit (before publishing, after every tool change, after runtime upgrades) and how to interpret and fix each failure class.
Supports stdio transport only. Only calls the first tool listed. Protocol revision fixed to 2025-03-26. Does not follow pagination cursors.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.