get-rc-version
Retrieve available React Native release candidate versions from GitHub to evaluate new features and changes before upgrading. Use with get-react-native-diff tool to preview updates and plan upgrades effectively.
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)The execution handler for the 'get-rc-version' tool. It calls the helper function to retrieve RC versions and returns them formatted as text content in the MCP response.async () => { const versions = await getCurrentReleaseCandidateVersion(); return { content: [{ type: "text", text: versions.join('\n') }] } })
- src/services.ts:23-28 (helper)Core helper function implementing the logic to fetch React Native releases from GitHub API and extract the latest release candidate version(s).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', '')] : []; }
- src/tools.ts:62-87 (registration)Registration of the 'get-rc-version' MCP tool, specifying metadata (title, description), no input schema, and attaching the 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/tools.ts:63-81 (schema)Tool schema definition including title and detailed description that outlines input (none), output format, and usage instructions.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`, },