Skip to main content
Glama
patrickkabwe

React Native Upgrader MCP

by patrickkabwe

get-stable-version

Retrieve the latest stable React Native version from GitHub releases, ensuring it's production-ready and fully tested. Use this before upgrading to target the recommended release for your application.

Instructions

Gets the latest stable version of React Native from GitHub releases.

OVERVIEW: This version represents the most recent production-ready release that has been thoroughly tested and is recommended for use in applications.

VERSION FORMAT: • The version number follows semantic versioning (e.g. 0.72.0) • Excludes any release candidates or beta versions

USAGE: • This tool is commonly used before planning an upgrade to ensure targeting the latest stable release • Must be called before calling get-react-native-diff tool • The output of this tool will be used as the toVersion parameter in the get-react-native-diff tool

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/tools.ts:36-60 (registration)
    Registration of the 'get-stable-version' tool, including title, description (serving as schema/documentation), and the handler function.
    server.registerTool('get-stable-version', { title: "Get Stable Version", description: `Gets the latest stable version of React Native from GitHub releases. OVERVIEW: This version represents the most recent production-ready release that has been thoroughly tested and is recommended for use in applications. VERSION FORMAT: • The version number follows semantic versioning (e.g. 0.72.0) • Excludes any release candidates or beta versions USAGE: • This tool is commonly used before planning an upgrade to ensure targeting the latest stable release • Must be called before calling get-react-native-diff tool • The output of this tool will be used as the toVersion parameter in the get-react-native-diff tool`, }, async () => { const version = await getStableVersion(); return { content: [{ type: "text", text: version }] } } );
  • The registered handler function for the tool, which calls the helper and formats the MCP response.
    async () => { const version = await getStableVersion(); return { content: [{ type: "text", text: version }] } }
  • Core helper function implementing the logic to fetch and parse the latest stable React Native version from GitHub API.
    export const getStableVersion = async () => { const response = await fetch(`https://api.github.com/repos/facebook/react-native/releases/latest`); const data = await response.json() as { tag_name: string }; return data.tag_name.replace('v', ''); }

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/patrickkabwe/react-native-upgrader-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server