@sendpanda/mcp 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +57 -2
- package/dist/cli.cjs +1844 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1846 -0
- package/dist/index.cjs +1850 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1826 -0
- package/package.json +58 -4
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
2
|
+
export type ApiOperation = {
|
|
3
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
4
|
+
path: string;
|
|
5
|
+
body?: unknown;
|
|
6
|
+
idempotencyKey?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ApiCaller = (operation: ApiOperation) => Promise<unknown>;
|
|
9
|
+
export type McpOptions = {
|
|
10
|
+
scope: "send" | "full";
|
|
11
|
+
delegated?: boolean;
|
|
12
|
+
onTool?: (name: string) => Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
export declare const mcpToolNames: string[];
|
|
15
|
+
export declare function createSendPandaMcp(call: ApiCaller, options: McpOptions): McpServer;
|
|
16
|
+
export declare function createApiCaller(apiKey: string, baseUrl?: string, fetcher?: typeof fetch): ApiCaller;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/server";
|
|
2
|
+
export type ApiOperation = {
|
|
3
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
4
|
+
path: string;
|
|
5
|
+
body?: unknown;
|
|
6
|
+
idempotencyKey?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ApiCaller = (operation: ApiOperation) => Promise<unknown>;
|
|
9
|
+
export type McpOptions = {
|
|
10
|
+
scope: "send" | "full";
|
|
11
|
+
delegated?: boolean;
|
|
12
|
+
onTool?: (name: string) => Promise<void>;
|
|
13
|
+
};
|
|
14
|
+
export declare const mcpToolNames: string[];
|
|
15
|
+
export declare function createSendPandaMcp(call: ApiCaller, options: McpOptions): McpServer;
|
|
16
|
+
export declare function createApiCaller(apiKey: string, baseUrl?: string, fetcher?: typeof fetch): ApiCaller;
|