agentleFS
tleub-ebptleub-ebp/WorkPilot-AI/.agents/skills/mcp-builder/SKILL.md

mcp-builder

Skill4 starsChanged 3 months agoMITView on GitHub

Construire des serveurs MCP (Model Context Protocol) de qualité production qui exposent des APIs/services externes à un agent via des outils bien conçus. À utiliser pour créer un serveur MCP en TypeScript (MCP SDK) ou Python (FastMCP), définir des outils, schémas et évaluations.

187 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 6 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 6 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 11 projects that use this

  • +2 more from Leodorareluctant259

The file

Files
SKILL.md

Construction de Serveurs MCP

La qualité d'un serveur MCP se mesure à la capacité d'un agent à accomplir des tâches réelles avec ses outils. Stack recommandé : TypeScript + MCP SDK, transport Streamable HTTP (JSON stateless) pour le distant, stdio pour le local. Python/FastMCP est une alternative.

Documentation à charger (à la demande)

Ne pas tout charger d'avance — récupérer selon la phase :

  • Spécification MCP : https://modelcontextprotocol.io/sitemap.xml puis la page voulue avec suffixe .md (ex. .../specification/draft.md).
  • TypeScript SDK : https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md
  • Python SDK : https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md

Phase 1 — Recherche & conception

Principes de conception modernes :

  • Couverture vs workflow : en cas de doute, prioriser la couverture complète des endpoints API (l'agent compose lui-même). Ajouter des outils workflow pour les tâches fréquentes.
  • Nommage : noms d'outils clairs, préfixés et orientés action (github_create_issue, github_list_repos).
  • Contexte : outils retournant des données focalisées, avec filtrage/pagination.
  • Erreurs actionnables : chaque message d'erreur guide vers la correction (suggestion + étape suivante).

Étudier l'API cible (endpoints clés, auth, modèles de données) via recherche web / fetch, puis lister les outils à implémenter en commençant par les opérations les plus courantes.

Phase 2 — Implémentation

Infrastructure partagée : client API authentifié · helpers d'erreurs · formatage des réponses (JSON/Markdown) · pagination.

Pour chaque outil :

  • Schéma d'entrée : Zod (TS) / Pydantic (Python), contraintes + descriptions + exemples dans les champs.
  • Schéma de sortie : définir outputSchema et renvoyer structuredContent quand le SDK le permet.
  • Description : résumé concis + paramètres + type de retour.
  • Implémentation : async/await pour l'I/O, erreurs actionnables, pagination.
  • Annotations : readOnlyHint, destructiveHint, idempotentHint, openWorldHint.

Phase 3 — Revue & test

Vérifier : pas de duplication (DRY), gestion d'erreurs cohérente, typage complet, descriptions claires.

  • TypeScript : npm run build, puis tester via npx @modelcontextprotocol/inspector.
  • Python : python -m py_compile server.py, puis MCP Inspector.

Phase 4 — Évaluations

Créer 10 questions vérifiant qu'un LLM peut résoudre des tâches réalistes avec le serveur.

Processus : inspecter les outils → explorer le contenu (opérations read-only) → générer 10 questions → résoudre chacune soi-même pour fixer la réponse attendue.

Chaque question doit être : indépendante, read-only, complexe (plusieurs appels d'outils), réaliste, vérifiable (réponse unique comparable par chaîne) et stable dans le temps.

Format de sortie :

<evaluation>
  <qa_pair>
    <question>…</question>
    <answer>3</answer>
  </qa_pair>
  <!-- 10 paires au total -->
</evaluation>

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.