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
|
@@ -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
|
}
|
|
@@ -2469,6 +2484,201 @@ var init_zendesk = __esm(() => {
|
|
|
2469
2484
|
];
|
|
2470
2485
|
});
|
|
2471
2486
|
|
|
2487
|
+
// ../integrations/stripe.ts
|
|
2488
|
+
function stripeIntegration(config = {}) {
|
|
2489
|
+
const oauth = {
|
|
2490
|
+
provider: "stripe",
|
|
2491
|
+
clientId: config.clientId ?? getEnv("STRIPE_CLIENT_ID"),
|
|
2492
|
+
clientSecret: config.clientSecret ?? getEnv("STRIPE_CLIENT_SECRET"),
|
|
2493
|
+
scopes: config.scopes || ["read_write"],
|
|
2494
|
+
redirectUri: config.redirectUri,
|
|
2495
|
+
config: {
|
|
2496
|
+
...config
|
|
2497
|
+
}
|
|
2498
|
+
};
|
|
2499
|
+
return {
|
|
2500
|
+
id: "stripe",
|
|
2501
|
+
tools: [...STRIPE_TOOLS],
|
|
2502
|
+
oauth,
|
|
2503
|
+
async onInit(_client) {
|
|
2504
|
+
console.log("Stripe integration initialized");
|
|
2505
|
+
},
|
|
2506
|
+
async onAfterConnect(_client) {
|
|
2507
|
+
console.log("Stripe integration connected");
|
|
2508
|
+
}
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
var STRIPE_TOOLS;
|
|
2512
|
+
var init_stripe = __esm(() => {
|
|
2513
|
+
STRIPE_TOOLS = [
|
|
2514
|
+
"stripe_list_customers",
|
|
2515
|
+
"stripe_get_customer",
|
|
2516
|
+
"stripe_create_customer",
|
|
2517
|
+
"stripe_list_payments",
|
|
2518
|
+
"stripe_get_payment",
|
|
2519
|
+
"stripe_create_payment",
|
|
2520
|
+
"stripe_list_invoices",
|
|
2521
|
+
"stripe_list_subscriptions",
|
|
2522
|
+
"stripe_create_subscription"
|
|
2523
|
+
];
|
|
2524
|
+
});
|
|
2525
|
+
|
|
2526
|
+
// ../integrations/gcal.ts
|
|
2527
|
+
function gcalIntegration(config = {}) {
|
|
2528
|
+
const oauth = {
|
|
2529
|
+
provider: "gcal",
|
|
2530
|
+
clientId: config.clientId ?? getEnv("GCAL_CLIENT_ID"),
|
|
2531
|
+
clientSecret: config.clientSecret ?? getEnv("GCAL_CLIENT_SECRET"),
|
|
2532
|
+
scopes: config.scopes || ["https://www.googleapis.com/auth/calendar"],
|
|
2533
|
+
redirectUri: config.redirectUri,
|
|
2534
|
+
config: {
|
|
2535
|
+
...config
|
|
2536
|
+
}
|
|
2537
|
+
};
|
|
2538
|
+
return {
|
|
2539
|
+
id: "gcal",
|
|
2540
|
+
tools: [...GCAL_TOOLS],
|
|
2541
|
+
oauth,
|
|
2542
|
+
async onInit(_client) {
|
|
2543
|
+
console.log("Google Calendar integration initialized");
|
|
2544
|
+
},
|
|
2545
|
+
async onAfterConnect(_client) {
|
|
2546
|
+
console.log("Google Calendar integration connected");
|
|
2547
|
+
}
|
|
2548
|
+
};
|
|
2549
|
+
}
|
|
2550
|
+
var GCAL_TOOLS;
|
|
2551
|
+
var init_gcal = __esm(() => {
|
|
2552
|
+
GCAL_TOOLS = [
|
|
2553
|
+
"gcal_list_calendars",
|
|
2554
|
+
"gcal_get_calendar",
|
|
2555
|
+
"gcal_list_events",
|
|
2556
|
+
"gcal_get_event",
|
|
2557
|
+
"gcal_create_event",
|
|
2558
|
+
"gcal_update_event",
|
|
2559
|
+
"gcal_delete_event",
|
|
2560
|
+
"gcal_list_attendees",
|
|
2561
|
+
"gcal_quick_add"
|
|
2562
|
+
];
|
|
2563
|
+
});
|
|
2564
|
+
|
|
2565
|
+
// ../integrations/outlook.ts
|
|
2566
|
+
function outlookIntegration(config = {}) {
|
|
2567
|
+
const oauth = {
|
|
2568
|
+
provider: "outlook",
|
|
2569
|
+
clientId: config.clientId ?? getEnv("OUTLOOK_CLIENT_ID"),
|
|
2570
|
+
clientSecret: config.clientSecret ?? getEnv("OUTLOOK_CLIENT_SECRET"),
|
|
2571
|
+
scopes: config.scopes || ["Mail.Read", "Mail.Send", "Calendars.ReadWrite", "Contacts.Read"],
|
|
2572
|
+
redirectUri: config.redirectUri,
|
|
2573
|
+
config: {
|
|
2574
|
+
...config
|
|
2575
|
+
}
|
|
2576
|
+
};
|
|
2577
|
+
return {
|
|
2578
|
+
id: "outlook",
|
|
2579
|
+
tools: [...OUTLOOK_TOOLS],
|
|
2580
|
+
oauth,
|
|
2581
|
+
async onInit(_client) {
|
|
2582
|
+
console.log("Outlook integration initialized");
|
|
2583
|
+
},
|
|
2584
|
+
async onAfterConnect(_client) {
|
|
2585
|
+
console.log("Outlook integration connected");
|
|
2586
|
+
}
|
|
2587
|
+
};
|
|
2588
|
+
}
|
|
2589
|
+
var OUTLOOK_TOOLS;
|
|
2590
|
+
var init_outlook = __esm(() => {
|
|
2591
|
+
OUTLOOK_TOOLS = [
|
|
2592
|
+
"outlook_list_messages",
|
|
2593
|
+
"outlook_get_message",
|
|
2594
|
+
"outlook_send_message",
|
|
2595
|
+
"outlook_list_events",
|
|
2596
|
+
"outlook_get_event",
|
|
2597
|
+
"outlook_create_event",
|
|
2598
|
+
"outlook_list_contacts",
|
|
2599
|
+
"outlook_get_contact",
|
|
2600
|
+
"outlook_search"
|
|
2601
|
+
];
|
|
2602
|
+
});
|
|
2603
|
+
|
|
2604
|
+
// ../integrations/airtable.ts
|
|
2605
|
+
function airtableIntegration(config = {}) {
|
|
2606
|
+
const oauth = {
|
|
2607
|
+
provider: "airtable",
|
|
2608
|
+
clientId: config.clientId ?? getEnv("AIRTABLE_CLIENT_ID"),
|
|
2609
|
+
clientSecret: config.clientSecret ?? getEnv("AIRTABLE_CLIENT_SECRET"),
|
|
2610
|
+
scopes: config.scopes || ["data.records:read", "data.records:write", "schema.bases:read"],
|
|
2611
|
+
redirectUri: config.redirectUri,
|
|
2612
|
+
config: {
|
|
2613
|
+
...config
|
|
2614
|
+
}
|
|
2615
|
+
};
|
|
2616
|
+
return {
|
|
2617
|
+
id: "airtable",
|
|
2618
|
+
tools: [...AIRTABLE_TOOLS],
|
|
2619
|
+
oauth,
|
|
2620
|
+
async onInit(_client) {
|
|
2621
|
+
console.log("Airtable integration initialized");
|
|
2622
|
+
},
|
|
2623
|
+
async onAfterConnect(_client) {
|
|
2624
|
+
console.log("Airtable integration connected");
|
|
2625
|
+
}
|
|
2626
|
+
};
|
|
2627
|
+
}
|
|
2628
|
+
var AIRTABLE_TOOLS;
|
|
2629
|
+
var init_airtable = __esm(() => {
|
|
2630
|
+
AIRTABLE_TOOLS = [
|
|
2631
|
+
"airtable_list_bases",
|
|
2632
|
+
"airtable_get_base",
|
|
2633
|
+
"airtable_list_tables",
|
|
2634
|
+
"airtable_get_table",
|
|
2635
|
+
"airtable_list_records",
|
|
2636
|
+
"airtable_get_record",
|
|
2637
|
+
"airtable_create_record",
|
|
2638
|
+
"airtable_update_record",
|
|
2639
|
+
"airtable_search_records"
|
|
2640
|
+
];
|
|
2641
|
+
});
|
|
2642
|
+
|
|
2643
|
+
// ../integrations/todoist.ts
|
|
2644
|
+
function todoistIntegration(config = {}) {
|
|
2645
|
+
const oauth = {
|
|
2646
|
+
provider: "todoist",
|
|
2647
|
+
clientId: config.clientId ?? getEnv("TODOIST_CLIENT_ID"),
|
|
2648
|
+
clientSecret: config.clientSecret ?? getEnv("TODOIST_CLIENT_SECRET"),
|
|
2649
|
+
scopes: config.scopes || ["data:read_write"],
|
|
2650
|
+
redirectUri: config.redirectUri,
|
|
2651
|
+
config: {
|
|
2652
|
+
...config
|
|
2653
|
+
}
|
|
2654
|
+
};
|
|
2655
|
+
return {
|
|
2656
|
+
id: "todoist",
|
|
2657
|
+
tools: [...TODOIST_TOOLS],
|
|
2658
|
+
oauth,
|
|
2659
|
+
async onInit(_client) {
|
|
2660
|
+
console.log("Todoist integration initialized");
|
|
2661
|
+
},
|
|
2662
|
+
async onAfterConnect(_client) {
|
|
2663
|
+
console.log("Todoist integration connected");
|
|
2664
|
+
}
|
|
2665
|
+
};
|
|
2666
|
+
}
|
|
2667
|
+
var TODOIST_TOOLS;
|
|
2668
|
+
var init_todoist = __esm(() => {
|
|
2669
|
+
TODOIST_TOOLS = [
|
|
2670
|
+
"todoist_list_projects",
|
|
2671
|
+
"todoist_get_project",
|
|
2672
|
+
"todoist_create_project",
|
|
2673
|
+
"todoist_list_tasks",
|
|
2674
|
+
"todoist_get_task",
|
|
2675
|
+
"todoist_create_task",
|
|
2676
|
+
"todoist_complete_task",
|
|
2677
|
+
"todoist_list_labels",
|
|
2678
|
+
"todoist_create_label"
|
|
2679
|
+
];
|
|
2680
|
+
});
|
|
2681
|
+
|
|
2472
2682
|
// ../integrations/generic.ts
|
|
2473
2683
|
function genericOAuthIntegration(config) {
|
|
2474
2684
|
const providerUpper = config.provider.toUpperCase().replace(/[^A-Z0-9]/g, "_");
|
|
@@ -6968,11 +7178,14 @@ var exports_server = {};
|
|
|
6968
7178
|
__export(exports_server, {
|
|
6969
7179
|
zendeskIntegration: () => zendeskIntegration,
|
|
6970
7180
|
vercelIntegration: () => vercelIntegration,
|
|
7181
|
+
todoistIntegration: () => todoistIntegration,
|
|
6971
7182
|
toSvelteKitHandler: () => toSvelteKitHandler,
|
|
6972
7183
|
toSolidStartHandler: () => toSolidStartHandler,
|
|
6973
7184
|
toNextJsHandler: () => toNextJsHandler,
|
|
7185
|
+
stripeIntegration: () => stripeIntegration,
|
|
6974
7186
|
storeCodeVerifier: () => storeCodeVerifier,
|
|
6975
7187
|
slackIntegration: () => slackIntegration,
|
|
7188
|
+
outlookIntegration: () => outlookIntegration,
|
|
6976
7189
|
notionIntegration: () => notionIntegration,
|
|
6977
7190
|
linearIntegration: () => linearIntegration,
|
|
6978
7191
|
handleOpenAIResponse: () => handleOpenAIResponse,
|
|
@@ -6985,9 +7198,11 @@ __export(exports_server, {
|
|
|
6985
7198
|
getCodeVerifier: () => getCodeVerifier,
|
|
6986
7199
|
getAnthropicTools: () => getAnthropicTools,
|
|
6987
7200
|
genericOAuthIntegration: () => genericOAuthIntegration,
|
|
7201
|
+
gcalIntegration: () => gcalIntegration,
|
|
6988
7202
|
executeGoogleFunctionCalls: () => executeGoogleFunctionCalls,
|
|
6989
7203
|
createSimpleIntegration: () => createSimpleIntegration,
|
|
6990
7204
|
createMCPServer: () => createMCPServer,
|
|
7205
|
+
airtableIntegration: () => airtableIntegration,
|
|
6991
7206
|
POST: () => POST,
|
|
6992
7207
|
GET: () => GET
|
|
6993
7208
|
});
|
|
@@ -7509,6 +7724,11 @@ var init_server = __esm(() => {
|
|
|
7509
7724
|
init_linear();
|
|
7510
7725
|
init_vercel();
|
|
7511
7726
|
init_zendesk();
|
|
7727
|
+
init_stripe();
|
|
7728
|
+
init_gcal();
|
|
7729
|
+
init_outlook();
|
|
7730
|
+
init_airtable();
|
|
7731
|
+
init_todoist();
|
|
7512
7732
|
init_generic();
|
|
7513
7733
|
init_vercel_ai();
|
|
7514
7734
|
init_openai();
|
|
@@ -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
|
}
|
|
@@ -2469,6 +2484,201 @@ var init_zendesk = __esm(() => {
|
|
|
2469
2484
|
];
|
|
2470
2485
|
});
|
|
2471
2486
|
|
|
2487
|
+
// ../integrations/stripe.ts
|
|
2488
|
+
function stripeIntegration(config = {}) {
|
|
2489
|
+
const oauth = {
|
|
2490
|
+
provider: "stripe",
|
|
2491
|
+
clientId: config.clientId ?? getEnv("STRIPE_CLIENT_ID"),
|
|
2492
|
+
clientSecret: config.clientSecret ?? getEnv("STRIPE_CLIENT_SECRET"),
|
|
2493
|
+
scopes: config.scopes || ["read_write"],
|
|
2494
|
+
redirectUri: config.redirectUri,
|
|
2495
|
+
config: {
|
|
2496
|
+
...config
|
|
2497
|
+
}
|
|
2498
|
+
};
|
|
2499
|
+
return {
|
|
2500
|
+
id: "stripe",
|
|
2501
|
+
tools: [...STRIPE_TOOLS],
|
|
2502
|
+
oauth,
|
|
2503
|
+
async onInit(_client) {
|
|
2504
|
+
console.log("Stripe integration initialized");
|
|
2505
|
+
},
|
|
2506
|
+
async onAfterConnect(_client) {
|
|
2507
|
+
console.log("Stripe integration connected");
|
|
2508
|
+
}
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
var STRIPE_TOOLS;
|
|
2512
|
+
var init_stripe = __esm(() => {
|
|
2513
|
+
STRIPE_TOOLS = [
|
|
2514
|
+
"stripe_list_customers",
|
|
2515
|
+
"stripe_get_customer",
|
|
2516
|
+
"stripe_create_customer",
|
|
2517
|
+
"stripe_list_payments",
|
|
2518
|
+
"stripe_get_payment",
|
|
2519
|
+
"stripe_create_payment",
|
|
2520
|
+
"stripe_list_invoices",
|
|
2521
|
+
"stripe_list_subscriptions",
|
|
2522
|
+
"stripe_create_subscription"
|
|
2523
|
+
];
|
|
2524
|
+
});
|
|
2525
|
+
|
|
2526
|
+
// ../integrations/gcal.ts
|
|
2527
|
+
function gcalIntegration(config = {}) {
|
|
2528
|
+
const oauth = {
|
|
2529
|
+
provider: "gcal",
|
|
2530
|
+
clientId: config.clientId ?? getEnv("GCAL_CLIENT_ID"),
|
|
2531
|
+
clientSecret: config.clientSecret ?? getEnv("GCAL_CLIENT_SECRET"),
|
|
2532
|
+
scopes: config.scopes || ["https://www.googleapis.com/auth/calendar"],
|
|
2533
|
+
redirectUri: config.redirectUri,
|
|
2534
|
+
config: {
|
|
2535
|
+
...config
|
|
2536
|
+
}
|
|
2537
|
+
};
|
|
2538
|
+
return {
|
|
2539
|
+
id: "gcal",
|
|
2540
|
+
tools: [...GCAL_TOOLS],
|
|
2541
|
+
oauth,
|
|
2542
|
+
async onInit(_client) {
|
|
2543
|
+
console.log("Google Calendar integration initialized");
|
|
2544
|
+
},
|
|
2545
|
+
async onAfterConnect(_client) {
|
|
2546
|
+
console.log("Google Calendar integration connected");
|
|
2547
|
+
}
|
|
2548
|
+
};
|
|
2549
|
+
}
|
|
2550
|
+
var GCAL_TOOLS;
|
|
2551
|
+
var init_gcal = __esm(() => {
|
|
2552
|
+
GCAL_TOOLS = [
|
|
2553
|
+
"gcal_list_calendars",
|
|
2554
|
+
"gcal_get_calendar",
|
|
2555
|
+
"gcal_list_events",
|
|
2556
|
+
"gcal_get_event",
|
|
2557
|
+
"gcal_create_event",
|
|
2558
|
+
"gcal_update_event",
|
|
2559
|
+
"gcal_delete_event",
|
|
2560
|
+
"gcal_list_attendees",
|
|
2561
|
+
"gcal_quick_add"
|
|
2562
|
+
];
|
|
2563
|
+
});
|
|
2564
|
+
|
|
2565
|
+
// ../integrations/outlook.ts
|
|
2566
|
+
function outlookIntegration(config = {}) {
|
|
2567
|
+
const oauth = {
|
|
2568
|
+
provider: "outlook",
|
|
2569
|
+
clientId: config.clientId ?? getEnv("OUTLOOK_CLIENT_ID"),
|
|
2570
|
+
clientSecret: config.clientSecret ?? getEnv("OUTLOOK_CLIENT_SECRET"),
|
|
2571
|
+
scopes: config.scopes || ["Mail.Read", "Mail.Send", "Calendars.ReadWrite", "Contacts.Read"],
|
|
2572
|
+
redirectUri: config.redirectUri,
|
|
2573
|
+
config: {
|
|
2574
|
+
...config
|
|
2575
|
+
}
|
|
2576
|
+
};
|
|
2577
|
+
return {
|
|
2578
|
+
id: "outlook",
|
|
2579
|
+
tools: [...OUTLOOK_TOOLS],
|
|
2580
|
+
oauth,
|
|
2581
|
+
async onInit(_client) {
|
|
2582
|
+
console.log("Outlook integration initialized");
|
|
2583
|
+
},
|
|
2584
|
+
async onAfterConnect(_client) {
|
|
2585
|
+
console.log("Outlook integration connected");
|
|
2586
|
+
}
|
|
2587
|
+
};
|
|
2588
|
+
}
|
|
2589
|
+
var OUTLOOK_TOOLS;
|
|
2590
|
+
var init_outlook = __esm(() => {
|
|
2591
|
+
OUTLOOK_TOOLS = [
|
|
2592
|
+
"outlook_list_messages",
|
|
2593
|
+
"outlook_get_message",
|
|
2594
|
+
"outlook_send_message",
|
|
2595
|
+
"outlook_list_events",
|
|
2596
|
+
"outlook_get_event",
|
|
2597
|
+
"outlook_create_event",
|
|
2598
|
+
"outlook_list_contacts",
|
|
2599
|
+
"outlook_get_contact",
|
|
2600
|
+
"outlook_search"
|
|
2601
|
+
];
|
|
2602
|
+
});
|
|
2603
|
+
|
|
2604
|
+
// ../integrations/airtable.ts
|
|
2605
|
+
function airtableIntegration(config = {}) {
|
|
2606
|
+
const oauth = {
|
|
2607
|
+
provider: "airtable",
|
|
2608
|
+
clientId: config.clientId ?? getEnv("AIRTABLE_CLIENT_ID"),
|
|
2609
|
+
clientSecret: config.clientSecret ?? getEnv("AIRTABLE_CLIENT_SECRET"),
|
|
2610
|
+
scopes: config.scopes || ["data.records:read", "data.records:write", "schema.bases:read"],
|
|
2611
|
+
redirectUri: config.redirectUri,
|
|
2612
|
+
config: {
|
|
2613
|
+
...config
|
|
2614
|
+
}
|
|
2615
|
+
};
|
|
2616
|
+
return {
|
|
2617
|
+
id: "airtable",
|
|
2618
|
+
tools: [...AIRTABLE_TOOLS],
|
|
2619
|
+
oauth,
|
|
2620
|
+
async onInit(_client) {
|
|
2621
|
+
console.log("Airtable integration initialized");
|
|
2622
|
+
},
|
|
2623
|
+
async onAfterConnect(_client) {
|
|
2624
|
+
console.log("Airtable integration connected");
|
|
2625
|
+
}
|
|
2626
|
+
};
|
|
2627
|
+
}
|
|
2628
|
+
var AIRTABLE_TOOLS;
|
|
2629
|
+
var init_airtable = __esm(() => {
|
|
2630
|
+
AIRTABLE_TOOLS = [
|
|
2631
|
+
"airtable_list_bases",
|
|
2632
|
+
"airtable_get_base",
|
|
2633
|
+
"airtable_list_tables",
|
|
2634
|
+
"airtable_get_table",
|
|
2635
|
+
"airtable_list_records",
|
|
2636
|
+
"airtable_get_record",
|
|
2637
|
+
"airtable_create_record",
|
|
2638
|
+
"airtable_update_record",
|
|
2639
|
+
"airtable_search_records"
|
|
2640
|
+
];
|
|
2641
|
+
});
|
|
2642
|
+
|
|
2643
|
+
// ../integrations/todoist.ts
|
|
2644
|
+
function todoistIntegration(config = {}) {
|
|
2645
|
+
const oauth = {
|
|
2646
|
+
provider: "todoist",
|
|
2647
|
+
clientId: config.clientId ?? getEnv("TODOIST_CLIENT_ID"),
|
|
2648
|
+
clientSecret: config.clientSecret ?? getEnv("TODOIST_CLIENT_SECRET"),
|
|
2649
|
+
scopes: config.scopes || ["data:read_write"],
|
|
2650
|
+
redirectUri: config.redirectUri,
|
|
2651
|
+
config: {
|
|
2652
|
+
...config
|
|
2653
|
+
}
|
|
2654
|
+
};
|
|
2655
|
+
return {
|
|
2656
|
+
id: "todoist",
|
|
2657
|
+
tools: [...TODOIST_TOOLS],
|
|
2658
|
+
oauth,
|
|
2659
|
+
async onInit(_client) {
|
|
2660
|
+
console.log("Todoist integration initialized");
|
|
2661
|
+
},
|
|
2662
|
+
async onAfterConnect(_client) {
|
|
2663
|
+
console.log("Todoist integration connected");
|
|
2664
|
+
}
|
|
2665
|
+
};
|
|
2666
|
+
}
|
|
2667
|
+
var TODOIST_TOOLS;
|
|
2668
|
+
var init_todoist = __esm(() => {
|
|
2669
|
+
TODOIST_TOOLS = [
|
|
2670
|
+
"todoist_list_projects",
|
|
2671
|
+
"todoist_get_project",
|
|
2672
|
+
"todoist_create_project",
|
|
2673
|
+
"todoist_list_tasks",
|
|
2674
|
+
"todoist_get_task",
|
|
2675
|
+
"todoist_create_task",
|
|
2676
|
+
"todoist_complete_task",
|
|
2677
|
+
"todoist_list_labels",
|
|
2678
|
+
"todoist_create_label"
|
|
2679
|
+
];
|
|
2680
|
+
});
|
|
2681
|
+
|
|
2472
2682
|
// ../integrations/generic.ts
|
|
2473
2683
|
function genericOAuthIntegration(config) {
|
|
2474
2684
|
const providerUpper = config.provider.toUpperCase().replace(/[^A-Z0-9]/g, "_");
|
|
@@ -6968,11 +7178,14 @@ var exports_server = {};
|
|
|
6968
7178
|
__export(exports_server, {
|
|
6969
7179
|
zendeskIntegration: () => zendeskIntegration,
|
|
6970
7180
|
vercelIntegration: () => vercelIntegration,
|
|
7181
|
+
todoistIntegration: () => todoistIntegration,
|
|
6971
7182
|
toSvelteKitHandler: () => toSvelteKitHandler,
|
|
6972
7183
|
toSolidStartHandler: () => toSolidStartHandler,
|
|
6973
7184
|
toNextJsHandler: () => toNextJsHandler,
|
|
7185
|
+
stripeIntegration: () => stripeIntegration,
|
|
6974
7186
|
storeCodeVerifier: () => storeCodeVerifier,
|
|
6975
7187
|
slackIntegration: () => slackIntegration,
|
|
7188
|
+
outlookIntegration: () => outlookIntegration,
|
|
6976
7189
|
notionIntegration: () => notionIntegration,
|
|
6977
7190
|
linearIntegration: () => linearIntegration,
|
|
6978
7191
|
handleOpenAIResponse: () => handleOpenAIResponse,
|
|
@@ -6985,9 +7198,11 @@ __export(exports_server, {
|
|
|
6985
7198
|
getCodeVerifier: () => getCodeVerifier,
|
|
6986
7199
|
getAnthropicTools: () => getAnthropicTools,
|
|
6987
7200
|
genericOAuthIntegration: () => genericOAuthIntegration,
|
|
7201
|
+
gcalIntegration: () => gcalIntegration,
|
|
6988
7202
|
executeGoogleFunctionCalls: () => executeGoogleFunctionCalls,
|
|
6989
7203
|
createSimpleIntegration: () => createSimpleIntegration,
|
|
6990
7204
|
createMCPServer: () => createMCPServer,
|
|
7205
|
+
airtableIntegration: () => airtableIntegration,
|
|
6991
7206
|
POST: () => POST,
|
|
6992
7207
|
GET: () => GET
|
|
6993
7208
|
});
|
|
@@ -7509,6 +7724,11 @@ var init_server = __esm(() => {
|
|
|
7509
7724
|
init_linear();
|
|
7510
7725
|
init_vercel();
|
|
7511
7726
|
init_zendesk();
|
|
7727
|
+
init_stripe();
|
|
7728
|
+
init_gcal();
|
|
7729
|
+
init_outlook();
|
|
7730
|
+
init_airtable();
|
|
7731
|
+
init_todoist();
|
|
7512
7732
|
init_generic();
|
|
7513
7733
|
init_vercel_ai();
|
|
7514
7734
|
init_openai();
|
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">)[]>;
|
|
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">)[]>;
|
|
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;AAiB/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,MAAM,omBAejB,CAAC"}
|