@danainnovations/cortex-mcp 1.0.109 → 1.0.112

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/index.js CHANGED
@@ -1041,30 +1041,34 @@ async function startStdioServer(options) {
1041
1041
  capabilities: { tools: { listChanged: false } },
1042
1042
  instructions: [
1043
1043
  "You have access to Cortex, a multi-MCP gateway for building and deploying apps.",
1044
+ "When a user asks to build, create, or make an app, call the build_app tool to get the deployment workflow.",
1044
1045
  "",
1045
1046
  "## Vibe Coding Workflow \u2014 Building New Apps",
1046
1047
  "",
1048
+ "**CRITICAL: You MUST create a branded HTML POC and get user approval BEFORE creating any infrastructure.**",
1049
+ "",
1047
1050
  "When a user asks you to build a NEW app, follow this pipeline:",
1048
1051
  "",
1049
1052
  "1. FIRST call sonance_brand__design_app to get the branded starter blueprint",
1050
- "2. Create a branded HTML proof-of-concept file and ask the user to review it before proceeding",
1051
- "3. After user approves, validate requirements:",
1053
+ "2. Create a branded HTML proof-of-concept file (via filesystem__write_file) and ask the user to review it in their browser",
1054
+ "3. **STOP and WAIT for explicit user approval before proceeding**",
1055
+ "4. After user approves, validate requirements:",
1052
1056
  " - Does it need a database? Only create a Supabase project if the app needs persistent user data",
1053
1057
  " - Does it need user auth? If yes, call supabase__setup_cortex_auth to set up Sign in with Cortex",
1054
- "4. Write Next.js code using Sonance Brand components (sonance_brand__get_components_by_category), not custom UI",
1055
- "5. Create a private GitHub repo (github__create_repository) and push code (github__push_files)",
1058
+ "5. Write Next.js code using Sonance Brand components (sonance_brand__get_components_by_category), not custom UI",
1059
+ "6. Create a private GitHub repo (github__create_repository) and push code (github__push_files)",
1056
1060
  " - Never push .env files or secrets \u2014 include .gitignore and .env.example",
1057
1061
  " - Keep code modular: components in /components, utilities in /lib, no file over 300 lines",
1058
- "6. Set ALL environment variables on Vercel (vercel__set_env_vars_batch) BEFORE deploying:",
1062
+ "7. Set ALL environment variables on Vercel (vercel__set_env_vars_batch) BEFORE deploying:",
1059
1063
  " - Supabase: NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY",
1060
1064
  " - Auth (if set up): NEXT_PUBLIC_CORTEX_URL, NEXT_PUBLIC_CORTEX_CLIENT_ID, CORTEX_CLIENT_ID, CORTEX_CLIENT_SECRET",
1061
1065
  " - Extract all values from tool responses \u2014 never ask the user to provide or copy keys",
1062
- "7. Deploy to Vercel (vercel__deploy) and verify deployment succeeds (vercel__get_deployment)",
1066
+ "8. Deploy to Vercel (vercel__deploy) and verify deployment succeeds (vercel__get_deployment)",
1063
1067
  " - If deployment fails, check logs (vercel__get_deployment_logs), fix code, push fix, and retry",
1064
1068
  " - Never tell the user the app is live without confirming READY status",
1065
- "8. After deployment is READY and auth is set up, register the redirect URI (supabase__add_redirect_uri)",
1066
- "9. Run quality checks: security_scan__scan_code_security, code_analysis__lint_directory, code_review__review_directory",
1067
- "10. Call sonance_brand__evaluate_design to verify brand compliance (must score Tier 3+ / >= 60)",
1069
+ "9. After deployment is READY and auth is set up, register the redirect URI (supabase__add_redirect_uri)",
1070
+ "10. Run quality checks: security_scan__scan_code_security, code_analysis__lint_directory, code_review__review_directory",
1071
+ "11. Call sonance_brand__evaluate_design to verify brand compliance (must score Tier 3+ / >= 60)",
1068
1072
  "",
1069
1073
  "## Existing Projects",
1070
1074
  "",
@@ -1112,14 +1116,16 @@ async function startStdioServer(options) {
1112
1116
  "",
1113
1117
  "Follow this pipeline when building apps with Cortex MCP tools.",
1114
1118
  "",
1119
+ "**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.**",
1120
+ "",
1115
1121
  "## New App (Greenfield)",
1116
1122
  "",
1117
1123
  "### Phase 1: Design & Approve",
1118
1124
  "1. Call `sonance_brand__design_app` with the app description to get the branded starter blueprint (CSS, components, layout)",
1119
1125
  "2. Call `sonance_brand__get_css_theme` for the full CSS variables and Tailwind config",
1120
- "3. Create a single branded HTML proof-of-concept file and show the user",
1126
+ "3. Create a single branded HTML proof-of-concept file (via `filesystem__write_file`) and tell the user to open it in their browser",
1121
1127
  "4. Ask the user: 'Does this look right? Ready to build the full app?'",
1122
- "5. Do NOT proceed until the user approves",
1128
+ "5. **STOP and WAIT** \u2014 Do NOT proceed until the user explicitly approves",
1123
1129
  "",
1124
1130
  "### Phase 2: Plan Infrastructure",
1125
1131
  "6. Determine if the app needs a database (user accounts, persistent data \u2192 yes; static content \u2192 no)",