# iflow-mcp/redf0x1-ui-ux-pro-mcp architecture

> Architecture diagram of the GitHub repository iflow-mcp/redf0x1-ui-ux-pro-mcp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iflow-mcp/redf0x1-ui-ux-pro-mcp
- Repository: https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp

## Overview

UI/UX Pro MCP Server exposes curated design knowledge to MCP-compatible AI clients. A client submits a search or design-system request; the server dispatches it to tool handlers, which load CSV knowledge and use BM25 indexes to return ranked guidance. The README also documents unified, component, pattern, stack, platform, and complete-design-system capabilities. Source excerpts show server dispatch, data loading, and BM25 use; links to unsampled capability-specific data and handler branches are documented or left unverified where implementation details are unavailable.

Main entry points: [`src/data/loader.ts`](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/data/loader.ts) (CSV Loader), [`src/tools/handlers.ts`](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/tools/handlers.ts) (Tool Handlers), [`src/index.ts`](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/index.ts) (MCP Server), [`data/stacks`](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data/stacks) (Framework Data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_server["MCP Server"]
  node_server_entry["MCP Server<br/>[index.ts]"]
end

subgraph group_knowledge["Design Knowledge"]
  node_loader["CSV Loader<br/>[loader.ts]"]
  node_visual_data[("Visual Design Data")]
  node_component_data[("Component Data")]
  node_pattern_data[("Pattern Data")]
  node_prompt_data[("Prompt Data")]
end

subgraph group_search["Search and Synthesis"]
  node_handlers["Tool Handlers<br/>[handlers.ts]"]
  node_bm25["BM25 Ranking<br/>[bm25.ts]"]
  node_mappings["Query Mappings<br/>[mappings.ts]"]
end

subgraph group_guidance["Platform and Stack Guidance"]
  node_stack_data[("Framework Data")]
  node_platform_data[("Platform Data")]
end

node_client(("MCP Client"))

node_client -->|"sends requests"| node_server_entry
node_server_entry -->|"dispatches tools"| node_handlers
node_handlers -->|"loads datasets"| node_loader
node_loader -->|"reads CSVs"| node_visual_data
node_loader -->|"reads CSVs"| node_component_data
node_loader -->|"reads CSVs"| node_pattern_data
node_loader -->|"reads CSVs"| node_prompt_data
node_loader -->|"reads CSVs"| node_stack_data
node_loader -->|"reads CSVs"| node_platform_data
node_handlers -->|"ranks results"| node_bm25
node_handlers -->|"uses query mappings"| node_mappings
node_handlers -.->|"searches stack guidance"| node_stack_data
node_handlers -.->|"searches platform guidance"| node_platform_data

click node_server_entry "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/index.ts"
click node_handlers "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/tools/handlers.ts"
click node_loader "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/data/loader.ts"
click node_bm25 "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/search/bm25.ts"
click node_mappings "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/data/mappings.ts"
click node_visual_data "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data"
click node_component_data "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data"
click node_pattern_data "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data"
click node_prompt_data "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data"
click node_stack_data "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data/stacks"
click node_platform_data "https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data/platforms"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_server_entry,node_client toneBlue
class node_loader,node_visual_data,node_component_data,node_pattern_data,node_prompt_data toneAmber
class node_handlers,node_bm25,node_mappings toneMint
class node_stack_data,node_platform_data toneRose
```

## Components

### MCP Server

- [MCP Server](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/index.ts): `src/index.ts`

### Design Knowledge

- [CSV Loader](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/data/loader.ts): `src/data/loader.ts`
- [Visual Design Data](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data): `data`
- [Component Data](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data): `data`
- [Pattern Data](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data): `data`
- [Prompt Data](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data): `data`

### Search and Synthesis

- [Tool Handlers](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/tools/handlers.ts): `src/tools/handlers.ts`
- [BM25 Ranking](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/search/bm25.ts): `src/search/bm25.ts`
- [Query Mappings](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/blob/main/src/data/mappings.ts): `src/data/mappings.ts`

### Platform and Stack Guidance

- [Framework Data](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data/stacks): `data/stacks`
- [Platform Data](https://github.com/iflow-mcp/redf0x1-ui-ux-pro-mcp/tree/main/data/platforms): `data/platforms`

### Other components

- **MCP Client**

## Connections

- MCP Client → MCP Server: sends requests (evidence: `README.md`)
- MCP Server → Tool Handlers: dispatches tools (evidence: `src/index.ts`)
- Tool Handlers → CSV Loader: loads datasets (evidence: `src/tools/handlers.ts`)
- CSV Loader → Visual Design Data: reads CSVs (evidence: `src/data/loader.ts`)
- CSV Loader → Component Data: reads CSVs (evidence: `src/data/loader.ts`)
- CSV Loader → Pattern Data: reads CSVs (evidence: `src/data/loader.ts`)
- CSV Loader → Prompt Data: reads CSVs (evidence: `src/data/loader.ts`)
- CSV Loader → Framework Data: reads CSVs (evidence: `src/data/loader.ts`)
- CSV Loader → Platform Data: reads CSVs (evidence: `src/data/loader.ts`)
- Tool Handlers → BM25 Ranking: ranks results (evidence: `src/tools/handlers.ts`)
- Tool Handlers → Query Mappings: uses query mappings (evidence: `src/tools/handlers.ts`)
- Tool Handlers → Framework Data: searches stack guidance (evidence: `README.md`)
- Tool Handlers → Platform Data: searches platform guidance (evidence: `README.md`)
