Command Reference
This guide covers all available commands, features, and usage patterns for Fluorite MCP with Claude Code CLI.
📖 Table of Contents
- Natural Language Commands
- Library Specifications
- Static Analysis Commands
- Spike Development Commands
- Direct MCP Tools
- Advanced Usage Patterns
Natural Language Commands
Fluorite MCP works transparently with Claude Code CLI through natural language. Simply describe what you want to build, and Claude will automatically access relevant specifications.
/fl:ui Command - v0.io-Style UI Generation
The /fl:ui command provides v0.io-style natural language UI component generation with TailwindCSS v4.1+ and shadcn/ui v2+ integration.
Quick Examples
# Generate a login form
fluorite-mcp ui "Create a modern login form with email and password"
# Generate a data table
fluorite-mcp ui "Build an advanced data table with sorting and filtering"
# Generate with specific framework
fluorite-mcp ui "Create a responsive modal dialog" --framework next --preview
# Generate with custom styling
fluorite-mcp ui "Make a dashboard with charts" --style glass --darkFeatures
- 🤖 Natural Language Processing: Analyzes descriptions to determine component type and complexity
- 🎨 Modern UI Generation: Creates TypeScript components with TailwindCSS v4.1+ and shadcn/ui v2+
- 🚀 Framework Support: React, Next.js, and Vue components
- ♿ Accessibility: WCAG 2.1 AA compliant components by default
- 📱 Responsive Design: Mobile-first responsive components
- 🌙 Dark Mode: Optional dark mode support
- 📊 Component Statistics: Lines of code, dependencies, and accessibility scores
Component Types Detected
- Forms: login, signup, contact forms
- Tables: data tables with sorting/filtering
- Modals: dialogs, popups, overlays
- Navigation: menus, navbars, breadcrumbs
- Cards: content cards, metric cards
- Buttons: various button types and variants
- Dashboards: analytics dashboards with charts
- Custom: any other component description
Command Options
| Option | Description | Default |
|---|---|---|
--framework | Target framework (react/next/vue) | react |
--style | Design style (modern/minimal/glass/card) | modern |
--preview | Preview without writing files | false |
--dark | Include dark mode support | false |
--component-name | Custom component name | Auto-detected |
--output | Output directory | ./components |
See UI Command Documentation for complete details.
UI Component Development
Basic Component Creation
Create a button component using shadcn/ui with variantsWhat happens:
- Accesses
spec://shadcn__ui - Includes proper TypeScript types
- Adds variant support (default, destructive, outline, secondary, ghost, link)
- Includes accessibility attributes
- Uses Tailwind CSS classes
Advanced Component Patterns
Build a data table with sorting, filtering, and pagination using TanStack TableResult:
- Uses
spec://tanstack-table - Implements proper column definitions
- Adds server-side sorting/filtering
- Includes TypeScript interfaces
- Responsive design patterns
Form Components
Create a form with react-hook-form, Zod validation, and shadcn/ui componentsFeatures:
- react-hook-form integration
- Zod schema validation
- Error message handling
- Accessibility compliance
- Type-safe form data
API Development
REST API Creation
Create a FastAPI endpoint with JWT authentication and Pydantic modelsIncludes:
- JWT token handling
- Pydantic request/response models
- Error handling middleware
- OpenAPI documentation
- Type hints and validation
Database Integration
Set up a Next.js API route with Prisma and PostgreSQLFeatures:
- Prisma client setup
- Database connection handling
- CRUD operations
- Error handling
- Type-safe database queries
Authentication Systems
NextAuth.js Setup
Implement authentication with NextAuth.js using Google and GitHub providersIncludes:
- Provider configuration
- Session handling
- Middleware setup
- Type definitions
- Security best practices
Custom Auth Implementation
Build a custom authentication system with JWT and refresh tokensFeatures:
- Token generation/validation
- Refresh token rotation
- Secure cookie handling
- Rate limiting
- Session management
Testing Commands
End-to-End Testing
Set up Playwright testing with accessibility checks and visual regressionIncludes:
- Playwright configuration
- Accessibility testing with axe
- Visual regression setup
- CI/CD integration
- Parallel test execution
Unit Testing Setup
Configure Vitest with React Testing Library for component testingFeatures:
- Vitest configuration
- Testing utilities
- Mock implementations
- Coverage reporting
- CI integration
Library Specifications
Access detailed specifications for 87+ libraries using natural language or direct references.
AI SDK (Vercel)
- Reference:
spec://vercel-ai-sdk— see docs/specs/vercel-ai-sdk.md - Use cases: server-side streaming via
streamTextwithtoAIStreamResponse(), typed outputs via Zod tools, embeddings viaembed - Providers: import only what you need (
@ai-sdk/openai,@ai-sdk/anthropic,@ai-sdk/google, etc.)
Core Libraries
| Library | Natural Language Example | Direct Access |
|---|---|---|
| shadcn/ui | "Create UI components with shadcn/ui" | spec://shadcn__ui |
| TanStack Table | "Build a data table" | spec://tanstack-table |
| NextAuth.js | "Set up authentication" | spec://nextauth |
| Prisma | "Configure database with Prisma" | spec://prisma |
| Zod | "Add form validation" | spec://zod |
State Management
Implement global state management with ZustandAvailable Libraries:
- Zustand:
spec://zustand- Lightweight state management - Jotai:
spec://jotai- Atomic state management - TanStack Query:
spec://tanstack-query- Server state management - Redux Toolkit: Advanced state management patterns
Form Libraries
Create complex forms with validation and type safetyOptions:
- react-hook-form:
spec://react-hook-form- Performant forms - Zod:
spec://zod- Schema validation - Valibot: Alternative validation library
- Yup: Traditional validation
Data Visualization
Create interactive charts and dashboardsLibraries:
- Recharts:
spec://recharts- React chart library - D3.js: Custom visualizations
- Chart.js: Canvas-based charts
- Tremor: Dashboard components
Static Analysis Commands
Fluorite MCP includes comprehensive static analysis capabilities.
Framework-Specific Analysis
Next.js Analysis
Analyze my Next.js project for common issues and performance problemsDetects:
- Client hooks in Server Components
- Hydration mismatches
- Image optimization issues
- Route configuration problems
- Performance anti-patterns
React Analysis
Check this React component for best practices and potential bugsChecks:
- Hook usage patterns
- Component lifecycle issues
- State management problems
- Performance optimizations
- Accessibility concerns
Vue Analysis
Analyze this Vue.js application for Composition API issuesIdentifies:
- Reactivity problems
- Lifecycle management
- Component communication
- Performance bottlenecks
- TypeScript integration
Error Prediction
Predict potential runtime errors in this codePredictions Include:
- Hydration errors
- Type mismatches
- Async operation failures
- Memory leaks
- Performance degradation
Custom Analysis Rules
Run static analysis with custom rules for my projectConfigurable Rules:
- Team coding standards
- Framework-specific patterns
- Security requirements
- Performance budgets
- Accessibility compliance
Spike Development Commands
Rapid prototyping and experimentation using spike templates.
Discovering Spikes
I need to experiment with drag-and-drop functionalityResponse: Claude will suggest relevant spike templates and rapid prototyping approaches.
Available Spike Categories
| Category | Count | Example Templates |
|---|---|---|
| Next.js | 15+ | Minimal app, API routes, Authentication |
| FastAPI | 15+ | REST APIs, Background tasks, JWT auth |
| GitHub Actions | 10+ | CI/CD, Testing pipelines, Deployment |
| Playwright | 8+ | E2E testing, Accessibility, Visual regression |
Creating Quick Prototypes
Next.js Spikes
Create a minimal Next.js app to test server-side renderingAvailable Templates:
nextjs-minimal: Basic SSR setupnextjs-api-hello: Simple API routenextjs-auth-nextauth-credentials: Auth testingnextjs-prisma-sqlite-crud: Database operations
API Development Spikes
Test FastAPI with database integrationTemplates:
fastapi-minimal: Basic FastAPI setupfastapi-sqlmodel-sqlite: Database integrationfastapi-jwt-auth: Authentication testingfastapi-websockets: Real-time communication
Testing Spikes
Experiment with Playwright accessibility testingOptions:
playwright-minimal: Basic test setupplaywright-axe-accessibility: Accessibility testingplaywright-visual-regression: Visual testingplaywright-docker-ci: CI/CD integration
Spike Workflow Commands
1. Discovery Phase
What spike templates are available for React state management?2. Preview Phase
Show me what the nextjs-auth-spike template includes3. Implementation Phase
Apply the fastapi-jwt-auth spike to test authentication4. Validation Phase
Help me validate this spike implementationDirect MCP Tools
For advanced users, direct access to MCP tools:
Specification Management
List Specifications
Direct call: list-specs
Show me all available library specificationsFilter Specifications
List all React-related specificationsGet Specific Specification
Show me the detailed Prisma specificationCatalog Operations
Add Custom Specification
Direct call: upsert-spec
Add a custom library specification for my internal toolsCatalog Statistics
Direct call: catalog-stats
Show me statistics about the specification catalogAnalysis Tools
Project Analysis
Direct call: static-analysis
Run comprehensive static analysis on my projectParameters:
projectPath: Project directoryframework: Target framework (nextjs, react, vue)predictErrors: Enable error predictionanalyzeDependencies: Analyze dependencies
Code Validation
Direct call: quick-validate
Validate this code snippetParameters:
code: Code to validatelanguage: Programming languageframework: Framework context
Diagnostics
Server Health Check
Direct call: self-test
Check if Fluorite MCP is working correctlyPerformance Metrics
Direct call: performance-test
Show performance metrics for the MCP serverServer Metrics
Direct call: server-metrics
Display server observability dataAdvanced Usage Patterns
Multi-Library Integration
Create a full-stack app with Next.js, Prisma, NextAuth.js, and TanStack QueryResult: Claude orchestrates multiple specifications to create a cohesive application.
Framework Migration
Help me migrate from Create React App to Next.jsProcess:
- Analyzes current structure
- Identifies migration points
- Suggests step-by-step approach
- Provides compatibility guidance
Performance Optimization
Optimize this React app for Core Web VitalsAnalysis:
- Bundle size optimization
- Code splitting strategies
- Image optimization
- Caching recommendations
Security Hardening
Audit my authentication implementation for security vulnerabilitiesChecks:
- Token handling
- Session management
- Input validation
- Access control
Accessibility Compliance
Make this component WCAG 2.1 AA compliantImprovements:
- Semantic markup
- Keyboard navigation
- Screen reader support
- Color contrast
Command Patterns and Tips
Best Practices
1. Be Specific with Technology Stack
✅ "Create a form with react-hook-form, Zod validation, and shadcn/ui components"
❌ "Create a form"2. Mention Framework Context
✅ "Build a Next.js API route with tRPC and Prisma"
❌ "Build an API"3. Include Requirements
✅ "Create a data table with sorting, filtering, pagination, and TypeScript"
❌ "Create a table"4. Ask for Best Practices
✅ "What are the security best practices for NextAuth.js implementation?"
✅ "Show me performance optimizations for this React component"Common Command Patterns
| Pattern | Example | Use Case |
|---|---|---|
| Create + Library | "Create X using Y" | New component/feature |
| Setup + Framework | "Set up X with Y and Z" | Environment configuration |
| Analyze + Context | "Analyze this X for Y issues" | Code review/debugging |
| Optimize + Metric | "Optimize X for Y performance" | Performance improvement |
| Migrate + Direction | "Migrate from X to Y" | Technology transitions |
Integration Commands
Database Operations
Set up Prisma with PostgreSQL and generate CRUD operationsAPI Integration
Create tRPC procedures with Zod validation and Prisma queriesState Management
Implement global state with Zustand and persist to localStorageStyling Systems
Configure Tailwind CSS with shadcn/ui and custom design tokensError Handling and Troubleshooting
Common Issues
1. Specification Not Found
Error: Specification 'unknown-lib' not foundSolution: Use List all available specifications to find correct names.
2. Invalid Parameters
Error: Invalid parameters for static analysisSolution: Check parameter requirements in API documentation.
3. Analysis Timeout
Error: Static analysis timed outSolution: Try analyzing smaller code sections or specific files.
Debug Commands
Why isn't Claude using the React specification?Show me the exact specification being used for this requestCheck if Fluorite MCP is working properlyNext Steps
- Spike Templates Guide - Learn rapid prototyping
- API Documentation - Complete technical reference
- Developer Guide - Advanced customization
- Troubleshooting - Common issues and solutions
Last updated: 2025-08-15