integrate-sdk 0.8.29-dev.0 → 0.8.30-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/auto-routes.js +220 -0
- package/dist/adapters/index.js +220 -0
- package/dist/adapters/nextjs.js +220 -0
- package/dist/adapters/node.js +220 -0
- package/dist/adapters/svelte-kit.js +220 -0
- package/dist/adapters/tanstack-start.js +220 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +241 -1
- package/dist/oauth.js +220 -0
- package/dist/server.js +225 -0
- package/dist/src/client.d.ts +6 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/airtable-client.d.ts +260 -0
- package/dist/src/integrations/airtable-client.d.ts.map +1 -0
- package/dist/src/integrations/airtable.d.ts +37 -0
- package/dist/src/integrations/airtable.d.ts.map +1 -0
- package/dist/src/integrations/gcal-client.d.ts +370 -0
- package/dist/src/integrations/gcal-client.d.ts.map +1 -0
- package/dist/src/integrations/gcal.d.ts +37 -0
- package/dist/src/integrations/gcal.d.ts.map +1 -0
- package/dist/src/integrations/outlook-client.d.ts +433 -0
- package/dist/src/integrations/outlook-client.d.ts.map +1 -0
- package/dist/src/integrations/outlook.d.ts +37 -0
- package/dist/src/integrations/outlook.d.ts.map +1 -0
- package/dist/src/integrations/stripe-client.d.ts +412 -0
- package/dist/src/integrations/stripe-client.d.ts.map +1 -0
- package/dist/src/integrations/stripe.d.ts +37 -0
- package/dist/src/integrations/stripe.d.ts.map +1 -0
- package/dist/src/integrations/todoist-client.d.ts +253 -0
- package/dist/src/integrations/todoist-client.d.ts.map +1 -0
- package/dist/src/integrations/todoist.d.ts +37 -0
- package/dist/src/integrations/todoist.d.ts.map +1 -0
- package/dist/src/server.d.ts +5 -0
- package/dist/src/server.d.ts.map +1 -1
- package/index.ts +10 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1666,6 +1666,21 @@ class MCPClientBase {
|
|
|
1666
1666
|
if (integrationIds.includes("zendesk")) {
|
|
1667
1667
|
this.zendesk = this.createIntegrationProxy("zendesk");
|
|
1668
1668
|
}
|
|
1669
|
+
if (integrationIds.includes("stripe")) {
|
|
1670
|
+
this.stripe = this.createIntegrationProxy("stripe");
|
|
1671
|
+
}
|
|
1672
|
+
if (integrationIds.includes("gcal")) {
|
|
1673
|
+
this.gcal = this.createIntegrationProxy("gcal");
|
|
1674
|
+
}
|
|
1675
|
+
if (integrationIds.includes("outlook")) {
|
|
1676
|
+
this.outlook = this.createIntegrationProxy("outlook");
|
|
1677
|
+
}
|
|
1678
|
+
if (integrationIds.includes("airtable")) {
|
|
1679
|
+
this.airtable = this.createIntegrationProxy("airtable");
|
|
1680
|
+
}
|
|
1681
|
+
if (integrationIds.includes("todoist")) {
|
|
1682
|
+
this.todoist = this.createIntegrationProxy("todoist");
|
|
1683
|
+
}
|
|
1669
1684
|
this.server = this.createServerProxy();
|
|
1670
1685
|
this.initializeIntegrations();
|
|
1671
1686
|
}
|
|
@@ -2849,6 +2864,201 @@ var init_zendesk = __esm(() => {
|
|
|
2849
2864
|
];
|
|
2850
2865
|
});
|
|
2851
2866
|
|
|
2867
|
+
// src/integrations/stripe.ts
|
|
2868
|
+
function stripeIntegration(config = {}) {
|
|
2869
|
+
const oauth = {
|
|
2870
|
+
provider: "stripe",
|
|
2871
|
+
clientId: config.clientId ?? getEnv("STRIPE_CLIENT_ID"),
|
|
2872
|
+
clientSecret: config.clientSecret ?? getEnv("STRIPE_CLIENT_SECRET"),
|
|
2873
|
+
scopes: config.scopes || ["read_write"],
|
|
2874
|
+
redirectUri: config.redirectUri,
|
|
2875
|
+
config: {
|
|
2876
|
+
...config
|
|
2877
|
+
}
|
|
2878
|
+
};
|
|
2879
|
+
return {
|
|
2880
|
+
id: "stripe",
|
|
2881
|
+
tools: [...STRIPE_TOOLS],
|
|
2882
|
+
oauth,
|
|
2883
|
+
async onInit(_client) {
|
|
2884
|
+
console.log("Stripe integration initialized");
|
|
2885
|
+
},
|
|
2886
|
+
async onAfterConnect(_client) {
|
|
2887
|
+
console.log("Stripe integration connected");
|
|
2888
|
+
}
|
|
2889
|
+
};
|
|
2890
|
+
}
|
|
2891
|
+
var STRIPE_TOOLS;
|
|
2892
|
+
var init_stripe = __esm(() => {
|
|
2893
|
+
STRIPE_TOOLS = [
|
|
2894
|
+
"stripe_list_customers",
|
|
2895
|
+
"stripe_get_customer",
|
|
2896
|
+
"stripe_create_customer",
|
|
2897
|
+
"stripe_list_payments",
|
|
2898
|
+
"stripe_get_payment",
|
|
2899
|
+
"stripe_create_payment",
|
|
2900
|
+
"stripe_list_invoices",
|
|
2901
|
+
"stripe_list_subscriptions",
|
|
2902
|
+
"stripe_create_subscription"
|
|
2903
|
+
];
|
|
2904
|
+
});
|
|
2905
|
+
|
|
2906
|
+
// src/integrations/gcal.ts
|
|
2907
|
+
function gcalIntegration(config = {}) {
|
|
2908
|
+
const oauth = {
|
|
2909
|
+
provider: "gcal",
|
|
2910
|
+
clientId: config.clientId ?? getEnv("GCAL_CLIENT_ID"),
|
|
2911
|
+
clientSecret: config.clientSecret ?? getEnv("GCAL_CLIENT_SECRET"),
|
|
2912
|
+
scopes: config.scopes || ["https://www.googleapis.com/auth/calendar"],
|
|
2913
|
+
redirectUri: config.redirectUri,
|
|
2914
|
+
config: {
|
|
2915
|
+
...config
|
|
2916
|
+
}
|
|
2917
|
+
};
|
|
2918
|
+
return {
|
|
2919
|
+
id: "gcal",
|
|
2920
|
+
tools: [...GCAL_TOOLS],
|
|
2921
|
+
oauth,
|
|
2922
|
+
async onInit(_client) {
|
|
2923
|
+
console.log("Google Calendar integration initialized");
|
|
2924
|
+
},
|
|
2925
|
+
async onAfterConnect(_client) {
|
|
2926
|
+
console.log("Google Calendar integration connected");
|
|
2927
|
+
}
|
|
2928
|
+
};
|
|
2929
|
+
}
|
|
2930
|
+
var GCAL_TOOLS;
|
|
2931
|
+
var init_gcal = __esm(() => {
|
|
2932
|
+
GCAL_TOOLS = [
|
|
2933
|
+
"gcal_list_calendars",
|
|
2934
|
+
"gcal_get_calendar",
|
|
2935
|
+
"gcal_list_events",
|
|
2936
|
+
"gcal_get_event",
|
|
2937
|
+
"gcal_create_event",
|
|
2938
|
+
"gcal_update_event",
|
|
2939
|
+
"gcal_delete_event",
|
|
2940
|
+
"gcal_list_attendees",
|
|
2941
|
+
"gcal_quick_add"
|
|
2942
|
+
];
|
|
2943
|
+
});
|
|
2944
|
+
|
|
2945
|
+
// src/integrations/outlook.ts
|
|
2946
|
+
function outlookIntegration(config = {}) {
|
|
2947
|
+
const oauth = {
|
|
2948
|
+
provider: "outlook",
|
|
2949
|
+
clientId: config.clientId ?? getEnv("OUTLOOK_CLIENT_ID"),
|
|
2950
|
+
clientSecret: config.clientSecret ?? getEnv("OUTLOOK_CLIENT_SECRET"),
|
|
2951
|
+
scopes: config.scopes || ["Mail.Read", "Mail.Send", "Calendars.ReadWrite", "Contacts.Read"],
|
|
2952
|
+
redirectUri: config.redirectUri,
|
|
2953
|
+
config: {
|
|
2954
|
+
...config
|
|
2955
|
+
}
|
|
2956
|
+
};
|
|
2957
|
+
return {
|
|
2958
|
+
id: "outlook",
|
|
2959
|
+
tools: [...OUTLOOK_TOOLS],
|
|
2960
|
+
oauth,
|
|
2961
|
+
async onInit(_client) {
|
|
2962
|
+
console.log("Outlook integration initialized");
|
|
2963
|
+
},
|
|
2964
|
+
async onAfterConnect(_client) {
|
|
2965
|
+
console.log("Outlook integration connected");
|
|
2966
|
+
}
|
|
2967
|
+
};
|
|
2968
|
+
}
|
|
2969
|
+
var OUTLOOK_TOOLS;
|
|
2970
|
+
var init_outlook = __esm(() => {
|
|
2971
|
+
OUTLOOK_TOOLS = [
|
|
2972
|
+
"outlook_list_messages",
|
|
2973
|
+
"outlook_get_message",
|
|
2974
|
+
"outlook_send_message",
|
|
2975
|
+
"outlook_list_events",
|
|
2976
|
+
"outlook_get_event",
|
|
2977
|
+
"outlook_create_event",
|
|
2978
|
+
"outlook_list_contacts",
|
|
2979
|
+
"outlook_get_contact",
|
|
2980
|
+
"outlook_search"
|
|
2981
|
+
];
|
|
2982
|
+
});
|
|
2983
|
+
|
|
2984
|
+
// src/integrations/airtable.ts
|
|
2985
|
+
function airtableIntegration(config = {}) {
|
|
2986
|
+
const oauth = {
|
|
2987
|
+
provider: "airtable",
|
|
2988
|
+
clientId: config.clientId ?? getEnv("AIRTABLE_CLIENT_ID"),
|
|
2989
|
+
clientSecret: config.clientSecret ?? getEnv("AIRTABLE_CLIENT_SECRET"),
|
|
2990
|
+
scopes: config.scopes || ["data.records:read", "data.records:write", "schema.bases:read"],
|
|
2991
|
+
redirectUri: config.redirectUri,
|
|
2992
|
+
config: {
|
|
2993
|
+
...config
|
|
2994
|
+
}
|
|
2995
|
+
};
|
|
2996
|
+
return {
|
|
2997
|
+
id: "airtable",
|
|
2998
|
+
tools: [...AIRTABLE_TOOLS],
|
|
2999
|
+
oauth,
|
|
3000
|
+
async onInit(_client) {
|
|
3001
|
+
console.log("Airtable integration initialized");
|
|
3002
|
+
},
|
|
3003
|
+
async onAfterConnect(_client) {
|
|
3004
|
+
console.log("Airtable integration connected");
|
|
3005
|
+
}
|
|
3006
|
+
};
|
|
3007
|
+
}
|
|
3008
|
+
var AIRTABLE_TOOLS;
|
|
3009
|
+
var init_airtable = __esm(() => {
|
|
3010
|
+
AIRTABLE_TOOLS = [
|
|
3011
|
+
"airtable_list_bases",
|
|
3012
|
+
"airtable_get_base",
|
|
3013
|
+
"airtable_list_tables",
|
|
3014
|
+
"airtable_get_table",
|
|
3015
|
+
"airtable_list_records",
|
|
3016
|
+
"airtable_get_record",
|
|
3017
|
+
"airtable_create_record",
|
|
3018
|
+
"airtable_update_record",
|
|
3019
|
+
"airtable_search_records"
|
|
3020
|
+
];
|
|
3021
|
+
});
|
|
3022
|
+
|
|
3023
|
+
// src/integrations/todoist.ts
|
|
3024
|
+
function todoistIntegration(config = {}) {
|
|
3025
|
+
const oauth = {
|
|
3026
|
+
provider: "todoist",
|
|
3027
|
+
clientId: config.clientId ?? getEnv("TODOIST_CLIENT_ID"),
|
|
3028
|
+
clientSecret: config.clientSecret ?? getEnv("TODOIST_CLIENT_SECRET"),
|
|
3029
|
+
scopes: config.scopes || ["data:read_write"],
|
|
3030
|
+
redirectUri: config.redirectUri,
|
|
3031
|
+
config: {
|
|
3032
|
+
...config
|
|
3033
|
+
}
|
|
3034
|
+
};
|
|
3035
|
+
return {
|
|
3036
|
+
id: "todoist",
|
|
3037
|
+
tools: [...TODOIST_TOOLS],
|
|
3038
|
+
oauth,
|
|
3039
|
+
async onInit(_client) {
|
|
3040
|
+
console.log("Todoist integration initialized");
|
|
3041
|
+
},
|
|
3042
|
+
async onAfterConnect(_client) {
|
|
3043
|
+
console.log("Todoist integration connected");
|
|
3044
|
+
}
|
|
3045
|
+
};
|
|
3046
|
+
}
|
|
3047
|
+
var TODOIST_TOOLS;
|
|
3048
|
+
var init_todoist = __esm(() => {
|
|
3049
|
+
TODOIST_TOOLS = [
|
|
3050
|
+
"todoist_list_projects",
|
|
3051
|
+
"todoist_get_project",
|
|
3052
|
+
"todoist_create_project",
|
|
3053
|
+
"todoist_list_tasks",
|
|
3054
|
+
"todoist_get_task",
|
|
3055
|
+
"todoist_create_task",
|
|
3056
|
+
"todoist_complete_task",
|
|
3057
|
+
"todoist_list_labels",
|
|
3058
|
+
"todoist_create_label"
|
|
3059
|
+
];
|
|
3060
|
+
});
|
|
3061
|
+
|
|
2852
3062
|
// src/integrations/generic.ts
|
|
2853
3063
|
function genericOAuthIntegration(config) {
|
|
2854
3064
|
const providerUpper = config.provider.toUpperCase().replace(/[^A-Z0-9]/g, "_");
|
|
@@ -7348,11 +7558,14 @@ var exports_server = {};
|
|
|
7348
7558
|
__export(exports_server, {
|
|
7349
7559
|
zendeskIntegration: () => zendeskIntegration,
|
|
7350
7560
|
vercelIntegration: () => vercelIntegration,
|
|
7561
|
+
todoistIntegration: () => todoistIntegration,
|
|
7351
7562
|
toSvelteKitHandler: () => toSvelteKitHandler,
|
|
7352
7563
|
toSolidStartHandler: () => toSolidStartHandler,
|
|
7353
7564
|
toNextJsHandler: () => toNextJsHandler,
|
|
7565
|
+
stripeIntegration: () => stripeIntegration,
|
|
7354
7566
|
storeCodeVerifier: () => storeCodeVerifier,
|
|
7355
7567
|
slackIntegration: () => slackIntegration,
|
|
7568
|
+
outlookIntegration: () => outlookIntegration,
|
|
7356
7569
|
notionIntegration: () => notionIntegration,
|
|
7357
7570
|
linearIntegration: () => linearIntegration,
|
|
7358
7571
|
handleOpenAIResponse: () => handleOpenAIResponse,
|
|
@@ -7365,9 +7578,11 @@ __export(exports_server, {
|
|
|
7365
7578
|
getCodeVerifier: () => getCodeVerifier,
|
|
7366
7579
|
getAnthropicTools: () => getAnthropicTools,
|
|
7367
7580
|
genericOAuthIntegration: () => genericOAuthIntegration,
|
|
7581
|
+
gcalIntegration: () => gcalIntegration,
|
|
7368
7582
|
executeGoogleFunctionCalls: () => executeGoogleFunctionCalls,
|
|
7369
7583
|
createSimpleIntegration: () => createSimpleIntegration,
|
|
7370
7584
|
createMCPServer: () => createMCPServer,
|
|
7585
|
+
airtableIntegration: () => airtableIntegration,
|
|
7371
7586
|
POST: () => POST,
|
|
7372
7587
|
GET: () => GET
|
|
7373
7588
|
});
|
|
@@ -7889,6 +8104,11 @@ var init_server = __esm(() => {
|
|
|
7889
8104
|
init_linear();
|
|
7890
8105
|
init_vercel();
|
|
7891
8106
|
init_zendesk();
|
|
8107
|
+
init_stripe();
|
|
8108
|
+
init_gcal();
|
|
8109
|
+
init_outlook();
|
|
8110
|
+
init_airtable();
|
|
8111
|
+
init_todoist();
|
|
7892
8112
|
init_generic();
|
|
7893
8113
|
init_vercel_ai();
|
|
7894
8114
|
init_openai();
|
|
@@ -8541,6 +8761,11 @@ init_slack();
|
|
|
8541
8761
|
init_linear();
|
|
8542
8762
|
init_vercel();
|
|
8543
8763
|
init_zendesk();
|
|
8764
|
+
init_stripe();
|
|
8765
|
+
init_gcal();
|
|
8766
|
+
init_outlook();
|
|
8767
|
+
init_airtable();
|
|
8768
|
+
init_todoist();
|
|
8544
8769
|
init_generic();
|
|
8545
8770
|
init_messages();
|
|
8546
8771
|
init_http_session();
|
|
@@ -8554,6 +8779,11 @@ init_slack();
|
|
|
8554
8779
|
init_linear();
|
|
8555
8780
|
init_vercel();
|
|
8556
8781
|
init_zendesk();
|
|
8782
|
+
init_stripe();
|
|
8783
|
+
init_gcal();
|
|
8784
|
+
init_outlook();
|
|
8785
|
+
init_airtable();
|
|
8786
|
+
init_todoist();
|
|
8557
8787
|
var client = createMCPClient({
|
|
8558
8788
|
integrations: [
|
|
8559
8789
|
githubIntegration(),
|
|
@@ -8562,21 +8792,29 @@ var client = createMCPClient({
|
|
|
8562
8792
|
slackIntegration(),
|
|
8563
8793
|
linearIntegration(),
|
|
8564
8794
|
vercelIntegration(),
|
|
8565
|
-
zendeskIntegration()
|
|
8795
|
+
zendeskIntegration(),
|
|
8796
|
+
stripeIntegration(),
|
|
8797
|
+
gcalIntegration(),
|
|
8798
|
+
outlookIntegration(),
|
|
8799
|
+
airtableIntegration(),
|
|
8800
|
+
todoistIntegration()
|
|
8566
8801
|
]
|
|
8567
8802
|
});
|
|
8568
8803
|
export {
|
|
8569
8804
|
zendeskIntegration,
|
|
8570
8805
|
vercelIntegration,
|
|
8806
|
+
todoistIntegration,
|
|
8571
8807
|
toWebRequest,
|
|
8572
8808
|
toTanStackStartHandler,
|
|
8573
8809
|
toSvelteKitHandler,
|
|
8574
8810
|
toSolidStartHandler,
|
|
8575
8811
|
svelteKitHandler,
|
|
8812
|
+
stripeIntegration,
|
|
8576
8813
|
slackIntegration,
|
|
8577
8814
|
sendCallbackToOpener,
|
|
8578
8815
|
parseState,
|
|
8579
8816
|
parseServerError,
|
|
8817
|
+
outlookIntegration,
|
|
8580
8818
|
notionIntegration,
|
|
8581
8819
|
linearIntegration,
|
|
8582
8820
|
isTokenExpiredError,
|
|
@@ -8589,6 +8827,7 @@ export {
|
|
|
8589
8827
|
generateState,
|
|
8590
8828
|
generateCodeVerifier,
|
|
8591
8829
|
generateCodeChallenge,
|
|
8830
|
+
gcalIntegration,
|
|
8592
8831
|
fromNodeHeaders,
|
|
8593
8832
|
createTanStackOAuthHandler,
|
|
8594
8833
|
createSimpleIntegration,
|
|
@@ -8597,6 +8836,7 @@ export {
|
|
|
8597
8836
|
createMCPClient,
|
|
8598
8837
|
client,
|
|
8599
8838
|
clearClientCache,
|
|
8839
|
+
airtableIntegration,
|
|
8600
8840
|
ToolCallError,
|
|
8601
8841
|
TokenExpiredError,
|
|
8602
8842
|
OAuthWindowManager,
|
package/dist/oauth.js
CHANGED
|
@@ -1638,6 +1638,21 @@ class MCPClientBase {
|
|
|
1638
1638
|
if (integrationIds.includes("zendesk")) {
|
|
1639
1639
|
this.zendesk = this.createIntegrationProxy("zendesk");
|
|
1640
1640
|
}
|
|
1641
|
+
if (integrationIds.includes("stripe")) {
|
|
1642
|
+
this.stripe = this.createIntegrationProxy("stripe");
|
|
1643
|
+
}
|
|
1644
|
+
if (integrationIds.includes("gcal")) {
|
|
1645
|
+
this.gcal = this.createIntegrationProxy("gcal");
|
|
1646
|
+
}
|
|
1647
|
+
if (integrationIds.includes("outlook")) {
|
|
1648
|
+
this.outlook = this.createIntegrationProxy("outlook");
|
|
1649
|
+
}
|
|
1650
|
+
if (integrationIds.includes("airtable")) {
|
|
1651
|
+
this.airtable = this.createIntegrationProxy("airtable");
|
|
1652
|
+
}
|
|
1653
|
+
if (integrationIds.includes("todoist")) {
|
|
1654
|
+
this.todoist = this.createIntegrationProxy("todoist");
|
|
1655
|
+
}
|
|
1641
1656
|
this.server = this.createServerProxy();
|
|
1642
1657
|
this.initializeIntegrations();
|
|
1643
1658
|
}
|
|
@@ -2672,6 +2687,201 @@ var init_zendesk = __esm(() => {
|
|
|
2672
2687
|
];
|
|
2673
2688
|
});
|
|
2674
2689
|
|
|
2690
|
+
// src/integrations/stripe.ts
|
|
2691
|
+
function stripeIntegration(config = {}) {
|
|
2692
|
+
const oauth = {
|
|
2693
|
+
provider: "stripe",
|
|
2694
|
+
clientId: config.clientId ?? getEnv("STRIPE_CLIENT_ID"),
|
|
2695
|
+
clientSecret: config.clientSecret ?? getEnv("STRIPE_CLIENT_SECRET"),
|
|
2696
|
+
scopes: config.scopes || ["read_write"],
|
|
2697
|
+
redirectUri: config.redirectUri,
|
|
2698
|
+
config: {
|
|
2699
|
+
...config
|
|
2700
|
+
}
|
|
2701
|
+
};
|
|
2702
|
+
return {
|
|
2703
|
+
id: "stripe",
|
|
2704
|
+
tools: [...STRIPE_TOOLS],
|
|
2705
|
+
oauth,
|
|
2706
|
+
async onInit(_client) {
|
|
2707
|
+
console.log("Stripe integration initialized");
|
|
2708
|
+
},
|
|
2709
|
+
async onAfterConnect(_client) {
|
|
2710
|
+
console.log("Stripe integration connected");
|
|
2711
|
+
}
|
|
2712
|
+
};
|
|
2713
|
+
}
|
|
2714
|
+
var STRIPE_TOOLS;
|
|
2715
|
+
var init_stripe = __esm(() => {
|
|
2716
|
+
STRIPE_TOOLS = [
|
|
2717
|
+
"stripe_list_customers",
|
|
2718
|
+
"stripe_get_customer",
|
|
2719
|
+
"stripe_create_customer",
|
|
2720
|
+
"stripe_list_payments",
|
|
2721
|
+
"stripe_get_payment",
|
|
2722
|
+
"stripe_create_payment",
|
|
2723
|
+
"stripe_list_invoices",
|
|
2724
|
+
"stripe_list_subscriptions",
|
|
2725
|
+
"stripe_create_subscription"
|
|
2726
|
+
];
|
|
2727
|
+
});
|
|
2728
|
+
|
|
2729
|
+
// src/integrations/gcal.ts
|
|
2730
|
+
function gcalIntegration(config = {}) {
|
|
2731
|
+
const oauth = {
|
|
2732
|
+
provider: "gcal",
|
|
2733
|
+
clientId: config.clientId ?? getEnv("GCAL_CLIENT_ID"),
|
|
2734
|
+
clientSecret: config.clientSecret ?? getEnv("GCAL_CLIENT_SECRET"),
|
|
2735
|
+
scopes: config.scopes || ["https://www.googleapis.com/auth/calendar"],
|
|
2736
|
+
redirectUri: config.redirectUri,
|
|
2737
|
+
config: {
|
|
2738
|
+
...config
|
|
2739
|
+
}
|
|
2740
|
+
};
|
|
2741
|
+
return {
|
|
2742
|
+
id: "gcal",
|
|
2743
|
+
tools: [...GCAL_TOOLS],
|
|
2744
|
+
oauth,
|
|
2745
|
+
async onInit(_client) {
|
|
2746
|
+
console.log("Google Calendar integration initialized");
|
|
2747
|
+
},
|
|
2748
|
+
async onAfterConnect(_client) {
|
|
2749
|
+
console.log("Google Calendar integration connected");
|
|
2750
|
+
}
|
|
2751
|
+
};
|
|
2752
|
+
}
|
|
2753
|
+
var GCAL_TOOLS;
|
|
2754
|
+
var init_gcal = __esm(() => {
|
|
2755
|
+
GCAL_TOOLS = [
|
|
2756
|
+
"gcal_list_calendars",
|
|
2757
|
+
"gcal_get_calendar",
|
|
2758
|
+
"gcal_list_events",
|
|
2759
|
+
"gcal_get_event",
|
|
2760
|
+
"gcal_create_event",
|
|
2761
|
+
"gcal_update_event",
|
|
2762
|
+
"gcal_delete_event",
|
|
2763
|
+
"gcal_list_attendees",
|
|
2764
|
+
"gcal_quick_add"
|
|
2765
|
+
];
|
|
2766
|
+
});
|
|
2767
|
+
|
|
2768
|
+
// src/integrations/outlook.ts
|
|
2769
|
+
function outlookIntegration(config = {}) {
|
|
2770
|
+
const oauth = {
|
|
2771
|
+
provider: "outlook",
|
|
2772
|
+
clientId: config.clientId ?? getEnv("OUTLOOK_CLIENT_ID"),
|
|
2773
|
+
clientSecret: config.clientSecret ?? getEnv("OUTLOOK_CLIENT_SECRET"),
|
|
2774
|
+
scopes: config.scopes || ["Mail.Read", "Mail.Send", "Calendars.ReadWrite", "Contacts.Read"],
|
|
2775
|
+
redirectUri: config.redirectUri,
|
|
2776
|
+
config: {
|
|
2777
|
+
...config
|
|
2778
|
+
}
|
|
2779
|
+
};
|
|
2780
|
+
return {
|
|
2781
|
+
id: "outlook",
|
|
2782
|
+
tools: [...OUTLOOK_TOOLS],
|
|
2783
|
+
oauth,
|
|
2784
|
+
async onInit(_client) {
|
|
2785
|
+
console.log("Outlook integration initialized");
|
|
2786
|
+
},
|
|
2787
|
+
async onAfterConnect(_client) {
|
|
2788
|
+
console.log("Outlook integration connected");
|
|
2789
|
+
}
|
|
2790
|
+
};
|
|
2791
|
+
}
|
|
2792
|
+
var OUTLOOK_TOOLS;
|
|
2793
|
+
var init_outlook = __esm(() => {
|
|
2794
|
+
OUTLOOK_TOOLS = [
|
|
2795
|
+
"outlook_list_messages",
|
|
2796
|
+
"outlook_get_message",
|
|
2797
|
+
"outlook_send_message",
|
|
2798
|
+
"outlook_list_events",
|
|
2799
|
+
"outlook_get_event",
|
|
2800
|
+
"outlook_create_event",
|
|
2801
|
+
"outlook_list_contacts",
|
|
2802
|
+
"outlook_get_contact",
|
|
2803
|
+
"outlook_search"
|
|
2804
|
+
];
|
|
2805
|
+
});
|
|
2806
|
+
|
|
2807
|
+
// src/integrations/airtable.ts
|
|
2808
|
+
function airtableIntegration(config = {}) {
|
|
2809
|
+
const oauth = {
|
|
2810
|
+
provider: "airtable",
|
|
2811
|
+
clientId: config.clientId ?? getEnv("AIRTABLE_CLIENT_ID"),
|
|
2812
|
+
clientSecret: config.clientSecret ?? getEnv("AIRTABLE_CLIENT_SECRET"),
|
|
2813
|
+
scopes: config.scopes || ["data.records:read", "data.records:write", "schema.bases:read"],
|
|
2814
|
+
redirectUri: config.redirectUri,
|
|
2815
|
+
config: {
|
|
2816
|
+
...config
|
|
2817
|
+
}
|
|
2818
|
+
};
|
|
2819
|
+
return {
|
|
2820
|
+
id: "airtable",
|
|
2821
|
+
tools: [...AIRTABLE_TOOLS],
|
|
2822
|
+
oauth,
|
|
2823
|
+
async onInit(_client) {
|
|
2824
|
+
console.log("Airtable integration initialized");
|
|
2825
|
+
},
|
|
2826
|
+
async onAfterConnect(_client) {
|
|
2827
|
+
console.log("Airtable integration connected");
|
|
2828
|
+
}
|
|
2829
|
+
};
|
|
2830
|
+
}
|
|
2831
|
+
var AIRTABLE_TOOLS;
|
|
2832
|
+
var init_airtable = __esm(() => {
|
|
2833
|
+
AIRTABLE_TOOLS = [
|
|
2834
|
+
"airtable_list_bases",
|
|
2835
|
+
"airtable_get_base",
|
|
2836
|
+
"airtable_list_tables",
|
|
2837
|
+
"airtable_get_table",
|
|
2838
|
+
"airtable_list_records",
|
|
2839
|
+
"airtable_get_record",
|
|
2840
|
+
"airtable_create_record",
|
|
2841
|
+
"airtable_update_record",
|
|
2842
|
+
"airtable_search_records"
|
|
2843
|
+
];
|
|
2844
|
+
});
|
|
2845
|
+
|
|
2846
|
+
// src/integrations/todoist.ts
|
|
2847
|
+
function todoistIntegration(config = {}) {
|
|
2848
|
+
const oauth = {
|
|
2849
|
+
provider: "todoist",
|
|
2850
|
+
clientId: config.clientId ?? getEnv("TODOIST_CLIENT_ID"),
|
|
2851
|
+
clientSecret: config.clientSecret ?? getEnv("TODOIST_CLIENT_SECRET"),
|
|
2852
|
+
scopes: config.scopes || ["data:read_write"],
|
|
2853
|
+
redirectUri: config.redirectUri,
|
|
2854
|
+
config: {
|
|
2855
|
+
...config
|
|
2856
|
+
}
|
|
2857
|
+
};
|
|
2858
|
+
return {
|
|
2859
|
+
id: "todoist",
|
|
2860
|
+
tools: [...TODOIST_TOOLS],
|
|
2861
|
+
oauth,
|
|
2862
|
+
async onInit(_client) {
|
|
2863
|
+
console.log("Todoist integration initialized");
|
|
2864
|
+
},
|
|
2865
|
+
async onAfterConnect(_client) {
|
|
2866
|
+
console.log("Todoist integration connected");
|
|
2867
|
+
}
|
|
2868
|
+
};
|
|
2869
|
+
}
|
|
2870
|
+
var TODOIST_TOOLS;
|
|
2871
|
+
var init_todoist = __esm(() => {
|
|
2872
|
+
TODOIST_TOOLS = [
|
|
2873
|
+
"todoist_list_projects",
|
|
2874
|
+
"todoist_get_project",
|
|
2875
|
+
"todoist_create_project",
|
|
2876
|
+
"todoist_list_tasks",
|
|
2877
|
+
"todoist_get_task",
|
|
2878
|
+
"todoist_create_task",
|
|
2879
|
+
"todoist_complete_task",
|
|
2880
|
+
"todoist_list_labels",
|
|
2881
|
+
"todoist_create_label"
|
|
2882
|
+
];
|
|
2883
|
+
});
|
|
2884
|
+
|
|
2675
2885
|
// src/integrations/generic.ts
|
|
2676
2886
|
function genericOAuthIntegration(config) {
|
|
2677
2887
|
const providerUpper = config.provider.toUpperCase().replace(/[^A-Z0-9]/g, "_");
|
|
@@ -7171,11 +7381,14 @@ var exports_server = {};
|
|
|
7171
7381
|
__export(exports_server, {
|
|
7172
7382
|
zendeskIntegration: () => zendeskIntegration,
|
|
7173
7383
|
vercelIntegration: () => vercelIntegration,
|
|
7384
|
+
todoistIntegration: () => todoistIntegration,
|
|
7174
7385
|
toSvelteKitHandler: () => toSvelteKitHandler,
|
|
7175
7386
|
toSolidStartHandler: () => toSolidStartHandler,
|
|
7176
7387
|
toNextJsHandler: () => toNextJsHandler,
|
|
7388
|
+
stripeIntegration: () => stripeIntegration,
|
|
7177
7389
|
storeCodeVerifier: () => storeCodeVerifier,
|
|
7178
7390
|
slackIntegration: () => slackIntegration,
|
|
7391
|
+
outlookIntegration: () => outlookIntegration,
|
|
7179
7392
|
notionIntegration: () => notionIntegration,
|
|
7180
7393
|
linearIntegration: () => linearIntegration,
|
|
7181
7394
|
handleOpenAIResponse: () => handleOpenAIResponse,
|
|
@@ -7188,9 +7401,11 @@ __export(exports_server, {
|
|
|
7188
7401
|
getCodeVerifier: () => getCodeVerifier,
|
|
7189
7402
|
getAnthropicTools: () => getAnthropicTools,
|
|
7190
7403
|
genericOAuthIntegration: () => genericOAuthIntegration,
|
|
7404
|
+
gcalIntegration: () => gcalIntegration,
|
|
7191
7405
|
executeGoogleFunctionCalls: () => executeGoogleFunctionCalls,
|
|
7192
7406
|
createSimpleIntegration: () => createSimpleIntegration,
|
|
7193
7407
|
createMCPServer: () => createMCPServer,
|
|
7408
|
+
airtableIntegration: () => airtableIntegration,
|
|
7194
7409
|
POST: () => POST,
|
|
7195
7410
|
GET: () => GET
|
|
7196
7411
|
});
|
|
@@ -7712,6 +7927,11 @@ var init_server = __esm(() => {
|
|
|
7712
7927
|
init_linear();
|
|
7713
7928
|
init_vercel();
|
|
7714
7929
|
init_zendesk();
|
|
7930
|
+
init_stripe();
|
|
7931
|
+
init_gcal();
|
|
7932
|
+
init_outlook();
|
|
7933
|
+
init_airtable();
|
|
7934
|
+
init_todoist();
|
|
7715
7935
|
init_generic();
|
|
7716
7936
|
init_vercel_ai();
|
|
7717
7937
|
init_openai();
|