From ce84e3d66ba740b4c378a6b409e95821286e93a7 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Thu, 2 Jul 2026 06:06:57 +1000 Subject: [PATCH] fix: add production rewrite for /api/mcp to mcp.tempo.xyz The Try the MCP server explorer POSTs to /api/mcp, which works in dev via the vite proxy but 404s in production (falls through to the marketing app, 308 -> /api/mcp/ -> 404.html). Add a Vercel reverse-proxy rewrite mirroring the dev proxy so the same-origin request reaches mcp.tempo.xyz (which omits CORS headers on POST, so a direct browser call cannot work). Amp-Thread-ID: https://ampcode.com/threads/T-019f1f40-08bd-7053-a2d5-23abf34e3323 --- vercel.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vercel.json b/vercel.json index ae73a14d..8adc52d9 100644 --- a/vercel.json +++ b/vercel.json @@ -462,6 +462,10 @@ } ], "rewrites": [ + { + "source": "/api/mcp", + "destination": "https://mcp.tempo.xyz/" + }, { "source": "/developers/RSC/R/developers.txt", "destination": "/developers/RSC/R/_root.txt"