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 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
- * - Does NOT save tokens to localStorage (tokens are managed server-side)
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 localStorage or custom config, create your own client:
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: false, // Enable localStorage if needed
63
+ * skipLocalStorage: true, // Disable localStorage and use server-side callbacks
64
64
  * });
65
65
  * ```
66
66
  */
package/dist/index.js CHANGED
@@ -8049,7 +8049,7 @@ var client = createMCPClient({
8049
8049
  gmailIntegration(),
8050
8050
  notionIntegration()
8051
8051
  ],
8052
- skipLocalStorage: true
8052
+ skipLocalStorage: false
8053
8053
  });
8054
8054
  export {
8055
8055
  toTanStackStartHandler,
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
- * - Does NOT save tokens to localStorage (tokens are managed server-side)
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 localStorage or custom config, create your own client:
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: false, // Enable localStorage if needed
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 doesn't use localStorage - tokens are managed server-side
82
- // If you need localStorage, create your own client with createMCPClient()
83
- skipLocalStorage: true,
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integrate-sdk",
3
- "version": "0.8.14",
3
+ "version": "0.8.15",
4
4
  "description": "Type-safe 3rd party integration SDK for the Integrate MCP server",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",