get-rc-version
Retrieve React Native release candidate versions from GitHub to evaluate upcoming changes and plan upgrades before production deployment.
Instructions
Gets the latest release candidate versions of React Native from GitHub releases.
OVERVIEW: This tool returns a list of available release candidate versions that you can use for upgrading.
VERSION FORMAT: • The version numbers follow semantic versioning (e.g. 0.72.0-rc.0) • Include the release candidate tag
RELEASE CANDIDATE INFO: • Each version in the returned list represents a pre-release that has undergone testing • May still contain bugs as they are not production-ready
USAGE: • This tool is commonly used before planning an upgrade to evaluate new features and changes in upcoming releases • The versions can be used with the get-react-native-diff tool to preview changes before upgrading • Please select one version from the returned list to use for the upgrade process
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:82-87 (handler)Inline handler function for the 'get-rc-version' tool that invokes the helper function and returns the formatted response as MCP content.async () => { const versions = await getCurrentReleaseCandidateVersion(); return { content: [{ type: "text", text: versions.join('\n') }] } })
- src/tools.ts:62-87 (registration)Registration of the 'get-rc-version' MCP tool, including title, description (no input schema), and handler function.server.registerTool('get-rc-version', { title: "Get React Native Release Candidate Version", description: `Gets the latest release candidate versions of React Native from GitHub releases. OVERVIEW: This tool returns a list of available release candidate versions that you can use for upgrading. VERSION FORMAT: • The version numbers follow semantic versioning (e.g. 0.72.0-rc.0) • Include the release candidate tag RELEASE CANDIDATE INFO: • Each version in the returned list represents a pre-release that has undergone testing • May still contain bugs as they are not production-ready USAGE: • This tool is commonly used before planning an upgrade to evaluate new features and changes in upcoming releases • The versions can be used with the get-react-native-diff tool to preview changes before upgrading • Please select one version from the returned list to use for the upgrade process`, }, async () => { const versions = await getCurrentReleaseCandidateVersion(); return { content: [{ type: "text", text: versions.join('\n') }] } })
- src/services.ts:23-28 (helper)Core helper function that fetches React Native GitHub releases, finds the latest release candidate by 'rc' tag, strips 'v' prefix, and returns as array.export const getCurrentReleaseCandidateVersion = async (): Promise<string[]> => { const response = await fetch(`https://api.github.com/repos/facebook/react-native/releases`); const data = await response.json() as { tag_name: string }[]; const releaseCandidate = data.find(release => release.tag_name.includes('rc')); return releaseCandidate ? [releaseCandidate.tag_name.replace('v', '')] : []; }