@webhooks-cc/mcp 1.10.1 → 1.11.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/README.md +7 -9
- package/dist/bin/mcp.js +417 -144
- package/dist/index.d.mts +21 -6
- package/dist/index.d.ts +21 -6
- package/dist/index.js +422 -144
- package/dist/index.mjs +424 -145
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -3,12 +3,27 @@ import { WebhooksCC } from '@webhooks-cc/sdk';
|
|
|
3
3
|
|
|
4
4
|
/** Register all webhook tools on an MCP server instance. */
|
|
5
5
|
declare function registerTools(server: McpServer, client: WebhooksCC): void;
|
|
6
|
+
|
|
7
|
+
interface SandboxToolOptions {
|
|
8
|
+
/** API base URL (default: WHK_BASE_URL or https://webhooks.cc). */
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
/** Webhook receiver URL (default: WHK_WEBHOOK_URL or https://go.webhooks.cc). */
|
|
11
|
+
webhookUrl?: string;
|
|
12
|
+
/** The agent's name, shown to the human as self-reported. */
|
|
13
|
+
clientName?: string;
|
|
14
|
+
/** Called once a human has connected the agent, with a client for their account. */
|
|
15
|
+
onConnected?: (client: WebhooksCC) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Registers the sandbox tools (create_endpoint, list_endpoints,
|
|
19
|
+
* get_endpoint, delete_endpoint, list_requests, get_request,
|
|
20
|
+
* wait_for_request) and connect_account, wait_for_connection and
|
|
21
|
+
* about_sandbox.
|
|
22
|
+
*/
|
|
23
|
+
declare function registerSandboxTools(server: McpServer, options?: SandboxToolOptions): void;
|
|
6
24
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* configure the MCP server with the returned key (WHK_API_KEY). Registered on
|
|
10
|
-
* every server so a probing agent can always discover the on-ramp via
|
|
11
|
-
* `describe` / `how_to_register`.
|
|
25
|
+
* @deprecated The auth.md v0.1 registration tools are gone; this registers
|
|
26
|
+
* the sandbox tools that replaced them. Use registerSandboxTools.
|
|
12
27
|
*/
|
|
13
28
|
declare function registerAgentRegistrationTools(server: McpServer): void;
|
|
14
29
|
|
|
@@ -38,4 +53,4 @@ interface CreateServerOptions {
|
|
|
38
53
|
*/
|
|
39
54
|
declare function createServer(options?: CreateServerOptions): McpServer;
|
|
40
55
|
|
|
41
|
-
export { type CreateServerOptions, createServer, registerAgentRegistrationTools, registerPrompts, registerResources, registerTools };
|
|
56
|
+
export { type CreateServerOptions, type SandboxToolOptions, createServer, registerAgentRegistrationTools, registerPrompts, registerResources, registerSandboxTools, registerTools };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,27 @@ import { WebhooksCC } from '@webhooks-cc/sdk';
|
|
|
3
3
|
|
|
4
4
|
/** Register all webhook tools on an MCP server instance. */
|
|
5
5
|
declare function registerTools(server: McpServer, client: WebhooksCC): void;
|
|
6
|
+
|
|
7
|
+
interface SandboxToolOptions {
|
|
8
|
+
/** API base URL (default: WHK_BASE_URL or https://webhooks.cc). */
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
/** Webhook receiver URL (default: WHK_WEBHOOK_URL or https://go.webhooks.cc). */
|
|
11
|
+
webhookUrl?: string;
|
|
12
|
+
/** The agent's name, shown to the human as self-reported. */
|
|
13
|
+
clientName?: string;
|
|
14
|
+
/** Called once a human has connected the agent, with a client for their account. */
|
|
15
|
+
onConnected?: (client: WebhooksCC) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Registers the sandbox tools (create_endpoint, list_endpoints,
|
|
19
|
+
* get_endpoint, delete_endpoint, list_requests, get_request,
|
|
20
|
+
* wait_for_request) and connect_account, wait_for_connection and
|
|
21
|
+
* about_sandbox.
|
|
22
|
+
*/
|
|
23
|
+
declare function registerSandboxTools(server: McpServer, options?: SandboxToolOptions): void;
|
|
6
24
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* configure the MCP server with the returned key (WHK_API_KEY). Registered on
|
|
10
|
-
* every server so a probing agent can always discover the on-ramp via
|
|
11
|
-
* `describe` / `how_to_register`.
|
|
25
|
+
* @deprecated The auth.md v0.1 registration tools are gone; this registers
|
|
26
|
+
* the sandbox tools that replaced them. Use registerSandboxTools.
|
|
12
27
|
*/
|
|
13
28
|
declare function registerAgentRegistrationTools(server: McpServer): void;
|
|
14
29
|
|
|
@@ -38,4 +53,4 @@ interface CreateServerOptions {
|
|
|
38
53
|
*/
|
|
39
54
|
declare function createServer(options?: CreateServerOptions): McpServer;
|
|
40
55
|
|
|
41
|
-
export { type CreateServerOptions, createServer, registerAgentRegistrationTools, registerPrompts, registerResources, registerTools };
|
|
56
|
+
export { type CreateServerOptions, type SandboxToolOptions, createServer, registerAgentRegistrationTools, registerPrompts, registerResources, registerSandboxTools, registerTools };
|