
Dendro React
io.github.RooneyTech由 GitHub 账号 RooneyTech 发布v0.9.3更新于 Oct 24, 2026
React codebase semantics for AI agents, with a VS Code visualizer you both share. Free, local.
概览
本地 MCP 服务器,为 AI 助手提供 React 与 React Native 代码库语义:组件契约、重渲染风险、导航图与健康度审计。
- 可以做什么
- 查询组件契约:props、state、context、影响范围与复杂度,供编辑前参考
- 以 A-F 等级、复杂度评分和带行号的审查信号审计代码库健康度
- 梳理 React Navigation、Next.js、React Router、Remix 与 Expo Router 的导航结构
- 追踪 context 与数据流,包括 provider、consumer 和 prop drilling
- 可选地从运行中的应用读取实时 state、props 与 hooks
- 驱动共享的 VS Code 树状图可视化,高亮、标注并追踪数据流
- 适用场景
- 适合在助手修改 React 或 React Native 项目时,先弄清某个组件被谁依赖再动手;也适合希望在助手推理时同步查看应用架构可视化地图的场景。
- 运行要求
- 以本地 stdio 进程运行,使用 npm 包 dendro-react-mcp,需要 Node(22.12+,或 20.x 系列的 20.19+)。共享可视化需要 VS Code 扩展;仅做静态分析可只用 MCP 服务器。需将 DENDRO_WORKSPACE_ROOT 设为项目绝对路径。运行时检查需要正在运行的应用以及 DevTools WebSocket 主机和端口。
安装
在 SourceWeft 中
- 打开 控制台中的 Dendro React,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Dendro
[VS Code Marketplace] [Installs]
Your agent is editing code it's never read.
It just scanned forty files to answer "what breaks if I change this?" It could have asked one fucking question.
Dendro is one model of your React or React Native codebase, rendered twice: semantics your agent can query, and a map you can both point at.
For your agent — the semantics
MCP tools that answer React questions in React terms: the component's contract
before an edit (props, state, contexts, blast radius), rerender risk with the
why, effect hygiene (cleanup risks, setter-only effects, fetch races
that exhaustive-deps can't see), navigation graphs (Next.js, React Navigation,
Remix, Expo Router), live runtime state from a running app — and whole-repo
orientation in one ~300-token call.
Symbol servers tell your agent where the symbol is. Dendro tells it what rerenders, and why.
For you — the visualizer
Your app's constellation: a live dendrogram in VS Code, descended from Reactive. Your agent drives it — highlights what it's talking about, annotates, traces a prop, walks you through the architecture step by step while you click Next/Back. You watch the same map the agent reasons over.
Getting Started
- Install Dendro React — run
ext install RooneyTech.dendro-reactin VS Code, or install from the Marketplace - Open your React or React Native project in Claude Code
- Paste this:
Set up Dendro React for this project. The extension is already installed in VS Code. Do these steps in order:
- Find the MCP server path:
ls ~/.vscode/extensions/rooneytech.dendro-react-*/dist/mcp-server.js. If several versions are installed, choose the newest one.- Find the absolute node path:
which node(Node 22.12+ or Node 20.19+ in the 20.x line).- Merge a
dendro-reactserver into.mcp.jsonusing the absolute node path as"command", the selected server path as the first arg, andDENDRO_WORKSPACE_ROOTset to this project's absolute path. Preserve other servers.- Restart the MCP client, then call
get_usage_guideand report its running version. If the tools are unavailable, stop and explain what setup remains.- Get the contract of one component I am about to edit. Read its source and one reported importer; check props, state, and used-by claims. Explain one concrete change impact and any mismatch before proposing an edit.
Your first useful result is a source-checked answer to “what depends on the component I'm changing?” The finish line is an accurate explanation of one change impact, with file references and scope limits.
For standalone analysis, Cursor/Windsurf setup, or troubleshooting, use the setup guide. The VS Code extension is needed for the shared map; static analysis can run through the npm MCP server alone.
Things to Try
Say "Dendro" in your prompts — like "Use Dendro to show me how this app is structured." It'll use the visualizer and deeper analysis instead of just reading files.
- Watch: "Open the Dendro visualizer and walk me through the app"
- Ask: "Use Dendro to check how healthy this codebase is"
- Before an edit: "Get the component contract for CheckoutForm first"
- "Where does state live? Use Dendro to trace the data flow"
- "Show me how navigation works in this app with Dendro"
- "Use Dendro to explain this repo's architecture like I've never seen it"
What It Does
- Component contracts — props, state, contexts, blast radius, complexity in one call, before your agent edits
- Health audits — A-F grade plus line-anchored review signals (cleanup risks, possible fetch races, informational setter-only effects)
- Complexity scoring — every component graded, refactoring candidates named
- Navigation mapping — React Navigation, Next.js, React Router, Remix, Expo Router
- Context & data flow — providers, consumers, prop drilling detection
- Visual canvas — the agent highlights, annotates, and traces flows in a live dendrogram
- Runtime inspection — connect to a running app for live state, props, and hooks (optional)
Check findings before changing code
Static analysis suggests places to inspect. A health grade is a heuristic, not a correctness or performance verdict. The tree follows static imports; lazy imports and other entry points can be absent. Reported re-render risks need context about memoization and runtime behavior.
Read the flagged source before applying a fix. In particular, an effect can return cleanup implicitly or through an optional chain; v0.9.0 can incorrectly flag these as leaks. Check the running server version rather than assuming a changelog entry means a fix is installed. Visualizer commands being queued does not confirm that the requested nodes appeared on screen.
Free & local
Every tool is free — exports, snapshots, verified projection, live introspection,
and batch analysis included. No account, no license key, and no code leaves your
machine. The one exception is submit_feedback, which sends a debrief to the
maker only when you explicitly say yes.
Configuration
Learn More
- Setup Guide — manual setup, Cursor/Windsurf config, runtime connection, troubleshooting
- Tools Reference — every MCP tool with descriptions
Feedback
Dendro is in early access. If something doesn't work, feels confusing, or you wish it did something different — I want to hear it.
- Issues & ideas: GitHub Issues
- Email: [email protected]
- Or just tell your agent to use
submit_feedback— it knows what to do.
Built by Colin Rooney. Originally derived from Reactive, built at OSLabs with Micah Ziegler and Susana Lam. Named after the Greek word for tree and the branching dendrites of neurons.
来源:README.md,提交 7050747
工具
0版本历史
3- v0.9.3最新Oct 17, 2026
- v0.9.2Oct 17, 2026
- v0.9.0Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。