integrate-sdk 0.7.65 → 0.7.66
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.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/index.ts +16 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -37,8 +37,9 @@ export * from './src/index.js';
|
|
|
37
37
|
* Default configuration:
|
|
38
38
|
* - Calls API routes at: {window.location.origin}/api/integrate/mcp
|
|
39
39
|
* - OAuth routes at: {window.location.origin}/api/integrate/oauth/*
|
|
40
|
+
* - Does NOT save tokens to localStorage (tokens are managed server-side)
|
|
40
41
|
*
|
|
41
|
-
* For custom configuration (different apiBaseUrl, apiRouteBase, etc.),
|
|
42
|
+
* For custom configuration (different apiBaseUrl, apiRouteBase, localStorage, etc.),
|
|
42
43
|
* use `createMCPClient()` instead.
|
|
43
44
|
*
|
|
44
45
|
* @example
|
|
@@ -51,6 +52,17 @@ export * from './src/index.js';
|
|
|
51
52
|
* // Use Gmail integration
|
|
52
53
|
* const messages = await client.gmail.listMessages({});
|
|
53
54
|
* ```
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* // If you need localStorage or custom config, create your own client:
|
|
59
|
+
* import { createMCPClient, githubIntegration } from 'integrate-sdk';
|
|
60
|
+
*
|
|
61
|
+
* const customClient = createMCPClient({
|
|
62
|
+
* integrations: [githubIntegration()],
|
|
63
|
+
* skipLocalStorage: false, // Enable localStorage if needed
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
54
66
|
*/
|
|
55
67
|
export declare const client: import("./index.js").MCPClient<(import("./index.js").MCPIntegration<"github"> | import("./index.js").MCPIntegration<"gmail"> | import("./index.js").MCPIntegration<"notion">)[]>;
|
|
56
68
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,cAAc,gBAAgB,CAAC;AAQ/B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,cAAc,gBAAgB,CAAC;AAQ/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,MAAM,kLASjB,CAAC"}
|
package/dist/index.js
CHANGED
package/index.ts
CHANGED
|
@@ -45,8 +45,9 @@ import { notionIntegration } from './src/integrations/notion.js';
|
|
|
45
45
|
* Default configuration:
|
|
46
46
|
* - Calls API routes at: {window.location.origin}/api/integrate/mcp
|
|
47
47
|
* - OAuth routes at: {window.location.origin}/api/integrate/oauth/*
|
|
48
|
+
* - Does NOT save tokens to localStorage (tokens are managed server-side)
|
|
48
49
|
*
|
|
49
|
-
* For custom configuration (different apiBaseUrl, apiRouteBase, etc.),
|
|
50
|
+
* For custom configuration (different apiBaseUrl, apiRouteBase, localStorage, etc.),
|
|
50
51
|
* use `createMCPClient()` instead.
|
|
51
52
|
*
|
|
52
53
|
* @example
|
|
@@ -59,6 +60,17 @@ import { notionIntegration } from './src/integrations/notion.js';
|
|
|
59
60
|
* // Use Gmail integration
|
|
60
61
|
* const messages = await client.gmail.listMessages({});
|
|
61
62
|
* ```
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript
|
|
66
|
+
* // If you need localStorage or custom config, create your own client:
|
|
67
|
+
* import { createMCPClient, githubIntegration } from 'integrate-sdk';
|
|
68
|
+
*
|
|
69
|
+
* const customClient = createMCPClient({
|
|
70
|
+
* integrations: [githubIntegration()],
|
|
71
|
+
* skipLocalStorage: false, // Enable localStorage if needed
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
62
74
|
*/
|
|
63
75
|
export const client = createMCPClient({
|
|
64
76
|
integrations: [
|
|
@@ -66,5 +78,8 @@ export const client = createMCPClient({
|
|
|
66
78
|
gmailIntegration(),
|
|
67
79
|
notionIntegration(),
|
|
68
80
|
],
|
|
81
|
+
// Default client doesn't use localStorage - tokens are managed server-side
|
|
82
|
+
// If you need localStorage, create your own client with createMCPClient()
|
|
83
|
+
skipLocalStorage: true,
|
|
69
84
|
});
|
|
70
85
|
|