MCP Server Smoke-Test Kit

    by LINH RATHHENRY

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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

    CheckStatusDetails
    initializePASSProtocol 2025-03-26 confirmed.
    initialized_notificationPASSServer survived notification.
    tools_listPASS4 tools found with valid schemas.
    valid_callPASSTool get_weather responded successfully.
    unknown_toolPASSReturned code -32601 for bogus_tool.
    malformed_argsFAILServer crashed on type mismatch in city field.
    stdout_purityPASSClean JSON-RPC stream.
    canary_leakPASSToken MY_API_KEY_123 not detected.
    clean_exitFAILServer 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/catch blocks to return isError: true instead of crashing.
    • Add an EOF listener to the server transport to ensure clean shutdown.
    • Re-run with --html report.html for a detailed trace of the JSON-RPC frames.

    report.html

    PDF · document

    Generated

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables
    Listed9 days ago
    Updated8 days ago

    What's inside

    Creator

    LINH RATHHENRY

    LINH RATHHENRY

    7 skills on Agensi

    Frequently Asked Questions

    This skill identifies protocol-breaking issues such as 'dirty' stdout streams (stray print statements), improper JSON-RPC handshake sequences, and security vulnerabilities like echoing environment variables in error messages.

    The skill is transport-agnostic for the server's language, meaning it works with any MCP server written in Python, Node.js, Go, or compiled binaries as long as they utilize the stdio transport.

    Yes, the test harness is designed for automation; it provides a clean exit code (non-zero on failure) and generates Markdown/HTML reports, making it easy to integrate into GitHub Actions or other CI/CD pipelines.

    Currently, the skill focuses on the standard stdio transport layer and the 2025-03-26 protocol revision; it does not currently support HTTP/SSE (Server-Sent Events) transports.

    While the tool automatically tests the first available tool for resilience, you can provide an optional `--args-file` to supply specific, known-good inputs for more complex functional verification.

    You receive the full test harness package, including the CLI execution tool and the reporting engine, ready to run against your local server builds.

    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.