Skip to content

Conversation

@jakebodea
Copy link
Contributor

Summary

Restore the MCP landing page and stop the infinite redirect loop that effectively bricked the site when clicking "Try TanStack MCP".

Changes

  • Remove MCP handleRedirects that routed all MCP URLs to CLI docs
  • Add mcp to landingComponents so /mcp/latest renders McpLanding

Context

This behavior was introduced in commit 1889db3 ("builder alpha.2"), which added handleRedirects for MCP in src/libraries/libraries.ts. The MCP library was originally added in a71ea35 ("mcp") with its own landing page and docs.

What went wrong

The handleRedirects added in 1889db3 redirected any /mcp or /mcp/latest navigation to /cli/latest/docs/mcp/mcp-overview. Because the navigation was client side, this caused an infinite redirect loop where the app would keep attempting to resolve MCP routes and immediately redirect again. In practice, clicking "Try TanStack MCP" would freeze the UI and make the site unusable until a hard refresh. That is effectively a full-site brick from a single nav action.

Why this fix is necessary

This PR fixes a critical bug that renders the website unusable when the MCP entry point is clicked, restoring the intended landing flow for MCP users.

Remove MCP redirects that caused loops and blocked the landing page, and
add MCP to the landingComponents map so /mcp/latest renders McpLanding.
@netlify
Copy link

netlify bot commented Jan 22, 2026

👷 Deploy request for tanstack pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit a2c23f2

@jakebodea jakebodea marked this pull request as ready for review January 22, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant