mycontext-cli 1.0.76 → 1.0.78
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 +90 -325
- package/dist/cli.js +59 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +8 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/setup-instantdb.d.ts +37 -0
- package/dist/commands/setup-instantdb.d.ts.map +1 -0
- package/dist/commands/setup-instantdb.js +913 -0
- package/dist/commands/setup-instantdb.js.map +1 -0
- package/dist/commands/setup-mcp.d.ts +29 -0
- package/dist/commands/setup-mcp.d.ts.map +1 -0
- package/dist/commands/setup-mcp.js +537 -0
- package/dist/commands/setup-mcp.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,390 +4,155 @@
|
|
|
4
4
|
|
|
5
5
|
AI-powered tool that generates production-ready React components through an advanced agent-driven workflow that deeply understands your project context.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Installation
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
#
|
|
14
|
-
|
|
15
|
-
# OR
|
|
16
|
-
mycontext init my-app --description "Your project description"
|
|
17
|
-
cd my-app
|
|
18
|
-
|
|
19
|
-
# Unified Context Generation
|
|
20
|
-
mycontext generate context --full --description "Your project description" # → PRD + A/B/C/D files
|
|
21
|
-
mycontext compile-prd # → Comprehensive PRD
|
|
22
|
-
mycontext build-app --interactive # → Complete app with agents
|
|
10
|
+
npm install -g @mycontext/cli
|
|
11
|
+
# or
|
|
12
|
+
pnpm add -g @mycontext/cli
|
|
13
|
+
# or
|
|
14
|
+
yarn global add @mycontext/cli
|
|
23
15
|
```
|
|
24
16
|
|
|
25
|
-
##
|
|
26
|
-
|
|
27
|
-
MyContext uses 11 specialized AI agents working together in an orchestrated workflow:
|
|
28
|
-
|
|
29
|
-
### 1. Context Generation (Agent: SpecAgent)
|
|
17
|
+
## Quick Start
|
|
30
18
|
|
|
31
19
|
```bash
|
|
32
|
-
#
|
|
33
|
-
mycontext
|
|
34
|
-
|
|
35
|
-
# Generate full context (PRD + A/B/C/D files)
|
|
36
|
-
mycontext generate context --full --description "Modern e-commerce platform"
|
|
37
|
-
|
|
38
|
-
# Generate only A/B/C/D files (requires existing PRD)
|
|
39
|
-
mycontext generate context --files-only
|
|
20
|
+
# Initialize a new project
|
|
21
|
+
mycontext init my-project
|
|
40
22
|
|
|
41
|
-
#
|
|
42
|
-
|
|
43
|
-
# - A. Features (.mycontext/01a-features.md)
|
|
44
|
-
# - B. User Flows (.mycontext/01b-user-flows.md)
|
|
45
|
-
# - C. Edge Cases (.mycontext/01c-edge-cases.md)
|
|
46
|
-
# - D. Technical Specs (.mycontext/01d-technical-specs.md)
|
|
47
|
-
```
|
|
23
|
+
# Set up AI provider (Qwen3 Coder - FREE!)
|
|
24
|
+
echo 'MYCONTEXT_QWEN_API_KEY=sk-or-xxx' > .mycontext/.env
|
|
48
25
|
|
|
49
|
-
|
|
26
|
+
# Generate context files
|
|
27
|
+
mycontext generate context --full --description 'Modern todo app'
|
|
50
28
|
|
|
51
|
-
|
|
29
|
+
# Compile PRD
|
|
52
30
|
mycontext compile-prd
|
|
53
|
-
# Compiles A/B/C/D context files into:
|
|
54
|
-
# - .mycontext/prd-compiled.md (comprehensive requirements)
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### 3. Complete Application Build (Agent Orchestration)
|
|
58
31
|
|
|
59
|
-
|
|
60
|
-
mycontext
|
|
61
|
-
# Orchestrates multiple agents:
|
|
62
|
-
# - TypesAgent: Generates TypeScript types
|
|
63
|
-
# - BrandAgent: Creates design system
|
|
64
|
-
# - CodeGenAgent: Generates components
|
|
65
|
-
# - QAAgent: Quality assurance
|
|
66
|
-
# - DocsAgent: Documentation
|
|
32
|
+
# Generate components
|
|
33
|
+
mycontext generate-components all --with-tests
|
|
67
34
|
```
|
|
68
35
|
|
|
69
|
-
##
|
|
36
|
+
## Features
|
|
70
37
|
|
|
71
|
-
|
|
38
|
+
- **🤖 AI-Powered Generation**: Uses advanced AI models to understand your project context
|
|
39
|
+
- **⚡ Fast Setup**: Initialize projects in seconds with Next.js, TypeScript, and Tailwind CSS
|
|
40
|
+
- **🎨 Component Generation**: Create production-ready React components with Shadcn UI
|
|
41
|
+
- **📋 Context-Aware**: Generates PRDs, types, and branding based on your project
|
|
42
|
+
- **🔧 Developer-Friendly**: Built-in validation, testing, and preview capabilities
|
|
43
|
+
- **🆓 Free Tier**: Use Qwen3 Coder model for free (no API key required for basic usage)
|
|
72
44
|
|
|
73
|
-
|
|
74
|
-
mycontext generate context --full # PRD + A/B/C/D context files (UNIFIED)
|
|
75
|
-
mycontext compile-prd # Compile to comprehensive PRD (NEW)
|
|
76
|
-
mycontext build-app # Agent-orchestrated full build (NEW)
|
|
77
|
-
mycontext generate types # TypeScript type system
|
|
78
|
-
mycontext generate brand-kit # Complete brand system
|
|
79
|
-
```
|
|
45
|
+
## Commands
|
|
80
46
|
|
|
81
|
-
###
|
|
47
|
+
### Project Setup
|
|
82
48
|
|
|
83
49
|
```bash
|
|
84
|
-
mycontext
|
|
85
|
-
mycontext
|
|
86
|
-
mycontext
|
|
50
|
+
mycontext init <project-name> # Initialize new project
|
|
51
|
+
mycontext setup # Configure AI providers
|
|
52
|
+
mycontext analyze # Analyze existing project
|
|
87
53
|
```
|
|
88
54
|
|
|
89
|
-
###
|
|
55
|
+
### Context Generation
|
|
90
56
|
|
|
91
57
|
```bash
|
|
92
|
-
mycontext
|
|
93
|
-
mycontext
|
|
94
|
-
mycontext
|
|
95
|
-
mycontext
|
|
58
|
+
mycontext generate context # Generate PRD and context files
|
|
59
|
+
mycontext generate types # Generate TypeScript types
|
|
60
|
+
mycontext generate brand # Generate branding guidelines
|
|
61
|
+
mycontext generate components-list # Generate component list
|
|
62
|
+
mycontext compile-prd # Compile PRD from context files
|
|
96
63
|
```
|
|
97
64
|
|
|
98
|
-
|
|
65
|
+
### Component Development
|
|
99
66
|
|
|
100
67
|
```bash
|
|
101
|
-
#
|
|
102
|
-
mycontext
|
|
103
|
-
mycontext
|
|
104
|
-
mycontext
|
|
105
|
-
mycontext predict issues # Potential problems
|
|
106
|
-
|
|
107
|
-
# Interactive workflow
|
|
108
|
-
mycontext build-app --interactive # Human-in-the-loop generation
|
|
109
|
-
mycontext build-app --max-retries 5 # Configure retry limits
|
|
110
|
-
|
|
111
|
-
# Model management
|
|
112
|
-
mycontext model list # Available AI models
|
|
113
|
-
mycontext model test # Test AI provider connections
|
|
114
|
-
mycontext setup # Local AI setup
|
|
68
|
+
mycontext generate-components <target> # Generate React components
|
|
69
|
+
mycontext enhance <component> # Enhance existing components
|
|
70
|
+
mycontext refine <component> # Refine components with AI
|
|
71
|
+
mycontext preview <type> # Preview components or brand
|
|
115
72
|
```
|
|
116
73
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
### Context Files (A/B/C/D Workflow)
|
|
120
|
-
|
|
121
|
-
- **`.mycontext/features.md`** — Core product features and capabilities
|
|
122
|
-
- **`.mycontext/user-flows.md`** — User journey maps and interaction patterns
|
|
123
|
-
- **`.mycontext/edge-cases.md`** — Error scenarios and edge conditions
|
|
124
|
-
- **`.mycontext/technical-specs.md`** — Architecture and technical requirements
|
|
125
|
-
- **`.mycontext/prd-compiled.md`** — Comprehensive compiled PRD
|
|
126
|
-
|
|
127
|
-
### Generated Assets
|
|
128
|
-
|
|
129
|
-
- **`.mycontext/types/`** — Complete TypeScript type system (5 files)
|
|
130
|
-
- `index.ts` — Main type exports and interfaces
|
|
131
|
-
- `database.ts` — Database schema and data models
|
|
132
|
-
- `enums.ts` — Enum constants and type guards
|
|
133
|
-
- `ui.ts` — UI component prop types
|
|
134
|
-
- `utils.ts` — Utility types and helpers
|
|
135
|
-
- **`.mycontext/brand-kit/`** — Complete design system
|
|
136
|
-
- `brand-kit.json` — Design tokens and theme configuration
|
|
137
|
-
- `globals.css` — CSS custom properties and variables
|
|
138
|
-
- `colors.md` — Color palette documentation
|
|
139
|
-
- `typography.md` — Typography specifications and hierarchy
|
|
140
|
-
- **`components/`** — Production-ready React components with shadcn/ui
|
|
141
|
-
- **`lib/`** — Shared utilities and hooks
|
|
142
|
-
- **`docs/`** — Auto-generated component documentation
|
|
143
|
-
|
|
144
|
-
## 🤖 Agent Architecture
|
|
145
|
-
|
|
146
|
-
MyContext features a sophisticated multi-agent system with 11 specialized AI agents:
|
|
147
|
-
|
|
148
|
-
### Core Agents
|
|
149
|
-
|
|
150
|
-
- **SpecAgent**: Generates A/B/C/D context files from project descriptions
|
|
151
|
-
- **PRDAgent**: Compiles context files into comprehensive PRDs
|
|
152
|
-
- **TypesAgent**: Creates TypeScript type systems from features and flows
|
|
153
|
-
- **BrandAgent**: Generates complete design systems and brand kits
|
|
154
|
-
- **CodeGenAgent**: Produces production-ready React components
|
|
155
|
-
- **QAAgent**: Performs quality assurance and validation
|
|
156
|
-
- **DocsAgent**: Creates comprehensive documentation
|
|
157
|
-
|
|
158
|
-
### Support Agents
|
|
159
|
-
|
|
160
|
-
- **ArchitectAgent**: Provides architectural analysis and recommendations
|
|
161
|
-
- **SecurityAgent**: Performs security analysis and best practices
|
|
162
|
-
- **InteractiveAgent**: Handles human-in-the-loop interactions
|
|
163
|
-
- **ProjectSetupAgent**: Manages project initialization and structure
|
|
164
|
-
- **WorkflowAgent**: Orchestrates complete build processes
|
|
165
|
-
|
|
166
|
-
### Agent Orchestration
|
|
74
|
+
### Project Management
|
|
167
75
|
|
|
168
76
|
```bash
|
|
169
|
-
mycontext
|
|
170
|
-
#
|
|
171
|
-
|
|
172
|
-
#
|
|
77
|
+
mycontext validate <target> # Validate PRD or files
|
|
78
|
+
mycontext status # Check project status
|
|
79
|
+
mycontext list [type] # List components, projects, or files
|
|
80
|
+
mycontext promote # Promote components to production
|
|
173
81
|
```
|
|
174
82
|
|
|
175
|
-
##
|
|
176
|
-
|
|
177
|
-
**We're currently in beta!** All usage is **Bring Your Own Key (BYOK)** - no pricing, no subscriptions, just use your existing API keys.
|
|
178
|
-
|
|
179
|
-
### **What This Means**
|
|
180
|
-
|
|
181
|
-
- ✅ **No Cost**: Use your own API keys, pay only what you normally pay
|
|
182
|
-
- ✅ **Full Control**: Complete control over costs and performance
|
|
183
|
-
- ✅ **No Limits**: No rate limits or usage tracking from us
|
|
184
|
-
- ✅ **Recommended Providers**: Claude or GPT for best results
|
|
185
|
-
|
|
186
|
-
## 🤖 AI Provider Options
|
|
187
|
-
|
|
188
|
-
MyContext supports multiple AI providers with intelligent fallback:
|
|
83
|
+
## Configuration
|
|
189
84
|
|
|
190
|
-
###
|
|
191
|
-
|
|
192
|
-
| Provider | Environment Variable | Best For | Cost |
|
|
193
|
-
| ---------------------- | -------------------------- | -------------------------------- | -------------- |
|
|
194
|
-
| **X.AI (Grok)** | `MYCONTEXT_XAI_API_KEY` | Fast, high-quality generation | Your API costs |
|
|
195
|
-
| **Qwen3 Coder** | `MYCONTEXT_QWEN_API_KEY` | Free code generation, OpenRouter | **FREE** |
|
|
196
|
-
| **GitHub Models** | `MYCONTEXT_GITHUB_TOKEN` | Fast, high-quality generation | Your API costs |
|
|
197
|
-
| **Claude (Anthropic)** | `MYCONTEXT_CLAUDE_API_KEY` | Complex reasoning, detailed PRDs | Your API costs |
|
|
198
|
-
| **OpenAI** | `MYCONTEXT_OPENAI_API_KEY` | Versatile generation, refinement | Your API costs |
|
|
199
|
-
|
|
200
|
-
### **Provider Priority Chain**
|
|
201
|
-
|
|
202
|
-
1. **Your API Keys** (recommended - Claude or GPT)
|
|
203
|
-
2. **Qwen3 Coder FREE** (fallback via OpenRouter)
|
|
204
|
-
3. **Basic Templates** (ultimate fallback)
|
|
205
|
-
|
|
206
|
-
## Environment Setup
|
|
207
|
-
|
|
208
|
-
### Option 1: Bring Your Own API Keys (Recommended)
|
|
209
|
-
|
|
210
|
-
Set up your preferred AI provider for best performance and cost control:
|
|
211
|
-
|
|
212
|
-
```bash
|
|
213
|
-
# Qwen3 Coder (FREE via OpenRouter - Recommended!)
|
|
214
|
-
echo 'MYCONTEXT_QWEN_API_KEY=sk-or-xxx' > .mycontext/.env
|
|
85
|
+
### AI Providers
|
|
215
86
|
|
|
216
|
-
|
|
217
|
-
echo 'MYCONTEXT_GITHUB_TOKEN=ghp_xxx' > .mycontext/.env
|
|
87
|
+
MyContext supports multiple AI providers:
|
|
218
88
|
|
|
219
|
-
|
|
220
|
-
echo 'MYCONTEXT_CLAUDE_API_KEY=sk-ant-xxx' > .mycontext/.env
|
|
89
|
+
1. **Qwen3 Coder (Recommended - FREE)**
|
|
221
90
|
|
|
222
|
-
|
|
223
|
-
echo '
|
|
91
|
+
```bash
|
|
92
|
+
echo 'MYCONTEXT_QWEN_API_KEY=sk-or-xxx' > .mycontext/.env
|
|
93
|
+
```
|
|
224
94
|
|
|
225
|
-
|
|
226
|
-
echo 'MYCONTEXT_GROK_TOKEN=xai-xxx' > .mycontext/.env
|
|
227
|
-
```
|
|
95
|
+
2. **GitHub Models (Self-hosted)**
|
|
228
96
|
|
|
229
|
-
|
|
97
|
+
```bash
|
|
98
|
+
echo 'MYCONTEXT_GITHUB_TOKEN=ghp_xxx' > .mycontext/.env
|
|
99
|
+
```
|
|
230
100
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
101
|
+
3. **OpenAI (Paid)**
|
|
102
|
+
```bash
|
|
103
|
+
echo 'OPENAI_API_KEY=sk-xxx' > .mycontext/.env
|
|
104
|
+
```
|
|
235
105
|
|
|
236
|
-
|
|
237
|
-
mycontext setup
|
|
106
|
+
### Project Structure
|
|
238
107
|
|
|
239
|
-
# Verify setup
|
|
240
|
-
mycontext model status
|
|
241
108
|
```
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
#
|
|
249
|
-
|
|
250
|
-
mycontext predict next # Uses project context for predictions
|
|
251
|
-
mycontext enhance Button.tsx # Uses brand and types for enhancements
|
|
252
|
-
mycontext refine LoginForm.tsx # Uses project context for refinements
|
|
109
|
+
my-project/
|
|
110
|
+
├── .mycontext/ # MyContext configuration
|
|
111
|
+
│ ├── 01-prd.md # Product Requirements Document
|
|
112
|
+
│ ├── 02-types.ts # TypeScript types
|
|
113
|
+
│ ├── 03-branding.md # Branding guidelines
|
|
114
|
+
│ └── .env # Environment variables
|
|
115
|
+
├── components/ # Generated components
|
|
116
|
+
└── package.json
|
|
253
117
|
```
|
|
254
118
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
When no description is provided, commands load context in this order:
|
|
258
|
-
|
|
259
|
-
1. **PRD** (`.mycontext/01-prd.md`) - Product requirements and project overview
|
|
260
|
-
2. **Types** (`.mycontext/02-types.ts`) - TypeScript type definitions
|
|
261
|
-
3. **User Stories** (`.mycontext/02_user_stories.md`) - User requirements
|
|
262
|
-
4. **Technical Specs** (`.mycontext/03_technical_specs.md`) - Technical details
|
|
263
|
-
5. **Component List** (`.mycontext/04-component-list.json`) - Component architecture
|
|
264
|
-
6. **Brand** (`.mycontext/03-branding.md` or `brand/globals.css`) - Design system
|
|
265
|
-
|
|
266
|
-
### Context Loading Benefits
|
|
267
|
-
|
|
268
|
-
- **No Repetition**: Don't re-enter project details for every command
|
|
269
|
-
- **Consistency**: All commands use the same project context
|
|
270
|
-
- **Efficiency**: Faster workflow with automatic context detection
|
|
271
|
-
- **Accuracy**: Better results with full project understanding
|
|
119
|
+
## Examples
|
|
272
120
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
### Using Generated Types
|
|
121
|
+
### Create a Todo App
|
|
276
122
|
|
|
277
123
|
```bash
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
import type { User, ApiResponse } from "@/lib/types";
|
|
283
|
-
import { USER_ROLES } from "@/lib/types/enums";
|
|
124
|
+
mycontext init todo-app --description "A modern todo application with dark mode"
|
|
125
|
+
cd todo-app
|
|
126
|
+
mycontext generate context --full
|
|
127
|
+
mycontext generate-components all --with-tests
|
|
284
128
|
```
|
|
285
129
|
|
|
286
|
-
###
|
|
287
|
-
|
|
288
|
-
```bash
|
|
289
|
-
# Copy the CSS to your globals.css
|
|
290
|
-
cp .mycontext/brand/globals.css ./src/app/globals.css
|
|
291
|
-
|
|
292
|
-
# Use the design tokens
|
|
293
|
-
<div className="bg-primary text-primary-foreground p-4 rounded-lg">
|
|
294
|
-
Hello World
|
|
295
|
-
</div>
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
## Key Features
|
|
299
|
-
|
|
300
|
-
### 🤖 **Agent-Driven Development**
|
|
301
|
-
|
|
302
|
-
- **11 Specialized Agents**: Each agent handles specific development tasks
|
|
303
|
-
- **Intelligent Orchestration**: Agents work together seamlessly
|
|
304
|
-
- **Human-in-the-Loop**: Interactive prompts and confirmations
|
|
305
|
-
- **Quality Gates**: Built-in validation and retry mechanisms
|
|
306
|
-
|
|
307
|
-
### 🎯 **Context-Aware Generation**
|
|
308
|
-
|
|
309
|
-
- **Deep Project Understanding**: Analyzes existing codebase patterns
|
|
310
|
-
- **A/B/C/D Context Files**: Comprehensive project specification
|
|
311
|
-
- **Automatic Context Loading**: Commands use project context intelligently
|
|
312
|
-
- **Consistent Results**: Same context produces consistent outputs
|
|
313
|
-
|
|
314
|
-
### 🏗️ **Production-Ready Code**
|
|
315
|
-
|
|
316
|
-
- **TypeScript First**: Complete type system with 5 specialized files
|
|
317
|
-
- **Modern React**: Next.js 15, shadcn/ui, server components
|
|
318
|
-
- **Accessibility**: WCAG compliant components
|
|
319
|
-
- **Testing**: Comprehensive test suites included
|
|
320
|
-
- **Documentation**: Auto-generated component docs
|
|
321
|
-
|
|
322
|
-
### 🎨 **Complete Design System**
|
|
323
|
-
|
|
324
|
-
- **Brand Kit Generation**: Colors, typography, components
|
|
325
|
-
- **CSS Custom Properties**: Theme-able design tokens
|
|
326
|
-
- **Component Library**: Consistent, reusable components
|
|
327
|
-
- **Responsive Design**: Mobile-first approach
|
|
328
|
-
|
|
329
|
-
### 🔧 **Developer Experience**
|
|
330
|
-
|
|
331
|
-
- **Interactive CLI**: Guided workflows with progress indicators
|
|
332
|
-
- **Multiple AI Providers**: Choose your preferred AI service
|
|
333
|
-
- **Fallback Support**: Always works, even without API keys
|
|
334
|
-
- **Extensible Architecture**: Plugin system for custom agents
|
|
335
|
-
|
|
336
|
-
## 🧪 **Testing & Quality Assurance**
|
|
337
|
-
|
|
338
|
-
### **Quick Test Suite**
|
|
130
|
+
### Work with Existing Project
|
|
339
131
|
|
|
340
132
|
```bash
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
# Expected: All tests pass within 5 minutes
|
|
345
|
-
# Tests: Installation, initialization, generation, timeout handling
|
|
133
|
+
mycontext init . --analyze
|
|
134
|
+
mycontext generate context --files-only
|
|
135
|
+
mycontext generate-components authentication
|
|
346
136
|
```
|
|
347
137
|
|
|
348
|
-
###
|
|
138
|
+
### Build Complete App
|
|
349
139
|
|
|
350
140
|
```bash
|
|
351
|
-
|
|
352
|
-
cat docs/TESTING_GUIDE.md
|
|
353
|
-
|
|
354
|
-
# Test specific scenarios
|
|
355
|
-
mycontext status --check-health
|
|
356
|
-
mycontext model --test
|
|
141
|
+
mycontext build-app --description "E-commerce platform" --interactive
|
|
357
142
|
```
|
|
358
143
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
- **Default Timeout**: 5 minutes for all AI operations
|
|
362
|
-
- **Component Generation**: 5 minutes per component
|
|
363
|
-
- **Context Generation**: 5 minutes for full context
|
|
364
|
-
- **Agent Workflows**: 5 minutes per workflow step
|
|
365
|
-
|
|
366
|
-
## 📞 Support & Community
|
|
367
|
-
|
|
368
|
-
### Getting Help
|
|
369
|
-
|
|
370
|
-
- **📧 Email**: hello@fbien.com
|
|
371
|
-
- **🐛 Issues**: [GitHub Issues](https://github.com/farajabien/mycontext/issues)
|
|
372
|
-
- **💬 Discussions**: [GitHub Discussions](https://github.com/farajabien/mycontext/discussions)
|
|
373
|
-
- **📖 Documentation**: [docs.mycontext.fbien.com](https://docs.mycontext.fbien.com)
|
|
374
|
-
|
|
375
|
-
### Community
|
|
376
|
-
|
|
377
|
-
- **Share Components**: Contribute to the component library
|
|
378
|
-
- **Report Bugs**: Help improve stability and reliability
|
|
379
|
-
- **Feature Requests**: Suggest new capabilities and improvements
|
|
380
|
-
- **Beta Testing**: Get early access to new features
|
|
144
|
+
## Documentation
|
|
381
145
|
|
|
382
|
-
|
|
146
|
+
- [Full Documentation](https://mycontext.fbien.com/docs)
|
|
147
|
+
- [API Reference](https://mycontext.fbien.com/docs/api)
|
|
148
|
+
- [Examples](https://mycontext.fbien.com/docs/examples)
|
|
383
149
|
|
|
384
|
-
|
|
385
|
-
- **White-label Solutions**: Custom branding and integration
|
|
386
|
-
- **Dedicated Support**: Priority response and SLAs
|
|
387
|
-
- **Training**: Team onboarding and best practices
|
|
150
|
+
## Support
|
|
388
151
|
|
|
389
|
-
|
|
152
|
+
- [GitHub Issues](https://github.com/mycontext/cli/issues)
|
|
153
|
+
- [Discord Community](https://discord.gg/mycontext)
|
|
154
|
+
- [Documentation](https://mycontext.fbien.com/docs)
|
|
390
155
|
|
|
391
|
-
|
|
156
|
+
## License
|
|
392
157
|
|
|
393
|
-
|
|
158
|
+
MIT © MyContext
|
package/dist/cli.js
CHANGED
|
@@ -33,6 +33,8 @@ const migrate_1 = require("./commands/migrate");
|
|
|
33
33
|
const generate_todos_1 = require("./commands/generate-todos");
|
|
34
34
|
const sanitize_1 = require("./commands/sanitize");
|
|
35
35
|
const setup_database_1 = require("./commands/setup-database");
|
|
36
|
+
const setup_instantdb_1 = require("./commands/setup-instantdb");
|
|
37
|
+
const setup_mcp_1 = require("./commands/setup-mcp");
|
|
36
38
|
const generate_context_files_1 = require("./commands/generate-context-files");
|
|
37
39
|
const compile_prd_1 = require("./commands/compile-prd");
|
|
38
40
|
// Import sub-agent system
|
|
@@ -705,6 +707,61 @@ program
|
|
|
705
707
|
process.exit(1);
|
|
706
708
|
}
|
|
707
709
|
});
|
|
710
|
+
// InstantDB + MCP setup command
|
|
711
|
+
program
|
|
712
|
+
.command("setup-instantdb")
|
|
713
|
+
.description("Set up InstantDB with MCP integration for real-time database and AI-powered development")
|
|
714
|
+
.option("--no-mcp", "Skip MCP integration setup")
|
|
715
|
+
.option("--no-auth", "Skip authentication setup")
|
|
716
|
+
.option("--no-schema", "Skip schema generation")
|
|
717
|
+
.option("--no-components", "Skip component generation")
|
|
718
|
+
.option("--app-id <id>", "InstantDB App ID")
|
|
719
|
+
.option("--token <token>", "InstantDB Personal Access Token")
|
|
720
|
+
.action(async (options) => {
|
|
721
|
+
try {
|
|
722
|
+
const command = new setup_instantdb_1.InstantDBSetupCommand();
|
|
723
|
+
await command.execute({
|
|
724
|
+
mcp: options.mcp !== false,
|
|
725
|
+
auth: options.auth !== false,
|
|
726
|
+
schema: options.schema !== false,
|
|
727
|
+
components: options.components !== false,
|
|
728
|
+
skipAuth: options.auth === false,
|
|
729
|
+
skipSchema: options.schema === false,
|
|
730
|
+
skipComponents: options.components === false,
|
|
731
|
+
appId: options.appId,
|
|
732
|
+
token: options.token,
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
catch (error) {
|
|
736
|
+
console.error(chalk_1.default.red("❌ InstantDB setup failed:"), error);
|
|
737
|
+
process.exit(1);
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
// MCP setup command
|
|
741
|
+
program
|
|
742
|
+
.command("setup-mcp")
|
|
743
|
+
.description("Set up MCP (Model Context Protocol) for AI-powered development with various providers")
|
|
744
|
+
.option("--provider <provider>", "MCP provider (instantdb, github, custom)", "instantdb")
|
|
745
|
+
.option("--server <url>", "Custom MCP server URL")
|
|
746
|
+
.option("--token <token>", "Provider token")
|
|
747
|
+
.option("--config <path>", "Custom MCP configuration file")
|
|
748
|
+
.option("--no-install", "Skip dependency installation")
|
|
749
|
+
.action(async (options) => {
|
|
750
|
+
try {
|
|
751
|
+
const command = new setup_mcp_1.MCPSetupCommand();
|
|
752
|
+
await command.execute({
|
|
753
|
+
provider: options.provider,
|
|
754
|
+
server: options.server,
|
|
755
|
+
token: options.token,
|
|
756
|
+
config: options.config,
|
|
757
|
+
install: options.install !== false,
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
catch (error) {
|
|
761
|
+
console.error(chalk_1.default.red("❌ MCP setup failed:"), error);
|
|
762
|
+
process.exit(1);
|
|
763
|
+
}
|
|
764
|
+
});
|
|
708
765
|
// Promote command for moving components to production
|
|
709
766
|
program
|
|
710
767
|
.command("promote")
|
|
@@ -791,6 +848,8 @@ program
|
|
|
791
848
|
console.log(chalk_1.default.gray(" list [type] - List resources"));
|
|
792
849
|
console.log(chalk_1.default.gray(" status - Check project status"));
|
|
793
850
|
console.log(chalk_1.default.gray(" preview <type> - Preview brand or components"));
|
|
851
|
+
console.log(chalk_1.default.gray(" setup-instantdb - Set up InstantDB with MCP integration"), chalk_1.default.gray(" setup-mcp - Set up MCP (Model Context Protocol)"));
|
|
852
|
+
console.log(chalk_1.default.gray(" setup-database - Set up database and authentication"));
|
|
794
853
|
console.log(chalk_1.default.gray(" auth - Authenticate with MyContext AI"));
|
|
795
854
|
console.log(chalk_1.default.gray(" auth --login - Login to MyContext AI"));
|
|
796
855
|
console.log(chalk_1.default.gray(" auth --logout - Logout from MyContext AI"));
|