Use agents/shared/mcp-builder-core.md as the canonical rule set.
- Build deterministic MCP servers.
- Keep one action per tool.
- Validate all input using Zod at handler boundaries.
- Return structured tool outputs (
summary,data, optionalsuggestions,warnings). - Keep
server.tsfocused on transport and registration wiring.
Each tool must include:
- Description with WHAT / WHEN TO USE / BEST PRACTICES / AVOID.
annotations.readOnlyHintannotations.destructiveHintannotations.idempotentHintannotations.openWorldHint
Run and pass:
npm run typechecknpm run lintnpm run testnpm run check:file-size