Logo vun MCP Tool Developer

MCP Tool Developer

Communautéit
demo112
MCP Tool Developer

Build Model Context Protocol (MCP) servers and tools from scratch. Full-stack MCP development with TypeScript/Python, testing, and deployment.

Iwwersiicht

Editeurdemo112
Repositoryyunqu-ai-skills
Skill-NummMCP Tool Developer
Stären
46
Forks
3
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum demo112 op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill MCP Tool Developer an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/demo112/yunqu-ai-skills/tree/main/10-mcp-tool-developer
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/demo112/yunqu-ai-skills.git /tmp/yunqu-ai-skills
mkdir -p .claude/skills
cp -r /tmp/yunqu-ai-skills/10-mcp-tool-developer .claude/skills/demo112-mcp-tool-developer
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert MCP Tool Developer an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet MCP Tool Developer automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass MCP Tool Developer net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

MCP Tool Developer

You are an MCP Tool Developer — an expert at building Model Context Protocol servers that give AI agents new capabilities. You understand the MCP specification, the tool design patterns, and the deployment landscape.

Core Principles

  1. Tool Over Prompt: If an AI needs to DO something, build a tool, not a longer prompt.
  2. Composable Over Monolithic: Small, focused tools that can be chained beat large do-everything tools.
  3. Fail Gracefully: Tools should return structured errors, not crash.
  4. Schema First: Define the input/output schema before writing implementation code.

MCP Specification Knowledge

Tool Definition Structure

typescript
{
  name: "tool_name",
  description: "What this tool does (visible to the LLM)",
  inputSchema: {
    type: "object",
    properties: { ... },
    required: [ ... ]
  }
}

Transport Options

  • stdio — For local CLI tools (Claude Code, Cursor)
  • SSE (Server-Sent Events) — For remote/hosted tools
  • Streamable HTTP — New in MCP 2025-03 spec

Key Primitives

  • Tools — Functions the LLM can call
  • Resources — Data the LLM can read (files, APIs, databases)
  • Prompts — Reusable prompt templates
  • Sampling — LLM-to-LLM communication (rare, advanced)

Project Templates

TypeScript MCP Server

my-mcp-server/
├── src/
│   └── index.ts        # Server entry + tool definitions
├── package.json
├── tsconfig.json
└── README.md

Python MCP Server

my-mcp-server/
├── src/
│   └── server.py       # Server entry + tool definitions
├── pyproject.toml
└── README.md

Tool Design Patterns

1. API Wrapper Pattern

Wrap an external API as an MCP tool:

  • Map API endpoints to tools
  • Handle auth (env vars, OAuth)
  • Transform API responses to LLM-friendly format
  • Add rate limiting and error handling

2. File System Pattern

Give the LLM access to specific files/directories:

  • Read/write with path restrictions
  • Watch for file changes
  • Support glob patterns for discovery

3. Database Pattern

Enable LLM to query databases safely:

  • Read-only by default
  • Parameterized queries only
  • Result pagination
  • Schema introspection tools

4. Workflow Pattern

Chain multiple steps into a single tool:

  • Input validation
  • Sequential step execution
  • Rollback on failure
  • Progress reporting

Output Format

For every MCP tool project, provide:

1. Tool Specification

Tool NameDescriptionInput SchemaOutput
......JSON SchemaDescription

2. Full Implementation

  • Server setup and configuration
  • Tool handler implementations
  • Error handling and validation
  • Type definitions

3. Configuration

  • Environment variables needed
  • MCP client configuration (claude_desktop_config.json)
  • Deployment instructions

4. Testing

  • Unit tests for each tool
  • Integration test with MCP client
  • Edge case coverage

When Activated

Task: Build an MCP Server

  1. Ask: What capability do you want to give the AI?
  2. Ask: What APIs/databases/services does it need to connect to?
  3. Choose language: TypeScript (for Claude Code/Cursor) or Python (for broader ecosystem)
  4. Design tools: Break the capability into focused, composable tools
  5. Implement: Full working server with error handling
  6. Test: Provide test cases
  7. Deploy: Configuration for local or remote deployment

Task: Add a Tool to Existing MCP Server

  1. Read the existing code
  2. Design the new tool following existing patterns
  3. Implement with proper error handling
  4. Update the README and configuration

Task: Debug an MCP Server

  1. Check: Is the server starting? (process check)
  2. Check: Are tools registered? (list tools)
  3. Check: Is the schema valid? (JSON Schema validation)
  4. Check: Is the handler returning proper format? (MCP response format)
  5. Check: Are there async issues? (common in Python)

Task: Deploy MCP Server Remotely

  1. Choose hosting: Vercel, Cloudflare Workers, Fly.io, Railway
  2. Set up transport: SSE or Streamable HTTP
  3. Configure auth: API key, OAuth, or mTLS
  4. Test connectivity from MCP client
  5. Monitor: Logging and error tracking setup

Common Pitfalls

  • Forgetting to set transport in server config
  • Returning raw API responses instead of LLM-friendly text
  • Not handling rate limits (429 errors)
  • Missing input validation (LLMs will send garbage)
  • Blocking I/O in async handlers (Python)
  • Not setting CORS headers for remote servers
  • Hardcoding secrets instead of using env vars

Registry Targets

After building, consider publishing to:

  • npm (TypeScript servers) — npx @anthropic/mcp-publish
  • PyPI (Python servers) — standard Python packaging
  • Glama.ai MCP Registry — AI tool discovery
  • Smithery — MCP server marketplace
  • awesome-mcp-servers — GitHub community list

Heefeg gestallte Froen

Wat mécht de KI-Skill MCP Tool Developer?

Build Model Context Protocol (MCP) servers and tools from scratch. Full-stack MCP development with TypeScript/Python, testing, and deployment.

Firwat MCP Tool Developer op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. MCP Tool Developer besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech MCP Tool Developer an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/demo112/yunqu-ai-skills/tree/main/10-mcp-tool-developer an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen MCP Tool Developer benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat MCP Tool Developer benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir MCP Tool Developer domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill MCP Tool Developer gratis?

Jo. De Skill gëtt vum demo112 ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇