Skip to content
Back to skills

Mcp Smithy

ASecurity

Use when building an MCP server for a Mercury session and proving its tool contract. Not for configuring an existing server.

  • 36 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 22, 2026
ai-agentspythondebugging

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add Whq02/MercuryCLI --skill mcp-smithy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mcp Smithy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mcp Smithy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/whq02-mcp-smithy/badge)](https://www.skillsdirectory.com/skills/whq02-mcp-smithy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mcp-smithy
description: Use when building an MCP server for a Mercury session and proving its tool contract. Not for configuring an existing server.
argument-hint: "<purpose> [stdio|http] [python]"
---
# MCP smithy

Define each tool's trigger, input schema, output and failure modes. Check the installed MCP SDK version before choosing imports or transports (`src/integrations/mcp-shapes/sdk.ts` owns Mercury's integration, CODE inspected 2026-11-13).

Match protocol era to the client. **LIVE page read 2026-11-04:** [versioning](https://modelcontextprotocol.io/specification/2026-07-28/basic/versioning) separates 2026-07-28+ per-request metadata and `server/discover` from <=2025-11-25 `initialize`. Prove the supported era (plus transport fallback when dual-era support is needed; a modern version error alone does not justify fallback) and keep legacy `initialize` where Mercury requires it.

Transports & safety (**LIVE pages read 2026-11-04:** [stdio](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/stdio), [Streamable HTTP](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http)):
- Local `stdio`: write logs to `stderr`, never `stdout`.
- Streamable HTTP: enforce auth and `Origin` validation; validate `Host` as hardening (not a spec MUST).
- Annotations never grant permissions; never include credentials in returned content.

Test with the SDK client (`tools/list` + real calls), covering malformed input, handler failure, cancellation and partial results as relevant. Validate `structuredContent` against `outputSchema`, separate `isError` from protocol/transport faults, and use raw framing probes only for transport debugging.

Register only when asked, in the agreed scope: `mercury mcp add <name> --scope project -- <command> [args]` or `mercury mcp add <name> <url> --transport http --scope project`. After operator approval, verify Mercury's discovered schema and a harmless call, reporting session integration separately from SDK tests and noting any unsupported era.

Files in this skill

  • SKILL.md2.3 KB
  • references/typescript-v2.md1.7 KB
  • scripts/mcp_probe.mjs6.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.