integrate-sdk 0.10.0 → 0.10.1
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 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +196 -110
- package/dist/integrations.js +195 -0
- package/dist/server.js +158 -85
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/bundle.d.ts +8 -8
- package/dist/src/integrations/bundle.d.ts.map +1 -1
- package/index.ts +23 -234
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Integrate SDK - Main Entry Point
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Client-side SDK for MCP with integration-based configuration
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
8
8
|
* // Use the default client with all integrations
|
|
9
9
|
* import { client } from 'integrate-sdk';
|
|
10
|
-
*
|
|
10
|
+
*
|
|
11
11
|
* await client.github.listOwnRepos({});
|
|
12
|
-
*
|
|
12
|
+
*
|
|
13
13
|
* // Or create a custom client with different API configuration
|
|
14
14
|
* import { createMCPClient, githubIntegration } from 'integrate-sdk';
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
16
|
* // Example 1: Different API path (same origin)
|
|
17
17
|
* const customClient = createMCPClient({
|
|
18
18
|
* apiRouteBase: '/custom/api/path', // Calls /custom/api/path/mcp
|
|
19
19
|
* integrations: [githubIntegration()],
|
|
20
20
|
* });
|
|
21
|
-
*
|
|
21
|
+
*
|
|
22
22
|
* // Example 2: Different API domain (cross-origin)
|
|
23
23
|
* const crossOriginClient = createMCPClient({
|
|
24
24
|
* apiBaseUrl: 'https://api.example.com', // API on different domain
|
|
@@ -30,264 +30,53 @@
|
|
|
30
30
|
|
|
31
31
|
export * from './src/index.js';
|
|
32
32
|
|
|
33
|
+
export {
|
|
34
|
+
allIntegrations,
|
|
35
|
+
createIntegrationBundle,
|
|
36
|
+
type IntegrationBundleOptions,
|
|
37
|
+
} from './src/integrations/bundle.js';
|
|
38
|
+
|
|
33
39
|
// Export default client with all integrations pre-configured
|
|
34
40
|
import { createMCPClient } from './src/client.js';
|
|
35
|
-
import {
|
|
36
|
-
import { gmailIntegration } from './src/integrations/gmail.js';
|
|
37
|
-
import { notionIntegration } from './src/integrations/notion.js';
|
|
38
|
-
import { slackIntegration } from './src/integrations/slack.js';
|
|
39
|
-
import { discordIntegration } from './src/integrations/discord.js';
|
|
40
|
-
import { boxIntegration } from './src/integrations/box.js';
|
|
41
|
-
import { paypalIntegration } from './src/integrations/paypal.js';
|
|
42
|
-
import { squareIntegration } from './src/integrations/square.js';
|
|
43
|
-
import { spotifyIntegration } from './src/integrations/spotify.js';
|
|
44
|
-
import { stravaIntegration } from './src/integrations/strava.js';
|
|
45
|
-
import { asanaIntegration } from './src/integrations/asana.js';
|
|
46
|
-
import { confluenceIntegration } from './src/integrations/confluence.js';
|
|
47
|
-
import { oktaIntegration } from './src/integrations/okta.js';
|
|
48
|
-
import { quickbooksIntegration } from './src/integrations/quickbooks.js';
|
|
49
|
-
import { bitbucketIntegration } from './src/integrations/bitbucket.js';
|
|
50
|
-
import { smartthingsIntegration } from './src/integrations/smartthings.js';
|
|
51
|
-
import { googleAdsIntegration } from './src/integrations/google_ads.js';
|
|
52
|
-
import { pinterestIntegration } from './src/integrations/pinterest.js';
|
|
53
|
-
import { twitchIntegration } from './src/integrations/twitch.js';
|
|
54
|
-
import { xIntegration } from './src/integrations/x.js';
|
|
55
|
-
import { ebayIntegration } from './src/integrations/ebay.js';
|
|
56
|
-
import { miroIntegration } from './src/integrations/miro.js';
|
|
57
|
-
import { smartsheetIntegration } from './src/integrations/smartsheet.js';
|
|
58
|
-
import { docusignIntegration } from './src/integrations/docusign.js';
|
|
59
|
-
import { pipedriveIntegration } from './src/integrations/pipedrive.js';
|
|
60
|
-
import { freshserviceIntegration } from './src/integrations/freshservice.js';
|
|
61
|
-
import { zohoCrmIntegration } from './src/integrations/zoho_crm.js';
|
|
62
|
-
import { zohoMailIntegration } from './src/integrations/zoho_mail.js';
|
|
63
|
-
import { zohoDeskIntegration } from './src/integrations/zoho_desk.js';
|
|
64
|
-
import { zohoBooksIntegration } from './src/integrations/zoho_books.js';
|
|
65
|
-
import { zohoProjectsIntegration } from './src/integrations/zoho_projects.js';
|
|
66
|
-
import { zohoCampaignsIntegration } from './src/integrations/zoho_campaigns.js';
|
|
67
|
-
import { zohoAnalyticsIntegration } from './src/integrations/zoho_analytics.js';
|
|
68
|
-
import { zohoInvoiceIntegration } from './src/integrations/zoho_invoice.js';
|
|
69
|
-
import { linearIntegration } from './src/integrations/linear.js';
|
|
70
|
-
import { vercelIntegration } from './src/integrations/vercel.js';
|
|
71
|
-
import { zendeskIntegration } from './src/integrations/zendesk.js';
|
|
72
|
-
import { stripeIntegration } from './src/integrations/stripe.js';
|
|
73
|
-
import { googleCalendarIntegration } from './src/integrations/google_calendar.js';
|
|
74
|
-
import { googleMeetIntegration } from './src/integrations/google_meet.js';
|
|
75
|
-
import { googleTasksIntegration } from './src/integrations/google_tasks.js';
|
|
76
|
-
import { googleKeepIntegration } from './src/integrations/google_keep.js';
|
|
77
|
-
import { googleContactsIntegration } from './src/integrations/google_contacts.js';
|
|
78
|
-
import { outlookIntegration } from './src/integrations/outlook.js';
|
|
79
|
-
import { teamsIntegration } from './src/integrations/teams.js';
|
|
80
|
-
import { airtableIntegration } from './src/integrations/airtable.js';
|
|
81
|
-
import { attioIntegration } from './src/integrations/attio.js';
|
|
82
|
-
import { todoistIntegration } from './src/integrations/todoist.js';
|
|
83
|
-
import { whatsappIntegration } from './src/integrations/whatsapp.js';
|
|
84
|
-
import { calcomIntegration } from './src/integrations/calcom.js';
|
|
85
|
-
import { canvaIntegration } from './src/integrations/canva.js';
|
|
86
|
-
import { cloudflareIntegration } from './src/integrations/cloudflare.js';
|
|
87
|
-
import { rampIntegration } from './src/integrations/ramp.js';
|
|
88
|
-
import { onedriveIntegration } from './src/integrations/onedrive.js';
|
|
89
|
-
import { plannerIntegration } from './src/integrations/planner.js';
|
|
90
|
-
import { sharepointIntegration } from './src/integrations/sharepoint.js';
|
|
91
|
-
import { wordIntegration } from './src/integrations/word.js';
|
|
92
|
-
import { excelIntegration } from './src/integrations/excel.js';
|
|
93
|
-
import { powerpointIntegration } from './src/integrations/powerpoint.js';
|
|
94
|
-
import { googleDocsIntegration } from './src/integrations/google_docs.js';
|
|
95
|
-
import { googleDriveIntegration } from './src/integrations/google_drive.js';
|
|
96
|
-
import { googleSheetsIntegration } from './src/integrations/google_sheets.js';
|
|
97
|
-
import { googleSlidesIntegration } from './src/integrations/google_slides.js';
|
|
98
|
-
import { polarIntegration } from './src/integrations/polar.js';
|
|
99
|
-
import { facebookIntegration } from './src/integrations/facebook.js';
|
|
100
|
-
import { figmaIntegration } from './src/integrations/figma.js';
|
|
101
|
-
import { intercomIntegration } from './src/integrations/intercom.js';
|
|
102
|
-
import { hubspotIntegration } from './src/integrations/hubspot.js';
|
|
103
|
-
import { instagramIntegration } from './src/integrations/instagram.js';
|
|
104
|
-
import { linkedinIntegration } from './src/integrations/linkedin.js';
|
|
105
|
-
import { threadsIntegration } from './src/integrations/threads.js';
|
|
106
|
-
import { tiktokIntegration } from './src/integrations/tiktok.js';
|
|
107
|
-
import { typeformIntegration } from './src/integrations/typeform.js';
|
|
108
|
-
import { xeroIntegration } from './src/integrations/xero.js';
|
|
109
|
-
import { googleChatIntegration } from './src/integrations/google_chat.js';
|
|
110
|
-
import { shopifyIntegration } from './src/integrations/shopify.js';
|
|
111
|
-
import { youtubeIntegration } from './src/integrations/youtube.js';
|
|
112
|
-
import { zoomIntegration } from './src/integrations/zoom.js';
|
|
113
|
-
import { redditIntegration } from './src/integrations/reddit.js';
|
|
114
|
-
import { cursorIntegration } from './src/integrations/cursor.js';
|
|
115
|
-
import { posthogIntegration } from './src/integrations/posthog.js';
|
|
116
|
-
import { sentryIntegration } from './src/integrations/sentry.js';
|
|
117
|
-
import { datadogIntegration } from './src/integrations/datadog.js';
|
|
118
|
-
import { netlifyIntegration } from './src/integrations/netlify.js';
|
|
119
|
-
import { mondayIntegration } from './src/integrations/monday.js';
|
|
120
|
-
import { webflowIntegration } from './src/integrations/webflow.js';
|
|
121
|
-
import { jiraIntegration } from './src/integrations/jira.js';
|
|
122
|
-
import { salesforceIntegration } from './src/integrations/salesforce.js';
|
|
123
|
-
import { workdayIntegration } from './src/integrations/workday.js';
|
|
124
|
-
|
|
125
|
-
import { calendlyIntegration } from './src/integrations/calendly.js';
|
|
126
|
-
import { klaviyoIntegration } from './src/integrations/klaviyo.js';
|
|
127
|
-
import { googleFormsIntegration } from './src/integrations/google_forms.js';
|
|
128
|
-
import { firebaseIntegration } from './src/integrations/firebase.js';
|
|
129
|
-
import { microsoftToDoIntegration } from './src/integrations/microsoft_to_do.js';
|
|
130
|
-
import { onenoteIntegration } from './src/integrations/onenote.js';
|
|
131
|
-
import { microsoftBookingsIntegration } from './src/integrations/microsoft_bookings.js';
|
|
132
|
-
import { azureDevopsIntegration } from './src/integrations/azure_devops.js';
|
|
133
|
-
import { googlePlayConsoleIntegration } from './src/integrations/google_play_console.js';
|
|
134
|
-
import { squarespaceIntegration } from './src/integrations/squarespace.js';
|
|
135
|
-
import { zohoPeopleIntegration } from './src/integrations/zoho_people.js';
|
|
136
|
-
import { zohoRecruitIntegration } from './src/integrations/zoho_recruit.js';
|
|
137
|
-
import { zohoSignIntegration } from './src/integrations/zoho_sign.js';
|
|
138
|
-
import { zohoWorkdriveIntegration } from './src/integrations/zoho_workdrive.js';
|
|
139
|
-
import { zohoCreatorIntegration } from './src/integrations/zoho_creator.js';
|
|
140
|
-
import { zohoInventoryIntegration } from './src/integrations/zoho_inventory.js';
|
|
141
|
-
import { zohoBillingIntegration } from './src/integrations/zoho_billing.js';
|
|
142
|
-
import { zohoWriterIntegration } from './src/integrations/zoho_writer.js';
|
|
143
|
-
import { zohoSprintsIntegration } from './src/integrations/zoho_sprints.js';
|
|
41
|
+
import { createIntegrationBundle } from './src/integrations/bundle.js';
|
|
144
42
|
|
|
145
43
|
/**
|
|
146
44
|
* Default MCP Client with all integrations pre-configured
|
|
147
|
-
*
|
|
148
|
-
* This is a singleton client instance that includes
|
|
45
|
+
*
|
|
46
|
+
* This is a singleton client instance that includes every default integration.
|
|
149
47
|
* You can use it directly without having to configure integrations.
|
|
150
|
-
*
|
|
48
|
+
*
|
|
151
49
|
* Default configuration:
|
|
152
50
|
* - Calls API routes at: {window.location.origin}/api/integrate/mcp
|
|
153
51
|
* - OAuth routes at: {window.location.origin}/api/integrate/oauth/*
|
|
154
52
|
* - Automatically detects if server uses database storage and skips localStorage accordingly
|
|
155
|
-
*
|
|
53
|
+
*
|
|
156
54
|
* For custom configuration (different apiBaseUrl, apiRouteBase, etc.),
|
|
157
55
|
* use `createMCPClient()` instead.
|
|
158
|
-
*
|
|
56
|
+
*
|
|
159
57
|
* @example
|
|
160
58
|
* ```typescript
|
|
161
59
|
* import { client } from 'integrate-sdk';
|
|
162
|
-
*
|
|
60
|
+
*
|
|
163
61
|
* // Use GitHub integration
|
|
164
62
|
* const repos = await client.github.listOwnRepos({});
|
|
165
|
-
*
|
|
63
|
+
*
|
|
166
64
|
* // Use Gmail integration
|
|
167
65
|
* const messages = await client.gmail.listMessages({});
|
|
168
66
|
* ```
|
|
169
|
-
*
|
|
67
|
+
*
|
|
170
68
|
* @example
|
|
171
69
|
* ```typescript
|
|
172
70
|
* // If you need server-side token management or custom config, create your own client:
|
|
173
71
|
* import { createMCPClient, githubIntegration } from 'integrate-sdk';
|
|
174
|
-
*
|
|
72
|
+
*
|
|
175
73
|
* const customClient = createMCPClient({
|
|
176
74
|
* integrations: [githubIntegration()],
|
|
177
75
|
* });
|
|
178
76
|
* ```
|
|
179
77
|
*/
|
|
180
78
|
export const client = createMCPClient({
|
|
181
|
-
integrations:
|
|
182
|
-
githubIntegration(),
|
|
183
|
-
gmailIntegration(),
|
|
184
|
-
notionIntegration(),
|
|
185
|
-
slackIntegration(),
|
|
186
|
-
discordIntegration(),
|
|
187
|
-
boxIntegration(),
|
|
188
|
-
paypalIntegration(),
|
|
189
|
-
squareIntegration(),
|
|
190
|
-
spotifyIntegration(),
|
|
191
|
-
stravaIntegration(),
|
|
192
|
-
asanaIntegration(),
|
|
193
|
-
confluenceIntegration(),
|
|
194
|
-
oktaIntegration(),
|
|
195
|
-
quickbooksIntegration(),
|
|
196
|
-
bitbucketIntegration(),
|
|
197
|
-
smartthingsIntegration(),
|
|
198
|
-
googleAdsIntegration(),
|
|
199
|
-
pinterestIntegration(),
|
|
200
|
-
twitchIntegration(),
|
|
201
|
-
xIntegration(),
|
|
202
|
-
ebayIntegration(),
|
|
203
|
-
miroIntegration(),
|
|
204
|
-
smartsheetIntegration(),
|
|
205
|
-
docusignIntegration(),
|
|
206
|
-
pipedriveIntegration(),
|
|
207
|
-
freshserviceIntegration(),
|
|
208
|
-
zohoCrmIntegration(),
|
|
209
|
-
zohoMailIntegration(),
|
|
210
|
-
zohoDeskIntegration(),
|
|
211
|
-
zohoBooksIntegration(),
|
|
212
|
-
zohoProjectsIntegration(),
|
|
213
|
-
zohoCampaignsIntegration(),
|
|
214
|
-
zohoAnalyticsIntegration(),
|
|
215
|
-
zohoInvoiceIntegration(),
|
|
216
|
-
calendlyIntegration(),
|
|
217
|
-
klaviyoIntegration(),
|
|
218
|
-
googleFormsIntegration(),
|
|
219
|
-
firebaseIntegration(),
|
|
220
|
-
microsoftToDoIntegration(),
|
|
221
|
-
onenoteIntegration(),
|
|
222
|
-
microsoftBookingsIntegration(),
|
|
223
|
-
azureDevopsIntegration(),
|
|
224
|
-
googlePlayConsoleIntegration(),
|
|
225
|
-
squarespaceIntegration(),
|
|
226
|
-
zohoPeopleIntegration(),
|
|
227
|
-
zohoRecruitIntegration(),
|
|
228
|
-
zohoSignIntegration(),
|
|
229
|
-
zohoWorkdriveIntegration(),
|
|
230
|
-
zohoCreatorIntegration(),
|
|
231
|
-
zohoInventoryIntegration(),
|
|
232
|
-
zohoBillingIntegration(),
|
|
233
|
-
zohoWriterIntegration(),
|
|
234
|
-
zohoSprintsIntegration(),
|
|
235
|
-
linearIntegration(),
|
|
236
|
-
vercelIntegration(),
|
|
237
|
-
zendeskIntegration(),
|
|
238
|
-
stripeIntegration(),
|
|
239
|
-
googleCalendarIntegration(),
|
|
240
|
-
googleMeetIntegration(),
|
|
241
|
-
googleTasksIntegration(),
|
|
242
|
-
googleKeepIntegration(),
|
|
243
|
-
googleContactsIntegration(),
|
|
244
|
-
outlookIntegration(),
|
|
245
|
-
teamsIntegration(),
|
|
246
|
-
airtableIntegration(),
|
|
247
|
-
attioIntegration(),
|
|
248
|
-
todoistIntegration(),
|
|
249
|
-
whatsappIntegration(),
|
|
250
|
-
calcomIntegration(),
|
|
251
|
-
canvaIntegration(),
|
|
252
|
-
cloudflareIntegration(),
|
|
253
|
-
rampIntegration(),
|
|
254
|
-
onedriveIntegration(),
|
|
255
|
-
plannerIntegration(),
|
|
256
|
-
sharepointIntegration(),
|
|
257
|
-
wordIntegration(),
|
|
258
|
-
excelIntegration(),
|
|
259
|
-
powerpointIntegration(),
|
|
260
|
-
googleDocsIntegration(),
|
|
261
|
-
googleDriveIntegration(),
|
|
262
|
-
googleSheetsIntegration(),
|
|
263
|
-
googleSlidesIntegration(),
|
|
264
|
-
polarIntegration(),
|
|
265
|
-
facebookIntegration(),
|
|
266
|
-
figmaIntegration(),
|
|
267
|
-
intercomIntegration(),
|
|
268
|
-
hubspotIntegration(),
|
|
269
|
-
instagramIntegration(),
|
|
270
|
-
linkedinIntegration(),
|
|
271
|
-
threadsIntegration(),
|
|
272
|
-
tiktokIntegration(),
|
|
273
|
-
typeformIntegration(),
|
|
274
|
-
xeroIntegration(),
|
|
275
|
-
googleChatIntegration(),
|
|
276
|
-
shopifyIntegration(),
|
|
277
|
-
youtubeIntegration(),
|
|
278
|
-
zoomIntegration(),
|
|
279
|
-
redditIntegration(),
|
|
280
|
-
cursorIntegration(),
|
|
281
|
-
posthogIntegration(),
|
|
282
|
-
sentryIntegration(),
|
|
283
|
-
datadogIntegration(),
|
|
284
|
-
netlifyIntegration(),
|
|
285
|
-
mondayIntegration(),
|
|
286
|
-
webflowIntegration(),
|
|
287
|
-
jiraIntegration(),
|
|
288
|
-
salesforceIntegration(),
|
|
289
|
-
workdayIntegration(),
|
|
290
|
-
],
|
|
79
|
+
integrations: createIntegrationBundle(),
|
|
291
80
|
// Fetch configured integrations from server since default client has all integrations
|
|
292
81
|
// but only some may be configured on the server with OAuth credentials
|
|
293
82
|
useServerConfig: true,
|