- Home
- Skills
- Testing & Debugging
- Lint and Smoke-Test Your MCP Server Before Release
More screenshots
Works with the AI Agents you already use
Lint and Smoke-Test Your MCP Server Before Release
Lint Python and TypeScript MCP server source and config, then smoke-test a local stdio server through initialize, tools/list and tools/call before you ship it.
$19
Lint and Smoke-Test Your MCP Server Before Release
Example session with this skill installed
Lint examples/sample_py_mcp_server.py and examples/sample_mcp_config.json, then smoke-test "python3 examples/sample_stdio_server.py" by calling the ping_status tool with {"target":"docs"}. Print the report as text.
- Read your context and instructions
- Compiled the lint and smoke-test
McpAudit: sources=1 (tools=3) | config=sample_mcp_config.json | smoke=PASS | status=FAIL (findings=6)
Findings:
- [config-secret-or-path-risk] sample_mcp_config.json:1: server 'sample-library' references missing script './missing_server.py'
- [config-secret-or-path-risk] sample_mcp_config.json:1: server 'sample-library' env 'SAMPLE_TOKEN' contains a literal credential-like value
- [missing-input-schema] sample_py_mcp_server.py:6: tool 'find_note' has parameters without type annotations
- [missing-tool-annotations] sample_py_mcp_server.py:6: tool 'find_note' has no safety annotations
- [stdout-pollution] sample_py_mcp_server.py:8: print() may corrupt stdio JSON-RPC
- [bloated-tool-description] sample_py_mcp_server.py:16: tool 'long_summary' description is 303 chars (limit: 300)
Smoke: protocol=2024-11-05 | server=sample-stdio-server | tools/list=2 | tools/call=ok | stderr_lines=0
The sample files intentionally contain these issues. The smoke test passed (initialize, tools/list with 2 tools, and the ping_status call), while the lint and config checks reported 6 findings, so the overall status is FAIL.
Next: fix the findings in your own server, then re-run with --strict in CI.
Connects securely to your tools. The creator never sees your data.
About this skill
For engineers building Python or TypeScript MCP servers: catch stdout pollution, missing input schemas and safety annotations, oversized descriptions and risky configuration, then verify initialize, tools/list and an optional tools/call over local stdio before you connect a client. Runs offline with Python's standard library. No API key or network access needed.
What you can check
- Lint Python MCP source (
--source src/server.py): stdout writes, untyped tool parameters, missing safety annotations, and long or missing descriptions, with line numbers. - Lint TypeScript or JavaScript (
--source src/):McpServer.registerTooland olderserver.tooldeclarations, plus stdout logging. - Audit MCP configuration (
--config .mcp.jsonor--config -): server objects, commands, local script paths, and literal credential-like values. - Smoke-test a local server (
--smoke-cmd "python3 server.py"): runs initialize, notifications/initialized, tools/list, and optionally tools/call over stdio JSON-RPC. - Select checks and limits (
--checks,--ignore-check,--max-desc-chars): choose checks and set description, file-count, input-size, and timeout limits. - Report and gate CI (
--format json --output report.json --strict): write JSON, CSV, Markdown, or text; strict mode returns 1 when findings exist, invalid input returns 2.
What is included
- A standard-library Python CLI (
scripts/mcp_server_audit.py) - A working sample stdio server plus Python and TypeScript sample servers and a sample config
- The complete expected output of the first run
- A unittest suite:
python3 -m unittest discover tests
Limits
Static checks do not follow imported constants, dynamic decorators, or runtime-generated tool definitions, so review unresolved registrations manually. The smoke test starts a local process and sends JSON-RPC only to that process; it does not connect to remote HTTP or SSE servers and cannot infer safe arguments for a real external service. Use --smoke-cmd only with a server you own or are authorized to run.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.
Static checks do not follow imported constants, dynamic decorators, or runtime-generated tool definitions, so review unresolved registrations manually. The smoke test starts a local process and sends JSON-RPC only to that process; it does not connect to remote HTTP or SSE servers and cannot infer safe arguments for a real external service. Use --smoke-cmd only with a server you own or are authorized to run.
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 today
- Software
Python 3.9+