Turning Next.js App Router API into an MCP Server for LLM orchestration
NextBlockCMS shared their experience refactoring a Next.js and Supabase CMS AI pipeline into a Model Context Protocol (MCP) Server. This setup allows developers to manage database schemas and JSONB layouts using external tools like Claude Code and ChatGPT. They detailed their architecture, including the use of a Route Handler at `/api/mcp` and the challenges faced with HTML parsing and SSE streaming.