fix(docs): drop the inert bare /mcp redirect - #53
Merged
Conversation
/docs/mcp is Mintlify's own hosted MCP server endpoint for this site, not a
page. It is POST-only JSON-RPC, so a GET correctly returns 405, and the
platform route wins over anything in the redirects table. Confirmed against
production: a JSON-RPC initialize returns serverInfo {"name":"Rendobar"}.
The /mcp -> /mcp-server rule added in #52 therefore never fires. It was
covering for a 405 that is not a defect. Leaving it in place would tell the
next person reading this file that /docs/mcp redirects, and validate-nav
passes it because the destination is a real page.
The actual fix from #52 is unaffected: /mcp/:slug* still sends every
/docs/mcp/<page> URL to /mcp-server. Verified live.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #52, verified against production after that deploy landed.
/docs/mcpis Mintlify's own hosted MCP server endpoint for this docs site, not a page. It is POST-only JSON-RPC, so a GET correctly returns 405, and the platform route takes precedence over the redirects table.So the
/mcp -> /mcp-serverrule #52 added never fires. It was written to cover a 405 that turns out not to be a defect. Removing it, because leaving it tells the next person reading this file that/docs/mcpredirects when it does not, andvalidate-navwaves it through (the destination is a real page, so the check cannot see that the source is shadowed).The real fix from #52 is untouched and still live:
Test plan
No behaviour change to verify after deploy: the rule being removed has no observable effect today.