@scalar/cli 2.14.0 → 2.15.0

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.
Files changed (64) hide show
  1. package/README.md +33 -1
  2. package/chunks/{action-XA4MEYFP.js → action-2UZWKMSJ.js} +6 -6
  3. package/chunks/{action-EPGLU5E3.js → action-3QQSKGM3.js} +6 -6
  4. package/chunks/{action-VS22CPVB.js → action-3W4IC7QL.js} +6 -6
  5. package/chunks/{action-MJI3TI3W.js → action-777R7LOG.js} +10 -9
  6. package/chunks/{action-APTGKF4W.js → action-7LK4RUDP.js} +11 -10
  7. package/chunks/{action-RRQNVUFW.js → action-B2WWTOF6.js} +6 -6
  8. package/chunks/{action-FOITEQNQ.js → action-ENDUKGWS.js} +6 -6
  9. package/chunks/{action-OP5DCAHN.js → action-G2WBTXOK.js} +3 -3
  10. package/chunks/{action-Y4MKBDRC.js → action-HDT7EO7W.js} +8 -8
  11. package/chunks/{action-SCOJRZKD.js → action-HOCCP353.js} +2 -2
  12. package/chunks/{action-FLX3ESH7.js → action-IU2AVNOW.js} +11 -10
  13. package/chunks/{action-DJXZWPL7.js → action-IUAYC2SC.js} +1 -1
  14. package/chunks/{action-VEP7LZPN.js → action-JNH4DCZX.js} +4 -4
  15. package/chunks/{action-4HYLZRYW.js → action-LD5B5QQ4.js} +14 -13
  16. package/chunks/{action-EYOZ457H.js → action-MBAAYXKK.js} +4 -4
  17. package/chunks/{action-GOFCT7XK.js → action-MJHLG7AE.js} +14 -13
  18. package/chunks/{action-4MJXPSQU.js → action-NZJ4Z64U.js} +6 -6
  19. package/chunks/{action-VY3DRAO4.js → action-P2RPH5R2.js} +3 -3
  20. package/chunks/{action-BL5PWLFV.js → action-PDSSIW2A.js} +9 -9
  21. package/chunks/{action-C7CNI7TP.js → action-PNSWHIHC.js} +5 -5
  22. package/chunks/{action-VW2POHCL.js → action-QJMRAFOF.js} +7 -6
  23. package/chunks/{action-ZOU7EPX5.js → action-T7SD3ETN.js} +6 -6
  24. package/chunks/{action-VAJSWBMD.js → action-TY4BZEMN.js} +6 -6
  25. package/chunks/{action-P2QEJUBK.js → action-ZTLOQZTT.js} +8 -7
  26. package/chunks/actions-D5OHPBWC.js +327 -0
  27. package/chunks/{actions-PBYTDEMH.js → actions-RI42JY6H.js} +27 -6
  28. package/chunks/{asyncapi-KCA6ZH3Q.js → asyncapi-YBTWMTW6.js} +3 -3
  29. package/chunks/{build.action-54FHG7VL.js → build.action-4YDNDBXC.js} +8 -8
  30. package/chunks/{chunk-AAWPGVMG.js → chunk-42MIV6WF.js} +1 -1
  31. package/chunks/{chunk-GO3TSREI.js → chunk-7FGJIUDN.js} +3 -3
  32. package/chunks/{chunk-WKMOUBQJ.js → chunk-ANP5XF26.js} +1257 -1019
  33. package/chunks/{chunk-H5AMMMQ3.js → chunk-BMQFEKHA.js} +113 -8
  34. package/chunks/{chunk-VJ7FHLN4.js → chunk-DLYMDGFW.js} +1 -1
  35. package/chunks/{chunk-3CRO6NY4.js → chunk-DWJMPHLY.js} +1 -1
  36. package/chunks/{chunk-S3U2VMVL.js → chunk-ERZ3HYB5.js} +0 -94
  37. package/chunks/{chunk-DTZBE4ZX.js → chunk-G5WWW7VD.js} +2 -2
  38. package/chunks/{chunk-QTMJ3VUZ.js → chunk-GOKHFNB2.js} +2 -2
  39. package/chunks/{chunk-WZUA7IAV.js → chunk-IPWJEGPD.js} +2 -2
  40. package/chunks/{chunk-2SBHCZPG.js → chunk-KOLEQNLG.js} +1 -1
  41. package/chunks/{chunk-WZSU45SV.js → chunk-MGGMCT77.js} +1 -1
  42. package/chunks/{chunk-KZSM2SUL.js → chunk-QXOUDBFK.js} +2 -2
  43. package/chunks/{chunk-7ZDC34NA.js → chunk-SHRUJFQI.js} +3 -1
  44. package/chunks/{chunk-KKHTS43A.js → chunk-T76K7QNX.js} +2 -2
  45. package/chunks/{chunk-KXMZXTLK.js → chunk-TR5U7G7T.js} +2 -1
  46. package/chunks/{chunk-42YF4H6W.js → chunk-TW2UASEW.js} +1 -1
  47. package/chunks/chunk-VBHPHAGS.js +114 -0
  48. package/chunks/{chunk-PRW5TKYS.js → chunk-Y6GKZ2FM.js} +1 -1
  49. package/chunks/{chunk-F5Q7FJRG.js → chunk-Z6HOHGUJ.js} +17 -0
  50. package/chunks/{create.action-NB3YYZ7K.js → create.action-52K3XAYN.js} +8 -8
  51. package/chunks/{delete.action-5BT3TXVZ.js → delete.action-3NMOQPIR.js} +8 -8
  52. package/chunks/{delete.action-DWMQYW62.js → delete.action-47LPLTOX.js} +8 -8
  53. package/chunks/{diff.action-ENOOLRRB.js → diff.action-5TLC2EHT.js} +8 -7
  54. package/chunks/{get.action-55JDC2MJ.js → get.action-BCMLG7C7.js} +8 -7
  55. package/chunks/{get.action-2ASGSZW3.js → get.action-TOZ474GO.js} +8 -8
  56. package/chunks/{list.action-NCG6Q6S2.js → list.action-6ZWEENT6.js} +9 -9
  57. package/chunks/{list.action-6QBQFGVR.js → list.action-CMAA5KTY.js} +8 -8
  58. package/chunks/{publish.action-4Y5EXBOY.js → publish.action-U3VIU5LZ.js} +11 -10
  59. package/chunks/{update.action-6OE54B5O.js → update.action-QZOP25ME.js} +8 -8
  60. package/chunks/{update.action-4V6MQMWG.js → update.action-UQHZYVTP.js} +8 -8
  61. package/index.js +175 -114
  62. package/package.json +1 -1
  63. package/skills/scalar-cli/SKILL.md +8 -1
  64. package/template.md +31 -0
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
3
3
  import {
4
4
  DownloadIsolateCommand
5
- } from "./chunks/chunk-PRW5TKYS.js";
5
+ } from "./chunks/chunk-Y6GKZ2FM.js";
6
6
  import {
7
7
  openBrowser
8
8
  } from "./chunks/chunk-HIDIW2FN.js";
@@ -30,13 +30,13 @@ import {
30
30
  getMetadata,
31
31
  logout,
32
32
  setMetadata
33
- } from "./chunks/chunk-AAWPGVMG.js";
34
- import "./chunks/chunk-KXMZXTLK.js";
33
+ } from "./chunks/chunk-42MIV6WF.js";
34
+ import "./chunks/chunk-TR5U7G7T.js";
35
35
  import {
36
36
  bin,
37
37
  name,
38
38
  version
39
- } from "./chunks/chunk-3CRO6NY4.js";
39
+ } from "./chunks/chunk-DWJMPHLY.js";
40
40
  import "./chunks/chunk-6BQHLHBE.js";
41
41
  import "./chunks/chunk-BOCMOHQA.js";
42
42
  import {
@@ -86,7 +86,7 @@ var DeleteSchemaCommand = () => {
86
86
  cmd3.option("-s, --slug <slug>", "Schema slug");
87
87
  cmd3.option("-n, --namespace <namespace>", "Team namespace");
88
88
  cmd3.action(async (...args) => {
89
- const { deleteAction } = await import("./chunks/delete.action-DWMQYW62.js");
89
+ const { deleteAction } = await import("./chunks/delete.action-47LPLTOX.js");
90
90
  return deleteAction(...args);
91
91
  });
92
92
  return cmd3;
@@ -143,7 +143,7 @@ var DiffSchemaCommand = () => {
143
143
  );
144
144
  completeFiles(cmd3, ["from", "to"], []);
145
145
  cmd3.action(async (...args) => {
146
- const { diffAction } = await import("./chunks/diff.action-ENOOLRRB.js");
146
+ const { diffAction } = await import("./chunks/diff.action-5TLC2EHT.js");
147
147
  return diffAction(...args);
148
148
  });
149
149
  return cmd3;
@@ -163,7 +163,7 @@ var GetSchemaCommand = () => {
163
163
  cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
164
164
  completeFiles(cmd3, [], ["--output"]);
165
165
  cmd3.action(async (...args) => {
166
- const { getAction } = await import("./chunks/get.action-55JDC2MJ.js");
166
+ const { getAction } = await import("./chunks/get.action-BCMLG7C7.js");
167
167
  return getAction(...args);
168
168
  });
169
169
  return cmd3;
@@ -177,7 +177,7 @@ var ListSchemaCommand = () => {
177
177
  cmd3.option("--namespace <namespace>", "Team namespace");
178
178
  cmd3.option("--json", "Output schema metadata as JSON");
179
179
  cmd3.action(async (...args) => {
180
- const { listAction } = await import("./chunks/list.action-NCG6Q6S2.js");
180
+ const { listAction } = await import("./chunks/list.action-6ZWEENT6.js");
181
181
  return listAction(...args);
182
182
  });
183
183
  return cmd3;
@@ -216,7 +216,7 @@ var PublishSchemaCommand = () => {
216
216
  );
217
217
  completeFiles(cmd3, ["file"], []);
218
218
  cmd3.action(async (...args) => {
219
- const { publishAction } = await import("./chunks/publish.action-4Y5EXBOY.js");
219
+ const { publishAction } = await import("./chunks/publish.action-U3VIU5LZ.js");
220
220
  return publishAction(...args);
221
221
  });
222
222
  return cmd3;
@@ -251,7 +251,7 @@ var UpdateSchemaCommand = () => {
251
251
  "\nOmitting visibility options leaves access unchanged.\nExample: scalar schema update --namespace acme --slug my-schema --public"
252
252
  );
253
253
  cmd3.action(async (...args) => {
254
- const { updateAction } = await import("./chunks/update.action-4V6MQMWG.js");
254
+ const { updateAction } = await import("./chunks/update.action-UQHZYVTP.js");
255
255
  return updateAction(...args);
256
256
  });
257
257
  return cmd3;
@@ -283,7 +283,7 @@ var BuildSdkCommand = () => {
283
283
  cmd3.option("-s, --slug <slug>", "SDK slug");
284
284
  cmd3.option("-n, --namespace <namespace>", "Team namespace");
285
285
  cmd3.action(async (...args) => {
286
- const { buildAction } = await import("./chunks/build.action-54FHG7VL.js");
286
+ const { buildAction } = await import("./chunks/build.action-4YDNDBXC.js");
287
287
  return buildAction(...args);
288
288
  });
289
289
  return cmd3;
@@ -303,7 +303,7 @@ var CreateSdkCommand = () => {
303
303
  )
304
304
  );
305
305
  cmd3.action(async (...args) => {
306
- const { createAction } = await import("./chunks/create.action-NB3YYZ7K.js");
306
+ const { createAction } = await import("./chunks/create.action-52K3XAYN.js");
307
307
  return createAction(...args);
308
308
  });
309
309
  return cmd3;
@@ -318,7 +318,7 @@ var DeleteSdkCommand = () => {
318
318
  cmd3.option("-s, --slug <slug>", "SDK slug");
319
319
  cmd3.option("-n, --namespace <namespace>", "Team namespace");
320
320
  cmd3.action(async (...args) => {
321
- const { deleteAction } = await import("./chunks/delete.action-5BT3TXVZ.js");
321
+ const { deleteAction } = await import("./chunks/delete.action-3NMOQPIR.js");
322
322
  return deleteAction(...args);
323
323
  });
324
324
  return cmd3;
@@ -340,7 +340,7 @@ var UpdateSdkCommand = () => {
340
340
  ).choices([...PRIVACY_VALUES])
341
341
  );
342
342
  cmd3.action(async (...args) => {
343
- const { updateAction } = await import("./chunks/update.action-6OE54B5O.js");
343
+ const { updateAction } = await import("./chunks/update.action-QZOP25ME.js");
344
344
  return updateAction(...args);
345
345
  });
346
346
  return cmd3;
@@ -357,7 +357,7 @@ var GetSdkCommand = () => {
357
357
  cmd3.option("-n, --namespace <namespace>", "Team namespace");
358
358
  cmd3.option("--json", "Output structured SDK metadata as JSON");
359
359
  cmd3.action(async (...args) => {
360
- const { getAction } = await import("./chunks/get.action-2ASGSZW3.js");
360
+ const { getAction } = await import("./chunks/get.action-TOZ474GO.js");
361
361
  return getAction(...args);
362
362
  });
363
363
  return cmd3;
@@ -371,7 +371,7 @@ var ListSdkCommand = () => {
371
371
  cmd3.option("--json", "Output structured SDK metadata as JSON");
372
372
  cmd3.option("--namespace <namespace>", "Team namespace");
373
373
  cmd3.action(async (...args) => {
374
- const { listAction } = await import("./chunks/list.action-6QBQFGVR.js");
374
+ const { listAction } = await import("./chunks/list.action-CMAA5KTY.js");
375
375
  return listAction(...args);
376
376
  });
377
377
  return cmd3;
@@ -395,53 +395,68 @@ var sdk_default = sdkDomain;
395
395
 
396
396
  // src/domains/access-group/index.ts
397
397
  import { Command as Command15 } from "commander";
398
+ function createAllowlistCommand(field, descriptions) {
399
+ const command = new Command15(field).description(descriptions.description);
400
+ for (const operation of ["add", "remove"]) {
401
+ command.command(operation).description(descriptions[`${operation}Description`]).argument("<slug>", "Access group slug").argument(`<${field}>`, descriptions.valueDescription).option("--json", "Print the result as JSON").action(
402
+ async (slug, value, options) => {
403
+ const { runAction } = await import("./chunks/actions-RI42JY6H.js");
404
+ await runAction({
405
+ operation: `${operation}-${field}`,
406
+ slug,
407
+ [field]: value,
408
+ ...options
409
+ });
410
+ }
411
+ );
412
+ }
413
+ return command;
414
+ }
398
415
  function createAccessGroupCommand() {
399
416
  const command = new Command15("access-group").description(
400
- "Manage access groups and allowed email domains for the current team"
417
+ "Manage access groups, allowed emails and domains for the current team"
401
418
  );
402
419
  command.command("list").description("List access groups for the current team").option("--json", "Print the result as JSON").action(async (options) => {
403
- const { runAction } = await import("./chunks/actions-PBYTDEMH.js");
420
+ const { runAction } = await import("./chunks/actions-RI42JY6H.js");
404
421
  await runAction({ operation: "list", ...options });
405
422
  });
406
423
  command.command("create").description("Create an access group (Pro or above)").argument("<slug>", "New access group slug").option("--name <name>", "Display name").option("--domain <domains...>", "Allowed email domains").option("--json", "Print the result as JSON").action(
407
424
  async (slug, options) => {
408
- const { runAction } = await import("./chunks/actions-PBYTDEMH.js");
425
+ const { runAction } = await import("./chunks/actions-RI42JY6H.js");
409
426
  await runAction({ operation: "create", slug, ...options });
410
427
  }
411
428
  );
412
429
  command.command("get").description("Get an access group and its allowlists").argument("<slug>", "Access group slug").option("--json", "Print the result as JSON").action(async (slug, options) => {
413
- const { runAction } = await import("./chunks/actions-PBYTDEMH.js");
430
+ const { runAction } = await import("./chunks/actions-RI42JY6H.js");
414
431
  await runAction({ operation: "get", slug, ...options });
415
432
  });
416
433
  command.command("update").description("Update access group metadata").argument("<slug>", "Current access group slug").option("--name <name>", "New display name").option("--new-slug <slug>", "New access group slug").option("--json", "Print the result as JSON").action(
417
434
  async (slug, options) => {
418
- const { runAction } = await import("./chunks/actions-PBYTDEMH.js");
435
+ const { runAction } = await import("./chunks/actions-RI42JY6H.js");
419
436
  await runAction({ operation: "update", slug, ...options });
420
437
  }
421
438
  );
422
439
  command.command("delete").description("Delete an access group and remove its project assignments").argument("<slug>", "Access group slug").option("-y, --yes", "Confirm deletion without prompting").option("--json", "Print the result as JSON (requires --yes)").action(
423
440
  async (slug, options) => {
424
- const { runAction } = await import("./chunks/actions-PBYTDEMH.js");
441
+ const { runAction } = await import("./chunks/actions-RI42JY6H.js");
425
442
  await runAction({ operation: "delete", slug, ...options });
426
443
  }
427
444
  );
428
- const domain = command.command("domain").description("Manage allowed email domains");
429
- domain.command("add").description("Add an exact email domain to an access group").argument("<slug>", "Access group slug").argument("<domain>", "Email domain, such as example.com").option("--json", "Print the result as JSON").action(
430
- async (slug, domain2, options) => {
431
- const { runAction } = await import("./chunks/actions-PBYTDEMH.js");
432
- await runAction({ operation: "add-domain", slug, domain: domain2, ...options });
433
- }
434
- );
435
- domain.command("remove").description("Remove an exact email domain from an access group").argument("<slug>", "Access group slug").argument("<domain>", "Email domain, such as example.com").option("--json", "Print the result as JSON").action(
436
- async (slug, domain2, options) => {
437
- const { runAction } = await import("./chunks/actions-PBYTDEMH.js");
438
- await runAction({
439
- operation: "remove-domain",
440
- slug,
441
- domain: domain2,
442
- ...options
443
- });
444
- }
445
+ command.addCommand(
446
+ createAllowlistCommand("domain", {
447
+ description: "Manage allowed email domains",
448
+ valueDescription: "Email domain, such as example.com",
449
+ addDescription: "Add an exact email domain to an access group",
450
+ removeDescription: "Remove an exact email domain from an access group"
451
+ })
452
+ );
453
+ command.addCommand(
454
+ createAllowlistCommand("email", {
455
+ description: "Manage allowed emails",
456
+ valueDescription: "Email address, such as alex@example.com",
457
+ addDescription: "Add an email address to an access group",
458
+ removeDescription: "Remove an email address from an access group"
459
+ })
445
460
  );
446
461
  return command;
447
462
  }
@@ -472,7 +487,7 @@ var LoginCommand = () => {
472
487
  ).hideHelp()
473
488
  );
474
489
  cmd3.action(async (...args) => {
475
- const { loginAction } = await import("./chunks/action-VY3DRAO4.js");
490
+ const { loginAction } = await import("./chunks/action-P2RPH5R2.js");
476
491
  return loginAction(...args);
477
492
  });
478
493
  return cmd3;
@@ -497,7 +512,7 @@ var WhoAmICommand = () => {
497
512
  cmd3.description("Show the logged-in user and current team");
498
513
  cmd3.option("--json", "Output authentication details as JSON");
499
514
  cmd3.action(async (options) => {
500
- const { whoamiAction } = await import("./chunks/action-VAJSWBMD.js");
515
+ const { whoamiAction } = await import("./chunks/action-TY4BZEMN.js");
501
516
  return whoamiAction(options);
502
517
  });
503
518
  return cmd3;
@@ -674,7 +689,7 @@ function LintCommand() {
674
689
  );
675
690
  completeFiles(cmd3, ["file|url"], ["--rule", "--output", "--ignore-file"]);
676
691
  cmd3.action(async (...args) => {
677
- const { lintAction } = await import("./chunks/action-DJXZWPL7.js");
692
+ const { lintAction } = await import("./chunks/action-IUAYC2SC.js");
678
693
  return lintAction(...args);
679
694
  });
680
695
  return cmd3;
@@ -707,7 +722,7 @@ function MockCommand() {
707
722
  cmd3.option("-p, --port <port>", "HTTP port for the Mock Server", parsePort);
708
723
  completeFiles(cmd3, ["file|url"], []);
709
724
  cmd3.action(async (...args) => {
710
- const { mockAction } = await import("./chunks/action-EYOZ457H.js");
725
+ const { mockAction } = await import("./chunks/action-MBAAYXKK.js");
711
726
  await mockAction(...args);
712
727
  });
713
728
  return cmd3;
@@ -752,7 +767,7 @@ function ServeCommand() {
752
767
  );
753
768
  completeFiles(cmd3, ["file|url"], ["--config"]);
754
769
  cmd3.action(async (...args) => {
755
- const { serveAction } = await import("./chunks/action-OP5DCAHN.js");
770
+ const { serveAction } = await import("./chunks/action-G2WBTXOK.js");
756
771
  await serveAction(...args);
757
772
  });
758
773
  return cmd3;
@@ -772,7 +787,7 @@ function ShareCommand() {
772
787
  );
773
788
  completeFiles(cmd3, ["file"], []);
774
789
  cmd3.action(async (...args) => {
775
- const { shareAction } = await import("./chunks/action-SCOJRZKD.js");
790
+ const { shareAction } = await import("./chunks/action-HOCCP353.js");
776
791
  return shareAction(...args);
777
792
  });
778
793
  return cmd3;
@@ -850,13 +865,58 @@ documentDomain.description("Work with OpenAPI and AsyncAPI descriptions");
850
865
  documentCommands.forEach((command) => documentDomain.addCommand(command()));
851
866
  var document_default = documentDomain;
852
867
 
868
+ // src/domains/mcp/index.ts
869
+ import { Command as Command35 } from "commander";
870
+ var mcpDomain = new Command35("mcp").description(
871
+ "Manage Scalar-hosted MCP servers"
872
+ );
873
+ mcpDomain.addCommand(
874
+ new Command35("list").description("List MCP servers in the current team").option("--json", "Output server metadata as JSON").action(async (options) => {
875
+ const { listAction } = await import("./chunks/actions-D5OHPBWC.js");
876
+ return listAction(options);
877
+ })
878
+ );
879
+ mcpDomain.addCommand(
880
+ new Command35("get").description("Get an MCP server and its environment versions").argument("<server-id>", "Server UUID from scalar mcp list").option("--json", "Output server and environment metadata as JSON").action(async (id, options) => {
881
+ const { getAction } = await import("./chunks/actions-D5OHPBWC.js");
882
+ return getAction(id, options);
883
+ })
884
+ );
885
+ mcpDomain.addCommand(
886
+ new Command35("create").description(
887
+ "Create an MCP server from an existing Registry API or Docs project"
888
+ ).requiredOption("--name <name>", "Server name").option("--slug <slug>", "Server slug (generated from the name by default)").option(
889
+ "--api <reference>",
890
+ "Registry API as namespace/slug[@version] (current version by default, pinned)"
891
+ ).option("--project <uid>", "Docs project UID (tracks its active publish)").option("--json", "Output created server metadata as JSON").addHelpText(
892
+ "after",
893
+ "\nProvide exactly one of --api or --project. API tool exposure follows the API description.\nCreation does not wait for the endpoint to become ready. MCP_URL overrides the endpoint host.\n\nExamples:\n scalar mcp create --name Petstore --api acme/petstore@1.0.0 --no-input\n scalar mcp create --name Docs --project <project-uid> --json --no-input"
894
+ ).action(async (options) => {
895
+ const { createAction } = await import("./chunks/actions-D5OHPBWC.js");
896
+ return createAction(options);
897
+ })
898
+ );
899
+ mcpDomain.addCommand(
900
+ new Command35("update").description("Change an MCP server name or slug").argument("<server-id>", "Server UUID from scalar mcp list").option("--name <name>", "New server name").option("--slug <slug>", "New server slug (changes the endpoint address)").option("--json", "Output updated server metadata as JSON").action(async (id, options) => {
901
+ const { updateAction } = await import("./chunks/actions-D5OHPBWC.js");
902
+ return updateAction(id, options);
903
+ })
904
+ );
905
+ mcpDomain.addCommand(
906
+ new Command35("delete").description("Delete an MCP server and stop its endpoints").argument("<server-id>", "Server UUID from scalar mcp list").option("--yes", "Confirm deletion of this server without prompting").option("--json", "Output the deletion result as JSON (requires --yes)").action(async (id, options) => {
907
+ const { deleteAction } = await import("./chunks/actions-D5OHPBWC.js");
908
+ return deleteAction(id, options);
909
+ })
910
+ );
911
+ var mcp_default = mcpDomain;
912
+
853
913
  // src/domains/project/index.ts
854
- import { Command as Command47 } from "commander";
914
+ import { Command as Command48 } from "commander";
855
915
 
856
916
  // src/domains/project/preview/index.ts
857
- import { Command as Command35, Option as Option8 } from "commander";
917
+ import { Command as Command36, Option as Option8 } from "commander";
858
918
  var PreviewCommand = () => {
859
- const cmd3 = new Command35("preview");
919
+ const cmd3 = new Command36("preview");
860
920
  cmd3.description("Preview a Scalar Docs project locally");
861
921
  cmd3.argument(
862
922
  "[config]",
@@ -874,16 +934,16 @@ var PreviewCommand = () => {
874
934
  cmd3.option("-N, --no-open", "Do not open the browser automatically", true);
875
935
  completeFiles(cmd3, ["config"], []);
876
936
  cmd3.action(async (...args) => {
877
- const { previewAction } = await import("./chunks/action-C7CNI7TP.js");
937
+ const { previewAction } = await import("./chunks/action-PNSWHIHC.js");
878
938
  return previewAction(...args);
879
939
  });
880
940
  return cmd3;
881
941
  };
882
942
 
883
943
  // src/domains/project/check-config/index.ts
884
- import { Command as Command36 } from "commander";
944
+ import { Command as Command37 } from "commander";
885
945
  function CheckConfigCommand() {
886
- const cmd3 = new Command36("check-config");
946
+ const cmd3 = new Command37("check-config");
887
947
  cmd3.description("Validate a Scalar configuration file");
888
948
  cmd3.argument(
889
949
  "[file]",
@@ -898,46 +958,46 @@ function CheckConfigCommand() {
898
958
  }
899
959
 
900
960
  // src/domains/project/create/index.ts
901
- import { Command as Command37 } from "commander";
961
+ import { Command as Command38 } from "commander";
902
962
  var CreateCommand = () => {
903
- const cmd3 = new Command37("create");
963
+ const cmd3 = new Command38("create");
904
964
  cmd3.option("--json", "Output the result as JSON without prompting");
905
965
  cmd3.description("Create a Scalar project without a linked GitHub repository");
906
966
  cmd3.option("-n, --name <name>", "Project name");
907
967
  cmd3.option("-s, --slug <slug>", "Project slug");
908
968
  cmd3.action(async (...args) => {
909
- const { createAction } = await import("./chunks/action-EPGLU5E3.js");
969
+ const { createAction } = await import("./chunks/action-3QQSKGM3.js");
910
970
  return createAction(...args);
911
971
  });
912
972
  return cmd3;
913
973
  };
914
974
 
915
975
  // src/domains/project/deployments/index.ts
916
- import { Command as Command40 } from "commander";
976
+ import { Command as Command41 } from "commander";
917
977
 
918
978
  // src/domains/project/deployments/get/index.ts
919
- import { Command as Command38 } from "commander";
920
- var GetCommand = () => new Command38("get").description(
979
+ import { Command as Command39 } from "commander";
980
+ var GetCommand = () => new Command39("get").description(
921
981
  "Inspect an existing build in the selected team without resubmitting"
922
982
  ).argument("<build-id>", "Accepted build ID, including preview builds").option("--wait", "Wait for deployment instead of inspecting once").option(
923
983
  "--timeout <seconds>",
924
984
  "Maximum status wait in seconds (default: 30, or 600 with --wait)"
925
985
  ).action(
926
986
  async (buildId, options) => {
927
- const { getAction } = await import("./chunks/action-P2QEJUBK.js");
987
+ const { getAction } = await import("./chunks/action-ZTLOQZTT.js");
928
988
  await getAction(buildId, options);
929
989
  }
930
990
  );
931
991
 
932
992
  // src/domains/project/deployments/list/index.ts
933
- import { Command as Command39 } from "commander";
993
+ import { Command as Command40 } from "commander";
934
994
  var ListCommand = () => {
935
- const cmd3 = new Command39("list");
995
+ const cmd3 = new Command40("list");
936
996
  cmd3.option("--json", "Output the result as JSON without prompting");
937
997
  cmd3.description("List production deployments for a project");
938
998
  cmd3.option("-s, --slug [slug]", "Project slug from scalar project list");
939
999
  cmd3.action(async (...args) => {
940
- const { listAction } = await import("./chunks/action-FLX3ESH7.js");
1000
+ const { listAction } = await import("./chunks/action-IU2AVNOW.js");
941
1001
  return listAction(...args);
942
1002
  });
943
1003
  return cmd3;
@@ -945,7 +1005,7 @@ var ListCommand = () => {
945
1005
 
946
1006
  // src/domains/project/deployments/index.ts
947
1007
  var DeploymentsCommand = () => {
948
- const cmd3 = new Command40("deployments");
1008
+ const cmd3 = new Command41("deployments");
949
1009
  cmd3.description("Show project deployment history");
950
1010
  cmd3.addCommand(ListCommand());
951
1011
  cmd3.addCommand(GetCommand());
@@ -953,12 +1013,12 @@ var DeploymentsCommand = () => {
953
1013
  };
954
1014
 
955
1015
  // src/domains/project/get/index.ts
956
- import { Command as Command41 } from "commander";
1016
+ import { Command as Command42 } from "commander";
957
1017
  function GetCommand2() {
958
- const command = new Command41("get").description("Show project details for the current team").argument("<slug>", "Project slug from scalar project list").option("--json", "Print project details as JSON");
1018
+ const command = new Command42("get").description("Show project details for the current team").argument("<slug>", "Project slug from scalar project list").option("--json", "Print project details as JSON");
959
1019
  command.action(
960
1020
  async (slug, options) => {
961
- const { getAction } = await import("./chunks/action-4MJXPSQU.js");
1021
+ const { getAction } = await import("./chunks/action-NZJ4Z64U.js");
962
1022
  await getAction(slug, options);
963
1023
  }
964
1024
  );
@@ -966,9 +1026,9 @@ function GetCommand2() {
966
1026
  }
967
1027
 
968
1028
  // src/domains/project/init/index.ts
969
- import { Command as Command42 } from "commander";
1029
+ import { Command as Command43 } from "commander";
970
1030
  var InitCommand = () => {
971
- const cmd3 = new Command42("init");
1031
+ const cmd3 = new Command43("init");
972
1032
  cmd3.option("--json", "Output the result as JSON without prompting");
973
1033
  cmd3.description("Initialize a local Scalar Docs project");
974
1034
  cmd3.option(
@@ -977,27 +1037,27 @@ var InitCommand = () => {
977
1037
  );
978
1038
  cmd3.option("--force", "Overwrite existing configuration");
979
1039
  cmd3.action(async (...args) => {
980
- const { initAction } = await import("./chunks/action-ZOU7EPX5.js");
1040
+ const { initAction } = await import("./chunks/action-T7SD3ETN.js");
981
1041
  return initAction(...args);
982
1042
  });
983
1043
  return cmd3;
984
1044
  };
985
1045
 
986
1046
  // src/domains/project/list/index.ts
987
- import { Command as Command43 } from "commander";
1047
+ import { Command as Command44 } from "commander";
988
1048
  function ListCommand2() {
989
- const command = new Command43("list").description("List projects and their slugs for the current team").option("--json", "Print project details as JSON");
1049
+ const command = new Command44("list").description("List projects and their slugs for the current team").option("--json", "Print project details as JSON");
990
1050
  command.action(async (options) => {
991
- const { listAction } = await import("./chunks/action-MJI3TI3W.js");
1051
+ const { listAction } = await import("./chunks/action-777R7LOG.js");
992
1052
  await listAction(options);
993
1053
  });
994
1054
  return command;
995
1055
  }
996
1056
 
997
1057
  // src/domains/project/publish/index.ts
998
- import { Command as Command44 } from "commander";
1058
+ import { Command as Command45 } from "commander";
999
1059
  var PublishCommand = () => {
1000
- const cmd3 = new Command44("publish");
1060
+ const cmd3 = new Command45("publish");
1001
1061
  cmd3.option("--json", "Output the result as JSON without prompting");
1002
1062
  cmd3.description("Publish a new build of a Scalar project");
1003
1063
  cmd3.option("-s, --slug [slug]", "Project slug from scalar project list");
@@ -1023,16 +1083,16 @@ var PublishCommand = () => {
1023
1083
  );
1024
1084
  completeFiles(cmd3, [], ["--config"]);
1025
1085
  cmd3.action(async (...args) => {
1026
- const { publishAction } = await import("./chunks/action-4HYLZRYW.js");
1086
+ const { publishAction } = await import("./chunks/action-LD5B5QQ4.js");
1027
1087
  return publishAction(...args);
1028
1088
  });
1029
1089
  return cmd3;
1030
1090
  };
1031
1091
 
1032
1092
  // src/domains/project/rollback/index.ts
1033
- import { Command as Command45 } from "commander";
1093
+ import { Command as Command46 } from "commander";
1034
1094
  var RollbackCommand = () => {
1035
- const cmd3 = new Command45("rollback");
1095
+ const cmd3 = new Command46("rollback");
1036
1096
  cmd3.option("--json", "Output the result as JSON without prompting");
1037
1097
  cmd3.description(
1038
1098
  "Roll the live deployment back to a previously deployed build."
@@ -1044,16 +1104,16 @@ var RollbackCommand = () => {
1044
1104
  );
1045
1105
  cmd3.option("-y, --yes", "Skip the confirmation prompt");
1046
1106
  cmd3.action(async (...args) => {
1047
- const { rollbackAction } = await import("./chunks/action-GOFCT7XK.js");
1107
+ const { rollbackAction } = await import("./chunks/action-MJHLG7AE.js");
1048
1108
  return rollbackAction(...args);
1049
1109
  });
1050
1110
  return cmd3;
1051
1111
  };
1052
1112
 
1053
1113
  // src/domains/project/upgrade/index.ts
1054
- import { Command as Command46 } from "commander";
1114
+ import { Command as Command47 } from "commander";
1055
1115
  var UpgradeCommand2 = () => {
1056
- const cmd3 = new Command46("upgrade");
1116
+ const cmd3 = new Command47("upgrade");
1057
1117
  cmd3.option("--json", "Output the result as JSON without prompting");
1058
1118
  cmd3.description("Upgrade a Scalar Docs configuration");
1059
1119
  cmd3.argument(
@@ -1081,7 +1141,7 @@ var projectCommands = [
1081
1141
  DeploymentsCommand,
1082
1142
  UpgradeCommand2
1083
1143
  ];
1084
- var projectDomain = new Command47("project");
1144
+ var projectDomain = new Command48("project");
1085
1145
  projectDomain.description("Manage Scalar Docs projects");
1086
1146
  for (const command of projectCommands) {
1087
1147
  projectDomain.addCommand(command());
@@ -1090,11 +1150,11 @@ projectDomain.addCommand(DownloadIsolateCommand(), { hidden: true });
1090
1150
  var project_default = projectDomain;
1091
1151
 
1092
1152
  // src/domains/readme/index.ts
1093
- import { Command as Command49 } from "commander";
1153
+ import { Command as Command50 } from "commander";
1094
1154
 
1095
1155
  // src/domains/readme/generate.ts
1096
1156
  import as from "ansis";
1097
- import { Command as Command48 } from "commander";
1157
+ import { Command as Command49 } from "commander";
1098
1158
 
1099
1159
  // src/helpers/documentation/index.ts
1100
1160
  import fs from "node:fs/promises";
@@ -1128,7 +1188,7 @@ var generateDocumentationFile = async (outputPath) => {
1128
1188
 
1129
1189
  // src/domains/readme/generate.ts
1130
1190
  function GenerateReadmeCommand() {
1131
- const cmd3 = new Command48("generate");
1191
+ const cmd3 = new Command49("generate");
1132
1192
  cmd3.description("Generate the CLI README from the command tree");
1133
1193
  cmd3.option(
1134
1194
  "-o, --output [file]",
@@ -1180,18 +1240,18 @@ function ServeReadmeCommand(cmd3) {
1180
1240
  }
1181
1241
 
1182
1242
  // src/domains/readme/index.ts
1183
- var readmeDomain = new Command49("readme");
1243
+ var readmeDomain = new Command50("readme");
1184
1244
  readmeDomain.addCommand(GenerateReadmeCommand());
1185
1245
  ServeReadmeCommand(readmeDomain);
1186
1246
  var readme_default = readmeDomain;
1187
1247
 
1188
1248
  // src/domains/registry/index.ts
1189
- import { Command as Command55 } from "commander";
1249
+ import { Command as Command56 } from "commander";
1190
1250
 
1191
1251
  // src/domains/registry/publish/index.ts
1192
- import { Command as Command50 } from "commander";
1252
+ import { Command as Command51 } from "commander";
1193
1253
  var PublishCommand2 = () => {
1194
- const cmd3 = new Command50("publish");
1254
+ const cmd3 = new Command51("publish");
1195
1255
  cmd3.option("--json", "Output the mutation result as JSON without prompting");
1196
1256
  cmd3.description("Publish an OpenAPI description to the Scalar Registry");
1197
1257
  cmd3.argument("[file]", "API description file path or URL to upload");
@@ -1227,31 +1287,31 @@ var PublishCommand2 = () => {
1227
1287
  );
1228
1288
  completeFiles(cmd3, ["file"], []);
1229
1289
  cmd3.action(async (...args) => {
1230
- const { publishAction } = await import("./chunks/action-APTGKF4W.js");
1290
+ const { publishAction } = await import("./chunks/action-7LK4RUDP.js");
1231
1291
  return publishAction(...args);
1232
1292
  });
1233
1293
  return cmd3;
1234
1294
  };
1235
1295
 
1236
1296
  // src/domains/registry/delete/index.ts
1237
- import { Command as Command51 } from "commander";
1297
+ import { Command as Command52 } from "commander";
1238
1298
  var DeleteCommand = () => {
1239
- const cmd3 = new Command51("delete");
1299
+ const cmd3 = new Command52("delete");
1240
1300
  cmd3.option("--json", "Output the mutation result as JSON without prompting");
1241
1301
  cmd3.description("Delete an API description from the Scalar Registry");
1242
1302
  cmd3.argument("[namespace]", "Team namespace");
1243
1303
  cmd3.argument("[slug]", "API description slug");
1244
1304
  cmd3.action(async (...args) => {
1245
- const { deleteAction } = await import("./chunks/action-FOITEQNQ.js");
1305
+ const { deleteAction } = await import("./chunks/action-ENDUKGWS.js");
1246
1306
  return deleteAction(...args);
1247
1307
  });
1248
1308
  return cmd3;
1249
1309
  };
1250
1310
 
1251
1311
  // src/domains/registry/get/index.ts
1252
- import { Command as Command52, Option as Option9 } from "commander";
1312
+ import { Command as Command53, Option as Option9 } from "commander";
1253
1313
  var GetCommand3 = () => {
1254
- const cmd3 = new Command52("get");
1314
+ const cmd3 = new Command53("get");
1255
1315
  cmd3.description(
1256
1316
  "Download an API description version from the Scalar Registry"
1257
1317
  );
@@ -1267,30 +1327,30 @@ var GetCommand3 = () => {
1267
1327
  cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
1268
1328
  completeFiles(cmd3, [], ["--output"]);
1269
1329
  cmd3.action(async (...args) => {
1270
- const { getAction } = await import("./chunks/action-VW2POHCL.js");
1330
+ const { getAction } = await import("./chunks/action-QJMRAFOF.js");
1271
1331
  return getAction(...args);
1272
1332
  });
1273
1333
  return cmd3;
1274
1334
  };
1275
1335
 
1276
1336
  // src/domains/registry/list/index.ts
1277
- import { Command as Command53 } from "commander";
1337
+ import { Command as Command54 } from "commander";
1278
1338
  var ListCommand3 = () => {
1279
- const cmd3 = new Command53("list");
1339
+ const cmd3 = new Command54("list");
1280
1340
  cmd3.description("List Scalar Registry API descriptions in a team namespace");
1281
1341
  cmd3.option("--namespace <namespace>", "Team namespace");
1282
1342
  cmd3.option("--json", "Output Scalar Registry API metadata as JSON");
1283
1343
  cmd3.action(async (...args) => {
1284
- const { listAction } = await import("./chunks/action-BL5PWLFV.js");
1344
+ const { listAction } = await import("./chunks/action-PDSSIW2A.js");
1285
1345
  return listAction(...args);
1286
1346
  });
1287
1347
  return cmd3;
1288
1348
  };
1289
1349
 
1290
1350
  // src/domains/registry/update/index.ts
1291
- import { Command as Command54 } from "commander";
1351
+ import { Command as Command55 } from "commander";
1292
1352
  var UpdateCommand = () => {
1293
- const cmd3 = new Command54("update");
1353
+ const cmd3 = new Command55("update");
1294
1354
  cmd3.option("--json", "Output the mutation result as JSON without prompting");
1295
1355
  cmd3.description("Update API description metadata in the Scalar Registry");
1296
1356
  cmd3.argument("[namespace]", "Team namespace");
@@ -1310,7 +1370,7 @@ var UpdateCommand = () => {
1310
1370
  "\nOmitting visibility options leaves access unchanged.\nExample: scalar registry update acme my-api --private"
1311
1371
  );
1312
1372
  cmd3.action(async (...args) => {
1313
- const { updateAction } = await import("./chunks/action-VS22CPVB.js");
1373
+ const { updateAction } = await import("./chunks/action-3W4IC7QL.js");
1314
1374
  return updateAction(...args);
1315
1375
  });
1316
1376
  return cmd3;
@@ -1324,49 +1384,49 @@ var registryCommands = [
1324
1384
  ListCommand3,
1325
1385
  GetCommand3
1326
1386
  ];
1327
- var registryDomain = new Command55("registry");
1387
+ var registryDomain = new Command56("registry");
1328
1388
  registryDomain.description("Manage API descriptions in the Scalar Registry");
1329
1389
  registryCommands.forEach((command) => registryDomain.addCommand(command()));
1330
1390
  var registry_default = registryDomain;
1331
1391
 
1332
1392
  // src/domains/team/index.ts
1333
- import { Command as Command59 } from "commander";
1393
+ import { Command as Command60 } from "commander";
1334
1394
 
1335
1395
  // src/domains/team/get/index.ts
1336
- import { Command as Command56 } from "commander";
1396
+ import { Command as Command57 } from "commander";
1337
1397
  var GetCommand4 = () => {
1338
- const cmd3 = new Command56("get");
1398
+ const cmd3 = new Command57("get");
1339
1399
  cmd3.description("Show the current team and its namespaces");
1340
1400
  cmd3.option("--json", "Output the current team as JSON");
1341
1401
  cmd3.action(async (...args) => {
1342
- const { getAction } = await import("./chunks/action-XA4MEYFP.js");
1402
+ const { getAction } = await import("./chunks/action-2UZWKMSJ.js");
1343
1403
  return getAction(...args);
1344
1404
  });
1345
1405
  return cmd3;
1346
1406
  };
1347
1407
 
1348
1408
  // src/domains/team/list/index.ts
1349
- import { Command as Command57 } from "commander";
1409
+ import { Command as Command58 } from "commander";
1350
1410
  var ListCommand4 = () => {
1351
- const cmd3 = new Command57("list");
1411
+ const cmd3 = new Command58("list");
1352
1412
  cmd3.description("List your Scalar teams");
1353
1413
  cmd3.option("--json", "Output teams as JSON");
1354
1414
  cmd3.action(async (...args) => {
1355
- const { listAction } = await import("./chunks/action-Y4MKBDRC.js");
1415
+ const { listAction } = await import("./chunks/action-HDT7EO7W.js");
1356
1416
  return listAction(...args);
1357
1417
  });
1358
1418
  return cmd3;
1359
1419
  };
1360
1420
 
1361
1421
  // src/domains/team/set/index.ts
1362
- import { Command as Command58 } from "commander";
1422
+ import { Command as Command59 } from "commander";
1363
1423
  var SetCommand = () => {
1364
- const cmd3 = new Command58("set");
1424
+ const cmd3 = new Command59("set");
1365
1425
  cmd3.option("--json", "Output the result as JSON without prompting");
1366
1426
  cmd3.description("Select the current team");
1367
1427
  cmd3.option("--team <team>", "Team ID");
1368
1428
  cmd3.action(async (...args) => {
1369
- const { setAction } = await import("./chunks/action-RRQNVUFW.js");
1429
+ const { setAction } = await import("./chunks/action-B2WWTOF6.js");
1370
1430
  return setAction(...args);
1371
1431
  });
1372
1432
  return cmd3;
@@ -1374,7 +1434,7 @@ var SetCommand = () => {
1374
1434
 
1375
1435
  // src/domains/team/index.ts
1376
1436
  var teamCommands = [ListCommand4, GetCommand4, SetCommand];
1377
- var teamDomain = new Command59("team");
1437
+ var teamDomain = new Command60("team");
1378
1438
  teamDomain.description("List and switch between your Scalar teams");
1379
1439
  teamCommands.forEach((command) => {
1380
1440
  teamDomain.addCommand(command());
@@ -1383,7 +1443,7 @@ var team_default = teamDomain;
1383
1443
 
1384
1444
  // src/domains/upgrade/index.ts
1385
1445
  import { execSync } from "node:child_process";
1386
- import { Command as Command60, Option as Option10 } from "commander";
1446
+ import { Command as Command61, Option as Option10 } from "commander";
1387
1447
 
1388
1448
  // src/helpers/upgrade.ts
1389
1449
  import semver from "semver";
@@ -1493,7 +1553,7 @@ function getUpgradeInstructions(portable, platform, arch, env, latestVersion) {
1493
1553
  }
1494
1554
 
1495
1555
  // src/domains/upgrade/index.ts
1496
- var cmd2 = new Command60("upgrade");
1556
+ var cmd2 = new Command61("upgrade");
1497
1557
  cmd2.description("Upgrade the Scalar CLI to the latest version");
1498
1558
  cmd2.option(
1499
1559
  "--check",
@@ -1600,6 +1660,7 @@ var domains = [
1600
1660
  access_group_default,
1601
1661
  document_default,
1602
1662
  project_default,
1663
+ mcp_default,
1603
1664
  registry_default,
1604
1665
  team_default,
1605
1666
  sdk_default,