claude-code_mcp_server_architecture · v1.0.0
MCP Server Architecture
Design a Model Context Protocol server for custom AI integrations.
cross-labcreate#mcp#protocol#integration#server
Design an MCP (Model Context Protocol) server for: [YOUR USE CASE] **Integration Goals:** - Data source: [database/API/file system/etc.] - Key operations: [what should the AI be able to do] - Security requirements: [authentication, permissions] Provide a complete design: 1. **Resources** (read-only data exposure) - List resources to expose (URI patterns) - Schema for each resource type - Pagination/filtering strategies 2. **Tools** (actions the AI can take) - Tool definitions with input schemas - Validation requirements - Side effect descriptions 3. **Prompts** (predefined interaction patterns) - Common workflows as prompt templates - Context injection patterns - Dynamic prompt generation 4. **Server Configuration** - Transport (stdio/HTTP/WebSocket) - Authentication approach - Rate limiting strategy 5. **Error Handling** - Error response schemas - Retry guidance for clients - Graceful degradation 6. **TypeScript Implementation Skeleton** - Main server structure - Handler patterns - Type definitions Output as a complete architectural design I can implement.