cre8-mcp 0.1.0
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 +55 -0
- package/data/components.json +654 -0
- package/dist/handlers.d.ts +33 -0
- package/dist/handlers.js +128 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +75 -0
- package/dist/proxy.d.ts +17 -0
- package/dist/proxy.js +131 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.js +82 -0
- package/dist/tools.d.ts +93 -0
- package/dist/tools.js +79 -0
- package/package.json +34 -0
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Cre8 MCP Server
|
|
2
|
+
|
|
3
|
+
MCP (Model Context Protocol) server that provides component intelligence for the `@tmorrow/cre8-wc` or `@tmorrow/cre8-react` component libraries.
|
|
4
|
+
|
|
5
|
+
## Tools
|
|
6
|
+
|
|
7
|
+
### `list_components`
|
|
8
|
+
|
|
9
|
+
Lists all available Cre8 components grouped by category.
|
|
10
|
+
|
|
11
|
+
**Categories:** Actions, Forms, Layout, Typography, Navigation, Disclosure, Feedback, Data, Media, Marketing
|
|
12
|
+
|
|
13
|
+
### `get_component`
|
|
14
|
+
|
|
15
|
+
Gets detailed information about a specific component including:
|
|
16
|
+
|
|
17
|
+
- Import statement
|
|
18
|
+
- Props with types and descriptions
|
|
19
|
+
- Usage examples
|
|
20
|
+
|
|
21
|
+
### `get_patterns`
|
|
22
|
+
|
|
23
|
+
Returns pre-built UI patterns using Cre8 components:
|
|
24
|
+
|
|
25
|
+
- Login Form
|
|
26
|
+
- Data Table
|
|
27
|
+
- Page Layout
|
|
28
|
+
- Alert Banner
|
|
29
|
+
- Tabbed Content
|
|
30
|
+
|
|
31
|
+
### `search_components`
|
|
32
|
+
|
|
33
|
+
Search components by name, description, or category.
|
|
34
|
+
|
|
35
|
+
## Usage with Claude Desktop
|
|
36
|
+
|
|
37
|
+
Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_desktop_config.json`):
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"mcpServers": {
|
|
42
|
+
"cre8-mcp-proxy": {
|
|
43
|
+
"command": "npx",
|
|
44
|
+
"args": ["-y", "cre8-mcp-proxy"]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Example Queries
|
|
51
|
+
|
|
52
|
+
- "List all form components" → `list_components` with category "Forms"
|
|
53
|
+
- "How do I use the Button component?" → `get_component` with name "Button"
|
|
54
|
+
- "Find components for navigation" → `search_components` with query "navigation"
|
|
55
|
+
- "Show me the login form pattern" → `get_patterns` with name "Login Form"
|