dillon1000/react
Commit
Browse files [mcp] Add MCP tool to print out the component tree of the currently open React App (#33305)
## Summary This tool leverages DevTools to get the component tree from the currently open React App. This gives realtime information to agents about the state of the app. ## How did you test this change? Tested integration with Claude Desktop
Changed paths12 files
First-parent comparison.eslintrc.js ModifiedM compiler/packages/react-mcp-server/src/index.ts ModifiedA compiler/packages/react-mcp-server/src/tools/componentTree.ts AddedM packages/react-devtools-core/webpack.backend.js ModifiedM packages/react-devtools-core/webpack.standalone.js ModifiedM packages/react-devtools-extensions/webpack.backend.js ModifiedM packages/react-devtools-extensions/webpack.config.js ModifiedM packages/react-devtools-fusebox/webpack.config.frontend.js ModifiedM packages/react-devtools-inline/webpack.config.js ModifiedM packages/react-devtools-shared/src/backend/fiber/renderer.js ModifiedM scripts/flow/react-devtools.js ModifiedM scripts/jest/devtools/setupEnv.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…