ebade 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.
@@ -0,0 +1,144 @@
1
+ # ebade MCP Server 🤖
2
+
3
+ > Enable AI agents to build with ebade - The Essence of Code
4
+
5
+ This MCP (Model Context Protocol) server allows AI agents like Claude, GPT, and others to use ebade for building web applications.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install -g @ebade/mcp-server
11
+ ```
12
+
13
+ Or locally:
14
+
15
+ ```bash
16
+ npm install @ebade/mcp-server
17
+ ```
18
+
19
+ ## Configuration
20
+
21
+ Add to your MCP client configuration:
22
+
23
+ ### For Claude Desktop
24
+
25
+ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
26
+
27
+ ```json
28
+ {
29
+ "mcpServers": {
30
+ "ebade": {
31
+ "command": "node",
32
+ "args": ["/path/to/ebade/packages/mcp-server/dist/index.js"]
33
+ }
34
+ }
35
+ }
36
+ ```
37
+
38
+ ### For Cursor
39
+
40
+ Add to your Cursor MCP settings:
41
+
42
+ ```json
43
+ {
44
+ "ebade": {
45
+ "command": "ebade-mcp"
46
+ }
47
+ }
48
+ ```
49
+
50
+ ## Available Tools
51
+
52
+ ### `ebade_scaffold`
53
+
54
+ Create a complete project from an ebade definition.
55
+
56
+ ```typescript
57
+ // Example usage by an AI agent:
58
+ ebade_scaffold({
59
+ projectName: "my-store",
60
+ projectType: "e-commerce",
61
+ features: ["product-catalog", "shopping-cart", "checkout"],
62
+ outputDir: "/path/to/projects"
63
+ })
64
+ ```
65
+
66
+ **Output:** Full Next.js project with pages, components, and styles.
67
+
68
+ ### `ebade_validate`
69
+
70
+ Validate an ebade file before scaffolding.
71
+
72
+ ```typescript
73
+ ebade_validate({
74
+ intentContent: `
75
+ name: my-app
76
+ type: saas-dashboard
77
+ features:
78
+ - user-auth
79
+ - analytics
80
+ `
81
+ })
82
+ ```
83
+
84
+ **Output:** Validation results with errors and warnings.
85
+
86
+ ### `ebade_compile`
87
+
88
+ Compile a single ebade to code.
89
+
90
+ ```typescript
91
+ ebade_compile({
92
+ intent: {
93
+ type: "page",
94
+ name: "checkout",
95
+ path: "/checkout",
96
+ components: ["cart-summary", "payment-form"],
97
+ auth: "required"
98
+ },
99
+ target: "nextjs"
100
+ })
101
+ ```
102
+
103
+ **Output:** Generated TypeScript/React code.
104
+
105
+ ### `ebade_generate`
106
+
107
+ Generate a component from natural language.
108
+
109
+ ```typescript
110
+ ebade_generate({
111
+ description: "a product card with image, title, price, and add to cart button",
112
+ style: "minimal-modern"
113
+ })
114
+ ```
115
+
116
+ **Output:** Inferred intent + generated component code.
117
+
118
+ ## Resources
119
+
120
+ The server also provides resources:
121
+
122
+ - `ebade://syntax` - Complete syntax reference
123
+ - `ebade://examples/ecommerce` - E-commerce example
124
+ - `ebade://examples/saas` - SaaS dashboard example
125
+
126
+ ## Development
127
+
128
+ ```bash
129
+ # Install dependencies
130
+ npm install
131
+
132
+ # Build
133
+ npm run build
134
+
135
+ # Watch mode
136
+ npm run dev
137
+
138
+ # Run
139
+ npm start
140
+ ```
141
+
142
+ ## License
143
+
144
+ MIT