Links - Model Context Protocol: https://modelcontextprotocol.io/ - mcp-handler (HTTP): https://www.npmjs.com/package/mcp-handler - Reference implementation (Roll Dice): https://github.com/gocallum/rolldice-mcpserver - Claude Desktop + mcp-remote bridge: https://www.npmjs.com/package/mcp-remote Folder Structure (Next.js App Router) Goal: Keep minimal. Put logic + Zod schemas in so both the MCP handler and server actions share a single source of truth. Shared Zod Schema + Tool Definition Reusable Server Actions (Web UI + Tests) Server actions call the same logic as the MCP handler and power theβ¦