Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add MathNj/Learn-Flow --skill "mcp-builder"
Install specific skill from multi-skill repository
# Description
Generate MCP (Model Context Protocol) server scaffolding. Use when creating new MCP servers for extending Claude capabilities with custom tools, database queries, file operations, or API integrations.
# SKILL.md
name: mcp-builder
description: Generate MCP (Model Context Protocol) server scaffolding. Use when creating new MCP servers for extending Claude capabilities with custom tools, database queries, file operations, or API integrations.
MCP Builder
Generate MCP (Model Context Protocol) servers and clients.
Overview
Creates MCP server scaffolding with TypeScript, supporting stdio and SSE transports, with tool templates for common operations.
Quick Start
/mcp-builder "Create MCP server for LearnFlow progress tracking"
Generated Structure
mcp-server/
βββ package.json
βββ tsconfig.json
βββ src/
β βββ index.ts
β βββ server.ts
β βββ tools/
β βββ tool1.ts
β βββ tool2.ts
βββ test/
β βββ server.test.ts
βββ README.md
Tool Templates
| Tool Type | Purpose | Example |
|---|---|---|
| Database Query | Execute read-only queries | Get student progress |
| File System | Safe file operations | Read spec files |
| API Proxy | External API integration | GitHub API |
| State | Application state inspection | Service health |
MCP Code Execution Pattern
Built-in token efficiency by default:
// β Inefficient
async function getAllProgress() {
return await db.progress.findMany();
}
// β
Efficient
async function getProgressSummary(studentId: string) {
const data = await db.progress.findMany({ where: { studentId } });
return {
totalTopics: data.length,
mastered: data.filter(p => p.mastery >= 90).length
};
}
Scripts
Run scripts/init.py <server-name> to generate MCP server template.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.