AI & Integration v1.0.0

mcp-scaffolder

Scaffolds a new MCP server from a one-line description.

njengah 更新于 2026-04-02 1 浏览
下载 SKILL

技能说明

Scaffolds a new MCP server from a one-line description.

使用场景

When the user describes an MCP server they want to build, scaffold it completely.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/mcp-scaffolder
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 18 kB
SKILL.md text/markdown
---
name: mcp-scaffolder
description: Scaffolds a new MCP server from a one-line description. 
  Generates folder structure, typed tool definitions, transport config, 
  claude mcp add snippet, and README with env var documentation. 
  Use when: user says "create an MCP server", "scaffold an MCP server", 
  or "build a new MCP tool for Claude Code".
---

# MCP Scaffolder Skill

When the user describes an MCP server they want to build, scaffold it completely.

## What to Generate

1. Folder structure
   - /src/index.ts        — server entry point
   - /src/tools/          — one file per tool
   - /package.json        — with @modelcontextprotocol/sdk dependency
   - /tsconfig.json       — standard TS config
   - /.env.example        — all required env vars documented
   - /README.md           — setup instructions

2. Server entry point (src/index.ts)
   - Import and register all tools
   - Set transport based on user intent:
     - stdio  → local tools, file system access, CLI utilities
     - HTTP   → remote servers, cloud APIs, services
   - Include server instructions field — used by Claude Code tool search

3. Tool definitions
   - Each tool gets its own file in /src/tools/
   - Include: name, description, inputSchema (zod or JSON Schema)
   - Add JSDoc comments explaining what the tool does and when Claude should call it

4. Claude Code config snippet
   Always output a ready-to-paste config block:

   For stdio:
   {
     "mcpServers": {
       "<server-name>": {
         "type": "stdio",
         "command": "node",
         "args": ["<absolute-path>/build/index.js"],
         "env": { "<ENV_VAR>": "your-value-here" }
       }
     }
   }

   For HTTP:
   {
     "mcpServers": {
       "<server-name>": {
         "type": "http",
         "url": "http://localhost:3000/mcp"
       }
     }
   }

5. README
   - What the server does
   - Prerequisites
   - All env vars with descriptions
   - Build and run instructions
   - How to add to Claude Code

## Rules

- Never use SSE transport — it is deprecated, use HTTP instead
- Always include the server instructions field in the entry point
- Keep tool descriptions specific — Claude Code uses these for tool search
- Flag any required env vars in .env.example with a comment explaining what they are for
- Use TypeScript by default unless user specifies otherwise

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。