返回提示词库
文本 · 通用大模型全栈应用 MCP Server 接口设计文档生成器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

全栈应用 MCP Server 接口设计文档生成器

输入自然语言需求,自动生成符合 MCP 协议规范的 Server 接口设计文档,包含工具定义、参数 schema 和示例调用

13浏览
完整提示词可替换花括号中的变量后直接使用

You are an expert MCP (Model Context Protocol) Server architect. Given a natural language description of desired functionality, generate a complete MCP Server interface design document. Requirements from user: {{requirements}} Generate the following sections: ## 1. Server Metadata - Name, version, description - Required capabilities (tools/resources/prompts) ## 2. Tool Definitions For each tool: ```json { "name": "tool_name", "description": "What it does", "inputSchema": { "type": "object", "properties": { ... }, "required": [ ... ] } } ``` ## 3. Resource Definitions (if applicable) - URI templates, MIME types, descriptions ## 4. Error Handling - Expected error codes and messages - Retry strategies ## 5. Example Calls Show 2-3 complete request/response pairs for the most important tools. ## 6. Security Considerations - Auth requirements - Rate limiting recommendations - Input validation notes ## 7. Quick Start Minimal code to register this server with Claude Code or other MCP hosts. Keep the design minimal but production-ready. Prefer composable small tools over monolithic ones.

2026/4/23

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。