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

MCP Server Smoke-Test Kit is a paid AI agent skill on Agensi by LINH RATHHENRY, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [LINH RATHHENRY](https://www.agensi.io/creators/linh-rathhenry)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-server-smoke-test-kit
- Tags: llm-ops, testing, mcp, json-rpc, testing-automation, python, node-js

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

## Requires

- Python

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MCP Server Smoke-Test Kit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific protocol errors does the MCP Smoke Test catch that manual testing might miss?

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.

### Is this tool compatible with MCP servers written in languages other than Python?

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.

### Can I use the MCP Smoke Test as part of my automated CI/CD pipeline?

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.

### Does this support testing servers that communicate via SSE or other network transports?

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.

### How do I test tools that require specific, complex input arguments?

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.

### What is included in the purchase of this skill?

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

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
