rn-mcp
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"react-native-upgrader-mcp": {
"args": [
"-y",
"react-native-upgrader-mcp"
],
"command": "npx"
}
}
}
服务介绍
react-native-upgrader-mcp
A Model Context Protocol (MCP) server that streamlines React Native project upgrades. It provides developers with automated tools to seamlessly upgrade React Native CLI projects to any desired version or the latest stable release. The MCP Server uses rn-diff-purge to generate the diff.
Features
- Version Management: Fetch and track the latest stable React Native versions with semantic versioning support
- Upgrade Automation: Generate detailed upgrade/downgrade diffs between versions with step-by-step migration guidance
- Release Candidate Support: Access and evaluate pre-release versions for early testing and feature validation
Important: This MCP Server is not compatible with Expo projects.
Setup
Cursor
- Open Cursor Settings
- Look for an option called "Tools and integrations" and click on it
- Click on "New MCP Server"
- Configure:
{ "mcpServers": { "react-native-upgrader-mcp": { "command": "npx", "args": ["-y", "react-native-upgrader-mcp"] } } } - Restart Cursor
VS Code
- Install MCP extension (e.g., "MCP Server Manager")
- Configure:
{ "mcp.servers": { "react-native-upgrader-mcp": { "command": "npx", "args": ["-y", "react-native-upgrader-mcp"] } } }
Tools
get-stable-version- Get latest stable versionget-react-native-diff- Generate upgrade diff between versionsget-rc-version- Get RC versions
Development
git clone https://github.com/patrickkabwe/react-native-upgrader-mcp.git
cd react-native-upgrader-mcp
bun install
bun run build
bun run dev
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request