@sendpanda/mcp 0.5.1 → 0.5.3
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 +1 -1
- package/dist/cli.cjs +434 -217
- package/dist/cli.js +434 -217
- package/dist/index.cjs +442 -219
- package/dist/index.d.cts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +438 -218
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
2
2
|
export type ApiOperation = {
|
|
3
|
-
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
3
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4
4
|
path: string;
|
|
5
5
|
body?: unknown;
|
|
6
6
|
idempotencyKey?: string;
|
|
@@ -19,6 +19,20 @@ export type McpOptions = {
|
|
|
19
19
|
onTool?: (name: string) => Promise<void>;
|
|
20
20
|
};
|
|
21
21
|
export declare const mcpToolNames: string[];
|
|
22
|
+
/** Human-readable tool titles, shown by clients and required by the Claude and ChatGPT directories. */
|
|
23
|
+
export declare const toolTitles: Record<string, string>;
|
|
24
|
+
/**
|
|
25
|
+
* Tools whose effects reach people or systems outside the SendPanda account:
|
|
26
|
+
* they send email, call a customer's webhook URL, or email an invitation.
|
|
27
|
+
* Everything else works only inside the bounded, signed-in project.
|
|
28
|
+
*/
|
|
29
|
+
export declare const openWorldTools: Set<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Trims the result record and the records in its lists. Nested objects such
|
|
32
|
+
* as metadata, variables or designs hold the customer's own keys and are
|
|
33
|
+
* returned unchanged.
|
|
34
|
+
*/
|
|
35
|
+
export declare function withoutInternalFields(value: unknown): unknown;
|
|
22
36
|
export declare function createSendPandaMcp(call: ApiCaller, options: McpOptions): McpServer;
|
|
23
37
|
export declare function createApiCaller(apiKey: string, baseUrl?: string, fetcher?: typeof fetch): ApiCaller;
|
|
24
38
|
/** Caller for a personal access token: all of the user's projects. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
2
2
|
export type ApiOperation = {
|
|
3
|
-
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
3
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4
4
|
path: string;
|
|
5
5
|
body?: unknown;
|
|
6
6
|
idempotencyKey?: string;
|
|
@@ -19,6 +19,20 @@ export type McpOptions = {
|
|
|
19
19
|
onTool?: (name: string) => Promise<void>;
|
|
20
20
|
};
|
|
21
21
|
export declare const mcpToolNames: string[];
|
|
22
|
+
/** Human-readable tool titles, shown by clients and required by the Claude and ChatGPT directories. */
|
|
23
|
+
export declare const toolTitles: Record<string, string>;
|
|
24
|
+
/**
|
|
25
|
+
* Tools whose effects reach people or systems outside the SendPanda account:
|
|
26
|
+
* they send email, call a customer's webhook URL, or email an invitation.
|
|
27
|
+
* Everything else works only inside the bounded, signed-in project.
|
|
28
|
+
*/
|
|
29
|
+
export declare const openWorldTools: Set<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Trims the result record and the records in its lists. Nested objects such
|
|
32
|
+
* as metadata, variables or designs hold the customer's own keys and are
|
|
33
|
+
* returned unchanged.
|
|
34
|
+
*/
|
|
35
|
+
export declare function withoutInternalFields(value: unknown): unknown;
|
|
22
36
|
export declare function createSendPandaMcp(call: ApiCaller, options: McpOptions): McpServer;
|
|
23
37
|
export declare function createApiCaller(apiKey: string, baseUrl?: string, fetcher?: typeof fetch): ApiCaller;
|
|
24
38
|
/** Caller for a personal access token: all of the user's projects. */
|