@danainnovations/cortex-mcp 1.0.108 → 1.0.111
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/dist/cli.js +31 -20
- package/dist/cli.js.map +1 -1
- package/dist/index.js +17 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -87,7 +87,7 @@ function getWizardHtml() {
|
|
|
87
87
|
|
|
88
88
|
#app {
|
|
89
89
|
width: 100%;
|
|
90
|
-
max-width:
|
|
90
|
+
max-width: 1100px;
|
|
91
91
|
padding: 24px;
|
|
92
92
|
position: relative;
|
|
93
93
|
z-index: 1;
|
|
@@ -159,7 +159,7 @@ function getWizardHtml() {
|
|
|
159
159
|
-webkit-backdrop-filter: blur(20px);
|
|
160
160
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
161
161
|
border-radius: 20px;
|
|
162
|
-
padding:
|
|
162
|
+
padding: 32px;
|
|
163
163
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
164
164
|
}
|
|
165
165
|
|
|
@@ -344,13 +344,13 @@ function getWizardHtml() {
|
|
|
344
344
|
font-size: 12px;
|
|
345
345
|
color: #6b7780;
|
|
346
346
|
font-weight: 400;
|
|
347
|
-
margin-bottom:
|
|
347
|
+
margin-bottom: 8px;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
/* \u2500\u2500 MCP List \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
351
351
|
.mcp-list {
|
|
352
352
|
display: grid;
|
|
353
|
-
grid-template-columns: repeat(
|
|
353
|
+
grid-template-columns: repeat(3, 1fr);
|
|
354
354
|
gap: 6px;
|
|
355
355
|
margin-bottom: 8px;
|
|
356
356
|
}
|
|
@@ -358,8 +358,8 @@ function getWizardHtml() {
|
|
|
358
358
|
.mcp-item {
|
|
359
359
|
display: flex;
|
|
360
360
|
align-items: center;
|
|
361
|
-
gap:
|
|
362
|
-
padding:
|
|
361
|
+
gap: 8px;
|
|
362
|
+
padding: 8px 10px;
|
|
363
363
|
border-radius: 12px;
|
|
364
364
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
365
365
|
cursor: pointer;
|
|
@@ -450,12 +450,12 @@ function getWizardHtml() {
|
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
.mcp-icon {
|
|
453
|
-
width:
|
|
454
|
-
height:
|
|
453
|
+
width: 22px;
|
|
454
|
+
height: 22px;
|
|
455
455
|
display: flex;
|
|
456
456
|
align-items: center;
|
|
457
457
|
justify-content: center;
|
|
458
|
-
border-radius:
|
|
458
|
+
border-radius: 6px;
|
|
459
459
|
background: rgba(255, 255, 255, 0.04);
|
|
460
460
|
flex-shrink: 0;
|
|
461
461
|
}
|
|
@@ -735,6 +735,11 @@ function getWizardHtml() {
|
|
|
735
735
|
background: rgba(0, 163, 225, 0.25);
|
|
736
736
|
}
|
|
737
737
|
|
|
738
|
+
/* \u2500\u2500 Tablet / narrow \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
739
|
+
@media (max-width: 900px) {
|
|
740
|
+
.mcp-list { grid-template-columns: repeat(2, 1fr); }
|
|
741
|
+
}
|
|
742
|
+
|
|
738
743
|
/* \u2500\u2500 Mobile \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
739
744
|
@media (max-width: 640px) {
|
|
740
745
|
#app { padding: 16px; }
|
|
@@ -3677,30 +3682,34 @@ async function startStdioServer(options) {
|
|
|
3677
3682
|
capabilities: { tools: { listChanged: false } },
|
|
3678
3683
|
instructions: [
|
|
3679
3684
|
"You have access to Cortex, a multi-MCP gateway for building and deploying apps.",
|
|
3685
|
+
"When a user asks to build, create, or make an app, call the build_app tool to get the deployment workflow.",
|
|
3680
3686
|
"",
|
|
3681
3687
|
"## Vibe Coding Workflow \u2014 Building New Apps",
|
|
3682
3688
|
"",
|
|
3689
|
+
"**CRITICAL: You MUST create a branded HTML POC and get user approval BEFORE creating any infrastructure.**",
|
|
3690
|
+
"",
|
|
3683
3691
|
"When a user asks you to build a NEW app, follow this pipeline:",
|
|
3684
3692
|
"",
|
|
3685
3693
|
"1. FIRST call sonance_brand__design_app to get the branded starter blueprint",
|
|
3686
|
-
"2. Create a branded HTML proof-of-concept file and ask the user to review it
|
|
3687
|
-
"3.
|
|
3694
|
+
"2. Create a branded HTML proof-of-concept file (via filesystem__write_file) and ask the user to review it in their browser",
|
|
3695
|
+
"3. **STOP and WAIT for explicit user approval before proceeding**",
|
|
3696
|
+
"4. After user approves, validate requirements:",
|
|
3688
3697
|
" - Does it need a database? Only create a Supabase project if the app needs persistent user data",
|
|
3689
3698
|
" - Does it need user auth? If yes, call supabase__setup_cortex_auth to set up Sign in with Cortex",
|
|
3690
|
-
"
|
|
3691
|
-
"
|
|
3699
|
+
"5. Write Next.js code using Sonance Brand components (sonance_brand__get_components_by_category), not custom UI",
|
|
3700
|
+
"6. Create a private GitHub repo (github__create_repository) and push code (github__push_files)",
|
|
3692
3701
|
" - Never push .env files or secrets \u2014 include .gitignore and .env.example",
|
|
3693
3702
|
" - Keep code modular: components in /components, utilities in /lib, no file over 300 lines",
|
|
3694
|
-
"
|
|
3703
|
+
"7. Set ALL environment variables on Vercel (vercel__set_env_vars_batch) BEFORE deploying:",
|
|
3695
3704
|
" - Supabase: NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY",
|
|
3696
3705
|
" - Auth (if set up): NEXT_PUBLIC_CORTEX_URL, NEXT_PUBLIC_CORTEX_CLIENT_ID, CORTEX_CLIENT_ID, CORTEX_CLIENT_SECRET",
|
|
3697
3706
|
" - Extract all values from tool responses \u2014 never ask the user to provide or copy keys",
|
|
3698
|
-
"
|
|
3707
|
+
"8. Deploy to Vercel (vercel__deploy) and verify deployment succeeds (vercel__get_deployment)",
|
|
3699
3708
|
" - If deployment fails, check logs (vercel__get_deployment_logs), fix code, push fix, and retry",
|
|
3700
3709
|
" - Never tell the user the app is live without confirming READY status",
|
|
3701
|
-
"
|
|
3702
|
-
"
|
|
3703
|
-
"
|
|
3710
|
+
"9. After deployment is READY and auth is set up, register the redirect URI (supabase__add_redirect_uri)",
|
|
3711
|
+
"10. Run quality checks: security_scan__scan_code_security, code_analysis__lint_directory, code_review__review_directory",
|
|
3712
|
+
"11. Call sonance_brand__evaluate_design to verify brand compliance (must score Tier 3+ / >= 60)",
|
|
3704
3713
|
"",
|
|
3705
3714
|
"## Existing Projects",
|
|
3706
3715
|
"",
|
|
@@ -3748,14 +3757,16 @@ async function startStdioServer(options) {
|
|
|
3748
3757
|
"",
|
|
3749
3758
|
"Follow this pipeline when building apps with Cortex MCP tools.",
|
|
3750
3759
|
"",
|
|
3760
|
+
"**CRITICAL: For new apps, you MUST create a branded HTML POC and get user approval BEFORE creating any infrastructure (GitHub repo, Vercel project, Supabase project). Do not skip the POC gate.**",
|
|
3761
|
+
"",
|
|
3751
3762
|
"## New App (Greenfield)",
|
|
3752
3763
|
"",
|
|
3753
3764
|
"### Phase 1: Design & Approve",
|
|
3754
3765
|
"1. Call `sonance_brand__design_app` with the app description to get the branded starter blueprint (CSS, components, layout)",
|
|
3755
3766
|
"2. Call `sonance_brand__get_css_theme` for the full CSS variables and Tailwind config",
|
|
3756
|
-
"3. Create a single branded HTML proof-of-concept file and
|
|
3767
|
+
"3. Create a single branded HTML proof-of-concept file (via `filesystem__write_file`) and tell the user to open it in their browser",
|
|
3757
3768
|
"4. Ask the user: 'Does this look right? Ready to build the full app?'",
|
|
3758
|
-
"5. Do NOT proceed until the user approves",
|
|
3769
|
+
"5. **STOP and WAIT** \u2014 Do NOT proceed until the user explicitly approves",
|
|
3759
3770
|
"",
|
|
3760
3771
|
"### Phase 2: Plan Infrastructure",
|
|
3761
3772
|
"6. Determine if the app needs a database (user accounts, persistent data \u2192 yes; static content \u2192 no)",
|