@danainnovations/cortex-mcp 1.0.135 → 1.0.136

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
@@ -1062,6 +1062,7 @@ async function startStdioServer(options) {
1062
1062
  "7. Set ALL environment variables on Vercel (vercel__set_env_vars_batch) BEFORE deploying:",
1063
1063
  " - Supabase: NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY",
1064
1064
  " - Auth (if set up): NEXT_PUBLIC_CORTEX_URL, NEXT_PUBLIC_CORTEX_CLIENT_ID, CORTEX_CLIENT_ID, CORTEX_CLIENT_SECRET",
1065
+ " - AI (if needed): ANTHROPIC_API_KEY (ctx_ key, sensitive), ANTHROPIC_BASE_URL (Cortex proxy URL)",
1065
1066
  " - Extract all values from tool responses \u2014 never ask the user to provide or copy keys",
1066
1067
  "8. Deploy to Vercel (vercel__deploy) and verify deployment succeeds (vercel__get_deployment)",
1067
1068
  " - If deployment fails, check logs (vercel__get_deployment_logs), fix code, push fix, and retry",
@@ -1130,7 +1131,8 @@ async function startStdioServer(options) {
1130
1131
  "### Phase 2: Plan Infrastructure",
1131
1132
  "6. Determine if the app needs a database (user accounts, persistent data \u2192 yes; static content \u2192 no)",
1132
1133
  "7. Determine if the app needs authentication (multi-user, personalized data \u2192 yes; public content \u2192 no)",
1133
- "8. Present the plan to the user: 'Your app needs: GitHub repo, Vercel deployment, [Supabase DB + auth / no DB]'",
1134
+ "8. Determine if the app needs AI (document parsing, chat, content generation, classification \u2192 yes; purely CRUD/display \u2192 no)",
1135
+ "9. Present the plan to the user: 'Your app needs: GitHub repo, Vercel deployment, [Supabase DB + auth / no DB], [AI features via Cortex / no AI]'",
1134
1136
  "",
1135
1137
  "### Phase 3: Build with Brand",
1136
1138
  "9. Write Next.js + TypeScript code using Sonance Brand components:",
@@ -1149,6 +1151,7 @@ async function startStdioServer(options) {
1149
1151
  "13. Set ALL env vars on Vercel using `vercel__set_env_vars_batch` BEFORE deploying:",
1150
1152
  " - Supabase: NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY",
1151
1153
  " - Auth: NEXT_PUBLIC_CORTEX_URL, NEXT_PUBLIC_CORTEX_CLIENT_ID, CORTEX_CLIENT_ID, CORTEX_CLIENT_SECRET",
1154
+ " - AI: ANTHROPIC_API_KEY (ctx_ key, sensitive), ANTHROPIC_BASE_URL (https://cortex-bice.vercel.app)",
1152
1155
  " - Extract ALL values from tool responses \u2014 NEVER ask the user to copy keys",
1153
1156
  "14. Deploy: `vercel__deploy` then verify with `vercel__get_deployment`",
1154
1157
  " - If ERROR: get logs, fix code, push fix, retry until READY",
@@ -1168,8 +1171,17 @@ async function startStdioServer(options) {
1168
1171
  "- Deployment verification",
1169
1172
  "- Quality checks and brand evaluation",
1170
1173
  "",
1174
+ "## AI-Powered Features",
1175
+ "",
1176
+ "When the app needs AI (document parsing, chat, content generation):",
1177
+ "- ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL are auto-provisioned during deploy",
1178
+ "- App code uses `new Anthropic()` with no args \u2014 the SDK reads env vars automatically",
1179
+ "- All requests route through Cortex Apollo proxy (cost tracking, rate limiting)",
1180
+ "- AI calls MUST be server-side only (Next.js API routes), never browser-side",
1181
+ "- NEVER use raw sk-ant- keys \u2014 always use Cortex-provisioned ctx_ keys",
1182
+ "",
1171
1183
  "## Key Rules",
1172
- "- The user should NEVER manually set env vars, copy keys, or configure auth",
1184
+ "- The user should NEVER manually set env vars, copy keys, or configure auth/AI",
1173
1185
  "- Always use Next.js + TypeScript, never plain React or HTML for production apps",
1174
1186
  "- Always use Sonance Brand components \u2014 never write custom Button/Card/Navbar with hardcoded styles"
1175
1187
  ].join("\n");
@@ -1442,7 +1454,7 @@ function detectClients() {
1442
1454
  }
1443
1455
  clients.push({
1444
1456
  type: "codex",
1445
- name: "Codex (OpenAI)",
1457
+ name: "Codex",
1446
1458
  configPath: codexPath,
1447
1459
  detected: codexDetected
1448
1460
  });