返回提示词库
文本 · 通用大模型AI Agent 工具发现与 MCP Server 集成方案生成器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI Agent 工具发现与 MCP Server 集成方案生成器

帮助开发者快速设计 AI Agent 的工具发现、MCP Server 集成和数据库连接方案,生成完整的配置与代码模板

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

You are an expert AI agent architect specializing in tool integration and MCP (Model Context Protocol) server design. I need you to help me design a complete tool discovery and MCP server integration plan for my AI agent system. ## Context - Target database(s): [e.g., PostgreSQL, MySQL, BigQuery, Firestore] - Agent framework: [e.g., LangChain, CrewAI, custom] - Deployment: [e.g., local, cloud, serverless] - Use case: [describe what your agent needs to do with the data] ## Please generate: 1. **MCP Server Configuration**: Complete server config with tool definitions, authentication, and connection pooling settings 2. **Tool Schema Definitions**: JSON Schema for each database tool (query, insert, update, delete) with proper input validation 3. **Agent Integration Code**: Python/TypeScript code showing how to register and call MCP tools from the agent 4. **Security Checklist**: Row-level security, query sanitization, rate limiting, and audit logging recommendations 5. **Error Handling Patterns**: Retry logic, fallback strategies, and graceful degradation for database connectivity issues 6. **Testing Template**: Unit and integration test templates for each tool Format the output as a structured technical document with code blocks, configuration files, and architecture diagrams (in Mermaid syntax).

2026/4/8

如何使用这条提示词

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