@webhooks-cc/mcp 0.3.0 → 1.0.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/index.d.mts CHANGED
@@ -1,9 +1,13 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { WebhooksCC } from '@webhooks-cc/sdk';
3
3
 
4
- /** Register all 11 webhook tools on an MCP server instance. */
4
+ /** Register all webhook tools on an MCP server instance. */
5
5
  declare function registerTools(server: McpServer, client: WebhooksCC): void;
6
6
 
7
+ declare function registerPrompts(server: McpServer): void;
8
+
9
+ declare function registerResources(server: McpServer, client: WebhooksCC): void;
10
+
7
11
  interface CreateServerOptions {
8
12
  /** API key for webhooks.cc (default: reads WHK_API_KEY env var) */
9
13
  apiKey?: string;
@@ -13,7 +17,7 @@ interface CreateServerOptions {
13
17
  baseUrl?: string;
14
18
  }
15
19
  /**
16
- * Create an MCP server with all webhooks.cc tools registered.
20
+ * Create an MCP server with all webhooks.cc tools, prompts, and resources registered.
17
21
  *
18
22
  * @example
19
23
  * ```ts
@@ -26,4 +30,4 @@ interface CreateServerOptions {
26
30
  */
27
31
  declare function createServer(options?: CreateServerOptions): McpServer;
28
32
 
29
- export { type CreateServerOptions, createServer, registerTools };
33
+ export { type CreateServerOptions, createServer, registerPrompts, registerResources, registerTools };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,13 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { WebhooksCC } from '@webhooks-cc/sdk';
3
3
 
4
- /** Register all 11 webhook tools on an MCP server instance. */
4
+ /** Register all webhook tools on an MCP server instance. */
5
5
  declare function registerTools(server: McpServer, client: WebhooksCC): void;
6
6
 
7
+ declare function registerPrompts(server: McpServer): void;
8
+
9
+ declare function registerResources(server: McpServer, client: WebhooksCC): void;
10
+
7
11
  interface CreateServerOptions {
8
12
  /** API key for webhooks.cc (default: reads WHK_API_KEY env var) */
9
13
  apiKey?: string;
@@ -13,7 +17,7 @@ interface CreateServerOptions {
13
17
  baseUrl?: string;
14
18
  }
15
19
  /**
16
- * Create an MCP server with all webhooks.cc tools registered.
20
+ * Create an MCP server with all webhooks.cc tools, prompts, and resources registered.
17
21
  *
18
22
  * @example
19
23
  * ```ts
@@ -26,4 +30,4 @@ interface CreateServerOptions {
26
30
  */
27
31
  declare function createServer(options?: CreateServerOptions): McpServer;
28
32
 
29
- export { type CreateServerOptions, createServer, registerTools };
33
+ export { type CreateServerOptions, createServer, registerPrompts, registerResources, registerTools };