Claude-skill-registry gluestack-mcp-tools
Use when discovering, exploring, or retrieving gluestack-ui components via MCP tools. Provides access to component source code, variants, demos, and metadata.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/gluestack-mcp-tools" ~/.claude/skills/majiayu000-claude-skill-registry-gluestack-mcp-tools && rm -rf "$T"
skills/data/gluestack-mcp-tools/SKILL.mdgluestack-ui MCP Tools
Expert knowledge for using the gluestack-ui MCP server tools to discover, explore, and retrieve component source code and metadata.
Overview
The gluestack-ui MCP server provides direct access to the gluestack-ui component library through 6 specialized tools. Use these tools to explore available components, understand their variants, retrieve source code, and access Storybook demos.
When to Use These Tools
Use the MCP tools when you need to:
- Discover what components are available in gluestack-ui
- Get the actual source code for a component to copy into a project
- Understand the variants (NativeWind, Themed, Unstyled) of a component
- Access Storybook demos showing component usage patterns
- Retrieve TypeScript props and dependencies for a component
- Navigate the gluestack-ui monorepo structure
Available Tools
list_components
Lists all 70+ gluestack-ui components with their names and basic descriptions.
When to use: Start here when you need to know what components are available or find a component by name.
Example workflow:
- Call
to see all available componentslist_components - Identify the component that matches your needs
- Use
orget_component
for detailsget_component_metadata
list_component_variants
Shows the available style variants for a specific component: NativeWind, Themed, and Unstyled.
When to use: After identifying a component, use this to understand which styling approaches are supported.
Variants explained:
- NativeWind: Tailwind CSS classes for React Native (recommended for new projects)
- Themed: Token-based theming with design system integration
- Unstyled: Base component with no styles (for complete customization)
get_directory_structure
Navigate the gluestack-ui monorepo to understand the package organization.
When to use: When you need to understand how gluestack-ui organizes its packages or find specific files within the repository.
get_component
Retrieves the complete source code for any gluestack-ui component.
When to use: When you need to copy component code into your project or understand the implementation details.
Example workflow:
- Use
to find the component namelist_components - Use
to choose a variantlist_component_variants - Call
with the component name and variantget_component - Copy the source code into your project's
directorycomponents/ui/
get_component_demo
Accesses Storybook examples showing real-world usage patterns for components.
When to use: When you need to see how a component is used in practice, including prop combinations and composition patterns.
What you get:
- Working code examples
- Different prop combinations
- Composition patterns with sub-components
- Interactive states and variations
get_component_metadata
Retrieves TypeScript props, dependencies, and other metadata for a component.
When to use: When you need to understand the TypeScript interface, required props, or peer dependencies for a component.
Information provided:
- TypeScript prop types and interfaces
- Required vs optional props
- Default values
- Peer dependencies
- Import statements
Common Workflows
Adding a New Component to Your Project
- Discover:
- Find the component you needlist_components - Explore variants:
- Choose NativeWind, Themed, or Unstyledlist_component_variants - Get source:
- Retrieve the full source codeget_component - Check demos:
- See usage examplesget_component_demo - Copy to project: Add the code to your
directorycomponents/ui/
Understanding Component API
- Get metadata:
- See TypeScript propsget_component_metadata - Check demos:
- See prop usage in contextget_component_demo - Read source:
- Understand the implementationget_component
Exploring Available Components
- List all:
- See the full component librarylist_components - Check structure:
- Understand organizationget_directory_structure - Review demos:
- See component capabilitiesget_component_demo
Best Practices
1. Start with Discovery
Always use
list_components first when exploring. This gives you the canonical names to use with other tools.
# Good: Start with discovery 1. list_components -> find "Button" 2. get_component("Button", "nativewind") # Avoid: Guessing component names get_component("Btn") -> might not find it
2. Choose the Right Variant
- NativeWind: Best for new projects using Tailwind CSS
- Themed: Best when you have an existing design token system
- Unstyled: Best when you need complete styling control
3. Check Demos Before Implementing
The Storybook demos show real-world usage patterns that may reveal:
- Required composition patterns (e.g., Button needs ButtonText)
- Prop combinations that work well together
- Edge cases and accessibility considerations
4. Verify Dependencies
Use
get_component_metadata to understand:
- Peer dependencies that need to be installed
- Other components that are used internally
- TypeScript types that may need importing
Environment Configuration
The MCP server can operate in two modes:
GitHub Mode (Default)
Fetches components directly from the gluestack-ui GitHub repository.
# Optional: Increase API rate limits export GITHUB_TOKEN="your-token-here"
Local Mode
Uses a local clone of the gluestack-ui repository for offline access.
# Point to your local clone export GLUESTACK_PATH="/path/to/gluestack-ui"
Integration with Other Skills
Combine MCP tools with other jutsu-gluestack skills:
- gluestack-components: After getting source code, use component skill for implementation patterns
- gluestack-theming: Use with Themed variant components for design token integration
- gluestack-accessibility: Ensure retrieved components are implemented accessibly
Troubleshooting
Component Not Found
- Verify the exact component name using
list_components - Component names are case-sensitive
- Some components may be grouped (e.g., FormControl components)
Rate Limiting
If using GitHub mode without a token:
- Set
for increased limitsGITHUB_TOKEN - Or clone the repo locally and set
GLUESTACK_PATH
Outdated Components
The MCP server fetches from the latest gluestack-ui repository. If you need a specific version:
- Clone the specific version locally
- Set
to your local cloneGLUESTACK_PATH