@webiny/mcp 6.3.0 → 6.4.0-beta.1

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/cli.js CHANGED
@@ -1,60 +1,61 @@
1
1
  import { startMcpServer } from "./cli/McpServer.js";
2
2
  import { configureMcp } from "./cli/ConfigureMcp.js";
3
- const args = process.argv.slice(2);
4
- const command = args[0];
3
+ const cli_args = process.argv.slice(2);
4
+ const command = cli_args[0];
5
5
  function parseFlags(args) {
6
- const flags = {};
7
- for (const arg of args) {
8
- if (!arg.startsWith("--")) {
9
- continue;
6
+ const flags = {};
7
+ for (const arg of args){
8
+ if (!arg.startsWith("--")) continue;
9
+ const [key, ...rest] = arg.slice(2).split("=");
10
+ const value = rest.length > 0 ? rest.join("=") : true;
11
+ const existing = flags[key];
12
+ if (void 0 !== existing) flags[key] = Array.isArray(existing) ? [
13
+ ...existing,
14
+ value
15
+ ] : [
16
+ existing,
17
+ value
18
+ ];
19
+ else flags[key] = value;
10
20
  }
11
- const [key, ...rest] = arg.slice(2).split("=");
12
- const value = rest.length > 0 ? rest.join("=") : true;
13
-
14
- // Support repeated flags as arrays.
15
- const existing = flags[key];
16
- if (existing !== undefined) {
17
- flags[key] = Array.isArray(existing) ? [...existing, value] : [existing, value];
18
- } else {
19
- flags[key] = value;
20
- }
21
- }
22
- return flags;
21
+ return flags;
23
22
  }
24
23
  async function main() {
25
- if (command === "serve") {
26
- const flags = parseFlags(args.slice(1));
27
- const additionalSkills = flags["additional-skills"];
28
- await startMcpServer({
29
- skills: typeof flags.skills === "string" ? flags.skills : undefined,
30
- additionalSkills: Array.isArray(additionalSkills) ? additionalSkills : typeof additionalSkills === "string" ? [additionalSkills] : undefined
31
- });
32
- } else if (command === "configure") {
33
- const agent = args[1] && !args[1].startsWith("--") ? args[1] : undefined;
34
- const flags = parseFlags(args.slice(1));
35
- await configureMcp({
36
- agent,
37
- instructions: flags.instructions === true
38
- });
39
- } else {
40
- console.log("Usage: webiny-mcp <command>");
41
- console.log("");
42
- console.log("Commands:");
43
- console.log(" serve Start the MCP server (stdio transport)");
44
- console.log(" configure Configure MCP server for a specific agent");
45
- console.log("");
46
- console.log("Examples:");
47
- console.log(" npx webiny-mcp serve");
48
- console.log(" npx webiny-mcp serve --additional-skills=./my-skills");
49
- console.log(" npx webiny-mcp configure claude");
50
- console.log(" npx webiny-mcp configure cursor");
51
- console.log(" npx webiny-mcp configure --instructions");
52
- process.exit(command ? 1 : 0);
53
- }
24
+ if ("serve" === command) {
25
+ const flags = parseFlags(cli_args.slice(1));
26
+ const additionalSkills = flags["additional-skills"];
27
+ await startMcpServer({
28
+ skills: "string" == typeof flags.skills ? flags.skills : void 0,
29
+ additionalSkills: Array.isArray(additionalSkills) ? additionalSkills : "string" == typeof additionalSkills ? [
30
+ additionalSkills
31
+ ] : void 0
32
+ });
33
+ } else if ("configure" === command) {
34
+ const agent = cli_args[1] && !cli_args[1].startsWith("--") ? cli_args[1] : void 0;
35
+ const flags = parseFlags(cli_args.slice(1));
36
+ await configureMcp({
37
+ agent,
38
+ instructions: true === flags.instructions
39
+ });
40
+ } else {
41
+ console.log("Usage: webiny-mcp <command>");
42
+ console.log("");
43
+ console.log("Commands:");
44
+ console.log(" serve Start the MCP server (stdio transport)");
45
+ console.log(" configure Configure MCP server for a specific agent");
46
+ console.log("");
47
+ console.log("Examples:");
48
+ console.log(" npx webiny-mcp serve");
49
+ console.log(" npx webiny-mcp serve --additional-skills=./my-skills");
50
+ console.log(" npx webiny-mcp configure claude");
51
+ console.log(" npx webiny-mcp configure cursor");
52
+ console.log(" npx webiny-mcp configure --instructions");
53
+ process.exit(command ? 1 : 0);
54
+ }
54
55
  }
55
- main().catch(err => {
56
- console.error(err);
57
- process.exit(1);
56
+ main().catch((err)=>{
57
+ console.error(err);
58
+ process.exit(1);
58
59
  });
59
60
 
60
61
  //# sourceMappingURL=cli.js.map
package/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["startMcpServer","configureMcp","args","process","argv","slice","command","parseFlags","flags","arg","startsWith","key","rest","split","value","length","join","existing","undefined","Array","isArray","main","additionalSkills","skills","agent","instructions","console","log","exit","catch","err","error"],"sources":["cli.ts"],"sourcesContent":["import { startMcpServer } from \"./cli/McpServer.js\";\nimport { configureMcp } from \"./cli/ConfigureMcp.js\";\n\nconst args = process.argv.slice(2);\nconst command = args[0];\n\nfunction parseFlags(args: string[]): Record<string, string | string[] | boolean> {\n const flags: Record<string, string | string[] | boolean> = {};\n for (const arg of args) {\n if (!arg.startsWith(\"--\")) {\n continue;\n }\n const [key, ...rest] = arg.slice(2).split(\"=\");\n const value = rest.length > 0 ? rest.join(\"=\") : true;\n\n // Support repeated flags as arrays.\n const existing = flags[key];\n if (existing !== undefined) {\n flags[key] = Array.isArray(existing)\n ? [...existing, value as string]\n : [existing as string, value as string];\n } else {\n flags[key] = value;\n }\n }\n return flags;\n}\n\nasync function main(): Promise<void> {\n if (command === \"serve\") {\n const flags = parseFlags(args.slice(1));\n const additionalSkills = flags[\"additional-skills\"];\n await startMcpServer({\n skills: typeof flags.skills === \"string\" ? flags.skills : undefined,\n additionalSkills: Array.isArray(additionalSkills)\n ? additionalSkills\n : typeof additionalSkills === \"string\"\n ? [additionalSkills]\n : undefined\n });\n } else if (command === \"configure\") {\n const agent = args[1] && !args[1].startsWith(\"--\") ? args[1] : undefined;\n const flags = parseFlags(args.slice(1));\n await configureMcp({\n agent,\n instructions: flags.instructions === true\n });\n } else {\n console.log(\"Usage: webiny-mcp <command>\");\n console.log(\"\");\n console.log(\"Commands:\");\n console.log(\" serve Start the MCP server (stdio transport)\");\n console.log(\" configure Configure MCP server for a specific agent\");\n console.log(\"\");\n console.log(\"Examples:\");\n console.log(\" npx webiny-mcp serve\");\n console.log(\" npx webiny-mcp serve --additional-skills=./my-skills\");\n console.log(\" npx webiny-mcp configure claude\");\n console.log(\" npx webiny-mcp configure cursor\");\n console.log(\" npx webiny-mcp configure --instructions\");\n process.exit(command ? 1 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IACxDxB,OAAO,CAACyB,IAAI,CAACtB,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;EACjC;AACJ;AAEAe,IAAI,CAAC,CAAC,CAACQ,KAAK,CAACC,GAAG,IAAI;EAChBJ,OAAO,CAACK,KAAK,CAACD,GAAG,CAAC;EAClB3B,OAAO,CAACyB,IAAI,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"cli.js","sources":["../src/cli.ts"],"sourcesContent":["import { startMcpServer } from \"./cli/McpServer.js\";\nimport { configureMcp } from \"./cli/ConfigureMcp.js\";\n\nconst args = process.argv.slice(2);\nconst command = args[0];\n\nfunction parseFlags(args: string[]): Record<string, string | string[] | boolean> {\n const flags: Record<string, string | string[] | boolean> = {};\n for (const arg of args) {\n if (!arg.startsWith(\"--\")) {\n continue;\n }\n const [key, ...rest] = arg.slice(2).split(\"=\");\n const value = rest.length > 0 ? rest.join(\"=\") : true;\n\n // Support repeated flags as arrays.\n const existing = flags[key];\n if (existing !== undefined) {\n flags[key] = Array.isArray(existing)\n ? [...existing, value as string]\n : [existing as string, value as string];\n } else {\n flags[key] = value;\n }\n }\n return flags;\n}\n\nasync function main(): Promise<void> {\n if (command === \"serve\") {\n const flags = parseFlags(args.slice(1));\n const additionalSkills = flags[\"additional-skills\"];\n await startMcpServer({\n skills: typeof flags.skills === \"string\" ? flags.skills : undefined,\n additionalSkills: Array.isArray(additionalSkills)\n ? additionalSkills\n : typeof additionalSkills === \"string\"\n ? [additionalSkills]\n : undefined\n });\n } else if (command === \"configure\") {\n const agent = args[1] && !args[1].startsWith(\"--\") ? args[1] : undefined;\n const flags = parseFlags(args.slice(1));\n await configureMcp({\n agent,\n instructions: flags.instructions === true\n });\n } else {\n console.log(\"Usage: webiny-mcp <command>\");\n console.log(\"\");\n console.log(\"Commands:\");\n console.log(\" serve Start the MCP server (stdio transport)\");\n console.log(\" configure Configure MCP server for a specific agent\");\n console.log(\"\");\n console.log(\"Examples:\");\n console.log(\" npx webiny-mcp serve\");\n console.log(\" npx webiny-mcp serve --additional-skills=./my-skills\");\n console.log(\" npx webiny-mcp configure claude\");\n console.log(\" npx webiny-mcp configure cursor\");\n console.log(\" npx webiny-mcp configure --instructions\");\n process.exit(command ? 1 : 0);\n }\n}\n\nmain().catch(err => {\n console.error(err);\n process.exit(1);\n});\n"],"names":["args","process","command","parseFlags","flags","arg","key","rest","value","existing","undefined","Array","main","additionalSkills","startMcpServer","agent","configureMcp","console","err"],"mappings":";;AAGA,MAAMA,WAAOC,QAAQ,IAAI,CAAC,KAAK,CAAC;AAChC,MAAMC,UAAUF,QAAI,CAAC,EAAE;AAEvB,SAASG,WAAWH,IAAc;IAC9B,MAAMI,QAAqD,CAAC;IAC5D,KAAK,MAAMC,OAAOL,KAAM;QACpB,IAAI,CAACK,IAAI,UAAU,CAAC,OAChB;QAEJ,MAAM,CAACC,KAAK,GAAGC,KAAK,GAAGF,IAAI,KAAK,CAAC,GAAG,KAAK,CAAC;QAC1C,MAAMG,QAAQD,KAAK,MAAM,GAAG,IAAIA,KAAK,IAAI,CAAC,OAAO;QAGjD,MAAME,WAAWL,KAAK,CAACE,IAAI;QAC3B,IAAIG,AAAaC,WAAbD,UACAL,KAAK,CAACE,IAAI,GAAGK,MAAM,OAAO,CAACF,YACrB;eAAIA;YAAUD;SAAgB,GAC9B;YAACC;YAAoBD;SAAgB;aAE3CJ,KAAK,CAACE,IAAI,GAAGE;IAErB;IACA,OAAOJ;AACX;AAEA,eAAeQ;IACX,IAAIV,AAAY,YAAZA,SAAqB;QACrB,MAAME,QAAQD,WAAWH,SAAK,KAAK,CAAC;QACpC,MAAMa,mBAAmBT,KAAK,CAAC,oBAAoB;QACnD,MAAMU,eAAe;YACjB,QAAQ,AAAwB,YAAxB,OAAOV,MAAM,MAAM,GAAgBA,MAAM,MAAM,GAAGM;YAC1D,kBAAkBC,MAAM,OAAO,CAACE,oBAC1BA,mBACA,AAA4B,YAA5B,OAAOA,mBACL;gBAACA;aAAiB,GAClBH;QACZ;IACJ,OAAO,IAAIR,AAAY,gBAAZA,SAAyB;QAChC,MAAMa,QAAQf,QAAI,CAAC,EAAE,IAAI,CAACA,QAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQA,QAAI,CAAC,EAAE,GAAGU;QAC/D,MAAMN,QAAQD,WAAWH,SAAK,KAAK,CAAC;QACpC,MAAMgB,aAAa;YACfD;YACA,cAAcX,AAAuB,SAAvBA,MAAM,YAAY;QACpC;IACJ,OAAO;QACHa,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZhB,QAAQ,IAAI,CAACC,UAAU,IAAI;IAC/B;AACJ;AAEAU,OAAO,KAAK,CAACM,CAAAA;IACTD,QAAQ,KAAK,CAACC;IACdjB,QAAQ,IAAI,CAAC;AACjB"}
package/index.js CHANGED
@@ -1,11 +1,4 @@
1
- // Ui interface and console implementation
2
-
3
1
  export { ConsoleUi } from "./ui.js";
4
-
5
- // Core functions
6
2
  export { startMcpServer } from "./cli/McpServer.js";
7
3
  export { configureMcp } from "./cli/ConfigureMcp.js";
8
- // Agent discovery
9
4
  export { discoverAgents, discoverPresets } from "./agents/discover.js";
10
-
11
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/mcp",
3
- "version": "6.3.0",
3
+ "version": "6.4.0-beta.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -23,12 +23,12 @@
23
23
  "dependencies": {
24
24
  "@modelcontextprotocol/sdk": "1.29.0",
25
25
  "front-matter": "4.0.2",
26
- "zod": "4.3.6"
26
+ "zod": "4.4.3"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/lodash": "4.17.24",
30
30
  "@types/ncp": "2.0.8",
31
- "@webiny/build-tools": "6.3.0",
31
+ "@webiny/build-tools": "6.4.0-beta.1",
32
32
  "execa": "5.1.1",
33
33
  "tsx": "4.21.0",
34
34
  "typescript": "6.0.3"
@@ -36,5 +36,5 @@
36
36
  "scripts": {
37
37
  "prepublishOnly": "bash ./prepublishOnly.sh"
38
38
  },
39
- "gitHead": "7cefe15431dbd65504e1f58147dc9e55bcbfa693"
39
+ "gitHead": "73237b8243693038c072bae1c0b783387448cbbe"
40
40
  }
@@ -2,7 +2,7 @@
2
2
  name: webiny-admin-website-builder-catalog
3
3
  context: webiny-api
4
4
  description: >
5
- admin/website-builder — 63 abstractions.
5
+ admin/website-builder — 64 abstractions.
6
6
  ---
7
7
 
8
8
  # admin/website-builder
@@ -212,6 +212,11 @@ which can be mutated in place.
212
212
  **Import:** `import { PageTypeProvider } from "webiny/admin/website-builder"`
213
213
  **Source:** `@webiny/app-website-builder/presentation/pages/CreatePage/abstractions.ts`
214
214
 
215
+ ---
216
+ **Name:** `PreviewUrlModifier`
217
+ **Import:** `import { PreviewUrlModifier } from "webiny/admin/website-builder"`
218
+ **Source:** `@webiny/app-website-builder/features/previewUrl/abstractions.ts`
219
+
215
220
  ---
216
221
  **Name:** `RedirectListConfig`
217
222
  **Import:** `import { RedirectListConfig } from "webiny/admin/website-builder/redirect/list"`
@@ -2,7 +2,7 @@
2
2
  name: webiny-api-catalog
3
3
  context: webiny-api
4
4
  description: >
5
- api — 21 abstractions.
5
+ api — 22 abstractions.
6
6
  ---
7
7
 
8
8
  # api
@@ -137,3 +137,8 @@ Inspired by functional programming constructs like `Either` or `Result` in other
137
137
  **Source:** `@webiny/handler/abstractions/Route.ts`
138
138
 
139
139
  ---
140
+ **Name:** `WebsocketService`
141
+ **Import:** `import { WebsocketService } from "webiny/api"`
142
+ **Source:** `@webiny/api-websockets/features/WebsocketService/index.ts`
143
+
144
+ ---
@@ -2,7 +2,7 @@
2
2
  name: webiny-api-cms-catalog
3
3
  context: webiny-api
4
4
  description: >
5
- API — Headless CMS — 124 abstractions.
5
+ API — Headless CMS — 133 abstractions.
6
6
  Entry, model, and group event handlers and use cases.
7
7
  ---
8
8
 
@@ -173,6 +173,16 @@ Entry, model, and group event handlers and use cases.
173
173
  **Source:** `@webiny/api-headless-cms/features/contentEntry/ContentEntryTraverser/index.ts`
174
174
  **Description:** Traverse the given content entry data using the model's AST.
175
175
 
176
+ ---
177
+ **Name:** `CreateEntryDataFactory`
178
+ **Import:** `import { CreateEntryDataFactory } from "webiny/api/cms/entry"`
179
+ **Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreateEntryDataFactory/abstractions.ts`
180
+
181
+ ---
182
+ **Name:** `CreateEntryRevisionFromDataFactory`
183
+ **Import:** `import { CreateEntryRevisionFromDataFactory } from "webiny/api/cms/entry"`
184
+ **Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/abstractions.ts`
185
+
176
186
  ---
177
187
  **Name:** `CreateEntryRevisionFromUseCase`
178
188
  **Import:** `import { CreateEntryRevisionFromUseCase } from "webiny/api/cms/entry"`
@@ -203,6 +213,21 @@ Entry, model, and group event handlers and use cases.
203
213
  **Source:** `@webiny/api-headless-cms/features/contentModel/CreateModel/abstractions.ts`
204
214
  **Description:** Create a new content model.
205
215
 
216
+ ---
217
+ **Name:** `CreatePublishEntryDataFactory`
218
+ **Import:** `import { CreatePublishEntryDataFactory } from "webiny/api/cms/entry"`
219
+ **Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/abstractions.ts`
220
+
221
+ ---
222
+ **Name:** `CreateRepublishEntryDataFactory`
223
+ **Import:** `import { CreateRepublishEntryDataFactory } from "webiny/api/cms/entry"`
224
+ **Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/abstractions.ts`
225
+
226
+ ---
227
+ **Name:** `CreateUnpublishEntryDataFactory`
228
+ **Import:** `import { CreateUnpublishEntryDataFactory } from "webiny/api/cms/entry"`
229
+ **Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/abstractions.ts`
230
+
206
231
  ---
207
232
  **Name:** `DataFieldBuilder`
208
233
  **Import:** `import { DataFieldBuilder } from "webiny/api/cms/model"`
@@ -294,6 +319,12 @@ Provides storageId, list, validation, renderer, and other data-field methods.
294
319
  **Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateEntry/events.ts`
295
320
  **Description:** Hook into entry lifecycle after an entry is updated.
296
321
 
322
+ ---
323
+ **Name:** `EntryAfterUpdateRevisionDescriptionEventHandler`
324
+ **Import:** `import { EntryAfterUpdateRevisionDescriptionEventHandler } from "webiny/api/cms/entry"`
325
+ **Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateRevisionDescription/events.ts`
326
+ **Description:** Hook into entry lifecycle after an entry is updated.
327
+
297
328
  ---
298
329
  **Name:** `EntryBeforeCreateEventHandler`
299
330
  **Import:** `import { EntryBeforeCreateEventHandler } from "webiny/api/cms/entry"`
@@ -348,6 +379,12 @@ Provides storageId, list, validation, renderer, and other data-field methods.
348
379
  **Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateEntry/events.ts`
349
380
  **Description:** Hook into entry lifecycle before an entry is updated.
350
381
 
382
+ ---
383
+ **Name:** `EntryBeforeUpdateRevisionDescriptionEventHandler`
384
+ **Import:** `import { EntryBeforeUpdateRevisionDescriptionEventHandler } from "webiny/api/cms/entry"`
385
+ **Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateRevisionDescription/events.ts`
386
+ **Description:** Hook into entry lifecycle before an entry is updated.
387
+
351
388
  ---
352
389
  **Name:** `EntryId`
353
390
  **Import:** `import { EntryId } from "webiny/api/cms/entry"`
@@ -723,6 +760,11 @@ Call .private() or .public() to get the appropriate typed builder.
723
760
  **Source:** `@webiny/api-headless-cms/features/contentEntry/UnpublishEntry/abstractions.ts`
724
761
  **Description:** Unpublish a content entry.
725
762
 
763
+ ---
764
+ **Name:** `UpdateEntryDataFactory`
765
+ **Import:** `import { UpdateEntryDataFactory } from "webiny/api/cms/entry"`
766
+ **Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/abstractions.ts`
767
+
726
768
  ---
727
769
  **Name:** `UpdateEntryUseCase`
728
770
  **Import:** `import { UpdateEntryUseCase } from "webiny/api/cms/entry"`
@@ -741,6 +783,12 @@ Call .private() or .public() to get the appropriate typed builder.
741
783
  **Source:** `@webiny/api-headless-cms/features/contentModel/UpdateModel/abstractions.ts`
742
784
  **Description:** Update a content model.
743
785
 
786
+ ---
787
+ **Name:** `UpdateRevisionDescriptionUseCase`
788
+ **Import:** `import { UpdateRevisionDescriptionUseCase } from "webiny/api/cms/entry"`
789
+ **Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateRevisionDescription/abstractions.ts`
790
+ **Description:** Update a content revision description.
791
+
744
792
  ---
745
793
  **Name:** `UpdateSingletonEntryUseCase`
746
794
  **Import:** `import { UpdateSingletonEntryUseCase } from "webiny/api/cms/entry"`
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: webiny-api-webhooks-catalog
3
+ context: webiny-api
4
+ description: >
5
+ api/webhooks — 15 abstractions.
6
+ ---
7
+
8
+ # api/webhooks
9
+
10
+ ## How to Use
11
+
12
+ 1. Find the abstraction you need below
13
+ 2. You MUST read the source file to get the exact interface and types!
14
+ 3. Import: `import { Name } from "<importPath>";`
15
+ 4. See `webiny-use-case-pattern` or `webiny-event-handler-pattern` skills for implementation patterns
16
+
17
+ ## Abstractions
18
+
19
+ ---
20
+ **Name:** `createWebhooks`
21
+ **Import:** `import { createWebhooks } from "webiny/api/webhooks"`
22
+ **Source:** `@webiny/webhooks/api/index.ts`
23
+
24
+ ---
25
+ **Name:** `IListMeta`
26
+ **Kind:** type
27
+ **Import:** `import type { IListMeta } from "webiny/api/webhooks"`
28
+ **Source:** `@webiny/webhooks/api/features/ListWebhooks/abstractions.ts`
29
+
30
+ ---
31
+ **Name:** `IWebhookPayload`
32
+ **Kind:** type
33
+ **Import:** `import type { IWebhookPayload } from "webiny/api/webhooks"`
34
+ **Source:** `@webiny/webhooks/api/features/SendWebhookTask/types.ts`
35
+
36
+ ---
37
+ **Name:** `Webhook`
38
+ **Kind:** type
39
+ **Import:** `import type { Webhook } from "webiny/api/webhooks"`
40
+ **Source:** `@webiny/webhooks/api/domain/Webhook.ts`
41
+
42
+ ---
43
+ **Name:** `WebhookCmsEntry`
44
+ **Kind:** type
45
+ **Import:** `import type { WebhookCmsEntry } from "webiny/api/webhooks"`
46
+ **Source:** `@webiny/webhooks/api/domain/Webhook.ts`
47
+
48
+ ---
49
+ **Name:** `WebhookCmsEntryValues`
50
+ **Kind:** type
51
+ **Import:** `import type { WebhookCmsEntryValues } from "webiny/api/webhooks"`
52
+ **Source:** `@webiny/webhooks/api/domain/Webhook.ts`
53
+
54
+ ---
55
+ **Name:** `WebhookDelivery`
56
+ **Kind:** type
57
+ **Import:** `import type { WebhookDelivery } from "webiny/api/webhooks"`
58
+ **Source:** `@webiny/webhooks/api/domain/WebhookDelivery.ts`
59
+
60
+ ---
61
+ **Name:** `WebhookDeliveryCmsEntry`
62
+ **Kind:** type
63
+ **Import:** `import type { WebhookDeliveryCmsEntry } from "webiny/api/webhooks"`
64
+ **Source:** `@webiny/webhooks/api/domain/WebhookDelivery.ts`
65
+
66
+ ---
67
+ **Name:** `WebhookDeliveryCmsEntryValues`
68
+ **Kind:** type
69
+ **Import:** `import type { WebhookDeliveryCmsEntryValues } from "webiny/api/webhooks"`
70
+ **Source:** `@webiny/webhooks/api/domain/WebhookDelivery.ts`
71
+
72
+ ---
73
+ **Name:** `WebhookDeliveryStatus`
74
+ **Kind:** type
75
+ **Import:** `import type { WebhookDeliveryStatus } from "webiny/api/webhooks"`
76
+ **Source:** `@webiny/webhooks/api/domain/WebhookDelivery.ts`
77
+
78
+ ---
79
+ **Name:** `WebhookDispatcher`
80
+ **Import:** `import { WebhookDispatcher } from "webiny/api/webhooks"`
81
+ **Source:** `@webiny/api-core/features/webhooks/index.ts`
82
+ **Description:** Routes a domain event to all matching enabled webhooks via background tasks.
83
+
84
+ ---
85
+ **Name:** `WebhookFactory`
86
+ **Import:** `import { WebhookFactory } from "webiny/api/webhooks"`
87
+ **Source:** `@webiny/api-core/features/webhooks/index.ts`
88
+
89
+ ---
90
+ **Name:** `WebhookProvider`
91
+ **Import:** `import { WebhookProvider } from "webiny/api/webhooks"`
92
+ **Source:** `@webiny/api-core/features/webhooks/index.ts`
93
+
94
+ ---
95
+ **Name:** `WebhookSignPayload`
96
+ **Import:** `import { WebhookSignPayload } from "webiny/api/webhooks"`
97
+ **Source:** `@webiny/api-core/features/webhooks/index.ts`
98
+ **Description:** Signs webhook payloads using the Standard Webhooks spec (https://www.standardwebhooks.com).
99
+
100
+ ---
101
+ **Name:** `WebhookVerifyPayload`
102
+ **Import:** `import { WebhookVerifyPayload } from "webiny/api/webhooks"`
103
+ **Source:** `@webiny/api-core/features/webhooks/index.ts`
104
+ **Description:** Verifies incoming webhook payloads using the Standard Webhooks spec (https://www.standardwebhooks.com).
105
+
106
+ ---
package/ui.js CHANGED
@@ -1,31 +1,23 @@
1
- /**
2
- * Minimal UI interface for MCP output.
3
- * This is a structural subtype of @webiny/cli-core's IUiService,
4
- * so Webiny's Ui can be passed directly without an adapter.
5
- */
6
-
7
- /**
8
- * Console-based Ui for standalone usage (no @webiny/cli-core needed).
9
- */
10
- export class ConsoleUi {
11
- info(text, ...args) {
12
- console.log(text, ...args);
13
- }
14
- success(text, ...args) {
15
- console.log(text, ...args);
16
- }
17
- error(text, ...args) {
18
- console.error(text, ...args);
19
- }
20
- warning(text, ...args) {
21
- console.warn(text, ...args);
22
- }
23
- text(text) {
24
- console.log(text);
25
- }
26
- emptyLine() {
27
- console.log();
28
- }
1
+ class ConsoleUi {
2
+ info(text, ...args) {
3
+ console.log(text, ...args);
4
+ }
5
+ success(text, ...args) {
6
+ console.log(text, ...args);
7
+ }
8
+ error(text, ...args) {
9
+ console.error(text, ...args);
10
+ }
11
+ warning(text, ...args) {
12
+ console.warn(text, ...args);
13
+ }
14
+ text(text) {
15
+ console.log(text);
16
+ }
17
+ emptyLine() {
18
+ console.log();
19
+ }
29
20
  }
21
+ export { ConsoleUi };
30
22
 
31
23
  //# sourceMappingURL=ui.js.map
package/ui.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["ConsoleUi","info","text","args","console","log","success","error","warning","warn","emptyLine"],"sources":["ui.ts"],"sourcesContent":["/**\n * Minimal UI interface for MCP output.\n * This is a structural subtype of @webiny/cli-core's IUiService,\n * so Webiny's Ui can be passed directly without an adapter.\n */\nexport interface IUi {\n info(text: string, ...args: any[]): void;\n success(text: string, ...args: any[]): void;\n error(text: string, ...args: any[]): void;\n warning(text: string, ...args: any[]): void;\n text(text: string): void;\n emptyLine(): void;\n}\n\n/**\n * Console-based Ui for standalone usage (no @webiny/cli-core needed).\n */\nexport class ConsoleUi implements IUi {\n info(text: string, ...args: any[]): void {\n console.log(text, ...args);\n }\n\n success(text: string, ...args: any[]): void {\n console.log(text, ...args);\n }\n\n error(text: string, ...args: any[]): void {\n console.error(text, ...args);\n }\n\n warning(text: string, ...args: any[]): void {\n console.warn(text, ...args);\n }\n\n text(text: string): void {\n console.log(text);\n }\n\n emptyLine(): void {\n console.log();\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,CAAgB;EAClCC,IAAIA,CAACC,IAAY,EAAE,GAAGC,IAAW,EAAQ;IACrCC,OAAO,CAACC,GAAG,CAACH,IAAI,EAAE,GAAGC,IAAI,CAAC;EAC9B;EAEAG,OAAOA,CAACJ,IAAY,EAAE,GAAGC,IAAW,EAAQ;IACxCC,OAAO,CAACC,GAAG,CAACH,IAAI,EAAE,GAAGC,IAAI,CAAC;EAC9B;EAEAI,KAAKA,CAACL,IAAY,EAAE,GAAGC,IAAW,EAAQ;IACtCC,OAAO,CAACG,KAAK,CAACL,IAAI,EAAE,GAAGC,IAAI,CAAC;EAChC;EAEAK,OAAOA,CAACN,IAAY,EAAE,GAAGC,IAAW,EAAQ;IACxCC,OAAO,CAACK,IAAI,CAACP,IAAI,EAAE,GAAGC,IAAI,CAAC;EAC/B;EAEAD,IAAIA,CAACA,IAAY,EAAQ;IACrBE,OAAO,CAACC,GAAG,CAACH,IAAI,CAAC;EACrB;EAEAQ,SAASA,CAAA,EAAS;IACdN,OAAO,CAACC,GAAG,CAAC,CAAC;EACjB;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"ui.js","sources":["../src/ui.ts"],"sourcesContent":["/**\n * Minimal UI interface for MCP output.\n * This is a structural subtype of @webiny/cli-core's IUiService,\n * so Webiny's Ui can be passed directly without an adapter.\n */\nexport interface IUi {\n info(text: string, ...args: any[]): void;\n success(text: string, ...args: any[]): void;\n error(text: string, ...args: any[]): void;\n warning(text: string, ...args: any[]): void;\n text(text: string): void;\n emptyLine(): void;\n}\n\n/**\n * Console-based Ui for standalone usage (no @webiny/cli-core needed).\n */\nexport class ConsoleUi implements IUi {\n info(text: string, ...args: any[]): void {\n console.log(text, ...args);\n }\n\n success(text: string, ...args: any[]): void {\n console.log(text, ...args);\n }\n\n error(text: string, ...args: any[]): void {\n console.error(text, ...args);\n }\n\n warning(text: string, ...args: any[]): void {\n console.warn(text, ...args);\n }\n\n text(text: string): void {\n console.log(text);\n }\n\n emptyLine(): void {\n console.log();\n }\n}\n"],"names":["ConsoleUi","text","args","console"],"mappings":"AAiBO,MAAMA;IACT,KAAKC,IAAY,EAAE,GAAGC,IAAW,EAAQ;QACrCC,QAAQ,GAAG,CAACF,SAASC;IACzB;IAEA,QAAQD,IAAY,EAAE,GAAGC,IAAW,EAAQ;QACxCC,QAAQ,GAAG,CAACF,SAASC;IACzB;IAEA,MAAMD,IAAY,EAAE,GAAGC,IAAW,EAAQ;QACtCC,QAAQ,KAAK,CAACF,SAASC;IAC3B;IAEA,QAAQD,IAAY,EAAE,GAAGC,IAAW,EAAQ;QACxCC,QAAQ,IAAI,CAACF,SAASC;IAC1B;IAEA,KAAKD,IAAY,EAAQ;QACrBE,QAAQ,GAAG,CAACF;IAChB;IAEA,YAAkB;QACdE,QAAQ,GAAG;IACf;AACJ"}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { IUi } from \"../ui.js\";\n\nexport interface AgentPreset {\n slug: string;\n displayName: string;\n configFile: string;\n configNote?: string;\n hintFile?: string;\n hintNote?: string;\n}\n\nexport interface AgentModule {\n preset: AgentPreset;\n init: (params: { ui: IUi; cwd: string }) => Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
package/bin.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["bin.js"],"sourcesContent":["#!/usr/bin/env node\nimport \"./cli.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
package/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"names":["ConsoleUi","startMcpServer","configureMcp","discoverAgents","discoverPresets"],"sources":["index.ts"],"sourcesContent":["// Ui interface and console implementation\nexport type { IUi } from \"./ui.js\";\nexport { ConsoleUi } from \"./ui.js\";\n\n// Core functions\nexport { startMcpServer } from \"./cli/McpServer.js\";\nexport type { IMcpServerParams } from \"./cli/McpServer.js\";\nexport { configureMcp } from \"./cli/ConfigureMcp.js\";\nexport type { IConfigureMcpParams } from \"./cli/ConfigureMcp.js\";\n\n// Agent discovery\nexport { discoverAgents, discoverPresets } from \"./agents/discover.js\";\nexport type { AgentPreset, AgentModule } from \"./agents/types.js\";\n"],"mappings":"AAAA;;AAEA,SAASA,SAAS;;AAElB;AACA,SAASC,cAAc;AAEvB,SAASC,YAAY;AAGrB;AACA,SAASC,cAAc,EAAEC,eAAe","ignoreList":[]}