@rn-debug-mcp/server
v1.0.5
Published
MCP Server for React Native runtime debugging
Downloads
508
Readme
@rn-debug-mcp/server
Model Context Protocol (MCP) server for React Native runtime debugging.
This is the central server for RN Debug MCP. It receives performance data from your React Native app and provides analysis tools to AI-powered IDEs like Cursor via the Model Context Protocol.
🚀 Comprehensive Setup
This server is the "brain" that analyzes data from your app. To use it, you need:
- MCP Server (This package): Run via
npx -y @rn-debug-mcp/serverin Cursor. - Instrumentation:
npm install @rn-debug-mcp/instrumentation(inside your app). - Babel Plugin:
npm install @rn-debug-mcp/babel-plugin --save-dev(for auto-tracking).
View the Full Integration Guide
Usage with Cursor
- Open Cursor Settings.
- Go to MCP section.
- Click Add New MCP Server.
- Set Name to
RN Debug. - Set Type to
command. - Set Command to:
npx -y @rn-debug-mcp/server
Features
Exposes several tools to your AI assistant:
explainScreenPerformance: Get a high-level overview of why a screen is slow.detectUnnecessaryRenders: Find components re-rendering with identical props.getSlowComponents: List components with the highest render times.detectRenderCascade: Identify chains of expensive renders.detectDuplicateNetworkCalls: Find duplicate network calls.readNativeLogs: Fetch and filter native logs (Android logcat / iOS simctl).
License
MIT
