MCP Server Development Patterns and Best Practices
Guidelines for designing and implementing MCP servers with TypeScript, focusing on protocol compliance, service architecture, and extensibility.
zod for all input/output validation. Define schemas for requests, responses, and errors. Validate at the transport boundary.tests/ and cover protocol, service, and transport logic.console.log for STDIO servers; use structured logging and log levels.run or execute method. Accept validated input, return structured output.zod. Validate all tool calls at runtime.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer