KG

kalivaraprasad-gonapa/react-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

76 stars 12 forks 质量 60 趋势 0MIT

kalivaraprasad-gonapa/react-mcp 是从 https://github.com/kalivaraprasad-gonapa/react-mcp. 导入的 MCP 服务器候选

概览

kalivaraprasad-gonapa/react-mcp 是从 https://github.com/kalivaraprasad-gonapa/react-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一个强大的服务器实现,使 Claude AI 能够通过模型上下文协议与 React 应用交互。

示例使用

  • Markdown 编辑/查看器 作者:Claude

  • Claude 的 API 测试器

概述

React MCP 为 Claude AI 与 React 生态系统之间提供了桥梁,使 Claude 能够:

  • 创建新的 React 应用程序
  • 运行 React 开发服务器
  • 管理文件和目录
  • 安装 npm 包
  • 执行终端命令
  • 跟踪和管理长期运行的进程

该服务器实现了模型上下文协议,使 Claude 能够在开发环境中执行真实世界的操作。

特色

  • React项目管理

  • 创建带有可选模板的新 React 应用程序

  • 运行开发服务器

  • 管理依赖关系

  • 文件操作

  • 读写文件

  • 编辑 React 组件和配置

  • 流程管理

  • 启动和监控长时间运行的进程

  • 实时跟踪工艺输出

  • 必要时终止进程

  • 命令执行

  • 运行任意终端命令

  • 安装 npm 包

  • 执行开发任务

  • 全面伐木

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

React MCP (Model Context Protocol)

A powerful server implementation that enables Claude AI to interact with React applications through the Model Context Protocol.

Sample Usage

Overview

React MCP provides a bridge between Claude AI and the React ecosystem, allowing Claude to:

  • Create new React applications
  • Run React development servers
  • Manage files and directories
  • Install npm packages
  • Execute terminal commands
  • Track and manage long-running processes

This server implements the Model Context Protocol, providing Claude with the ability to perform real-world actions in the development environment.

Features

  • React Project Management

    • Create new React applications with optional templates
    • Run development servers
    • Manage dependencies
  • File Operations

    • Read and write files
    • Edit React components and configuration
  • Process Management

    • Start and monitor long-running processes
    • Track process output in real-time
    • Terminate processes when needed
  • Command Execution

    • Run arbitrary terminal commands
    • Install npm packages
    • Execute development tasks
  • Comprehensive Logging

    • Detailed JSON and text logs
    • Process tracking with timestamps
    • Execution history

Installation

Installing via Smithery

To install React MCP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @Streen9/react-mcp --client claude

Manual Installation

  1. Clone this repository
  2. Install dependencies:
npm install

Usage

Add this in claude_desktop_config:

{
  "mcpServers": {
    "react-mcp": {
      "command": "node",
      "args": [
        "C:/Users/kalip/OneDrive/Desktop/react-mcp/index.js"
      ]
    },
  }
}

The server runs on the stdio transport, allowing it to be used with Desktop Claude APP as a Model Context Protocol tool.

Available Tools

create-react-app

Creates a new React application.

Parameters:

  • name (required): Name of the React app
  • template (optional): Template to use (e.g., typescript, cra-template-pwa)
  • directory (optional): Base directory to create the app in (defaults to home directory)

run-react-app

Runs a React application in development mode.

在 GitHub 查看完整 README

安装

npx -y @smithery/cli install @Streen9/react-mcp --client claude
新手?先看 mcpskill.org 教程 →