Works with the AI Agents you already use
mcp server publish gate
A 7-gate pre-flight audit for MCP servers to ensure tool schema validity, agent-readability, and runtime safety.
$14.99
mcp server publish gate
Example session with this skill installed
Audit my MCP server at /src/payments-server. I have a 'transfer' tool and a 'balance' tool. I want to publish this to Smithery next week.
- Read your context and instructions
- Compiled the mcp server publish
I have completed the 7-gate pre-flight audit for the payments-server. The server is currently unfit for publishing due to protocol-breaking transport issues and missing safety annotations for financial transactions.
MCP Audit Results: /src/payments-server
| Gate | Status | Findings |
|---|---|---|
| G1: Schema | PASS | Valid inputSchema for all tools; no additionalProperties. |
| G2: Descriptions | WARN | transfer lacks "what it returns" in the description string. |
| G3: Safety | FAIL | transfer tool is missing destructiveHint: true. |
| G4: Secrets | PASS | No hardcoded keys found; .env.example is present. |
| G5: Errors | FAIL | transfer returns Error: 500 instead of a structured explanation. |
| G6: Transport | FAIL | Found console.log("Processing...") in the stdio stream. |
| G7: Rails | WARN | No daily limit or confirm parameter on transfer calls. |
Remediation List (Priority Order)
Protocol Fix: Remove console.log in src/index.ts. All non-protocol output must go to process.stderr to avoid corrupting the JSON-RPC transport.
2. Safety Fix: Add destructiveHint: true to the transfer tool definition in your manifest.
3.
Logic Fix: Update the transfer error handler to return a tool result containing a clear message (e.g., "Insufficient funds: required 50.00, available 10.00").
4.
Clarification: Update the description for balance to explicitly state if it returns current available funds or total ledger balance.
Next steps
- Move all logging to
stderr. - Implement a
confirm: booleanparameter for thetransfertool. - Rerun the audit to verify Gate 3 and Gate 6 compliance.
Connects securely to your tools. The creator never sees your data.
About this skill
Model Context Protocol (MCP) servers often fail in production because agents cannot interpret their tools or because they lack safety guards. This skill provides a rigorous pre-flight audit for MCP servers before they are published to registries like Smithery or deployed to internal teams. It identifies silent protocol failures, ambiguous tool descriptions, and security risks.
What it does
- Schema validation checks that
inputSchemauses narrow types and explicit properties while blockingadditionalPropertiesinjection surfaces. - Agent clarity scoring evaluates tool descriptions to ensure they specify exact triggers and return values for LLM reasoning.
- Safety annotation audit identifies missing
destructiveHintorreadOnlyHintflags on sensitive operations like payments or deletions. - Transport verification scans for
console.logstatements instdiopaths that corrupt the protocol and cause silent agent crashes. - Error path analysis flags tools that return empty objects or stack traces instead of actionable instructions for agent self-correction.
How it works
- Point the skill to your server manifest (
package.json) and tool implementation source files. - The agent executes a 7-gate audit covering schema, descriptions, safety, secrets, errors, transport, and runtime rails.
- It generates a status table showing PASS/FAIL/WARN for every gate across your toolset.
- You receive a prioritized remediation list ordered by severity to fix before publishing.
Frameworks & tools
Works with any MCP server implementation, specifically targeting stdio and sse transport layers. Supports Node.js, Python, and Go implementations following the Model Context Protocol specification.
Why this beats prompting it yourself
Generic prompts miss the subtle technicalities of the MCP spec, such as how stray stdout logs break the JSON-RPC framing or why agents ignore tools with broad schemas. This skill uses a structured 7-gate framework developed specifically for agentic interoperability and safety.
Use cases
- Auditing a server before submitting to the Smithery or Agensi registries.
- Debugging a tool that an agent refuses to call or calls with the wrong parameters.
- Performing a safety review on inherited code before granting an agent write access.
- Hardening a wrapper for a paid API to prevent unexpected token usage or costs.
Known limitations
Performs static analysis of code and manifests only. It does not execute tools against live environments or verify third-party API credentials. Audit results for registry requirements are advisory.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed 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 scanned
Verified clean 4 days ago
- Passed all security checks, Safe to install