MCP Server 快速开发脚手架生成器
输入你的服务描述,自动生成 Model Context Protocol Server 的完整代码框架
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.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。


