@webhooks-cc/mcp 1.0.0 → 1.1.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.
- package/dist/bin/mcp.js +25 -4
- package/dist/index.js +25 -4
- package/dist/index.mjs +25 -4
- package/package.json +2 -2
package/dist/bin/mcp.js
CHANGED
|
@@ -253,11 +253,26 @@ var TEMPLATE_PROVIDER_VALUES = [
|
|
|
253
253
|
"slack",
|
|
254
254
|
"paddle",
|
|
255
255
|
"linear",
|
|
256
|
+
"sendgrid",
|
|
257
|
+
"clerk",
|
|
258
|
+
"discord",
|
|
259
|
+
"vercel",
|
|
260
|
+
"gitlab",
|
|
256
261
|
"standard-webhooks"
|
|
257
262
|
];
|
|
258
263
|
var VERIFY_PROVIDER_VALUES = [
|
|
259
|
-
|
|
260
|
-
"
|
|
264
|
+
"stripe",
|
|
265
|
+
"github",
|
|
266
|
+
"shopify",
|
|
267
|
+
"twilio",
|
|
268
|
+
"slack",
|
|
269
|
+
"paddle",
|
|
270
|
+
"linear",
|
|
271
|
+
"clerk",
|
|
272
|
+
"discord",
|
|
273
|
+
"vercel",
|
|
274
|
+
"gitlab",
|
|
275
|
+
"standard-webhooks"
|
|
261
276
|
];
|
|
262
277
|
var TIME_SEPARATOR = " \u2014 ";
|
|
263
278
|
var httpUrlSchema = import_zod2.z.string().url().refine(
|
|
@@ -276,7 +291,8 @@ var durationOrTimestampSchema = import_zod2.z.union([import_zod2.z.string(), imp
|
|
|
276
291
|
var mockResponseSchema = import_zod2.z.object({
|
|
277
292
|
status: import_zod2.z.number().int().min(100).max(599).describe("HTTP status code (100-599)"),
|
|
278
293
|
body: import_zod2.z.string().default("").describe("Response body string (default: empty)"),
|
|
279
|
-
headers: import_zod2.z.record(import_zod2.z.string()).default({}).describe("Response headers (default: none)")
|
|
294
|
+
headers: import_zod2.z.record(import_zod2.z.string()).default({}).describe("Response headers (default: none)"),
|
|
295
|
+
delay: import_zod2.z.number().int().min(0).max(3e4).optional().describe("Response delay in milliseconds (0-30000, default: none)")
|
|
280
296
|
});
|
|
281
297
|
function textContent(text) {
|
|
282
298
|
return { content: [{ type: "text", text }] };
|
|
@@ -920,6 +936,11 @@ function registerTools(server, client) {
|
|
|
920
936
|
secret: templateSecret
|
|
921
937
|
});
|
|
922
938
|
if (shouldVerify) {
|
|
939
|
+
if (provider === "discord") {
|
|
940
|
+
throw new Error(
|
|
941
|
+
"test_webhook_flow cannot verify Discord signatures (Ed25519 requires a public key, not a secret)"
|
|
942
|
+
);
|
|
943
|
+
}
|
|
923
944
|
flow.verifySignature({
|
|
924
945
|
provider,
|
|
925
946
|
secret: templateSecret
|
|
@@ -960,7 +981,7 @@ function registerTools(server, client) {
|
|
|
960
981
|
}
|
|
961
982
|
|
|
962
983
|
// src/index.ts
|
|
963
|
-
var VERSION = true ? "1.
|
|
984
|
+
var VERSION = true ? "1.1.0" : "0.0.0-dev";
|
|
964
985
|
function createServer(options = {}) {
|
|
965
986
|
const apiKey = options.apiKey ?? process.env.WHK_API_KEY;
|
|
966
987
|
if (!apiKey) {
|
package/dist/index.js
CHANGED
|
@@ -274,11 +274,26 @@ var TEMPLATE_PROVIDER_VALUES = [
|
|
|
274
274
|
"slack",
|
|
275
275
|
"paddle",
|
|
276
276
|
"linear",
|
|
277
|
+
"sendgrid",
|
|
278
|
+
"clerk",
|
|
279
|
+
"discord",
|
|
280
|
+
"vercel",
|
|
281
|
+
"gitlab",
|
|
277
282
|
"standard-webhooks"
|
|
278
283
|
];
|
|
279
284
|
var VERIFY_PROVIDER_VALUES = [
|
|
280
|
-
|
|
281
|
-
"
|
|
285
|
+
"stripe",
|
|
286
|
+
"github",
|
|
287
|
+
"shopify",
|
|
288
|
+
"twilio",
|
|
289
|
+
"slack",
|
|
290
|
+
"paddle",
|
|
291
|
+
"linear",
|
|
292
|
+
"clerk",
|
|
293
|
+
"discord",
|
|
294
|
+
"vercel",
|
|
295
|
+
"gitlab",
|
|
296
|
+
"standard-webhooks"
|
|
282
297
|
];
|
|
283
298
|
var TIME_SEPARATOR = " \u2014 ";
|
|
284
299
|
var httpUrlSchema = import_zod2.z.string().url().refine(
|
|
@@ -297,7 +312,8 @@ var durationOrTimestampSchema = import_zod2.z.union([import_zod2.z.string(), imp
|
|
|
297
312
|
var mockResponseSchema = import_zod2.z.object({
|
|
298
313
|
status: import_zod2.z.number().int().min(100).max(599).describe("HTTP status code (100-599)"),
|
|
299
314
|
body: import_zod2.z.string().default("").describe("Response body string (default: empty)"),
|
|
300
|
-
headers: import_zod2.z.record(import_zod2.z.string()).default({}).describe("Response headers (default: none)")
|
|
315
|
+
headers: import_zod2.z.record(import_zod2.z.string()).default({}).describe("Response headers (default: none)"),
|
|
316
|
+
delay: import_zod2.z.number().int().min(0).max(3e4).optional().describe("Response delay in milliseconds (0-30000, default: none)")
|
|
301
317
|
});
|
|
302
318
|
function textContent(text) {
|
|
303
319
|
return { content: [{ type: "text", text }] };
|
|
@@ -941,6 +957,11 @@ function registerTools(server, client) {
|
|
|
941
957
|
secret: templateSecret
|
|
942
958
|
});
|
|
943
959
|
if (shouldVerify) {
|
|
960
|
+
if (provider === "discord") {
|
|
961
|
+
throw new Error(
|
|
962
|
+
"test_webhook_flow cannot verify Discord signatures (Ed25519 requires a public key, not a secret)"
|
|
963
|
+
);
|
|
964
|
+
}
|
|
944
965
|
flow.verifySignature({
|
|
945
966
|
provider,
|
|
946
967
|
secret: templateSecret
|
|
@@ -981,7 +1002,7 @@ function registerTools(server, client) {
|
|
|
981
1002
|
}
|
|
982
1003
|
|
|
983
1004
|
// src/index.ts
|
|
984
|
-
var VERSION = true ? "1.
|
|
1005
|
+
var VERSION = true ? "1.1.0" : "0.0.0-dev";
|
|
985
1006
|
function createServer(options = {}) {
|
|
986
1007
|
const apiKey = options.apiKey ?? process.env.WHK_API_KEY;
|
|
987
1008
|
if (!apiKey) {
|
package/dist/index.mjs
CHANGED
|
@@ -256,11 +256,26 @@ var TEMPLATE_PROVIDER_VALUES = [
|
|
|
256
256
|
"slack",
|
|
257
257
|
"paddle",
|
|
258
258
|
"linear",
|
|
259
|
+
"sendgrid",
|
|
260
|
+
"clerk",
|
|
261
|
+
"discord",
|
|
262
|
+
"vercel",
|
|
263
|
+
"gitlab",
|
|
259
264
|
"standard-webhooks"
|
|
260
265
|
];
|
|
261
266
|
var VERIFY_PROVIDER_VALUES = [
|
|
262
|
-
|
|
263
|
-
"
|
|
267
|
+
"stripe",
|
|
268
|
+
"github",
|
|
269
|
+
"shopify",
|
|
270
|
+
"twilio",
|
|
271
|
+
"slack",
|
|
272
|
+
"paddle",
|
|
273
|
+
"linear",
|
|
274
|
+
"clerk",
|
|
275
|
+
"discord",
|
|
276
|
+
"vercel",
|
|
277
|
+
"gitlab",
|
|
278
|
+
"standard-webhooks"
|
|
264
279
|
];
|
|
265
280
|
var TIME_SEPARATOR = " \u2014 ";
|
|
266
281
|
var httpUrlSchema = z2.string().url().refine(
|
|
@@ -279,7 +294,8 @@ var durationOrTimestampSchema = z2.union([z2.string(), z2.number()]);
|
|
|
279
294
|
var mockResponseSchema = z2.object({
|
|
280
295
|
status: z2.number().int().min(100).max(599).describe("HTTP status code (100-599)"),
|
|
281
296
|
body: z2.string().default("").describe("Response body string (default: empty)"),
|
|
282
|
-
headers: z2.record(z2.string()).default({}).describe("Response headers (default: none)")
|
|
297
|
+
headers: z2.record(z2.string()).default({}).describe("Response headers (default: none)"),
|
|
298
|
+
delay: z2.number().int().min(0).max(3e4).optional().describe("Response delay in milliseconds (0-30000, default: none)")
|
|
283
299
|
});
|
|
284
300
|
function textContent(text) {
|
|
285
301
|
return { content: [{ type: "text", text }] };
|
|
@@ -923,6 +939,11 @@ function registerTools(server, client) {
|
|
|
923
939
|
secret: templateSecret
|
|
924
940
|
});
|
|
925
941
|
if (shouldVerify) {
|
|
942
|
+
if (provider === "discord") {
|
|
943
|
+
throw new Error(
|
|
944
|
+
"test_webhook_flow cannot verify Discord signatures (Ed25519 requires a public key, not a secret)"
|
|
945
|
+
);
|
|
946
|
+
}
|
|
926
947
|
flow.verifySignature({
|
|
927
948
|
provider,
|
|
928
949
|
secret: templateSecret
|
|
@@ -963,7 +984,7 @@ function registerTools(server, client) {
|
|
|
963
984
|
}
|
|
964
985
|
|
|
965
986
|
// src/index.ts
|
|
966
|
-
var VERSION = true ? "1.
|
|
987
|
+
var VERSION = true ? "1.1.0" : "0.0.0-dev";
|
|
967
988
|
function createServer(options = {}) {
|
|
968
989
|
const apiKey = options.apiKey ?? process.env.WHK_API_KEY;
|
|
969
990
|
if (!apiKey) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webhooks-cc/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "MCP server for webhooks.cc — AI agent integration for webhook testing",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
40
40
|
"zod": "^3.25.76",
|
|
41
|
-
"@webhooks-cc/sdk": "1.
|
|
41
|
+
"@webhooks-cc/sdk": "1.1.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsup": "^8.5.1",
|