@mohityadav0903/branintelle-mcp 1.0.0 โ 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -96
- package/components-data.js +1107 -0
- package/design-tokens.json +1300 -0
- package/mcp-server.js +230 -110
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,154 +1,230 @@
|
|
|
1
|
-
# Branintelle
|
|
1
|
+
# Branintelle MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Version 2.0.0** - Enhanced Model Context Protocol server for Branintelle UI Library
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Provides comprehensive component documentation, design tokens, and usage patterns to LLMs via the Model Context Protocol.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## ๐ Features
|
|
10
|
+
|
|
11
|
+
- **36 Angular Components** - Full metadata with inputs, outputs, and examples
|
|
12
|
+
- **Complete Design System** - 1300+ design tokens from Figma
|
|
13
|
+
- **Usage Patterns** - Best practices for common UI scenarios
|
|
14
|
+
- **Smart Search** - Find components by keyword or use case
|
|
15
|
+
- **Type Definitions** - Full TypeScript interfaces included
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## ๐ฆ Installation
|
|
20
|
+
|
|
21
|
+
### Via npx (Recommended)
|
|
22
|
+
```bash
|
|
23
|
+
npx @mohityadav0903/branintelle-mcp
|
|
24
|
+
```
|
|
8
25
|
|
|
26
|
+
### Global Install
|
|
9
27
|
```bash
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
node test-mcp.js
|
|
28
|
+
npm install -g @mohityadav0903/branintelle-mcp
|
|
29
|
+
branintelle-mcp
|
|
13
30
|
```
|
|
14
31
|
|
|
15
|
-
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## ๐ Setup with Claude Desktop
|
|
16
35
|
|
|
17
|
-
|
|
18
|
-
Lists all 36 components, grouped by category
|
|
36
|
+
**Config file:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
19
37
|
|
|
20
38
|
```json
|
|
21
39
|
{
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
40
|
+
"mcpServers": {
|
|
41
|
+
"branintelle": {
|
|
42
|
+
"command": "npx",
|
|
43
|
+
"args": ["-y", "@mohityadav0903/branintelle-mcp"]
|
|
44
|
+
}
|
|
25
45
|
}
|
|
26
46
|
}
|
|
27
47
|
```
|
|
28
48
|
|
|
29
|
-
**
|
|
49
|
+
**Then restart Claude Desktop** and look for the ๐ icon!
|
|
50
|
+
|
|
51
|
+
---
|
|
30
52
|
|
|
31
|
-
|
|
32
|
-
Get docs for specific components
|
|
53
|
+
## ๐ ๏ธ Available Tools
|
|
33
54
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"name": "get_component_docs",
|
|
37
|
-
"arguments": {
|
|
38
|
-
"components": ["CustomButton", "StatusPill"]
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
```
|
|
55
|
+
### 1. `list_components`
|
|
56
|
+
Lists all 36 components with optional filtering and detail levels
|
|
42
57
|
|
|
43
|
-
|
|
58
|
+
```javascript
|
|
59
|
+
// Basic list
|
|
60
|
+
{ "category": "Buttons" }
|
|
44
61
|
|
|
45
|
-
|
|
46
|
-
|
|
62
|
+
// Detailed with full metadata
|
|
63
|
+
{ "category": "Tables", "detailed": true }
|
|
64
|
+
```
|
|
47
65
|
|
|
48
|
-
|
|
66
|
+
### 2. `get_component_docs`
|
|
67
|
+
Get comprehensive docs for specific components
|
|
68
|
+
|
|
69
|
+
```javascript
|
|
49
70
|
{
|
|
50
|
-
"
|
|
51
|
-
"arguments": {
|
|
52
|
-
"category": "colors" // "colors", "typography", or "all"
|
|
53
|
-
}
|
|
71
|
+
"components": ["CustomButton", "StatusPill", "ScrollableDataTable"]
|
|
54
72
|
}
|
|
55
73
|
```
|
|
56
74
|
|
|
57
|
-
**
|
|
75
|
+
**Returns:**
|
|
76
|
+
- Full TypeScript interfaces
|
|
77
|
+
- Input/Output properties
|
|
78
|
+
- Code examples
|
|
79
|
+
- Design tokens used
|
|
80
|
+
- Usage patterns
|
|
58
81
|
|
|
59
|
-
|
|
82
|
+
### 3. `get_design_tokens`
|
|
83
|
+
Access the complete Figma design system
|
|
60
84
|
|
|
61
|
-
|
|
85
|
+
```javascript
|
|
86
|
+
// All tokens with contexts
|
|
87
|
+
{ "category": "all", "includeContexts": true }
|
|
62
88
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
npm run build:lib
|
|
66
|
-
cd dist/lib
|
|
67
|
-
npm pack
|
|
68
|
-
# Publish to npm
|
|
89
|
+
// Just colors, no contexts
|
|
90
|
+
{ "category": "colors", "includeContexts": false }
|
|
69
91
|
```
|
|
70
92
|
|
|
71
|
-
|
|
93
|
+
**Returns:**
|
|
94
|
+
- 10 violet shades
|
|
95
|
+
- 9 text color variations
|
|
96
|
+
- Feedback colors (success, error, warning)
|
|
97
|
+
- Typography scales
|
|
98
|
+
- Usage contexts from Figma
|
|
72
99
|
|
|
73
|
-
|
|
100
|
+
### 4. `search_components`
|
|
101
|
+
Search by keyword or use case
|
|
74
102
|
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"branintelle": {
|
|
79
|
-
"command": "npx",
|
|
80
|
-
"args": ["-y", "@mohityadav0903/branintelle-ui-lib", "branintelle-mcp"]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
```
|
|
103
|
+
```javascript
|
|
104
|
+
// Search by keyword
|
|
105
|
+
{ "query": "dropdown" }
|
|
85
106
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
{
|
|
89
|
-
"mcpServers": {
|
|
90
|
-
"branintelle": {
|
|
91
|
-
"command": "branintelle-mcp"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
107
|
+
// Filter by use case
|
|
108
|
+
{ "query": "select", "useCase": "forms" }
|
|
95
109
|
```
|
|
96
110
|
|
|
97
|
-
###
|
|
111
|
+
### 5. `get_usage_pattern`
|
|
112
|
+
Get recommended patterns and best practices
|
|
98
113
|
|
|
99
|
-
|
|
114
|
+
```javascript
|
|
115
|
+
{ "pattern": "primary-actions" }
|
|
116
|
+
{ "pattern": "multi-step-forms" }
|
|
117
|
+
{ "pattern": "data-display" }
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**Available patterns:**
|
|
121
|
+
- `primary-actions` - Main CTAs and buttons
|
|
122
|
+
- `status-indicators` - Status pills and badges
|
|
123
|
+
- `multi-step-forms` - Guided workflows
|
|
124
|
+
- `data-display` - Tables and lists
|
|
125
|
+
- `form-inputs` - Dropdowns and inputs
|
|
100
126
|
|
|
101
127
|
---
|
|
102
128
|
|
|
103
|
-
##
|
|
129
|
+
## ๐ก Example Queries for LLMs
|
|
104
130
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
131
|
+
Once connected to Claude Desktop:
|
|
132
|
+
|
|
133
|
+
- *"What button components are available in Branintelle?"*
|
|
134
|
+
- *"Show me how to use the ScrollableDataTable with sorting"*
|
|
135
|
+
- *"What are the primary brand colors?"*
|
|
136
|
+
- *"Find all dropdown components"*
|
|
137
|
+
- *"Show me the multi-step-forms pattern"*
|
|
138
|
+
- *"Get design tokens for typography"*
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## ๐ Component Categories
|
|
143
|
+
|
|
144
|
+
- **Buttons** (5) - CustomButton, ApproveButton, CancelButton, BackButton, ButtonImage
|
|
145
|
+
- **Status** (3) - StatusPill, PillBadge, PillBox
|
|
146
|
+
- **Progress** (2) - ProgressBar, SegmentedProgressBar
|
|
147
|
+
- **Navigation** (3) - VerticalStepper, CustomBreadcrumb, HeaderTabs
|
|
148
|
+
- **Text** (2) - TitleHeaderSubtext, HelpText
|
|
149
|
+
- **Forms** (2) - SearchBar, Checklist
|
|
150
|
+
- **Cards** (4) - HorizontalCard, InfoActionCard, ProgressDisplayCard, ProfileImageList
|
|
151
|
+
- **Dropdowns** (5) - SingleSelect, MultiSelect, DropdownWithStatus, MultilineOption, ExpandableMenu
|
|
152
|
+
- **Overlays** (2) - CustomTooltip, ConfirmWarning
|
|
153
|
+
- **Workflows** (3) - VerticalStages, UserSelection, Accordion
|
|
154
|
+
- **Filters** (2) - GeoTagFilter, TableActionMenu
|
|
155
|
+
- **Tables** (3) - ScrollableDataTable, CollapsableTable, CollapsableTableSmall
|
|
112
156
|
|
|
113
157
|
---
|
|
114
158
|
|
|
115
|
-
##
|
|
159
|
+
## ๐จ Design System
|
|
116
160
|
|
|
117
|
-
|
|
161
|
+
### Colors
|
|
162
|
+
- **10 Violet Shades** - Primary brand palette (#544d7c - #232034)
|
|
163
|
+
- **9 Text Colors** - From white to max contrast
|
|
164
|
+
- **Feedback Colors** - Success, error, warning, selected
|
|
165
|
+
- **State Colors** - Hover, active, disabled
|
|
118
166
|
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
|
|
167
|
+
### Typography
|
|
168
|
+
- **Font Family:** Lato
|
|
169
|
+
- **Scales:** Display, Heading (2XL-Small), Body (Large-XSmall), Caption, Code
|
|
170
|
+
- **Weights:** 400, 500, 600, 700
|
|
171
|
+
|
|
172
|
+
### All Design Tokens
|
|
173
|
+
- 1300+ tokens with usage contexts
|
|
174
|
+
- Extracted from Figma design files
|
|
175
|
+
- CSS variables available in demo app
|
|
124
176
|
|
|
125
177
|
---
|
|
126
178
|
|
|
127
|
-
##
|
|
179
|
+
## ๐ Related Packages
|
|
128
180
|
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
- `test-mcp.js` - Test script
|
|
132
|
-
- `package.json` - Updated with `bin` and `type: "module"`
|
|
181
|
+
- **UI Library:** [@mohityadav0903/branintelle-ui-lib](https://www.npmjs.com/package/@mohityadav0903/branintelle-ui-lib)
|
|
182
|
+
- **Demo App:** Included with design tokens pre-configured
|
|
133
183
|
|
|
134
184
|
---
|
|
135
185
|
|
|
136
|
-
##
|
|
186
|
+
## ๐ What's New in v2.0
|
|
187
|
+
|
|
188
|
+
### Enhanced Component Metadata
|
|
189
|
+
- Full TypeScript interfaces for all components
|
|
190
|
+
- Input/Output property documentation
|
|
191
|
+
- Real code examples with data
|
|
192
|
+
- Design tokens mapping
|
|
193
|
+
|
|
194
|
+
### Complete Design System
|
|
195
|
+
- Full 1300+ Figma tokens included
|
|
196
|
+
- Usage contexts for each token
|
|
197
|
+
- Component-specific recommendations
|
|
198
|
+
|
|
199
|
+
### New Tools
|
|
200
|
+
- `search_components` - Smart component search
|
|
201
|
+
- `get_usage_pattern` - Best practice patterns
|
|
202
|
+
- Enhanced `get_design_tokens` with contexts
|
|
137
203
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
5. โฌ **Add resources** - Component examples, migration guides
|
|
204
|
+
### Better Developer Experience
|
|
205
|
+
- Detailed TypeScript types
|
|
206
|
+
- Copy-paste ready examples
|
|
207
|
+
- Pattern-based recommendations
|
|
143
208
|
|
|
144
209
|
---
|
|
145
210
|
|
|
146
|
-
##
|
|
211
|
+
## ๐ค Contributing
|
|
212
|
+
|
|
213
|
+
This MCP server is part of the Branintelle UI ecosystem. For issues or feature requests, please visit our GitHub repository.
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
## ๐ License
|
|
218
|
+
|
|
219
|
+
MIT License - see LICENSE file for details
|
|
220
|
+
|
|
221
|
+
---
|
|
147
222
|
|
|
148
|
-
|
|
149
|
-
- Responses are **JSON-RPC 2.0** format
|
|
150
|
-
- Component data is currently **static** (can be auto-generated later)
|
|
151
|
-
- Design tokens are **simplified** (subset of full tokens.css)
|
|
223
|
+
## ๐ Made for AI-First Development
|
|
152
224
|
|
|
153
|
-
|
|
225
|
+
Built specifically to make Branintelle UI components discoverable and usable by Large Language Models through the Model Context Protocol.
|
|
154
226
|
|
|
227
|
+
**Package:** `@mohityadav0903/branintelle-mcp`
|
|
228
|
+
**Version:** 2.0.0
|
|
229
|
+
**Protocol:** MCP (Model Context Protocol)
|
|
230
|
+
**Runtime:** Node.js 18+
|