integrate-sdk 0.8.14 → 0.8.15
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 +3 -3
- package/dist/index.js +1 -1
- package/index.ts +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ 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
|
-
* -
|
|
40
|
+
* - Saves tokens to localStorage (tokens persist across page reloads)
|
|
41
41
|
*
|
|
42
42
|
* For custom configuration (different apiBaseUrl, apiRouteBase, localStorage, etc.),
|
|
43
43
|
* use `createMCPClient()` instead.
|
|
@@ -55,12 +55,12 @@ export * from './src/index.js';
|
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* ```typescript
|
|
58
|
-
* // If you need
|
|
58
|
+
* // If you need server-side token management or custom config, create your own client:
|
|
59
59
|
* import { createMCPClient, githubIntegration } from 'integrate-sdk';
|
|
60
60
|
*
|
|
61
61
|
* const customClient = createMCPClient({
|
|
62
62
|
* integrations: [githubIntegration()],
|
|
63
|
-
* skipLocalStorage:
|
|
63
|
+
* skipLocalStorage: true, // Disable localStorage and use server-side callbacks
|
|
64
64
|
* });
|
|
65
65
|
* ```
|
|
66
66
|
*/
|
package/dist/index.js
CHANGED
package/index.ts
CHANGED
|
@@ -45,7 +45,7 @@ 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
|
-
* -
|
|
48
|
+
* - Saves tokens to localStorage (tokens persist across page reloads)
|
|
49
49
|
*
|
|
50
50
|
* For custom configuration (different apiBaseUrl, apiRouteBase, localStorage, etc.),
|
|
51
51
|
* use `createMCPClient()` instead.
|
|
@@ -63,12 +63,12 @@ import { notionIntegration } from './src/integrations/notion.js';
|
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* ```typescript
|
|
66
|
-
* // If you need
|
|
66
|
+
* // If you need server-side token management or custom config, create your own client:
|
|
67
67
|
* import { createMCPClient, githubIntegration } from 'integrate-sdk';
|
|
68
68
|
*
|
|
69
69
|
* const customClient = createMCPClient({
|
|
70
70
|
* integrations: [githubIntegration()],
|
|
71
|
-
* skipLocalStorage:
|
|
71
|
+
* skipLocalStorage: true, // Disable localStorage and use server-side callbacks
|
|
72
72
|
* });
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
@@ -78,8 +78,8 @@ export const client = createMCPClient({
|
|
|
78
78
|
gmailIntegration(),
|
|
79
79
|
notionIntegration(),
|
|
80
80
|
],
|
|
81
|
-
// Default client
|
|
82
|
-
// If you need
|
|
83
|
-
skipLocalStorage:
|
|
81
|
+
// Default client uses localStorage to persist tokens across page reloads
|
|
82
|
+
// If you need server-side token management, set skipLocalStorage: true and configure callbacks
|
|
83
|
+
skipLocalStorage: false,
|
|
84
84
|
});
|
|
85
85
|
|