Add MCP server install section on the home page#551
Merged
Conversation
Surfaces the docs.pmnd.rs MCP endpoint so devs can wire it into their AI coding assistant (Claude Code, Cursor, Windsurf, VS Code, etc.) with a single command. JSON snippet for non-CLI clients is tucked in a collapsible `<details>` to keep the section compact.
Next.js 16 build refuses to prerender with the vulnerable v5.0.0. compileMDX from /rsc keeps the same signature in v6 so no code change needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Use the shared Gha (TIP alert) and Code components instead of ad-hoc markup. Primary install is now claude mcp add; JSON config moved behind a <details>. Link the "MCP-compatible client" wording to the MCP remote servers spec, and add a trailing note about per-lib llms.txt with the R3F example. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Covers the home-page changes and folds in the earlier MCP server URL fix (b06e545) that landed on main without a changeset. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Spell out when a changeset is needed: not for the docs site itself (Vercel deploys on every main push), but for consumers using @V3 / Docker image tags who only pull versioned releases. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Icon and background still follow the keyword. Document the new prop in docs/authoring/gha.mdx and use it on the home page MCP block. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Merged
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.
Summary
Adds a short callout above the libraries grid on
docs.pmnd.rsthat tells visitors the docs are also reachable via MCP, with a one-line install command for Claude Code and a collapsible JSON snippet for other clients.https://docs.pmnd.rs/api/mcp(HTTP transport).pmndrs— covers everypmndrs/*lib, not just one. Users can rename locally.get_page_contentreturning the markdown of any doc page.Why on the home
The MCP server is a meta-feature of the docs site itself, not specific to a single library — the libraries grid is the wrong place. Placing it just under the header makes it the first thing devs see and decoupling it from any individual lib avoids the impression it only covers
zustand(its current default name in some setups).Screenshot
(local dev render — please double-check Tailwind classes against the design system; I reused
bg-surface-container,border-outline-variant,text-on-surface-variant/50, etc. from the existing library cards.)Test plan
pnpm devand visit/— section renders above the grid<pre>hasoverflow-x-auto)<details>toggle reveals the JSON config block