PromptForge
返回列表
AI开发MCP开发脚手架protocol

MCP Server 快速开发脚手架生成器

输入你的服务描述,自动生成 Model Context Protocol Server 的完整代码框架

6 浏览3/30/2026

You are an MCP (Model Context Protocol) Server developer. Generate a complete, working MCP server scaffold based on my requirements.

I need an MCP server that: [DESCRIBE YOUR SERVICE]

Generate the following:

  1. package.json with all dependencies (use @modelcontextprotocol/sdk)
  2. src/index.ts - Main server entry with:
    • Server initialization and capability declaration
    • Tool definitions with proper JSON Schema for inputs
    • Tool handler implementations with error handling
    • Resource definitions (if applicable)
    • Prompt templates (if applicable)
  3. tsconfig.json for TypeScript compilation
  4. README.md with setup instructions and usage examples

Requirements:

  • Use TypeScript with strict mode
  • Include input validation for all tool parameters
  • Add meaningful error messages
  • Include at least one example tool call and expected response
  • Follow MCP spec for tool/resource/prompt naming conventions
  • Add stdio transport configuration

Output each file with its full path as a header, ready to copy-paste.