@danainnovations/cortex-mcp 1.0.99 → 1.0.101

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 CHANGED
@@ -3667,7 +3667,49 @@ async function startStdioServer(options) {
3667
3667
  const cortex = new CortexHttpClient(serverUrl, apiKey, endpoint);
3668
3668
  const server = new Server(
3669
3669
  { name: "cortex-mcp", version: "1.0.0" },
3670
- { capabilities: { tools: { listChanged: false } } }
3670
+ {
3671
+ capabilities: { tools: { listChanged: false } },
3672
+ instructions: [
3673
+ "You have access to Cortex, a multi-MCP gateway for building and deploying apps.",
3674
+ "",
3675
+ "## Vibe Coding Workflow \u2014 Building New Apps",
3676
+ "",
3677
+ "When a user asks you to build a NEW app, follow this pipeline:",
3678
+ "",
3679
+ "1. FIRST call sonance_brand__design_app to get the branded starter blueprint",
3680
+ "2. Create a branded HTML proof-of-concept file and ask the user to review it before proceeding",
3681
+ "3. After user approves, validate requirements:",
3682
+ " - Does it need a database? Only create a Supabase project if the app needs persistent user data",
3683
+ " - Does it need user auth? If yes, call supabase__setup_cortex_auth to set up Sign in with Cortex",
3684
+ "4. Write Next.js code using Sonance Brand components (sonance_brand__get_components_by_category), not custom UI",
3685
+ "5. Create a private GitHub repo (github__create_repository) and push code (github__push_files)",
3686
+ " - Never push .env files or secrets \u2014 include .gitignore and .env.example",
3687
+ " - Keep code modular: components in /components, utilities in /lib, no file over 300 lines",
3688
+ "6. Set ALL environment variables on Vercel (vercel__set_env_vars_batch) BEFORE deploying:",
3689
+ " - Supabase: NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY",
3690
+ " - Auth (if set up): NEXT_PUBLIC_CORTEX_URL, NEXT_PUBLIC_CORTEX_CLIENT_ID, CORTEX_CLIENT_ID, CORTEX_CLIENT_SECRET",
3691
+ " - Extract all values from tool responses \u2014 never ask the user to provide or copy keys",
3692
+ "7. Deploy to Vercel (vercel__deploy) and verify deployment succeeds (vercel__get_deployment)",
3693
+ " - If deployment fails, check logs (vercel__get_deployment_logs), fix code, push fix, and retry",
3694
+ " - Never tell the user the app is live without confirming READY status",
3695
+ "8. After deployment is READY and auth is set up, register the redirect URI (supabase__add_redirect_uri)",
3696
+ "9. Run quality checks: security_scan__scan_code_security, code_analysis__lint_directory, code_review__review_directory",
3697
+ "10. Call sonance_brand__evaluate_design to verify brand compliance (must score Tier 3+ / >= 60)",
3698
+ "",
3699
+ "## Existing Projects",
3700
+ "",
3701
+ "For EXISTING projects (user references a repo name, project URL, or says 'add X to my app'),",
3702
+ "skip the POC and go directly to the requested changes. All other guardrails still apply",
3703
+ "(env vars, deploy verification, auth setup, quality checks, brand compliance).",
3704
+ "",
3705
+ "## Key Principles",
3706
+ "",
3707
+ "- The user should NEVER need to manually set environment variables, copy API keys, or configure auth",
3708
+ "- Everything is automated through the MCP tools",
3709
+ "- Always use Sonance Brand components and CSS tokens \u2014 never hardcode colors or write custom UI components",
3710
+ "- Always verify deployments succeed before sharing URLs"
3711
+ ].join("\n")
3712
+ }
3671
3713
  );
3672
3714
  let initialized = false;
3673
3715
  async function ensureInitialized() {