@codeam/shared 2.61.79 → 2.61.81

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.mjs CHANGED
@@ -1428,15 +1428,19 @@ var INTEGRATION_REGISTRY = {
1428
1428
  name: "Convex",
1429
1429
  icon: "convex",
1430
1430
  category: "database",
1431
- // LIVE — api_key rail (the user pastes a Convex DEPLOY KEY).
1432
- // ⚠️ Convex's OAuth application token was tried first and DOES NOT WORK with
1433
- // the MCP: it's a narrow Management-API credential — verified live it fails
1434
- // `convex mcp start` as BOTH CONVEX_DEPLOY_KEY and CONVEX_OVERRIDE_ACCESS_TOKEN,
1435
- // and can't even enumerate the team's deployments ("requires a Personal
1436
- // Access Token"). The Convex MCP's DOCUMENTED headless credential is a
1437
- // DEPLOY KEY (CONVEX_DEPLOY_KEY=dev:…|… / prod:… / project:…), so the user
1438
- // pastes one (Convex Dashboard Project Settings Deploy Keys), exactly
1439
- // like Azure DevOps / Datadog / Trello. No OAuth app, no GSM secret.
1431
+ // LIVE — api_key rail (the user pastes a Convex DEPLOY KEY) + a BUILT-IN MCP.
1432
+ // ⚠️ Convex's OWN `convex mcp start` server CANNOT work headlessly: it
1433
+ // categorically requires an INTERACTIVE `npx convex dev`/`login`
1434
+ // personal-access-token and REJECTS every headless credential OAuth token,
1435
+ // dev/prod deploy key, self-hosted admin key, with every flag
1436
+ // (--deployment/--prod/--project-dir) all return "Not Authorized: Run
1437
+ // `npx convex dev` to login" (verified LIVE, exhaustively, 2026-08-03; it
1438
+ // also HANGS on the failed auth = the mareado/no-Stop wedge). BUT the
1439
+ // deployment's own HTTP admin API accepts the deploy key directly
1440
+ // (`Authorization: Convex <deployKey>` → 200; verified). So we serve Convex's
1441
+ // tools ourselves via a BUILT-IN MCP (delivery.builtin) against that admin
1442
+ // API — see apps/cli/src/integrations/convex-admin-mcp.ts. The user still
1443
+ // pastes a deploy key (Dashboard → Project Settings → Deploy Keys).
1440
1444
  enabled: true,
1441
1445
  auth: {
1442
1446
  kind: "api_key",
@@ -1452,15 +1456,14 @@ var INTEGRATION_REGISTRY = {
1452
1456
  },
1453
1457
  delivery: {
1454
1458
  mcp: {
1455
- // Convex's OFFICIAL MCP server ships inside the `convex` npm package
1456
- // (`convex mcp start`). The pasted deploy key is fed via CONVEX_DEPLOY_KEY
1457
- // (env only, never argv)its documented non-interactive credential.
1458
- // Version PINNED; bump only after re-verifying headless.
1459
- command: "npx",
1460
- args: ["-y", "convex@1.42.3", "mcp", "start"],
1461
- envMapping: {
1462
- CONVEX_DEPLOY_KEY: "accessToken"
1463
- }
1459
+ // BUILT-IN MCP: the CLI serves Convex's tools itself against the
1460
+ // deployment admin REST API with the brokered deploy key (Convex's own
1461
+ // `convex mcp start` rejects all headless creds see the note above).
1462
+ // No spawned child, no npx. command/args/envMapping are empty.
1463
+ builtin: "convex-admin",
1464
+ command: "",
1465
+ args: [],
1466
+ envMapping: {}
1464
1467
  }
1465
1468
  }
1466
1469
  },