integrate-sdk 0.9.30-dev.1 → 0.9.31-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 +10 -6
- package/dist/adapters/base-handler.js +10 -6
- package/dist/adapters/index.js +20 -7
- package/dist/adapters/nextjs.js +10 -6
- package/dist/adapters/solid-start.js +20 -7
- package/dist/adapters/svelte-kit.js +20 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +83 -22
- package/dist/oauth.js +10 -6
- package/dist/server.js +221 -30
- package/dist/src/client.d.ts +4 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/jira-client.d.ts +146 -0
- package/dist/src/integrations/jira-client.d.ts.map +1 -0
- package/dist/src/integrations/jira.d.ts +22 -0
- package/dist/src/integrations/jira.d.ts.map +1 -0
- package/dist/src/integrations/library-metadata.d.ts +1 -1
- package/dist/src/integrations/library-metadata.d.ts.map +1 -1
- package/dist/src/server.d.ts +3 -0
- package/dist/src/server.d.ts.map +1 -1
- package/index.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -805,10 +805,12 @@ var INTEGRATION_CATEGORY_ORDER = [
|
|
|
805
805
|
"Analytics",
|
|
806
806
|
"Productivity",
|
|
807
807
|
"Business",
|
|
808
|
+
"Finance",
|
|
808
809
|
"Communication",
|
|
809
810
|
"Engineering",
|
|
810
811
|
"Infrastructure",
|
|
811
812
|
"Storage",
|
|
813
|
+
"Social Media",
|
|
812
814
|
"Other"
|
|
813
815
|
];
|
|
814
816
|
var INTEGRATION_LIBRARY_METADATA = {
|
|
@@ -818,7 +820,7 @@ var INTEGRATION_LIBRARY_METADATA = {
|
|
|
818
820
|
},
|
|
819
821
|
calcom: {
|
|
820
822
|
description: "Manage Cal.com bookings and schedules",
|
|
821
|
-
category: "
|
|
823
|
+
category: "Business"
|
|
822
824
|
},
|
|
823
825
|
cursor: {
|
|
824
826
|
description: "Manage Cursor Cloud Agents and background tasks",
|
|
@@ -866,7 +868,7 @@ var INTEGRATION_LIBRARY_METADATA = {
|
|
|
866
868
|
},
|
|
867
869
|
polar: {
|
|
868
870
|
description: "Manage Polar products, orders, and subscriptions",
|
|
869
|
-
category: "
|
|
871
|
+
category: "Finance"
|
|
870
872
|
},
|
|
871
873
|
posthog: {
|
|
872
874
|
description: "Read PostHog organizations, projects, insights, and feature flags",
|
|
@@ -888,13 +890,17 @@ var INTEGRATION_LIBRARY_METADATA = {
|
|
|
888
890
|
description: "Manage Netlify sites, deploys, builds, and environment variables",
|
|
889
891
|
category: "Infrastructure"
|
|
890
892
|
},
|
|
893
|
+
jira: {
|
|
894
|
+
description: "Manage Jira issues, projects, sprints, and boards",
|
|
895
|
+
category: "Engineering"
|
|
896
|
+
},
|
|
891
897
|
slack: {
|
|
892
898
|
description: "Send and manage Slack messages and channels",
|
|
893
899
|
category: "Communication"
|
|
894
900
|
},
|
|
895
901
|
stripe: {
|
|
896
902
|
description: "Manage Stripe customers, payments, and subscriptions",
|
|
897
|
-
category: "
|
|
903
|
+
category: "Finance"
|
|
898
904
|
},
|
|
899
905
|
todoist: {
|
|
900
906
|
description: "Manage Todoist tasks, projects, and labels",
|
|
@@ -918,7 +924,7 @@ var INTEGRATION_LIBRARY_METADATA = {
|
|
|
918
924
|
},
|
|
919
925
|
vercel: {
|
|
920
926
|
description: "Manage Vercel projects, deployments, and domains",
|
|
921
|
-
category: "
|
|
927
|
+
category: "Infrastructure"
|
|
922
928
|
},
|
|
923
929
|
whatsapp: {
|
|
924
930
|
description: "Send WhatsApp messages and templates",
|
|
@@ -926,7 +932,7 @@ var INTEGRATION_LIBRARY_METADATA = {
|
|
|
926
932
|
},
|
|
927
933
|
youtube: {
|
|
928
934
|
description: "Search and access YouTube videos and channels",
|
|
929
|
-
category: "
|
|
935
|
+
category: "Social Media"
|
|
930
936
|
},
|
|
931
937
|
powerpoint: {
|
|
932
938
|
description: "Manage PowerPoint presentations and sharing",
|
|
@@ -950,7 +956,7 @@ var INTEGRATION_LIBRARY_METADATA = {
|
|
|
950
956
|
},
|
|
951
957
|
mercury: {
|
|
952
958
|
description: "Manage Mercury bank accounts, cards, and transactions",
|
|
953
|
-
category: "
|
|
959
|
+
category: "Finance"
|
|
954
960
|
},
|
|
955
961
|
zendesk: {
|
|
956
962
|
description: "Manage Zendesk tickets, users, and help center content",
|
|
@@ -5810,6 +5816,59 @@ function netlifyIntegration(config = {}) {
|
|
|
5810
5816
|
}
|
|
5811
5817
|
};
|
|
5812
5818
|
}
|
|
5819
|
+
// src/integrations/jira.ts
|
|
5820
|
+
var logger39 = createLogger("Jira");
|
|
5821
|
+
var JIRA_SCOPES = [
|
|
5822
|
+
"read:jira-work",
|
|
5823
|
+
"write:jira-work",
|
|
5824
|
+
"read:account",
|
|
5825
|
+
"offline_access"
|
|
5826
|
+
];
|
|
5827
|
+
var JIRA_TOOLS = [
|
|
5828
|
+
"jira_list_projects",
|
|
5829
|
+
"jira_get_project",
|
|
5830
|
+
"jira_get_issue_types",
|
|
5831
|
+
"jira_search_issues",
|
|
5832
|
+
"jira_get_issue",
|
|
5833
|
+
"jira_create_issue",
|
|
5834
|
+
"jira_update_issue",
|
|
5835
|
+
"jira_get_transitions",
|
|
5836
|
+
"jira_transition_issue",
|
|
5837
|
+
"jira_add_comment",
|
|
5838
|
+
"jira_assign_issue",
|
|
5839
|
+
"jira_list_boards",
|
|
5840
|
+
"jira_list_sprints"
|
|
5841
|
+
];
|
|
5842
|
+
function jiraIntegration(config = {}) {
|
|
5843
|
+
const oauth = {
|
|
5844
|
+
provider: "jira",
|
|
5845
|
+
clientId: config.clientId ?? getEnv("JIRA_CLIENT_ID"),
|
|
5846
|
+
clientSecret: config.clientSecret ?? getEnv("JIRA_CLIENT_SECRET"),
|
|
5847
|
+
scopes: config.scopes ?? [...JIRA_SCOPES],
|
|
5848
|
+
redirectUri: config.redirectUri,
|
|
5849
|
+
config: {
|
|
5850
|
+
authorization_endpoint: "https://auth.atlassian.com/authorize",
|
|
5851
|
+
token_endpoint: "https://auth.atlassian.com/oauth/token",
|
|
5852
|
+
response_type: "code",
|
|
5853
|
+
grant_types_supported: ["authorization_code", "refresh_token"]
|
|
5854
|
+
}
|
|
5855
|
+
};
|
|
5856
|
+
return {
|
|
5857
|
+
id: "jira",
|
|
5858
|
+
name: "Jira",
|
|
5859
|
+
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/jira.png",
|
|
5860
|
+
description: "Manage Jira issues, projects, sprints, and boards",
|
|
5861
|
+
category: "Engineering",
|
|
5862
|
+
tools: [...JIRA_TOOLS],
|
|
5863
|
+
oauth,
|
|
5864
|
+
async onInit(_client) {
|
|
5865
|
+
logger39.debug("Jira integration initialized");
|
|
5866
|
+
},
|
|
5867
|
+
async onAfterConnect(_client) {
|
|
5868
|
+
logger39.debug("Jira integration connected");
|
|
5869
|
+
}
|
|
5870
|
+
};
|
|
5871
|
+
}
|
|
5813
5872
|
// src/integrations/granola.ts
|
|
5814
5873
|
var GRANOLA_TOOLS = [
|
|
5815
5874
|
"granola_list_notes",
|
|
@@ -5928,7 +5987,7 @@ function validateStepLimit(stepIndex, maxSteps) {
|
|
|
5928
5987
|
return { valid: true };
|
|
5929
5988
|
}
|
|
5930
5989
|
// src/triggers/webhooks.ts
|
|
5931
|
-
var
|
|
5990
|
+
var logger40 = createLogger("Webhooks", "server");
|
|
5932
5991
|
async function signPayload(payload, secret) {
|
|
5933
5992
|
const encoder = new TextEncoder;
|
|
5934
5993
|
const data = encoder.encode(JSON.stringify(payload));
|
|
@@ -5954,7 +6013,7 @@ async function deliverWebhook(webhook, payload, timeoutMs) {
|
|
|
5954
6013
|
signal: controller.signal
|
|
5955
6014
|
});
|
|
5956
6015
|
if (!response.ok) {
|
|
5957
|
-
|
|
6016
|
+
logger40.warn(`Webhook delivery to ${webhook.url} returned ${response.status}`);
|
|
5958
6017
|
}
|
|
5959
6018
|
} finally {
|
|
5960
6019
|
clearTimeout(timeout);
|
|
@@ -5967,7 +6026,7 @@ async function deliverWebhooks(webhooks, payload, timeoutMs) {
|
|
|
5967
6026
|
for (let i = 0;i < results.length; i++) {
|
|
5968
6027
|
const result = results[i];
|
|
5969
6028
|
if (result.status === "rejected") {
|
|
5970
|
-
|
|
6029
|
+
logger40.warn(`Webhook delivery to ${webhooks[i].url} failed:`, result.reason);
|
|
5971
6030
|
}
|
|
5972
6031
|
}
|
|
5973
6032
|
}
|
|
@@ -6004,7 +6063,7 @@ function createSimpleIntegration(config) {
|
|
|
6004
6063
|
};
|
|
6005
6064
|
}
|
|
6006
6065
|
// src/integrations/word.ts
|
|
6007
|
-
var
|
|
6066
|
+
var logger41 = createLogger("Word");
|
|
6008
6067
|
var WORD_TOOLS = [
|
|
6009
6068
|
"word_list",
|
|
6010
6069
|
"word_get",
|
|
@@ -6030,16 +6089,16 @@ function wordIntegration(config = {}) {
|
|
|
6030
6089
|
tools: [...WORD_TOOLS],
|
|
6031
6090
|
oauth,
|
|
6032
6091
|
async onInit(_client) {
|
|
6033
|
-
|
|
6092
|
+
logger41.debug("Word integration initialized");
|
|
6034
6093
|
},
|
|
6035
6094
|
async onAfterConnect(_client) {
|
|
6036
|
-
|
|
6095
|
+
logger41.debug("Word integration connected");
|
|
6037
6096
|
}
|
|
6038
6097
|
};
|
|
6039
6098
|
}
|
|
6040
6099
|
|
|
6041
6100
|
// src/integrations/excel.ts
|
|
6042
|
-
var
|
|
6101
|
+
var logger42 = createLogger("Excel");
|
|
6043
6102
|
var EXCEL_TOOLS = [
|
|
6044
6103
|
"excel_list",
|
|
6045
6104
|
"excel_get",
|
|
@@ -6075,16 +6134,16 @@ function excelIntegration(config = {}) {
|
|
|
6075
6134
|
tools: [...EXCEL_TOOLS],
|
|
6076
6135
|
oauth,
|
|
6077
6136
|
async onInit(_client) {
|
|
6078
|
-
|
|
6137
|
+
logger42.debug("Excel integration initialized");
|
|
6079
6138
|
},
|
|
6080
6139
|
async onAfterConnect(_client) {
|
|
6081
|
-
|
|
6140
|
+
logger42.debug("Excel integration connected");
|
|
6082
6141
|
}
|
|
6083
6142
|
};
|
|
6084
6143
|
}
|
|
6085
6144
|
|
|
6086
6145
|
// src/integrations/powerpoint.ts
|
|
6087
|
-
var
|
|
6146
|
+
var logger43 = createLogger("PowerPoint");
|
|
6088
6147
|
var POWERPOINT_TOOLS = [
|
|
6089
6148
|
"powerpoint_list",
|
|
6090
6149
|
"powerpoint_get",
|
|
@@ -6110,16 +6169,16 @@ function powerpointIntegration(config = {}) {
|
|
|
6110
6169
|
tools: [...POWERPOINT_TOOLS],
|
|
6111
6170
|
oauth,
|
|
6112
6171
|
async onInit(_client) {
|
|
6113
|
-
|
|
6172
|
+
logger43.debug("PowerPoint integration initialized");
|
|
6114
6173
|
},
|
|
6115
6174
|
async onAfterConnect(_client) {
|
|
6116
|
-
|
|
6175
|
+
logger43.debug("PowerPoint integration connected");
|
|
6117
6176
|
}
|
|
6118
6177
|
};
|
|
6119
6178
|
}
|
|
6120
6179
|
|
|
6121
6180
|
// src/integrations/gdrive.ts
|
|
6122
|
-
var
|
|
6181
|
+
var logger44 = createLogger("Google Drive");
|
|
6123
6182
|
var GDRIVE_TOOLS = [
|
|
6124
6183
|
"gdrive_list_files",
|
|
6125
6184
|
"gdrive_get_file",
|
|
@@ -6153,10 +6212,10 @@ function gdriveIntegration(config = {}) {
|
|
|
6153
6212
|
tools: [...GDRIVE_TOOLS],
|
|
6154
6213
|
oauth,
|
|
6155
6214
|
async onInit(_client) {
|
|
6156
|
-
|
|
6215
|
+
logger44.debug("Google Drive integration initialized");
|
|
6157
6216
|
},
|
|
6158
6217
|
async onAfterConnect(_client) {
|
|
6159
|
-
|
|
6218
|
+
logger44.debug("Google Drive integration connected");
|
|
6160
6219
|
}
|
|
6161
6220
|
};
|
|
6162
6221
|
}
|
|
@@ -6195,7 +6254,8 @@ var client = createMCPClient({
|
|
|
6195
6254
|
cursorIntegration(),
|
|
6196
6255
|
posthogIntegration(),
|
|
6197
6256
|
sentryIntegration(),
|
|
6198
|
-
netlifyIntegration()
|
|
6257
|
+
netlifyIntegration(),
|
|
6258
|
+
jiraIntegration()
|
|
6199
6259
|
],
|
|
6200
6260
|
useServerConfig: true
|
|
6201
6261
|
});
|
|
@@ -6224,6 +6284,7 @@ export {
|
|
|
6224
6284
|
netlifyIntegration,
|
|
6225
6285
|
mercuryIntegration,
|
|
6226
6286
|
linearIntegration,
|
|
6287
|
+
jiraIntegration,
|
|
6227
6288
|
isTokenExpiredError,
|
|
6228
6289
|
isAuthorizationError,
|
|
6229
6290
|
isAuthError,
|
package/dist/oauth.js
CHANGED
|
@@ -51,7 +51,7 @@ var init_library_metadata = __esm(() => {
|
|
|
51
51
|
},
|
|
52
52
|
calcom: {
|
|
53
53
|
description: "Manage Cal.com bookings and schedules",
|
|
54
|
-
category: "
|
|
54
|
+
category: "Business"
|
|
55
55
|
},
|
|
56
56
|
cursor: {
|
|
57
57
|
description: "Manage Cursor Cloud Agents and background tasks",
|
|
@@ -99,7 +99,7 @@ var init_library_metadata = __esm(() => {
|
|
|
99
99
|
},
|
|
100
100
|
polar: {
|
|
101
101
|
description: "Manage Polar products, orders, and subscriptions",
|
|
102
|
-
category: "
|
|
102
|
+
category: "Finance"
|
|
103
103
|
},
|
|
104
104
|
posthog: {
|
|
105
105
|
description: "Read PostHog organizations, projects, insights, and feature flags",
|
|
@@ -121,13 +121,17 @@ var init_library_metadata = __esm(() => {
|
|
|
121
121
|
description: "Manage Netlify sites, deploys, builds, and environment variables",
|
|
122
122
|
category: "Infrastructure"
|
|
123
123
|
},
|
|
124
|
+
jira: {
|
|
125
|
+
description: "Manage Jira issues, projects, sprints, and boards",
|
|
126
|
+
category: "Engineering"
|
|
127
|
+
},
|
|
124
128
|
slack: {
|
|
125
129
|
description: "Send and manage Slack messages and channels",
|
|
126
130
|
category: "Communication"
|
|
127
131
|
},
|
|
128
132
|
stripe: {
|
|
129
133
|
description: "Manage Stripe customers, payments, and subscriptions",
|
|
130
|
-
category: "
|
|
134
|
+
category: "Finance"
|
|
131
135
|
},
|
|
132
136
|
todoist: {
|
|
133
137
|
description: "Manage Todoist tasks, projects, and labels",
|
|
@@ -151,7 +155,7 @@ var init_library_metadata = __esm(() => {
|
|
|
151
155
|
},
|
|
152
156
|
vercel: {
|
|
153
157
|
description: "Manage Vercel projects, deployments, and domains",
|
|
154
|
-
category: "
|
|
158
|
+
category: "Infrastructure"
|
|
155
159
|
},
|
|
156
160
|
whatsapp: {
|
|
157
161
|
description: "Send WhatsApp messages and templates",
|
|
@@ -159,7 +163,7 @@ var init_library_metadata = __esm(() => {
|
|
|
159
163
|
},
|
|
160
164
|
youtube: {
|
|
161
165
|
description: "Search and access YouTube videos and channels",
|
|
162
|
-
category: "
|
|
166
|
+
category: "Social Media"
|
|
163
167
|
},
|
|
164
168
|
powerpoint: {
|
|
165
169
|
description: "Manage PowerPoint presentations and sharing",
|
|
@@ -183,7 +187,7 @@ var init_library_metadata = __esm(() => {
|
|
|
183
187
|
},
|
|
184
188
|
mercury: {
|
|
185
189
|
description: "Manage Mercury bank accounts, cards, and transactions",
|
|
186
|
-
category: "
|
|
190
|
+
category: "Finance"
|
|
187
191
|
},
|
|
188
192
|
zendesk: {
|
|
189
193
|
description: "Manage Zendesk tickets, users, and help center content",
|