Skip to content

Add docs for react-devtools-cdt-mcp - #8694

Open
hoxyq wants to merge 1 commit into
mainfrom
docs/react-devtools-cdt-mcp
Open

hoxyq wants to merge 1 commit into
mainfrom
docs/react-devtools-cdt-mcp

Conversation

@hoxyq

@hoxyq hoxyq commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a minimal docs for react-devtools-cdt-mcp, the experimental library that exposes React DevTools data to agents through Chrome DevTools MCP.

Aa new experimental reference page, React DevTools for agents (/reference/dev-tools/react-devtools-cdt-mcp), is listed under React DevTools in the reference sidebar. It covers:

  • an overview of how the package works with Chrome DevTools MCP
  • setup, including importing the package before React and a link to the Chrome DevTools MCP docs for configuration
  • a live Try it sandbox that runs fully in the browser
  • a summary list of the 12 tools, plus register()
  • troubleshooting

How: the sandbox imports react-devtools-cdt-mcp/register like a real app would. A small hidden tool console then discovers the tools the same way Chrome DevTools MCP does, by dispatching the devtoolstooldiscovery event, so readers can call every tool without an extension or an MCP server.

Known issue: Sandpack's package CDN doesn't know about react-devtools-cdt-mcp@0.1.0 yet. It returns "Package version not found", so the sandbox pins 0.0.1, which has the same 12 tools. Bump the pin once the CDN picks up the new version.

@github-actions

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

One Page Changed Size

The following page changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/[[...markdownPath]] 130.06 KB (🟡 +27 B) 245.21 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@hoxyq hoxyq removed their assignment Oct 12, 2026
@hoxyq
hoxyq force-pushed the docs/react-devtools-cdt-mcp branch from a749eb6 to efaf6a6 Compare October 12, 2026 21:32
@hoxyq hoxyq changed the title Add React DevTools for agents reference page Add docs for react-devtools-cdt-mcp Oct 12, 2026
@hoxyq
hoxyq marked this pull request as ready for review October 12, 2026 21:34

This branch was successfully deployed

1 active deployment
Preview — efaf6a67 Deployed Oct 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant