React Native Development Guideのロゴ

React Native Development Guide

コミュニティ
MrNitro360

A Model Context Protocol (MCP) server providing comprehensive guidance and best practices for React Native development based on official React Native documentation.

公開者MrNitro360
リポジトリReact-Native-MCP
言語TypeScript
フォーク
8
スター
62
利用可能なツール
13
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    React Native Development Guideは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 13個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには62件のスターと8件のフォークがあります。

React Native MCP Server

npm version License: MIT Model Context Protocol Auto-Deploy TypeScript React Native

Professional AI-powered React Native development companion with expert-level code remediation

Expert remediation • Automated fixes • Industry best practices • Enterprise security

Overview

A comprehensive Model Context Protocol (MCP) server designed for professional React Native development teams. This tool provides intelligent code analysis, expert-level automated code remediation, security auditing, and performance optimization with production-ready fixes.

🆕 v1.1.0 - Expert Remediation Features:

  • 🔧 Expert Code Remediation - Automatically fix security, performance, and quality issues
  • 🏗️ Advanced Refactoring - Comprehensive component modernization and optimization
  • 🛡️ Security Fixes - Automatic hardcoded secret migration and vulnerability patching
  • ⚡ Performance Fixes - Memory leak prevention and React Native optimization
  • 📝 Production-Ready Code - TypeScript interfaces, StyleSheet extraction, accessibility

Key Benefits:

  • 🚀 Accelerated Development - Automated code analysis, fixing, and test generation
  • 🔒 Enterprise Security - Vulnerability detection with automatic remediation
  • 📊 Quality Assurance - Industry-standard testing frameworks and coverage analysis
  • ⚡ Performance Optimization - Advanced profiling with automatic fixes
  • 🎯 Best Practices - Expert guidance with code implementation
  • 🔄 Automated Updates - Continuous integration with automatic version management

Quick Start

Prerequisites

  • Node.js 18.0 or higher
  • Claude CLI or Claude Desktop
  • React Native development environment

Installation

Automated Installation (Recommended)

bash
# Install globally via npm
npm install -g @mrnitro360/react-native-mcp-guide

# Configure with Claude CLI
claude mcp add react-native-guide npx @mrnitro360/react-native-mcp-guide

Development Installation

bash
# Clone repository
git clone https://github.com/MrNitro360/React-Native-MCP.git
cd React-Native-MCP

# Install dependencies and build
npm install && npm run build

# Add to Claude CLI
claude mcp add react-native-guide node ./build/index.js

Verification

bash
claude mcp list

Verify that react-native-guide appears as Connected ✅


🆕 Expert Remediation Examples

Before vs. After: Automatic Code Fixing

❌ Before (Problematic Code):

typescript
const MyComponent = () => {
  const apiKey = "sk-1234567890abcdef"; // Hardcoded secret
  const [data, setData] = useState([]);
  
  useEffect(() => {
    console.log("API Key:", apiKey); // Sensitive logging
    fetch('http://api.example.com/data') // HTTP instead of HTTPS
      .then(response => response.json())
      .then(data => setData(data));
      
    const interval = setInterval(() => { // Memory leak
      console.log('Polling...');
    }, 1000);
  }, []);

  return (
    <ScrollView>
      {data.map(item => ( // Performance issue
        <Text key={item.id} style={{color: 'red'}}>{item.name}</Text>
      ))}
    </ScrollView>
  );
};

✅ After (Expert Remediation):

typescript
interface Props {
  children?: React.ReactNode;
  onPress?: () => void;
}

const MyComponent: React.FC<Props> = () => {
  // TODO: Add API_KEY to your environment variables
  const apiKey = process.env.API_KEY || Config.API_KEY;
  const [data, setData] = useState([]);
  
  useEffect(() => {
    // Removed sensitive logging for security
    // console.log('[REDACTED - contains sensitive data]');
    
    // Upgraded to HTTPS for security
    fetch('https://api.example.com/data')
      .then(response => response.json())
      .then(data => setData(data));
      
    const interval = setInterval(() => {
      console.log('Polling...');
    }, 1000);
    
    // Cleanup intervals to prevent memory leaks
    return () => {
      clearInterval(interval);
    };
  }, []);

  return (
    <FlatList
      data={data}
      keyExtractor={(item, index) => item.id?.toString() || index.toString()}
      renderItem={({ item }) => (
        <Text style={styles.itemText}>{item.name}</Text>
      )}
    />
  );
};

const styles = StyleSheet.create({
  itemText: {
    color: 'red'
  }
});

export default React.memo(MyComponent);

🎯 What Got Fixed Automatically:

  • ✅ Security: Hardcoded API key → Environment variable
  • ✅ Security: Sensitive logging → Sanitized
  • ✅ Security: HTTP → HTTPS upgrade
  • ✅ Performance: ScrollView + map → FlatList with keyExtractor
  • ✅ Memory: Added interval cleanup to prevent leaks
  • ✅ Best Practices: Inline styles → StyleSheet.create
  • ✅ Type Safety: Added TypeScript interface
  • ✅ Performance: Wrapped with React.memo

Core Features

🔧 Expert Code Remediation (NEW in v1.1.0)

ToolCapabilityLevelOutput
remediate_codeAutomatic security, performance, and quality fixesExpertProduction-ready code
refactor_componentAdvanced component modernization and optimizationSeniorRefactored components with tests
Security RemediationHardcoded secrets → environment variablesEnterpriseSecure code patterns
Performance FixesMemory leaks, FlatList optimization, StyleSheetExpertOptimized components
Type SafetyAutomatic TypeScript interface generationProfessionalType-safe code

🧪 Advanced Testing Suite

FeatureDescriptionFrameworks
Automated Test GenerationIndustry-standard test suites for componentsJest, Testing Library
Coverage AnalysisDetailed reports with improvement strategiesJest Coverage, LCOV
Strategy EvaluationTesting approach analysis and recommendationsUnit, Integration, E2E
Framework IntegrationMulti-platform testing supportDetox, Maestro, jest-axe

🔍 Comprehensive Analysis Tools

Analysis TypeCapabilitiesOutput
Security AuditingVulnerability detection with auto-remediationRisk-prioritized reports + fixes
Performance ProfilingMemory, rendering, bundle optimization + fixesActionable recommendations + code
Code QualityComplexity analysis with refactoring implementationMaintainability metrics + fixes
AccessibilityWCAG compliance with automatic improvementsCompliance reports + code

📦 Dependency Management

  • Automated Package Auditing - Security vulnerabilities and outdated dependencies
  • Intelligent Upgrades - React Native compatibility validation
  • Conflict Resolution - Dependency tree optimization
  • Migration Assistance - Deprecated package modernization

📚 Expert Knowledge Base

  • React Native Documentation - Complete API references and guides
  • Architecture Patterns - Scalable application design principles
  • Platform Guidelines - iOS and Android specific best practices
  • Security Standards - Mobile application security frameworks

Usage Examples

🔧 Expert Code Remediation (NEW)

bash
# Automatically fix all detected issues with expert-level solutions
claude "remediate_code with remediation_level='expert' and add_comments=true"

# Advanced component refactoring with performance optimization
claude "refactor_component with refactor_type='comprehensive' and include_tests=true"

# Security-focused remediation
claude "remediate_code with issues=['hardcoded_secrets', 'sensitive_logging'] and remediation_level='expert'"

# Performance-focused refactoring
claude "refactor_component with refactor_type='performance' and target_rn_version='latest'"

Testing & Quality Assurance

bash
# Generate comprehensive component tests
claude "generate_component_test with component_name='LoginForm' and test_type='comprehensive'"

# Analyze testing strategy
claude "analyze_testing_strategy with focus_areas=['unit', 'accessibility', 'performance']"

# Generate coverage report
claude "analyze_test_coverage with coverage_threshold=85"

Code Analysis & Optimization

bash
# Comprehensive codebase analysis with auto-remediation suggestions
claude "analyze_codebase_comprehensive"

# Performance optimization with specific focus areas
claude "analyze_codebase_performance with focus_areas=['memory_usage', 'list_rendering']"

# Security audit with vulnerability detection
claude "analyze_codebase_comprehensive with analysis_types=['security', 'performance']"

Dependency Management

bash
# Package upgrade recommendations
claude "upgrade_packages with update_level='minor'"

# Resolve dependency conflicts
claude "resolve_dependencies with fix_conflicts=true"

# Security vulnerability audit
claude "audit_packages with auto_fix=true"

Real-World Scenarios

ScenarioCommandOutcome
🔧 Automatic Code Fixing"Fix all security and performance issues in my component with expert solutions"Production-ready remediated code
🏗️ Component Modernization"Refactor my legacy component to modern React Native patterns with tests"Modernized component + test suite
🛡️ Security Hardening"Automatically fix hardcoded secrets and security vulnerabilities"Secure code with environment variables
⚡ Performance Optimization"Fix memory leaks and optimize FlatList performance automatically"Optimized code with cleanup
📝 Type Safety Enhancement"Add TypeScript interfaces and improve type safety automatically"Type-safe code with interfaces
Pre-deployment Security Check"Scan my React Native project for security vulnerabilities"Security report + automatic fixes
Performance Bottleneck Analysis"Analyze my app for performance bottlenecks and memory leaks"Optimization roadmap + fixes
Code Quality Review"Review my codebase for refactoring opportunities"Quality improvement + implementation
Accessibility Compliance"Check my app for accessibility issues and fix them automatically"WCAG compliance + code fixes
Component Test Generation"Generate comprehensive tests for my LoginScreen component"Complete test suite
Testing Strategy Optimization"Analyze my current testing strategy and suggest improvements"Testing roadmap

Claude Desktop Integration

NPM Installation Configuration

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "react-native-guide": {
      "command": "npx",
      "args": ["@mrnitro360/react-native-mcp-guide@1.1.0"],
      "env": {}
    }
  }
}

Development Configuration

json
{
  "mcpServers": {
    "react-native-guide": {
      "command": "node",
      "args": ["/absolute/path/to/React-Native-MCP/build/index.js"],
      "env": {}
    }
  }
}

Configuration Paths:

  • Windows: C:\Users\{Username}\Desktop\React-Native-MCP\build\index.js
  • macOS/Linux: /Users/{Username}/Desktop/React-Native-MCP/build/index.js

Development & Maintenance

Local Development

bash
# Development with hot reload
npm run dev

# Production build
npm run build

# Production server
npm start

Continuous Integration

This project implements enterprise-grade CI/CD:

  • ✅ Automated Version Management - Semantic versioning with auto-increment
  • ✅ Continuous Deployment - Automatic npm publishing on merge
  • ✅ Release Automation - GitHub releases with comprehensive changelogs
  • ✅ Quality Gates - Build validation and testing before deployment

Update Management

bash
# Check current version
npm list -g @mrnitro360/react-native-mcp-guide

# Update to latest version
npm update -g @mrnitro360/react-native-mcp-guide

# Reconfigure Claude CLI
claude mcp remove react-native-guide
claude mcp add react-native-guide npx @mrnitro360/react-native-mcp-guide

Technical Specifications

🎯 Analysis & Remediation Capabilities

  • Expert Code Remediation - Automatic fixing of security, performance, and quality issues
  • Advanced Component Refactoring - Comprehensive modernization with test generation
  • Comprehensive Codebase Analysis - Multi-dimensional quality assessment with fixes
  • Enterprise Security Auditing - Vulnerability detection with automatic remediation
  • Performance Intelligence - Memory, rendering, and bundle optimization with fixes
  • Quality Metrics - Complexity analysis with refactoring implementation
  • Accessibility Compliance - WCAG 2.1 AA standard validation with automatic fixes
  • Testing Strategy Optimization - Coverage analysis and framework recommendations

🛠️ Technical Architecture

  • 12 Specialized Tools - Complete React Native development lifecycle coverage + remediation
  • 2 Expert Remediation Tools - remediate_code and refactor_component
  • 6 Expert Prompt Templates - Structured development workflows
  • 5 Resource Libraries - Comprehensive documentation and best practices
  • Industry-Standard Test Generation - Automated test suite creation
  • Multi-Framework Integration - Jest, Detox, Maestro, and accessibility tools
  • Real-time Coverage Analysis - Detailed reporting with improvement strategies
  • Production-Ready Code Generation - Expert-level automated fixes and refactoring

🏢 Enterprise Features

  • Expert-Level Remediation - Senior engineer quality automatic code fixes
  • Production-Ready Solutions - Enterprise-grade security and performance fixes
  • Professional Reporting - Executive-level summaries with implementation code
  • Security-First Architecture - Comprehensive vulnerability assessment with fixes
  • Scalability Planning - Large-scale application design patterns with refactoring
  • Compliance Support - Industry standards with automatic compliance fixes
  • Multi-Platform Optimization - iOS and Android specific considerations with fixes

📋 Changelog

v1.1.0 - Expert Code Remediation (Latest)

🚀 Major Features:

  • ✨ NEW: remediate_code tool - Expert-level automatic code fixing
  • ✨ NEW: refactor_component tool - Advanced component refactoring with tests
  • 🔧 Enhanced: Component detection accuracy improved
  • 🛡️ Security: Automatic hardcoded secret remediation
  • ⚡ Performance: Memory leak prevention and FlatList optimization
  • 📝 Quality: TypeScript interface generation and StyleSheet extraction
  • 🎯 Accessibility: WCAG compliance with automatic fixes

🎯 Remediation Capabilities:

  • Hardcoded secrets → Environment variables
  • Sensitive logging → Sanitized code
  • HTTP requests → HTTPS enforcement
  • Memory leaks → Automatic cleanup
  • Inline styles → StyleSheet.create
  • Performance issues → Optimized patterns
  • Type safety → TypeScript interfaces

v1.0.5 - Previous Version

  • Comprehensive analysis tools
  • Testing suite generation
  • Dependency management
  • Performance optimization guidance

Support & Community

Resources

Contributing

We welcome contributions from the React Native community. Please review our Contributing Guidelines for development standards and submission processes.

License

This project is licensed under the MIT License. See the license file for detailed terms and conditions.


Professional React Native Development with Expert-Level Remediation

Empowering development teams to build secure, performant, and accessible mobile applications with automated expert-level code fixes

🆕 v1.1.0 - Now with Expert Code Remediation!

Get Started • Documentation • Community

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "react-native-guide": {
      "command": "npx",
      "args": [
        "@mrnitro360/react-native-mcp-guide@1.1.0"
      ],
      "env": {}
    }
  }
}

利用可能なツール

  • generate_component_test

    Generate comprehensive React Native component tests following industry best practices

  • analyze_testing_strategy

    Analyze current testing strategy and provide recommendations

  • analyze_test_coverage

    Analyze test coverage and identify gaps

  • analyze_component

    Analyze React Native component for best practices

  • analyze_codebase_performance

    Analyze entire React Native codebase for performance issues

  • analyze_codebase_comprehensive

    Comprehensive React Native codebase analysis including performance, security, refactoring, and upgrades

  • optimize_performance

    Get performance optimization suggestions for React Native

  • architecture_advice

    Get React Native architecture and project structure advice

  • debug_issue

    Get debugging guidance for React Native issues

  • check_for_updates

    Check for available updates to the React Native MCP server

  • get_version_info

    Get React Native MCP Server version and build information

  • remediate_code

    Automatically fix React Native code issues with expert-level solutions

  • refactor_component

    Provide expert-level refactoring suggestions and implementations

React Native Development GuideのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度React Native Development Guideに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

React Native Development Guideをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. React Native Development GuideのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "react-native-development-guide": {
      "command": "npx",
      "args": [
        "-y",
        "@mrnitro360/react-native-mcp-guide"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてReact Native Development GuideのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. React Native Development GuideのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
React Native Development Guideを使ってこのタスクを手伝ってもらえますか?
React Native Development Guide
はい、読みました。
React Native Development Guideで調べた結果をお伝えします。

よくある質問

React Native Development Guide MCPサーバーは何に使いますか?

React Native Development Guideは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでReact Native Development Guide MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでReact Native Development Guideを利用できます。

TypingMindでReact Native Development Guide MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。React Native Development Guideを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

React Native Development Guide MCPをTypingMindに接続するにはどうすればよいですか?

React Native Development GuideはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでReact Native Development Guide MCPのどのようなツールを利用できますか?

React Native Development Guideは13個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

React Native Development Guide MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。React Native Development Guideで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇