@wukongcrm/mcp-server 0.1.3 → 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/README.md +969 -97
- package/dist/fc-entry.d.ts +1 -0
- package/dist/fc-entry.js +7 -0
- package/dist/http-entry.d.ts +1 -0
- package/dist/http-entry.js +51 -0
- package/dist/http.d.ts +47 -0
- package/dist/http.js +550 -0
- package/dist/modules.js +4 -4
- package/dist/nocode.d.ts +16 -0
- package/dist/nocode.js +1086 -0
- package/dist/oauth-state.d.ts +94 -0
- package/dist/oauth-state.js +310 -0
- package/dist/oauth.d.ts +59 -0
- package/dist/oauth.js +446 -0
- package/dist/server.d.ts +12 -1
- package/dist/server.js +240 -19
- package/dist/tools.js +3897 -540
- package/package.json +13 -15
package/dist/nocode.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type CrmClientConfig } from "./client.js";
|
|
3
|
+
export type NocodeToolAccess = "read" | "write";
|
|
4
|
+
export interface NocodeToolDefinition {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
schema: z.ZodTypeAny;
|
|
8
|
+
access: NocodeToolAccess;
|
|
9
|
+
destructive?: boolean;
|
|
10
|
+
}
|
|
11
|
+
type AnyArgs = Record<string, any>;
|
|
12
|
+
type Handler = (args: AnyArgs) => Promise<any> | any;
|
|
13
|
+
export type NocodeToolHandlers = Record<string, Handler>;
|
|
14
|
+
export declare const nocodeToolDefinitions: NocodeToolDefinition[];
|
|
15
|
+
export declare function createNocodeToolHandlers(config?: CrmClientConfig): NocodeToolHandlers;
|
|
16
|
+
export {};
|