@mcpcloud/cli 0.23.0 → 0.24.0-next-20260917164347

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/README.md CHANGED
@@ -353,7 +353,7 @@ _Generated from the live command tree by `bun run docs:readme` — do not edit b
353
353
  | `mcp api-keys create` | Create a new API key (the secret is shown once) |
354
354
  | `mcp api-keys describe <apiKey>` | Show one API key (accepts id or name; status, expiry, last used) — never the secret |
355
355
  | `mcp api-keys list` | List active API keys for the current user |
356
- | `mcp api-keys revoke <apiKey>` | Permanently revoke an API key (accepts id or name) |
356
+ | `mcp api-keys revoke <apiKey>` | Permanently revoke an API key (accepts id or name). Needs --confirm "<key name>". |
357
357
  | `mcp api-keys rotate <apiKey>` | Mint a replacement key and grace-expire the old one (24h window; accepts id or name). The new secret is shown once. |
358
358
 
359
359
  ### `mcp audit` — Workspace audit log (admin/owner only)
package/dist/index.js CHANGED
@@ -7410,6 +7410,7 @@ function registerServerGetCommand(servers) {
7410
7410
  url: s.deploymentUrl ?? "—",
7411
7411
  "tool surface": describeToolSurface(s),
7412
7412
  "upstream keys": s.upstreamApiKeyMode ?? "shared",
7413
+ upstream: "mcp deployments get latest --server <server>",
7413
7414
  "end-user access": s.endUserAccess ?? "disabled",
7414
7415
  ...s.endUserAccess === "enabled" && s.connectPageUrl ? { "connect page": s.connectPageUrl } : {},
7415
7416
  git: gitLink ? `${gitLink.owner}/${gitLink.name}@${gitLink.branch} (mcp servers git status)` : "—",
@@ -29642,8 +29643,24 @@ function registerApiKeyCommands(program) {
29642
29643
  "old key valid until": data.rotatedFrom ? formatDate(data.rotatedFrom.gracePeriodEndsAt) : "—"
29643
29644
  });
29644
29645
  }));
29645
- apiKeys.command("revoke <apiKey>").description("Permanently revoke an API key (accepts id or name)").action(runAction(async (apiKeyRef) => {
29646
+ apiKeys.command("revoke <apiKey>").description('Permanently revoke an API key (accepts id or name). Needs --confirm "<key name>".').option("--confirm <name>", "The key's exact name, to confirm. Required — revocation is immediate and cannot be undone.").addHelpText("after", [
29647
+ "",
29648
+ "Revocation takes effect at once and cannot be reversed: every caller",
29649
+ "holding this secret starts failing, including CI. To replace a key",
29650
+ "without a gap, use `mcp api-keys rotate` instead — it mints the new",
29651
+ "secret and grace-expires this one over 24h.",
29652
+ "",
29653
+ "Example:",
29654
+ ' $ mcp api-keys revoke ci-build --confirm "ci-build"'
29655
+ ].join(`
29656
+ `)).action(runAction(async (apiKeyRef, opts) => {
29646
29657
  const apiKeyId = await resolveApiKeyId(apiKeyRef);
29658
+ const current = await api.get("/api/v1/api-keys", { apiKeyId });
29659
+ assertConfirmMatches({
29660
+ entityKind: "API key",
29661
+ entityName: current.apiKey.name,
29662
+ confirm: opts.confirm
29663
+ });
29647
29664
  const data = await api.delete("/api/v1/api-keys", { apiKeyId });
29648
29665
  if (isJsonMode()) {
29649
29666
  printJson(data);
@@ -33071,6 +33088,10 @@ function registerDeploymentCommands(program) {
33071
33088
  hostname: d.hostname ?? "—",
33072
33089
  exposure: formatDeploymentExposure(d),
33073
33090
  "access mode": d.accessMode,
33091
+ environment: d.environment ?? "production",
33092
+ upstream: d.upstream?.baseUrl ?? "(spec default)",
33093
+ "key header": d.upstream?.apiKeyHeader ?? "—",
33094
+ "key prefix": d.upstream?.apiKeyPrefix ?? "—",
33074
33095
  status: d.status,
33075
33096
  version: d.version,
33076
33097
  "deployed at": d.deployedAt ? formatDate(d.deployedAt) : "—",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpcloud/cli",
3
- "version": "0.23.0",
3
+ "version": "0.24.0-next-20260917164347",
4
4
  "description": "The official CLI for MCPCloud — manage projects, servers, skills, and API keys from the terminal",
5
5
  "type": "module",
6
6
  "bin": {