
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 分
請在儲存庫或註冊中心條目中宣告授權條款。