/engineering-advanced-skills:mcp-server-builderfrom engineering-advanced-skills
Builds MCP servers from OpenAPI specs or scratch, with tool/schema linting and TypeScript or Python scaffolds. Use when exposing an API to AI agents or reviewing MCP tool definitions.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The agent designs and ships MCP (Model Context Protocol) servers whose tools an agent picks correctly and calls safely: verb_noun names, descriptions that say when to use the tool and what it returns, typed inputs, paginated lists and gated destructive actions. Schema quality is the main lever: the model chooses tools from names and descriptions alone.
Before building the server, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
@modelcontextprotocol/sdk) or Python (mcp).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
openapi_converter.py spec.json -o tools.json (add --filter GET,POST, --exclude '/internal/*', --prefix). From scratch: write {"tools": [...]} by hand using references/tool-schema-design.md.tool_linter.py tools.json. Fix every error; rewrite descriptions to say when to use the tool and what it returns.tool_schema_linter.py tools.json: add pagination to list tools, a confirm or dry_run gate to destructive ones, arrays where calls are naturally repeated.server_scaffolder.py tools.json --lang typescript|python --output <dir>, then implement each handler from references/server-implementation.md.--strict, every handler returns structured errors instead of throwing, and the Inspector lists and calls every tool.# from engineering/mcp-server-builder/; write output outside the repo
OUT=$(mktemp -d)
python3 scripts/openapi_converter.py assets/sample_openapi.json --prefix tasks -o "$OUT/tools.json"
python3 scripts/tool_linter.py "$OUT/tools.json" # exit 0: no errors, 2 usage-guidance warnings
python3 scripts/tool_schema_linter.py "$OUT/tools.json" # exit 1: delete has no confirm gate
python3 scripts/server_scaffolder.py "$OUT/tools.json" --lang python --output "$OUT/server" --dry-run
python3 scripts/tool_linter.py assets/flawed_tools.json # exit 1: camelCase name, 1-char description, untyped property
python3 scripts/tool_schema_linter.py assets/flawed_tools.json # exit 1: unpaginated list, ungated delete
| Tool | Purpose | Key flags | Exit codes |
|---|---|---|---|
scripts/openapi_converter.py | OpenAPI 3.x / Swagger 2.0 JSON to MCP tool definitions ({"tools": [...]}), operationId to snake_case | spec, -o, --prefix, --filter GET,POST, --exclude GLOB, --no-source, --json | 0 converted; 2 missing or invalid spec |
scripts/tool_linter.py | Naming (snake_case, verb_noun), description length and guidance, property types and descriptions | file, --path, --strict, --json | 0 no errors (or no warnings with --strict); 1 issues; 2 unreadable input |
scripts/tool_schema_linter.py | Interaction smells: list tools without pagination, destructive tools without a gate, chatty single-item tools, unconstrained inputs | file, --path, --strict, --json | 0 no warnings; 1 smells found; 2 unreadable input |
scripts/server_scaffolder.py | TypeScript or Python server skeleton with one handler stub per tool | config, --lang, --output, --dry-run, --json | 0 generated; 2 invalid config |
The linters accept a bare tool, a tool array, or a {"tools": [...]} wrapper (converter output); use --path for other nesting. The scaffolder takes the converter output directly and derives the server name from the spec title when name is absent. Run both linters: they check different things.
Mistake: Shipping the converter output as is. Why it matters: OpenAPI summaries describe endpoints, not when an agent should call them, so the model picks the wrong tool or none. Instead: Rewrite each description with a "Use when ..." clause and what it returns, then re-lint.
Mistake: A list tool that returns everything. Why it matters: Unbounded results flood the context window and get truncated mid-record. Instead: Cap the page size, return a cursor, and document both in the description.
Mistake: Destructive tools that act on the first call.
Why it matters: The agent calls tools speculatively; an ungated delete turns a misunderstanding into data loss.
Instead: Add confirm or dry_run defaulting to the safe path, and say in the description that the action cannot be undone.
navigate, click, read_page), return observable state as text first, and gate irreversible actions. For the automation engine see engineering/computer-use-automation.| File | Purpose |
|---|---|
scripts/openapi_converter.py | OpenAPI to MCP tool definitions |
scripts/tool_linter.py | Naming, description and schema linter |
scripts/tool_schema_linter.py | Interaction-design linter |
scripts/server_scaffolder.py | Server skeleton generator |
assets/sample_openapi.json | Three-operation Tasks API (list, create, delete) |
assets/flawed_tools.json | Deliberately weak tool definitions; both linters exit 1 |
Covers: tool, resource and prompt design; TypeScript and Python servers; transport choice and client configuration; OpenAPI conversion; schema and interaction linting.
Does not cover:
engineering/agent-workflow-designer).engineering/agent-designer).engineering/api-design-reviewer).engineering/ci-cd-pipeline-builder).assets/flawed_tools.json (opens in a new tab)assets/sample_openapi.json (opens in a new tab)references/server-implementation.md (opens in a new tab)references/streaming-batch-and-computer-use.md (opens in a new tab)references/testing-and-troubleshooting.md (opens in a new tab)references/tool-schema-design.md (opens in a new tab)references/transport-and-deployment.md (opens in a new tab)scripts/openapi_converter.py (opens in a new tab)scripts/server_scaffolder.py (opens in a new tab)scripts/tool_linter.py (opens in a new tab)scripts/tool_schema_linter.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skillsOther plugins' skills for the same job