build-mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited build-mcp (Agent Skill) and scored it 96/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 1 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Build a Model Context Protocol (MCP) server the right way, end to end. The defining move of this skill: establish the user's context with AskUserQuestion before building anything, then tailor every phase to that context. A personal local server and a public hosted server share almost no steps past "build", so branch early and commit to the branch.
The Anthropic example-skills:mcp-builder skill is the gold-standard reference for the implementation itself: FastMCP and TypeScript SDK patterns, tool design, input/output schemas, annotations, error handling, and evaluation. Do not duplicate it. This skill is the scope-and-distribution wrapper around it: it decides what to build, for whom, where it runs, and how it ships. When you reach the build phase, invoke example-skills:mcp-builder for the deep implementation guidance and keep this skill's references thin.
Run them in order. The AskUserQuestion answers from Phase 0 gate phases 3, 4, and 5.
Before analyzing or writing anything, branch on the user's context. Ask the audience question first; it is the headline decision and it cascades into everything downstream. Then ask runtime only if it is still ambiguous, and ask language after Analyze (so you can recommend based on the wrapped service).
Question 1 (always, ask first): Audience / scope:
Use AskUserQuestion:
Question 2 (conditional): Where it runs:
Skip for "Just me" (assume local stdio). Ask for org/public when unclear:
Question 3 (after Analyze): Language:
Ask one question at a time. Confirm the resolved context back to the user in one line before proceeding (e.g. "Building a personal, local, Python stdio server that wraps the Linear API"). That resolved tuple drives the branch table below.
| Phase | Just me (local stdio) | My org (local stdio) | My org (hosted HTTP) | Public (package) | Public (hosted HTTP) |
|---|---|---|---|---|---|
| Deploy | claude mcp add --scope user or .mcp.json | Bundle in a Claude Code plugin; ${CLAUDE_PLUGIN_ROOT} paths | Deploy Streamable HTTP endpoint + OAuth/bearer | Publish to PyPI/npm; users run via uvx/npx | Deploy HTTP endpoint; document the URL |
| Scale | N/A (keep it maintainable) | N/A per-user; version the plugin | Real: statelessness, sessions, auth, rate limits | Versioning + backward-compat tool changes | Full: statelessness, auth, rate limits, observability |
| Distribute | Not shared. Stop after registration. | Org marketplace (.claude-plugin/marketplace.json + /plugin install) | Org marketplace entry pointing at the hosted URL | PyPI/npm + MCP registry via mcp-publisher | MCP registry remotes entry + public docs |
If a phase says N/A for the chosen branch, say so explicitly and move on. Do not pad it.
Reference files for each branch:
http/streamable-http naming gotcha.claude mcp add, scopes, .mcp.json, Claude Desktop config, uvx/npx run configs.Load only the references the current branch and phase need. Progressive disclosure.
Understand what you are wrapping before you write tools. Output a short tool plan, then confirm it.
readOnlyHint / destructiveHint annotations later.Deliverable: a numbered list of proposed tools, each with name, one-line purpose, inputs, read/write, and the service call it makes. Confirm with the user before building.
Hand off to the implementation reference for the chosen language, which in turn defers to mcp-builder for depth.
example-skills:mcp-builder for the full FastMCP guide.example-skills:mcp-builder for the full TypeScript SDK guide.Build to the tool plan from Phase 1. Apply mcp-builder's rules: clear tool names, Pydantic/Zod input schemas with descriptions and constraints, structured + human-readable output, pagination with limits, actionable error messages, and tool annotations. Compile and test with the MCP Inspector (npx @modelcontextprotocol/inspector) before moving on. Then write and run mcp-builder's evaluation set: about 10 realistic, read-only, verifiable questions in its XML format, scored with its scripts/evaluation.py harness (e.g. python scripts/evaluation.py -t stdio -c python -a server.py -o report.md evaluation.xml). Do not hand-wave this; a server that the eval can't drive is not done.
Start the server on stdio regardless of final runtime; it is the simplest thing to test locally. Switching to Streamable HTTP is a transport change at the end, not a rewrite (see transports.md).
Branch on the resolved runtime. Read references/deploy-local.md for stdio, references/transports.md for HTTP.
claude mcp add --scope user <name> -- <command> <args> for a personal server across all your projects, or a project-scoped .mcp.json. Verify with claude mcp list and /mcp. For org-local distribution, you do not register by hand on each machine; you bundle into a plugin (Phase 5).Origin header, bind to localhost when local, require auth. Connect with claude mcp add --transport http <name> <url> (add --header "Authorization: Bearer ..." for static tokens, or rely on the OAuth 401/WWW-Authenticate discovery flow). Containerize for repeatable deploys.Only substantive for hosted HTTP servers. For local/personal servers, state plainly that scaling is N/A and that the priority is maintainability and versioning, then skip to Distribute.
For hosted servers, read references/scaling.md and cover: stateless vs session-bearing design (Mcp-Session-Id), horizontal scaling, auth as an OAuth 2.1 resource server (validate token audience, never pass tokens through), least-privilege scopes, rate limiting, timeouts, observability, and protocol-version negotiation. Carry the caveat that there is no Anthropic-published "operate an MCP server" guide; this rests on the MCP spec plus normal infra practice.
The payoff phase. Branch hard on the audience answer. Read references/distribute-marketplace.md.
.claude-plugin/marketplace.json. The plugin ships the server via an mcpServers key in plugin.json or a bundled .mcp.json (use ${CLAUDE_PLUGIN_ROOT} for bundled paths). Colleagues run /plugin marketplace add <org>/<repo> then /plugin install <name>@<marketplace>. For auto-provisioning, add the marketplace to the project's .claude/settings.json under extraKnownMarketplaces. The TechWolf ai-first-toolkit repo is a working example of this layout.mcp-publisher CLI (init -> login github -> publish). For a hosted public server, register a remotes entry pointing at your URL instead of a package. Note the registry is in preview and its schema can change.You can do more than one (e.g. an org plugin and a public package). Distribution paths are additive.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.