mcp-smithy
Use when building an MCP server for a Mercury session and proving its tool contract. Not for configuring an existing server.
- License 许可
- Apache-2.0
- 所属仓库
- Whq02/MercuryCLI
- 最近更新
- 2026-11-12
- Stars
- ★ 31
- Forks
- 3
01 前言 Front Matter
- 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]
03 SKILL.md 正文
MCP smithy
Define the operation's selection, inputs, output and failure. Read the installed SDK/version before choosing imports or transport APIs. Mercury's integration owner is src/services/mcp/sdk.ts; do not assume a recipe from another SDK generation works here.
Choose the protocol era with the client. LIVE page read 2026-11-04: versioning distinguishes modern 2026-07-28+ per-request metadata and server/discover from legacy 2025-11-25-and-earlier initialize. Prove the era actually supported, including transport-specific fallback when dual-era interoperability is required; a modern version error is not by itself a reason to fall back. Keep legacy initialize coverage where Mercury interoperability needs it.
Local stdio sends logs to stderr, never protocol stdout. Remote Streamable HTTP needs authentication and Origin validation; validate Host as hardening, not as an invented spec MUST. LIVE pages read 2026-11-04: stdio, HTTP. Annotations do not authorise effects; keep credentials outside returned content.
Prefer the SDK client for discovery and a real call. Select malformed input, handler failure, cancellation and partial-result cases by the tool's effects. Validate structuredContent against advertised outputSchema; distinguish isError from protocol/transport failure. Use raw framing probes only when diagnosing that boundary.
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 invocation. Report that integration evidence separately from SDK/unit success and any unsupported era.
04 同仓库更多 Skills
skill-forge
Use when writing or fixing a Mercury SKILL.md and its discovery rules. Not for /skillify session capture or extension packaging.
research
Use when researching papers or a document corpus and producing a cited report with document deliverables. Not for a quick factual lookup or editing application code.
provider-apis
Use when building or changing a Mercury model-provider road, or choosing its request shapes, streaming, tools, caching or usage reader. Not for account sign-in, choosing a model in the UI or unrelated SDKs.
image-generation
暂无简介
extension-maker
Use when building or repairing a Mercury extension or catalogue. Not for installing or approving one for the operator.
photocraft
Use when editing a PhotoCraft image, layers or selection, or saving/exporting its document. Not for video editing, a photo library, or installing an unrelated app.