Skip to content

Rename docs nav sections and surface the tool-calling pages - #64

Merged
SPIKESPIGEL404 merged 2 commits into
mainfrom
claude/nav-renames-mcp-tools-f332a6
Aug 7, 2026
Merged

Rename docs nav sections and surface the tool-calling pages#64
SPIKESPIGEL404 merged 2 commits into
mainfrom
claude/nav-renames-mcp-tools-f332a6

Conversation

@SPIKESPIGEL404

Copy link
Copy Markdown
Contributor

What

Three nav changes to the Documentation tab:

Before After
Gateway & Routing Models & Routing
Observability & Evaluation Evals & Tracing
MCP & Tool Calling (new)

Why the new section already had content

Ten .mdx files under gateway-and-routing/ were written but missing from that folder's meta.json pages list, so fumadocs never rendered them in the sidebar. This surfaces them:

  • MCP & Tool Callingmcp-gateway, server-tools, advisor, subagent, fusion, websearch, web-fetch
  • Models & Routing — gains structured-outputs and guardrails
  • acp-gateway moves with the tool pages but stays unlisted; its ACP v2 story isn't live yet

The redirect trap

The section slug went models-and-routinggateway-and-routing in 2026-08, and this moves it back. The existing reverse 301s in next.config.ts would have become self-redirects (/docs/models-and-routing/provider-selection → itself). Those are dropped and replaced with per-page 301s from gateway-and-routing/ to whichever section each page landed in, plus a wildcard for observability/evals-and-tracing/.

Also

  • scripts/check-docs.mjs had the section list hardcoded — updated, or pnpm lint:docs (and prebuild) would fail
  • llms.txt now mirrors the three sections and drops two redirect hops
  • CLI overlays updated (usage/cli.mdx is generated from them)
  • A note on the MCP gateway page distinguishing it from the origin MCP server in Usage — the two point in opposite directions and now sit in adjacent sections

Verification

  • pnpm build, pnpm test (83 passing), pnpm lint:docs all pass
  • A redirect audit over all 263 pairs and 109 live pages confirms no self-redirects, no loops, no redirect source shadowing a live page, no dead destinations, and no broken internal /docs links
  • Spot-checked live: /docs/gateway-and-routing/server-tools/docs/mcp-and-tool-calling/server-tools, /docs/observability/tracing/docs/evals-and-tracing/tracing, /docs/features/toolsets/docs/mcp-and-tool-calling/server-tools

Two pre-existing dead redirects (/docs/changelog, /docs/cookbook/local-models) surfaced during the audit and are left alone — both predate this change.

🤖 Generated with Claude Code

SPIKESPIGEL404 and others added 2 commits August 7, 2026 12:16
Gateway & Routing → Models & Routing, Observability & Evaluation →
Evals & Tracing, and the tool-calling pages split out into a new
MCP & Tool Calling section.

Ten pages under gateway-and-routing/ were written but absent from its
meta.json `pages` list, so fumadocs never rendered them in the sidebar.
Seven of them (mcp-gateway, server-tools, advisor, subagent, fusion,
websearch, web-fetch) form the new section; structured-outputs and
guardrails join Models & Routing. acp-gateway moves with the tool pages
but stays unlisted — its ACP v2 story isn't live yet.

The section slug went models-and-routing → gateway-and-routing in
2026-08 and now back, so the old reverse redirects would have become
self-redirects. Those are dropped and replaced with per-page 301s from
gateway-and-routing/ to whichever section each page landed in, plus a
wildcard for observability/ → evals-and-tracing/.

Also updates check-docs.mjs's section list, llms.txt (which now mirrors
the three sections and drops two redirect hops), the CLI overlays, and
adds a note on the MCP gateway page distinguishing it from the origin
MCP server in Usage — the two point in opposite directions and now sit
in adjacent sections.

Verified: pnpm build, pnpm test (83), pnpm lint:docs all pass, and a
redirect audit confirms no self-redirects, loops, shadowed live pages,
or broken internal /docs links.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Both predate the nav rename; the audit in the previous commit found them.

/docs/changelog pointed at /docs/reference/changelog, which has never
existed — the changelog is a top-level route (app/changelog), not a docs
section. Retargeted it and its :slug* wildcard to /changelog.

/docs/cookbook/local-models pointed at /docs/integrations/local-models,
a page unpublished in 2026-08 when the model catalog absorbed it. It now
lands on /docs/integrations/models, matching the two other local-models
redirects. Added the same 301 for /docs/integrations/local-models, which
was a live URL until the page was unpublished and has 404'd since.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@SPIKESPIGEL404
SPIKESPIGEL404 merged commit 3fc61c2 into main Aug 7, 2026
1 check passed
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