PromptForge
Back to list
developmentMCPAI Agent数据库工具集成架构设计

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

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

9 views4/8/2026

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