integrate-sdk 0.9.24-dev.0 → 0.9.25-dev.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/dist/adapters/index.js +24 -9
- package/dist/adapters/solid-start.js +24 -9
- package/dist/adapters/svelte-kit.js +24 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +134 -52
- package/dist/server.js +154 -72
- package/dist/src/client.d.ts +4 -2
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +6 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/gcal-client.d.ts +14 -0
- package/dist/src/integrations/gcal-client.d.ts.map +1 -1
- package/dist/src/integrations/gcal.d.ts +1 -1
- package/dist/src/integrations/gcal.d.ts.map +1 -1
- package/dist/src/integrations/gdocs-client.d.ts +62 -0
- package/dist/src/integrations/gdocs-client.d.ts.map +1 -0
- package/dist/src/integrations/gdocs.d.ts +22 -0
- package/dist/src/integrations/gdocs.d.ts.map +1 -0
- package/dist/src/integrations/gmail-client.d.ts +39 -0
- package/dist/src/integrations/gmail-client.d.ts.map +1 -1
- package/dist/src/integrations/gmail.d.ts +1 -1
- package/dist/src/integrations/gmail.d.ts.map +1 -1
- package/dist/src/integrations/gsheets-client.d.ts +67 -0
- package/dist/src/integrations/gsheets-client.d.ts.map +1 -0
- package/dist/src/integrations/gsheets.d.ts +22 -0
- package/dist/src/integrations/gsheets.d.ts.map +1 -0
- package/dist/src/integrations/gslides-client.d.ts +70 -0
- package/dist/src/integrations/gslides-client.d.ts.map +1 -0
- package/dist/src/integrations/gslides.d.ts +22 -0
- package/dist/src/integrations/gslides.d.ts.map +1 -0
- package/dist/src/server.d.ts +3 -1
- package/dist/src/server.d.ts.map +1 -1
- package/index.ts +6 -2
- package/package.json +1 -1
- package/dist/src/integrations/gworkspace-client.d.ts +0 -392
- package/dist/src/integrations/gworkspace-client.d.ts.map +0 -1
- package/dist/src/integrations/gworkspace.d.ts +0 -39
- package/dist/src/integrations/gworkspace.d.ts.map +0 -1
package/dist/adapters/index.js
CHANGED
|
@@ -2914,6 +2914,15 @@ class MCPClientBase {
|
|
|
2914
2914
|
if (integrationIds.includes("todoist")) {
|
|
2915
2915
|
this.todoist = this.createIntegrationProxy("todoist");
|
|
2916
2916
|
}
|
|
2917
|
+
if (integrationIds.includes("gdocs")) {
|
|
2918
|
+
this.gdocs = this.createIntegrationProxy("gdocs");
|
|
2919
|
+
}
|
|
2920
|
+
if (integrationIds.includes("gsheets")) {
|
|
2921
|
+
this.gsheets = this.createIntegrationProxy("gsheets");
|
|
2922
|
+
}
|
|
2923
|
+
if (integrationIds.includes("gslides")) {
|
|
2924
|
+
this.gslides = this.createIntegrationProxy("gslides");
|
|
2925
|
+
}
|
|
2917
2926
|
this.server = this.createServerProxy();
|
|
2918
2927
|
this.trigger = new TriggerClient({
|
|
2919
2928
|
apiRouteBase: this.apiRouteBase,
|
|
@@ -3684,27 +3693,33 @@ var logger22 = createLogger("Ramp");
|
|
|
3684
3693
|
// ../integrations/onedrive.ts
|
|
3685
3694
|
init_logger();
|
|
3686
3695
|
var logger23 = createLogger("OneDrive");
|
|
3687
|
-
// ../integrations/
|
|
3696
|
+
// ../integrations/gdocs.ts
|
|
3697
|
+
init_logger();
|
|
3698
|
+
var logger24 = createLogger("Google Docs");
|
|
3699
|
+
// ../integrations/gsheets.ts
|
|
3700
|
+
init_logger();
|
|
3701
|
+
var logger25 = createLogger("Google Sheets");
|
|
3702
|
+
// ../integrations/gslides.ts
|
|
3688
3703
|
init_logger();
|
|
3689
|
-
var
|
|
3704
|
+
var logger26 = createLogger("Google Slides");
|
|
3690
3705
|
// ../integrations/polar.ts
|
|
3691
3706
|
init_logger();
|
|
3692
|
-
var
|
|
3707
|
+
var logger27 = createLogger("Polar");
|
|
3693
3708
|
// ../integrations/figma.ts
|
|
3694
3709
|
init_logger();
|
|
3695
|
-
var
|
|
3710
|
+
var logger28 = createLogger("Figma");
|
|
3696
3711
|
// ../integrations/intercom.ts
|
|
3697
3712
|
init_logger();
|
|
3698
|
-
var
|
|
3713
|
+
var logger29 = createLogger("Intercom");
|
|
3699
3714
|
// ../integrations/hubspot.ts
|
|
3700
3715
|
init_logger();
|
|
3701
|
-
var
|
|
3716
|
+
var logger30 = createLogger("HubSpot");
|
|
3702
3717
|
// ../integrations/youtube.ts
|
|
3703
3718
|
init_logger();
|
|
3704
|
-
var
|
|
3719
|
+
var logger31 = createLogger("YouTube");
|
|
3705
3720
|
// ../integrations/cursor.ts
|
|
3706
3721
|
init_logger();
|
|
3707
|
-
var
|
|
3722
|
+
var logger32 = createLogger("Cursor");
|
|
3708
3723
|
// ../ai/trigger-tools.ts
|
|
3709
3724
|
init_utils();
|
|
3710
3725
|
|
|
@@ -3723,7 +3738,7 @@ init_tool_builder();
|
|
|
3723
3738
|
init_tool_builder();
|
|
3724
3739
|
// ../server.ts
|
|
3725
3740
|
var SERVER_LOG_CONTEXT3 = "server";
|
|
3726
|
-
var
|
|
3741
|
+
var logger33 = createLogger("MCPServer", SERVER_LOG_CONTEXT3);
|
|
3727
3742
|
var codeVerifierStorage = new Map;
|
|
3728
3743
|
var unauthenticatedCodeModeWarnings = new Set;
|
|
3729
3744
|
function toSolidStartHandler(clientOrHandlerOrOptions, _redirectOptions) {
|
|
@@ -2914,6 +2914,15 @@ class MCPClientBase {
|
|
|
2914
2914
|
if (integrationIds.includes("todoist")) {
|
|
2915
2915
|
this.todoist = this.createIntegrationProxy("todoist");
|
|
2916
2916
|
}
|
|
2917
|
+
if (integrationIds.includes("gdocs")) {
|
|
2918
|
+
this.gdocs = this.createIntegrationProxy("gdocs");
|
|
2919
|
+
}
|
|
2920
|
+
if (integrationIds.includes("gsheets")) {
|
|
2921
|
+
this.gsheets = this.createIntegrationProxy("gsheets");
|
|
2922
|
+
}
|
|
2923
|
+
if (integrationIds.includes("gslides")) {
|
|
2924
|
+
this.gslides = this.createIntegrationProxy("gslides");
|
|
2925
|
+
}
|
|
2917
2926
|
this.server = this.createServerProxy();
|
|
2918
2927
|
this.trigger = new TriggerClient({
|
|
2919
2928
|
apiRouteBase: this.apiRouteBase,
|
|
@@ -3684,27 +3693,33 @@ var logger22 = createLogger("Ramp");
|
|
|
3684
3693
|
// ../integrations/onedrive.ts
|
|
3685
3694
|
init_logger();
|
|
3686
3695
|
var logger23 = createLogger("OneDrive");
|
|
3687
|
-
// ../integrations/
|
|
3696
|
+
// ../integrations/gdocs.ts
|
|
3697
|
+
init_logger();
|
|
3698
|
+
var logger24 = createLogger("Google Docs");
|
|
3699
|
+
// ../integrations/gsheets.ts
|
|
3700
|
+
init_logger();
|
|
3701
|
+
var logger25 = createLogger("Google Sheets");
|
|
3702
|
+
// ../integrations/gslides.ts
|
|
3688
3703
|
init_logger();
|
|
3689
|
-
var
|
|
3704
|
+
var logger26 = createLogger("Google Slides");
|
|
3690
3705
|
// ../integrations/polar.ts
|
|
3691
3706
|
init_logger();
|
|
3692
|
-
var
|
|
3707
|
+
var logger27 = createLogger("Polar");
|
|
3693
3708
|
// ../integrations/figma.ts
|
|
3694
3709
|
init_logger();
|
|
3695
|
-
var
|
|
3710
|
+
var logger28 = createLogger("Figma");
|
|
3696
3711
|
// ../integrations/intercom.ts
|
|
3697
3712
|
init_logger();
|
|
3698
|
-
var
|
|
3713
|
+
var logger29 = createLogger("Intercom");
|
|
3699
3714
|
// ../integrations/hubspot.ts
|
|
3700
3715
|
init_logger();
|
|
3701
|
-
var
|
|
3716
|
+
var logger30 = createLogger("HubSpot");
|
|
3702
3717
|
// ../integrations/youtube.ts
|
|
3703
3718
|
init_logger();
|
|
3704
|
-
var
|
|
3719
|
+
var logger31 = createLogger("YouTube");
|
|
3705
3720
|
// ../integrations/cursor.ts
|
|
3706
3721
|
init_logger();
|
|
3707
|
-
var
|
|
3722
|
+
var logger32 = createLogger("Cursor");
|
|
3708
3723
|
// ../ai/trigger-tools.ts
|
|
3709
3724
|
init_utils();
|
|
3710
3725
|
|
|
@@ -3723,7 +3738,7 @@ init_tool_builder();
|
|
|
3723
3738
|
init_tool_builder();
|
|
3724
3739
|
// ../server.ts
|
|
3725
3740
|
var SERVER_LOG_CONTEXT3 = "server";
|
|
3726
|
-
var
|
|
3741
|
+
var logger33 = createLogger("MCPServer", SERVER_LOG_CONTEXT3);
|
|
3727
3742
|
var codeVerifierStorage = new Map;
|
|
3728
3743
|
var unauthenticatedCodeModeWarnings = new Set;
|
|
3729
3744
|
function toSolidStartHandler(clientOrHandlerOrOptions, _redirectOptions) {
|
|
@@ -2914,6 +2914,15 @@ class MCPClientBase {
|
|
|
2914
2914
|
if (integrationIds.includes("todoist")) {
|
|
2915
2915
|
this.todoist = this.createIntegrationProxy("todoist");
|
|
2916
2916
|
}
|
|
2917
|
+
if (integrationIds.includes("gdocs")) {
|
|
2918
|
+
this.gdocs = this.createIntegrationProxy("gdocs");
|
|
2919
|
+
}
|
|
2920
|
+
if (integrationIds.includes("gsheets")) {
|
|
2921
|
+
this.gsheets = this.createIntegrationProxy("gsheets");
|
|
2922
|
+
}
|
|
2923
|
+
if (integrationIds.includes("gslides")) {
|
|
2924
|
+
this.gslides = this.createIntegrationProxy("gslides");
|
|
2925
|
+
}
|
|
2917
2926
|
this.server = this.createServerProxy();
|
|
2918
2927
|
this.trigger = new TriggerClient({
|
|
2919
2928
|
apiRouteBase: this.apiRouteBase,
|
|
@@ -3684,27 +3693,33 @@ var logger22 = createLogger("Ramp");
|
|
|
3684
3693
|
// ../integrations/onedrive.ts
|
|
3685
3694
|
init_logger();
|
|
3686
3695
|
var logger23 = createLogger("OneDrive");
|
|
3687
|
-
// ../integrations/
|
|
3696
|
+
// ../integrations/gdocs.ts
|
|
3697
|
+
init_logger();
|
|
3698
|
+
var logger24 = createLogger("Google Docs");
|
|
3699
|
+
// ../integrations/gsheets.ts
|
|
3700
|
+
init_logger();
|
|
3701
|
+
var logger25 = createLogger("Google Sheets");
|
|
3702
|
+
// ../integrations/gslides.ts
|
|
3688
3703
|
init_logger();
|
|
3689
|
-
var
|
|
3704
|
+
var logger26 = createLogger("Google Slides");
|
|
3690
3705
|
// ../integrations/polar.ts
|
|
3691
3706
|
init_logger();
|
|
3692
|
-
var
|
|
3707
|
+
var logger27 = createLogger("Polar");
|
|
3693
3708
|
// ../integrations/figma.ts
|
|
3694
3709
|
init_logger();
|
|
3695
|
-
var
|
|
3710
|
+
var logger28 = createLogger("Figma");
|
|
3696
3711
|
// ../integrations/intercom.ts
|
|
3697
3712
|
init_logger();
|
|
3698
|
-
var
|
|
3713
|
+
var logger29 = createLogger("Intercom");
|
|
3699
3714
|
// ../integrations/hubspot.ts
|
|
3700
3715
|
init_logger();
|
|
3701
|
-
var
|
|
3716
|
+
var logger30 = createLogger("HubSpot");
|
|
3702
3717
|
// ../integrations/youtube.ts
|
|
3703
3718
|
init_logger();
|
|
3704
|
-
var
|
|
3719
|
+
var logger31 = createLogger("YouTube");
|
|
3705
3720
|
// ../integrations/cursor.ts
|
|
3706
3721
|
init_logger();
|
|
3707
|
-
var
|
|
3722
|
+
var logger32 = createLogger("Cursor");
|
|
3708
3723
|
// ../ai/trigger-tools.ts
|
|
3709
3724
|
init_utils();
|
|
3710
3725
|
|
|
@@ -3723,7 +3738,7 @@ init_tool_builder();
|
|
|
3723
3738
|
init_tool_builder();
|
|
3724
3739
|
// ../server.ts
|
|
3725
3740
|
var SERVER_LOG_CONTEXT3 = "server";
|
|
3726
|
-
var
|
|
3741
|
+
var logger33 = createLogger("MCPServer", SERVER_LOG_CONTEXT3);
|
|
3727
3742
|
var codeVerifierStorage = new Map;
|
|
3728
3743
|
var unauthenticatedCodeModeWarnings = new Set;
|
|
3729
3744
|
function toSolidStartHandler(clientOrHandlerOrOptions, _redirectOptions) {
|
package/dist/index.d.ts
CHANGED
|
@@ -63,5 +63,5 @@ export * from './src/index.js';
|
|
|
63
63
|
* });
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
|
-
export declare const client: import("./index.js").MCPClient<(import("./index.js").MCPIntegration<"github"> | import("./index.js").MCPIntegration<"gmail"> | import("./index.js").MCPIntegration<"notion"> | import("./index.js").MCPIntegration<"slack"> | import("./index.js").MCPIntegration<"linear"> | import("./index.js").MCPIntegration<"vercel"> | import("./index.js").MCPIntegration<"zendesk"> | import("./index.js").MCPIntegration<"stripe"> | import("./index.js").MCPIntegration<"gcal"> | import("./index.js").MCPIntegration<"outlook"> | import("./index.js").MCPIntegration<"airtable"> | import("./index.js").MCPIntegration<"todoist"> | import("./index.js").MCPIntegration<"whatsapp"> | import("./index.js").MCPIntegration<"calcom"> | import("./index.js").MCPIntegration<"ramp"> | import("./index.js").MCPIntegration<"onedrive"> | import("./index.js").MCPIntegration<"
|
|
66
|
+
export declare const client: import("./index.js").MCPClient<(import("./index.js").MCPIntegration<"github"> | import("./index.js").MCPIntegration<"gmail"> | import("./index.js").MCPIntegration<"notion"> | import("./index.js").MCPIntegration<"slack"> | import("./index.js").MCPIntegration<"linear"> | import("./index.js").MCPIntegration<"vercel"> | import("./index.js").MCPIntegration<"zendesk"> | import("./index.js").MCPIntegration<"stripe"> | import("./index.js").MCPIntegration<"gcal"> | import("./index.js").MCPIntegration<"outlook"> | import("./index.js").MCPIntegration<"airtable"> | import("./index.js").MCPIntegration<"todoist"> | import("./index.js").MCPIntegration<"whatsapp"> | import("./index.js").MCPIntegration<"calcom"> | import("./index.js").MCPIntegration<"ramp"> | import("./index.js").MCPIntegration<"onedrive"> | import("./index.js").MCPIntegration<"gdocs"> | import("./index.js").MCPIntegration<"gsheets"> | import("./index.js").MCPIntegration<"gslides"> | import("./index.js").MCPIntegration<"polar"> | import("./index.js").MCPIntegration<"figma"> | import("./index.js").MCPIntegration<"intercom"> | import("./index.js").MCPIntegration<"hubspot"> | import("./index.js").MCPIntegration<"youtube"> | import("./index.js").MCPIntegration<"cursor">)[]>;
|
|
67
67
|
//# 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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,cAAc,gBAAgB,CAAC;AA8B/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,MAAM,ytCA+BjB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2147,6 +2147,15 @@ class MCPClientBase {
|
|
|
2147
2147
|
if (integrationIds.includes("todoist")) {
|
|
2148
2148
|
this.todoist = this.createIntegrationProxy("todoist");
|
|
2149
2149
|
}
|
|
2150
|
+
if (integrationIds.includes("gdocs")) {
|
|
2151
|
+
this.gdocs = this.createIntegrationProxy("gdocs");
|
|
2152
|
+
}
|
|
2153
|
+
if (integrationIds.includes("gsheets")) {
|
|
2154
|
+
this.gsheets = this.createIntegrationProxy("gsheets");
|
|
2155
|
+
}
|
|
2156
|
+
if (integrationIds.includes("gslides")) {
|
|
2157
|
+
this.gslides = this.createIntegrationProxy("gslides");
|
|
2158
|
+
}
|
|
2150
2159
|
this.server = this.createServerProxy();
|
|
2151
2160
|
this.trigger = new TriggerClient({
|
|
2152
2161
|
apiRouteBase: this.apiRouteBase,
|
|
@@ -3878,7 +3887,12 @@ var GMAIL_TOOLS = [
|
|
|
3878
3887
|
"gmail_send_message",
|
|
3879
3888
|
"gmail_list_messages",
|
|
3880
3889
|
"gmail_get_message",
|
|
3881
|
-
"gmail_search_messages"
|
|
3890
|
+
"gmail_search_messages",
|
|
3891
|
+
"gmail_reply_message",
|
|
3892
|
+
"gmail_list_threads",
|
|
3893
|
+
"gmail_get_thread",
|
|
3894
|
+
"gmail_modify_message",
|
|
3895
|
+
"gmail_trash_message"
|
|
3882
3896
|
];
|
|
3883
3897
|
function gmailIntegration(config = {}) {
|
|
3884
3898
|
const oauth = {
|
|
@@ -4284,7 +4298,9 @@ var GCAL_TOOLS = [
|
|
|
4284
4298
|
"gcal_update_event",
|
|
4285
4299
|
"gcal_delete_event",
|
|
4286
4300
|
"gcal_list_attendees",
|
|
4287
|
-
"gcal_quick_add"
|
|
4301
|
+
"gcal_quick_add",
|
|
4302
|
+
"gcal_create_calendar",
|
|
4303
|
+
"gcal_delete_calendar"
|
|
4288
4304
|
];
|
|
4289
4305
|
function gcalIntegration(config = {}) {
|
|
4290
4306
|
const oauth = {
|
|
@@ -4689,50 +4705,112 @@ function onedriveIntegration(config = {}) {
|
|
|
4689
4705
|
}
|
|
4690
4706
|
};
|
|
4691
4707
|
}
|
|
4692
|
-
// src/integrations/
|
|
4693
|
-
var logger25 = createLogger("Google
|
|
4694
|
-
var
|
|
4695
|
-
"
|
|
4696
|
-
"
|
|
4697
|
-
"
|
|
4698
|
-
"
|
|
4699
|
-
"
|
|
4700
|
-
"gworkspace_docs_list",
|
|
4701
|
-
"gworkspace_docs_get",
|
|
4702
|
-
"gworkspace_docs_create",
|
|
4703
|
-
"gworkspace_slides_list",
|
|
4704
|
-
"gworkspace_slides_get",
|
|
4705
|
-
"gworkspace_slides_get_page",
|
|
4706
|
-
"gworkspace_slides_create"
|
|
4708
|
+
// src/integrations/gdocs.ts
|
|
4709
|
+
var logger25 = createLogger("Google Docs");
|
|
4710
|
+
var GDOCS_TOOLS = [
|
|
4711
|
+
"gdocs_list",
|
|
4712
|
+
"gdocs_get",
|
|
4713
|
+
"gdocs_create",
|
|
4714
|
+
"gdocs_append_text",
|
|
4715
|
+
"gdocs_replace_text"
|
|
4707
4716
|
];
|
|
4708
|
-
function
|
|
4717
|
+
function gdocsIntegration(config = {}) {
|
|
4709
4718
|
const oauth = {
|
|
4710
|
-
provider: "
|
|
4711
|
-
clientId: config.clientId ?? getEnv("
|
|
4712
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
4719
|
+
provider: "gdocs",
|
|
4720
|
+
clientId: config.clientId ?? getEnv("GDOCS_CLIENT_ID"),
|
|
4721
|
+
clientSecret: config.clientSecret ?? getEnv("GDOCS_CLIENT_SECRET"),
|
|
4713
4722
|
scopes: config.scopes,
|
|
4714
4723
|
optionalScopes: config.optionalScopes,
|
|
4715
4724
|
redirectUri: config.redirectUri,
|
|
4716
|
-
config
|
|
4717
|
-
|
|
4725
|
+
config
|
|
4726
|
+
};
|
|
4727
|
+
return {
|
|
4728
|
+
id: "gdocs",
|
|
4729
|
+
name: "Google Docs",
|
|
4730
|
+
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_docs.png",
|
|
4731
|
+
tools: [...GDOCS_TOOLS],
|
|
4732
|
+
oauth,
|
|
4733
|
+
async onInit(_client) {
|
|
4734
|
+
logger25.debug("Google Docs integration initialized");
|
|
4735
|
+
},
|
|
4736
|
+
async onAfterConnect(_client) {
|
|
4737
|
+
logger25.debug("Google Docs integration connected");
|
|
4718
4738
|
}
|
|
4719
4739
|
};
|
|
4740
|
+
}
|
|
4741
|
+
// src/integrations/gsheets.ts
|
|
4742
|
+
var logger26 = createLogger("Google Sheets");
|
|
4743
|
+
var GSHEETS_TOOLS = [
|
|
4744
|
+
"gsheets_list",
|
|
4745
|
+
"gsheets_get",
|
|
4746
|
+
"gsheets_get_values",
|
|
4747
|
+
"gsheets_update_values",
|
|
4748
|
+
"gsheets_create",
|
|
4749
|
+
"gsheets_append_values",
|
|
4750
|
+
"gsheets_clear_values",
|
|
4751
|
+
"gsheets_batch_update_values"
|
|
4752
|
+
];
|
|
4753
|
+
function gsheetsIntegration(config = {}) {
|
|
4754
|
+
const oauth = {
|
|
4755
|
+
provider: "gsheets",
|
|
4756
|
+
clientId: config.clientId ?? getEnv("GSHEETS_CLIENT_ID"),
|
|
4757
|
+
clientSecret: config.clientSecret ?? getEnv("GSHEETS_CLIENT_SECRET"),
|
|
4758
|
+
scopes: config.scopes,
|
|
4759
|
+
optionalScopes: config.optionalScopes,
|
|
4760
|
+
redirectUri: config.redirectUri,
|
|
4761
|
+
config
|
|
4762
|
+
};
|
|
4763
|
+
return {
|
|
4764
|
+
id: "gsheets",
|
|
4765
|
+
name: "Google Sheets",
|
|
4766
|
+
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_sheets.png",
|
|
4767
|
+
tools: [...GSHEETS_TOOLS],
|
|
4768
|
+
oauth,
|
|
4769
|
+
async onInit(_client) {
|
|
4770
|
+
logger26.debug("Google Sheets integration initialized");
|
|
4771
|
+
},
|
|
4772
|
+
async onAfterConnect(_client) {
|
|
4773
|
+
logger26.debug("Google Sheets integration connected");
|
|
4774
|
+
}
|
|
4775
|
+
};
|
|
4776
|
+
}
|
|
4777
|
+
// src/integrations/gslides.ts
|
|
4778
|
+
var logger27 = createLogger("Google Slides");
|
|
4779
|
+
var GSLIDES_TOOLS = [
|
|
4780
|
+
"gslides_list",
|
|
4781
|
+
"gslides_get",
|
|
4782
|
+
"gslides_get_page",
|
|
4783
|
+
"gslides_create",
|
|
4784
|
+
"gslides_add_slide",
|
|
4785
|
+
"gslides_delete_slide",
|
|
4786
|
+
"gslides_update_text"
|
|
4787
|
+
];
|
|
4788
|
+
function gslidesIntegration(config = {}) {
|
|
4789
|
+
const oauth = {
|
|
4790
|
+
provider: "gslides",
|
|
4791
|
+
clientId: config.clientId ?? getEnv("GSLIDES_CLIENT_ID"),
|
|
4792
|
+
clientSecret: config.clientSecret ?? getEnv("GSLIDES_CLIENT_SECRET"),
|
|
4793
|
+
scopes: config.scopes,
|
|
4794
|
+
optionalScopes: config.optionalScopes,
|
|
4795
|
+
redirectUri: config.redirectUri,
|
|
4796
|
+
config
|
|
4797
|
+
};
|
|
4720
4798
|
return {
|
|
4721
|
-
id: "
|
|
4722
|
-
name: "Google
|
|
4723
|
-
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/
|
|
4724
|
-
tools: [...
|
|
4799
|
+
id: "gslides",
|
|
4800
|
+
name: "Google Slides",
|
|
4801
|
+
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_slides.png",
|
|
4802
|
+
tools: [...GSLIDES_TOOLS],
|
|
4725
4803
|
oauth,
|
|
4726
4804
|
async onInit(_client) {
|
|
4727
|
-
|
|
4805
|
+
logger27.debug("Google Slides integration initialized");
|
|
4728
4806
|
},
|
|
4729
4807
|
async onAfterConnect(_client) {
|
|
4730
|
-
|
|
4808
|
+
logger27.debug("Google Slides integration connected");
|
|
4731
4809
|
}
|
|
4732
4810
|
};
|
|
4733
4811
|
}
|
|
4734
4812
|
// src/integrations/polar.ts
|
|
4735
|
-
var
|
|
4813
|
+
var logger28 = createLogger("Polar");
|
|
4736
4814
|
var POLAR_TOOLS = [
|
|
4737
4815
|
"polar_list_products",
|
|
4738
4816
|
"polar_get_product",
|
|
@@ -4789,15 +4867,15 @@ function polarIntegration(config = {}) {
|
|
|
4789
4867
|
tools: [...POLAR_TOOLS],
|
|
4790
4868
|
oauth,
|
|
4791
4869
|
async onInit(_client) {
|
|
4792
|
-
|
|
4870
|
+
logger28.debug("Polar integration initialized");
|
|
4793
4871
|
},
|
|
4794
4872
|
async onAfterConnect(_client) {
|
|
4795
|
-
|
|
4873
|
+
logger28.debug("Polar integration connected");
|
|
4796
4874
|
}
|
|
4797
4875
|
};
|
|
4798
4876
|
}
|
|
4799
4877
|
// src/integrations/figma.ts
|
|
4800
|
-
var
|
|
4878
|
+
var logger29 = createLogger("Figma");
|
|
4801
4879
|
var FIGMA_TOOLS = [
|
|
4802
4880
|
"figma_get_file",
|
|
4803
4881
|
"figma_get_file_nodes",
|
|
@@ -4863,15 +4941,15 @@ function figmaIntegration(config = {}) {
|
|
|
4863
4941
|
tools: [...FIGMA_TOOLS],
|
|
4864
4942
|
oauth,
|
|
4865
4943
|
async onInit(_client) {
|
|
4866
|
-
|
|
4944
|
+
logger29.debug("Figma integration initialized");
|
|
4867
4945
|
},
|
|
4868
4946
|
async onAfterConnect(_client) {
|
|
4869
|
-
|
|
4947
|
+
logger29.debug("Figma integration connected");
|
|
4870
4948
|
}
|
|
4871
4949
|
};
|
|
4872
4950
|
}
|
|
4873
4951
|
// src/integrations/intercom.ts
|
|
4874
|
-
var
|
|
4952
|
+
var logger30 = createLogger("Intercom");
|
|
4875
4953
|
var INTERCOM_TOOLS = [
|
|
4876
4954
|
"intercom_list_contacts",
|
|
4877
4955
|
"intercom_get_contact",
|
|
@@ -4902,15 +4980,15 @@ function intercomIntegration(config = {}) {
|
|
|
4902
4980
|
tools: [...INTERCOM_TOOLS],
|
|
4903
4981
|
oauth,
|
|
4904
4982
|
async onInit(_client) {
|
|
4905
|
-
|
|
4983
|
+
logger30.debug("Intercom integration initialized");
|
|
4906
4984
|
},
|
|
4907
4985
|
async onAfterConnect(_client) {
|
|
4908
|
-
|
|
4986
|
+
logger30.debug("Intercom integration connected");
|
|
4909
4987
|
}
|
|
4910
4988
|
};
|
|
4911
4989
|
}
|
|
4912
4990
|
// src/integrations/hubspot.ts
|
|
4913
|
-
var
|
|
4991
|
+
var logger31 = createLogger("HubSpot");
|
|
4914
4992
|
var HUBSPOT_TOOLS = [
|
|
4915
4993
|
"hubspot_list_contacts",
|
|
4916
4994
|
"hubspot_get_contact",
|
|
@@ -4960,15 +5038,15 @@ function hubspotIntegration(config = {}) {
|
|
|
4960
5038
|
tools: [...HUBSPOT_TOOLS],
|
|
4961
5039
|
oauth,
|
|
4962
5040
|
async onInit(_client) {
|
|
4963
|
-
|
|
5041
|
+
logger31.debug("HubSpot integration initialized");
|
|
4964
5042
|
},
|
|
4965
5043
|
async onAfterConnect(_client) {
|
|
4966
|
-
|
|
5044
|
+
logger31.debug("HubSpot integration connected");
|
|
4967
5045
|
}
|
|
4968
5046
|
};
|
|
4969
5047
|
}
|
|
4970
5048
|
// src/integrations/youtube.ts
|
|
4971
|
-
var
|
|
5049
|
+
var logger32 = createLogger("YouTube");
|
|
4972
5050
|
var YOUTUBE_TOOLS = [
|
|
4973
5051
|
"youtube_search",
|
|
4974
5052
|
"youtube_get_video",
|
|
@@ -4999,15 +5077,15 @@ function youtubeIntegration(config = {}) {
|
|
|
4999
5077
|
tools: [...YOUTUBE_TOOLS],
|
|
5000
5078
|
oauth,
|
|
5001
5079
|
async onInit(_client) {
|
|
5002
|
-
|
|
5080
|
+
logger32.debug("YouTube integration initialized");
|
|
5003
5081
|
},
|
|
5004
5082
|
async onAfterConnect(_client) {
|
|
5005
|
-
|
|
5083
|
+
logger32.debug("YouTube integration connected");
|
|
5006
5084
|
}
|
|
5007
5085
|
};
|
|
5008
5086
|
}
|
|
5009
5087
|
// src/integrations/cursor.ts
|
|
5010
|
-
var
|
|
5088
|
+
var logger33 = createLogger("Cursor");
|
|
5011
5089
|
var CURSOR_TOOLS = [
|
|
5012
5090
|
"cursor_list_agents",
|
|
5013
5091
|
"cursor_get_agent",
|
|
@@ -5027,10 +5105,10 @@ function cursorIntegration(_config = {}) {
|
|
|
5027
5105
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/cursor.jpeg",
|
|
5028
5106
|
tools: [...CURSOR_TOOLS],
|
|
5029
5107
|
async onInit(_client) {
|
|
5030
|
-
|
|
5108
|
+
logger33.debug("Cursor integration initialized");
|
|
5031
5109
|
},
|
|
5032
5110
|
async onAfterConnect(_client) {
|
|
5033
|
-
|
|
5111
|
+
logger33.debug("Cursor integration connected");
|
|
5034
5112
|
}
|
|
5035
5113
|
};
|
|
5036
5114
|
}
|
|
@@ -5048,7 +5126,7 @@ function validateStepLimit(stepIndex, maxSteps) {
|
|
|
5048
5126
|
return { valid: true };
|
|
5049
5127
|
}
|
|
5050
5128
|
// src/triggers/webhooks.ts
|
|
5051
|
-
var
|
|
5129
|
+
var logger34 = createLogger("Webhooks", "server");
|
|
5052
5130
|
async function signPayload(payload, secret) {
|
|
5053
5131
|
const encoder = new TextEncoder;
|
|
5054
5132
|
const data = encoder.encode(JSON.stringify(payload));
|
|
@@ -5074,7 +5152,7 @@ async function deliverWebhook(webhook, payload, timeoutMs) {
|
|
|
5074
5152
|
signal: controller.signal
|
|
5075
5153
|
});
|
|
5076
5154
|
if (!response.ok) {
|
|
5077
|
-
|
|
5155
|
+
logger34.warn(`Webhook delivery to ${webhook.url} returned ${response.status}`);
|
|
5078
5156
|
}
|
|
5079
5157
|
} finally {
|
|
5080
5158
|
clearTimeout(timeout);
|
|
@@ -5087,7 +5165,7 @@ async function deliverWebhooks(webhooks, payload, timeoutMs) {
|
|
|
5087
5165
|
for (let i = 0;i < results.length; i++) {
|
|
5088
5166
|
const result = results[i];
|
|
5089
5167
|
if (result.status === "rejected") {
|
|
5090
|
-
|
|
5168
|
+
logger34.warn(`Webhook delivery to ${webhooks[i].url} failed:`, result.reason);
|
|
5091
5169
|
}
|
|
5092
5170
|
}
|
|
5093
5171
|
}
|
|
@@ -5142,7 +5220,9 @@ var client = createMCPClient({
|
|
|
5142
5220
|
calcomIntegration(),
|
|
5143
5221
|
rampIntegration(),
|
|
5144
5222
|
onedriveIntegration(),
|
|
5145
|
-
|
|
5223
|
+
gdocsIntegration(),
|
|
5224
|
+
gsheetsIntegration(),
|
|
5225
|
+
gslidesIntegration(),
|
|
5146
5226
|
polarIntegration(),
|
|
5147
5227
|
figmaIntegration(),
|
|
5148
5228
|
intercomIntegration(),
|
|
@@ -5177,7 +5257,8 @@ export {
|
|
|
5177
5257
|
isAuthError,
|
|
5178
5258
|
intercomIntegration,
|
|
5179
5259
|
hubspotIntegration,
|
|
5180
|
-
|
|
5260
|
+
gslidesIntegration,
|
|
5261
|
+
gsheetsIntegration,
|
|
5181
5262
|
gmailIntegration,
|
|
5182
5263
|
githubIntegration,
|
|
5183
5264
|
genericOAuthIntegration,
|
|
@@ -5185,6 +5266,7 @@ export {
|
|
|
5185
5266
|
generateState,
|
|
5186
5267
|
generateCodeVerifier,
|
|
5187
5268
|
generateCodeChallenge,
|
|
5269
|
+
gdocsIntegration,
|
|
5188
5270
|
gcalIntegration,
|
|
5189
5271
|
fromNodeHeaders,
|
|
5190
5272
|
figmaIntegration,
|