raven-mcp 1.0.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/LICENSE +21 -0
- package/README.md +72 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +629 -0
- package/dist/index.js.map +1 -0
- package/package.json +51 -0
- package/src/data/business/growth.json +48 -0
- package/src/data/business/metrics.json +48 -0
- package/src/data/business/monetization.json +56 -0
- package/src/data/business/onboarding.json +48 -0
- package/src/data/business/retention.json +48 -0
- package/src/data/patterns/cta.json +51 -0
- package/src/data/patterns/dashboard.json +51 -0
- package/src/data/patterns/empty-states.json +42 -0
- package/src/data/patterns/error-states.json +51 -0
- package/src/data/patterns/forms.json +53 -0
- package/src/data/patterns/landing-page.json +51 -0
- package/src/data/patterns/loading-states.json +51 -0
- package/src/data/patterns/mobile-conversion.json +51 -0
- package/src/data/patterns/modals-dialogs.json +51 -0
- package/src/data/patterns/navigation.json +50 -0
- package/src/data/patterns/pricing-page.json +59 -0
- package/src/data/patterns/signup-flow.json +52 -0
- package/src/data/patterns/social-proof.json +49 -0
- package/src/data/principles/accessibility.json +151 -0
- package/src/data/principles/color-theory.json +100 -0
- package/src/data/principles/d4d.json +113 -0
- package/src/data/principles/gestalt.json +129 -0
- package/src/data/principles/laws-of-ux.json +490 -0
- package/src/data/principles/mobile-ux.json +126 -0
- package/src/data/principles/nielsen-heuristics.json +258 -0
- package/src/data/principles/typography.json +117 -0
- package/src/data/tokens/registry.json +67 -0
- package/src/data/tokens/systems/linear.json +134 -0
- package/src/data/tokens/systems/stripe.json +147 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andrew Cunliffe
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Raven MCP
|
|
2
|
+
|
|
3
|
+
**Odin's ravens brought back knowledge of the world — Raven brings back design intelligence.**
|
|
4
|
+
|
|
5
|
+
A design knowledge MCP server that Claude can query when generating UI. Three layers: principles, patterns, and business strategy.
|
|
6
|
+
|
|
7
|
+
## What it does
|
|
8
|
+
|
|
9
|
+
Raven gives Claude access to a comprehensive design knowledge base:
|
|
10
|
+
|
|
11
|
+
- **Principles** — Nielsen's 10 Heuristics, all 21 Laws of UX, Gestalt principles, WCAG accessibility, typography rules, color theory, mobile UX, and D4D framework
|
|
12
|
+
- **Patterns** — Proven UI patterns for signup flows, pricing pages, navigation, forms, landing pages, dashboards, modals, empty/error/loading states, CTAs, social proof, and mobile conversion
|
|
13
|
+
- **Business** — Monetization models, retention strategies, onboarding optimization, growth mechanics, and product metrics frameworks
|
|
14
|
+
- **Tokens** — Design system tokens for Stripe, Linear, and more (registry of 7 systems, 2 fully populated)
|
|
15
|
+
|
|
16
|
+
## Setup
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
cd raven-mcp
|
|
20
|
+
npm install
|
|
21
|
+
npm run build
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Add to Claude Code
|
|
25
|
+
|
|
26
|
+
Add to your Claude Code MCP config (`~/.claude/claude_desktop_config.json` or project `.mcp.json`):
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"mcpServers": {
|
|
31
|
+
"raven": {
|
|
32
|
+
"command": "node",
|
|
33
|
+
"args": ["/path/to/raven-mcp/dist/index.js"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Tools
|
|
40
|
+
|
|
41
|
+
| Tool | Description |
|
|
42
|
+
|------|-------------|
|
|
43
|
+
| `get_principles` | Get design principles relevant to a UI context |
|
|
44
|
+
| `get_pattern` | Get proven patterns for a specific UI type |
|
|
45
|
+
| `get_business_strategy` | Get business/monetization strategies |
|
|
46
|
+
| `evaluate_design` | Evaluate a design description against principles |
|
|
47
|
+
| `search_knowledge` | Search across all principles, patterns, and strategies |
|
|
48
|
+
| `get_checklist` | Get a pre-publish checklist for a UI type |
|
|
49
|
+
| `get_d4d_framework` | Get Design for Delight framework templates |
|
|
50
|
+
| `list_design_systems` | Browse available design systems |
|
|
51
|
+
| `get_design_system` | Get tokens for a specific design system |
|
|
52
|
+
| `compose_system` | Mix tokens from different systems |
|
|
53
|
+
|
|
54
|
+
## Development
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npm run dev # Run with tsx (hot reload)
|
|
58
|
+
npm run build # Compile TypeScript
|
|
59
|
+
npm start # Run compiled output
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Data structure
|
|
63
|
+
|
|
64
|
+
All knowledge lives in `src/data/` as static JSON files:
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
src/data/
|
|
68
|
+
principles/ # Nielsen, Laws of UX, Gestalt, accessibility, typography, color, mobile, D4D
|
|
69
|
+
patterns/ # signup, pricing, nav, forms, landing, dashboard, modals, empty/error/loading, CTA, social proof, mobile
|
|
70
|
+
business/ # monetization, retention, onboarding, growth, metrics
|
|
71
|
+
tokens/ # registry.json + systems/ (stripe.json, linear.json)
|
|
72
|
+
```
|
package/dist/index.d.ts
ADDED