@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.d.mts CHANGED
@@ -430,6 +430,13 @@ interface IntegrationMcpDelivery {
430
430
  * `{ 'DD-API-KEY': '{accessToken}', 'DD-APPLICATION-KEY': '{appKey}' }`). The
431
431
  * token stays server-side of the shim — never on argv. */
432
432
  httpHeaders?: Record<string, string>;
433
+ /** BUILT-IN transport — a codeam-authored MCP server (not a spawned `command`,
434
+ * not a remote `httpUrl` relay). The shim dispatches to the named internal
435
+ * server, which fulfils the tools itself with the brokered credential.
436
+ * `command`/`args`/`envMapping` are empty. Used by Convex (`'convex-admin'`),
437
+ * whose own MCP rejects every headless credential — we serve its tools
438
+ * against the deployment admin REST API instead. */
439
+ builtin?: 'convex-admin';
433
440
  }
434
441
  interface IntegrationDelivery {
435
442
  mcp?: IntegrationMcpDelivery;
package/dist/index.d.ts CHANGED
@@ -430,6 +430,13 @@ interface IntegrationMcpDelivery {
430
430
  * `{ 'DD-API-KEY': '{accessToken}', 'DD-APPLICATION-KEY': '{appKey}' }`). The
431
431
  * token stays server-side of the shim — never on argv. */
432
432
  httpHeaders?: Record<string, string>;
433
+ /** BUILT-IN transport — a codeam-authored MCP server (not a spawned `command`,
434
+ * not a remote `httpUrl` relay). The shim dispatches to the named internal
435
+ * server, which fulfils the tools itself with the brokered credential.
436
+ * `command`/`args`/`envMapping` are empty. Used by Convex (`'convex-admin'`),
437
+ * whose own MCP rejects every headless credential — we serve its tools
438
+ * against the deployment admin REST API instead. */
439
+ builtin?: 'convex-admin';
433
440
  }
434
441
  interface IntegrationDelivery {
435
442
  mcp?: IntegrationMcpDelivery;
package/dist/index.js CHANGED
@@ -1515,15 +1515,19 @@ var INTEGRATION_REGISTRY = {
1515
1515
  name: "Convex",
1516
1516
  icon: "convex",
1517
1517
  category: "database",
1518
- // LIVE — api_key rail (the user pastes a Convex DEPLOY KEY).
1519
- // ⚠️ Convex's OAuth application token was tried first and DOES NOT WORK with
1520
- // the MCP: it's a narrow Management-API credential — verified live it fails
1521
- // `convex mcp start` as BOTH CONVEX_DEPLOY_KEY and CONVEX_OVERRIDE_ACCESS_TOKEN,
1522
- // and can't even enumerate the team's deployments ("requires a Personal
1523
- // Access Token"). The Convex MCP's DOCUMENTED headless credential is a
1524
- // DEPLOY KEY (CONVEX_DEPLOY_KEY=dev:…|… / prod:… / project:…), so the user
1525
- // pastes one (Convex Dashboard Project Settings Deploy Keys), exactly
1526
- // like Azure DevOps / Datadog / Trello. No OAuth app, no GSM secret.
1518
+ // LIVE — api_key rail (the user pastes a Convex DEPLOY KEY) + a BUILT-IN MCP.
1519
+ // ⚠️ Convex's OWN `convex mcp start` server CANNOT work headlessly: it
1520
+ // categorically requires an INTERACTIVE `npx convex dev`/`login`
1521
+ // personal-access-token and REJECTS every headless credential OAuth token,
1522
+ // dev/prod deploy key, self-hosted admin key, with every flag
1523
+ // (--deployment/--prod/--project-dir) all return "Not Authorized: Run
1524
+ // `npx convex dev` to login" (verified LIVE, exhaustively, 2026-08-03; it
1525
+ // also HANGS on the failed auth = the mareado/no-Stop wedge). BUT the
1526
+ // deployment's own HTTP admin API accepts the deploy key directly
1527
+ // (`Authorization: Convex <deployKey>` → 200; verified). So we serve Convex's
1528
+ // tools ourselves via a BUILT-IN MCP (delivery.builtin) against that admin
1529
+ // API — see apps/cli/src/integrations/convex-admin-mcp.ts. The user still
1530
+ // pastes a deploy key (Dashboard → Project Settings → Deploy Keys).
1527
1531
  enabled: true,
1528
1532
  auth: {
1529
1533
  kind: "api_key",
@@ -1539,15 +1543,14 @@ var INTEGRATION_REGISTRY = {
1539
1543
  },
1540
1544
  delivery: {
1541
1545
  mcp: {
1542
- // Convex's OFFICIAL MCP server ships inside the `convex` npm package
1543
- // (`convex mcp start`). The pasted deploy key is fed via CONVEX_DEPLOY_KEY
1544
- // (env only, never argv)its documented non-interactive credential.
1545
- // Version PINNED; bump only after re-verifying headless.
1546
- command: "npx",
1547
- args: ["-y", "convex@1.42.3", "mcp", "start"],
1548
- envMapping: {
1549
- CONVEX_DEPLOY_KEY: "accessToken"
1550
- }
1546
+ // BUILT-IN MCP: the CLI serves Convex's tools itself against the
1547
+ // deployment admin REST API with the brokered deploy key (Convex's own
1548
+ // `convex mcp start` rejects all headless creds see the note above).
1549
+ // No spawned child, no npx. command/args/envMapping are empty.
1550
+ builtin: "convex-admin",
1551
+ command: "",
1552
+ args: [],
1553
+ envMapping: {}
1551
1554
  }
1552
1555
  }
1553
1556
  },