← 返回
未分类 中文

MCP Scaffolder

Scaffolds a complete TypeScript MCP server with folder structure, typed tools, transport config, Claude MCP snippet, and README from a simple description.
从简单描述快速生成完整的 TypeScript MCP 服务器,包含文件夹结构、类型化工具、传输配置、Claude MCP 代码片段和 README 文档。
njengah njengah 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 348
下载
💾 0
安装
1
版本
#latest

概述

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
  1. 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
  1. 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
  1. Claude Code config snippet

Always output a ready-to-paste config block:

For stdio:

{

"mcpServers": {

"": {

"type": "stdio",

"command": "node",

"args": ["/build/index.js"],

"env": { "": "your-value-here" }

}

}

}

For HTTP:

{

"mcpServers": {

"": {

"type": "http",

"url": "http://localhost:3000/mcp"

}

}

}

  1. 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 09:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Docker Essentials

arnarsson
核心 Docker 命令和工作流程,包括容器管理、镜像操作和调试。
★ 38 📥 32,726
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,330
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,184