agentleFS
alebgl77alebgl77/claude-inc/skills/mcp-builder/SKILL.md

mcp-builder

Skill21 starsChanged 4 months agoMITView on GitHub

Scaffolds and ships MCP servers in Python (FastMCP) or TypeScript (@modelcontextprotocol/sdk) — tools designed around workflows rather than raw endpoints, with model-guiding schemas and error messages, pagination, a direct-call test harness, and wiring into .mcp.json or claude mcp add. Use when the user says "build an MCP server for X", "wrap this API so Claude can call it", "add a tool to our server", or "connect Claude to our internal service".

  • Reads credentials

186 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • ComposioHQSkill

    codebase-migrate

    Run large codebase migrations and multi-file refactors. Uses the Composio CLI to coordinate issue tracking, batched PRs, and CI verification while the agent executes the transforms locally across hundreds of files.

    Also in 5 projects that use this

  • truongtv22Skill

    Problem-Solving Techniques

    Apply systematic problem-solving techniques for complexity spirals (simplification cascades), innovation blocks (collision-zone thinking), recurring patterns (meta-pattern recognition), assumption constraints (inversion exercise), scale uncertainty (scale game), and dispatch when stuck. Techniques derived from Microsoft Amplifier project patterns adapted for immediate application.

    Also in 5 projects that use this

  • ArogyaReddySkill

    skill-share

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    Also in 26 projects that use this

  • AnthropicSkill

    academy-guide

    Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

    Also in 8 projects that use this

  • +2 more from Leodorareluctant259

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write errors that teach. Each failure states what was wrong and what a valid call looks like — expected date YYYY-MM-DD, got '3/4/25' — …

    line 25
  2. Distinctive:

    Ask: "Wrap our invoicing API so Claude can chase overdue payments."

    line 67

“Common” is measured: kept by at least 6 in 10 of the 170 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MCP Builder — Tool Wright

"Wire up MCP servers"

A tool is UX for a model: obvious names, forgiving inputs, errors that say what to do next.

When to use

  • "Build an MCP server for <API or service>" — GitHub, Jira, a database, an internal REST API
  • "Wrap this API so Claude can call it" / "connect Claude to our ticketing system"
  • Adding, renaming, or hardening tools on an existing server
  • A server's tools confuse the model — vague names, loose schemas, cryptic errors
  • Choosing Python vs TypeScript for a new integration

Workflow

  1. Pick the stack. Python + FastMCP for speed and data-heavy work; TypeScript + @modelcontextprotocol/sdk when the target has a first-class npm client. Match the host repo's language when embedding.
  2. Design around workflows, not endpoints. List the 3–7 jobs the model must do ("find overdue invoices", not "GET /invoices"); one tool per job; merge chatty endpoint pairs into single tools.
  3. Name and specify. verb_noun tool names. Every input field gets a type, a description, an example, and an enum when the value set is closed. Required vs optional is explicit.
  4. Write errors that teach. Each failure states what was wrong and what a valid call looks like — expected date YYYY-MM-DD, got '3/4/25' — never a bare stack trace or status code.
  5. Paginate every list. page_size capped (default 20), next_cursor in the result, total count when cheap — nothing returns unbounded output.
  6. Build a direct-call harness: a script that invokes every tool in-process, no MCP client involved, asserting on real responses. Run until green.
  7. Wire it in — project .mcp.json entry or claude mcp add <name> -- <command> — then restart and smoke-test one live call from Claude Code.
  8. Ship a README: tool list with one-line jobs, auth env vars, config snippet.
  9. Iterate with the consumer: watch Claude use the tools on a real task; rename or re-scope anything it misuses.

Output format

invoice-server/
├── server.py          # FastMCP app — one @mcp.tool per workflow
├── harness.py         # direct-call tests: uv run harness.py
├── pyproject.toml
├── .env.example       # INVOICE_API_TOKEN=
└── README.md          # tools, auth, config snippet

TypeScript variant: src/index.ts + tsconfig.json; wire with "command": "node", "args": ["dist/index.js"]

.mcp.json:
{
  "mcpServers": {
    "invoice-server": {
      "command": "uv",
      "args": ["run", "--directory", "./invoice-server", "server.py"],
      "env": { "INVOICE_API_TOKEN": "${INVOICE_API_TOKEN}" }
    }
  }
}

Quality bar

  • Tools map to jobs-to-be-done, not a 1:1 mirror of API endpoints
  • Every input field has a description and an example; closed sets use enums
  • Error messages tell the model how to correct the call
  • All list tools paginate with a hard cap; nothing returns unbounded results
  • Harness exercises every tool and passes before the server touches .mcp.json
  • One live call verified from Claude Code after wiring

Example

Ask: "Wrap our invoicing API so Claude can chase overdue payments."

Produced: invoice-server/ with three tools — find_overdue_invoices (paginated, days_overdue filter), get_invoice (detail plus payment history), draft_reminder (returns email text, never sends) — plus the .mcp.json entry above and a README.

Harness run: uv run harness.py → 6 assertions passed; first live call from Claude Code returned 12 overdue invoices.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.