Skip to main content
Glama

React Native MCP Server

by MrNitro360

refactor_component

Optimize and transform React Native component code by applying refactoring suggestions for performance, maintainability, accessibility, type safety, or modern patterns. Supports custom target versions and test updates.

Instructions

Provide expert-level refactoring suggestions and implementations

Input Schema

NameRequiredDescriptionDefault
codeYesReact Native component code to refactor
include_testsNoWhether to include test updates
refactor_typeYesType of refactoring to apply
target_rn_versionNoTarget React Native version for refactoring

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "code": { "description": "React Native component code to refactor", "type": "string" }, "include_tests": { "description": "Whether to include test updates", "type": "boolean" }, "refactor_type": { "description": "Type of refactoring to apply", "enum": [ "performance", "maintainability", "accessibility", "type_safety", "modern_patterns", "comprehensive" ], "type": "string" }, "target_rn_version": { "description": "Target React Native version for refactoring", "type": "string" } }, "required": [ "code", "refactor_type" ], "type": "object" }

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/MrNitro360/React-Native-MCP'

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