MCP Server: Local PatternFly Component code access
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
I'd like to discuss an option to create tools that try to directly access the currently installed version of PF and use that as a reference for AI agents to gain exact knowledge of the interface and inner workings of the JS modules.
Dynamic Package Discovery
The MCP server generates a comprehensive map of all available exports from the PatternFly package by analyzing the dist/dynamic/ directory structure. This creates a real-time inventory of:
- All available components
- Their exact file paths
- Export names and types
- Component interfaces and props
Source Code Analysis
When agent requests information about a specific component (e.g., Breadcrumb, Tabs, Toolbar), the MCP server:
- Locates the exact TypeScript interface file
- Reads the source code directly
- Extracts the complete component interface including:
- PropTypes and their TypeScript definitions
- Component implementation details
- Usage patterns and examples
- Default props and behavior
Real-Time Accuracy
This approach ensures Claude always has access to:
- Current version compatibility - Reads from the actually installed PF version
- Exact interface matching - No guesswork about prop names or types
- Complete API surface - All props, methods, and component variants
- TypeScript definitions - Precise type information for better code generation
Examples
Here are a couple of examples of code that were generated using an experimental implementation of these tools. The experiment only considers the reac-core package. Other packages like DataView, Icons, etc. were not added.
Page based on a Figma design
Prompt: Can you help me implement this design using the Patternfly or PF components: https://www.figma.com/design/ay6AYgKYoF0yh1evYctbyP/Workspaces-MVP?node-id=1850-63987&t=69cOkIBIuBuLosN8-4 use the MCP servers to
learn about figma and PF components. This will be a React, create new file don't worry about builds and stuff, this is jsut to test the MPCs. I will validate the output.
Used MCP server:
-
figma MCP
-
browser tools MCP
-
experimental MCP with above described tools
Codesandbox link: https://codesandbox.io/p/sandbox/priceless-bogdan-fgnw9y
Showcase of Form components
Prompt: Can you create me showcase of Form components? Look at waht avaiable form modules we have first
Codesandbox link: https://codesandbox.io/p/devbox/zen-scooby-5mdtr7?workspaceId=ws_LP3UqCqxM8J8SsaHMFRDcN
As request, I'll open PR shortly so we can discuss the code.
cc @nicolethoen
Jira Issue: PF-3126
- Lenguaje dominante
- TypeScript
- Estrellas
- 5
- Forks
- 12
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 35
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de patternfly/patternfly-mcp
-
Evaluate and register as a Red Hat supported MCPPosiblemente ocupada @cdcabrera la tomó hace 4 días. Abiertoin progress
patternfly/patternfly-mcp#355 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Review updating PF API endpointPosiblemente ocupada @cdcabrera la tomó hace 9 días. Abiertoin progress PF Team
patternfly/patternfly-mcp#348 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
PF Team
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
patternfly/patternfly-mcp#344 ·
Los mantenedores suelen responder en 1 día
-
Update API seed and PatternFly Docs collectionPosiblemente ocupada @cdcabrera la tomó hace 11 días. Abiertoin progress PF Team
patternfly/patternfly-mcp#343 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Add metadata for collectionsAbiertoPF Team
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
patternfly/patternfly-mcp#341 ·
Los mantenedores suelen responder en 1 día
Todos los issues de patternfly/patternfly-mcp
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
TomerAberbach/profiler-md#733 ·
Los mantenedores suelen responder en 1 día
-
bug priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
brentspine/brents-toasts#143 ·
-
🐛 bug 🗺️ DB Models & Ops
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
LibreChat-AI/LibreChat#17214 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Wavvon/Wavvon-clients#136 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
umami-software/umami#4637 ·
Los mantenedores suelen responder en 3 días