@commandable/mcp 0.2.1 → 0.4.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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{S2P9sd4n.js → CBR-0oRi.js} +1 -1
- package/.output/public/_nuxt/CYsCQznM.js +59 -0
- package/.output/public/_nuxt/{B04gGCnx.js → Ctwv5nxD.js} +3 -3
- package/.output/public/_nuxt/{BvFUCPqA.js → DKO0MviJ.js} +1 -1
- package/.output/public/_nuxt/{d2XTSFt9.js → DOIzs5t4.js} +1 -1
- package/.output/public/_nuxt/KqToXREt.js +1 -0
- package/.output/public/_nuxt/{Dm_hd4at.js → Sdkz9rYy.js} +1 -1
- package/.output/public/_nuxt/_id_.DhlLK-mY.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/dd3dc5d0-c600-485d-b098-2f5b9facdf63.json +1 -0
- package/.output/server/chunks/build/IntegrationCredentials-styles.COcCfJmp.mjs +8 -0
- package/.output/server/chunks/build/IntegrationCredentials-styles.COcCfJmp.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-Bnxenh08.mjs → _id_-Co8jGxsD.mjs} +160 -38
- package/.output/server/chunks/build/{_id_-Bnxenh08.mjs.map → _id_-Co8jGxsD.mjs.map} +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{error-404-D2QibUBT.mjs → error-404-D1k2kWid.mjs} +13 -8
- package/.output/server/chunks/build/error-404-D1k2kWid.mjs.map +1 -0
- package/.output/server/chunks/build/{error-500-DYvawybF.mjs → error-500-D2K2rAfl.mjs} +13 -8
- package/.output/server/chunks/build/error-500-D2K2rAfl.mjs.map +1 -0
- package/.output/server/chunks/build/{fetch-BmYZnj75.mjs → fetch-aDh21opM.mjs} +114 -13
- package/.output/server/chunks/build/fetch-aDh21opM.mjs.map +1 -0
- package/.output/server/chunks/build/{index-CL-Gkd-Y.mjs → index-BxsJPthj.mjs} +24 -15
- package/.output/server/chunks/build/index-BxsJPthj.mjs.map +1 -0
- package/.output/server/chunks/build/{index-5H-nmhph.mjs → index-ycGPozML.mjs} +13 -8
- package/.output/server/chunks/build/index-ycGPozML.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +17 -12
- package/.output/server/chunks/build/styles.mjs +2 -2
- package/.output/server/chunks/nitro/nitro.mjs +13082 -766
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/_commandable/status.get.mjs +15 -8
- package/.output/server/chunks/routes/api/_commandable/status.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/catalog/_type/tools.get.mjs +13 -8
- package/.output/server/chunks/routes/api/catalog/_type/tools.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/catalog/_type/toolsets.get.mjs +13 -8
- package/.output/server/chunks/routes/api/catalog/_type/toolsets.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/catalog.get.mjs +12 -7
- package/.output/server/chunks/routes/api/catalog.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +13 -8
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +12 -7
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/credentials-config.get.mjs +15 -12
- package/.output/server/chunks/routes/api/integrations/_id/credentials-config.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/credentials-status.get.mjs +15 -12
- package/.output/server/chunks/routes/api/integrations/_id/credentials-status.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/credentials.delete.mjs +18 -15
- package/.output/server/chunks/routes/api/integrations/_id/credentials.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/credentials.post.mjs +28 -24
- package/.output/server/chunks/routes/api/integrations/_id/credentials.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/permissions.post.mjs +13 -8
- package/.output/server/chunks/routes/api/integrations/_id/permissions.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/tools.delete.mjs +13 -8
- package/.output/server/chunks/routes/api/integrations/_id/tools.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/tools.get.mjs +27 -10
- package/.output/server/chunks/routes/api/integrations/_id/tools.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/toolsets.get.mjs +13 -8
- package/.output/server/chunks/routes/api/integrations/_id/toolsets.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/toolsets.post.mjs +13 -8
- package/.output/server/chunks/routes/api/integrations/_id/toolsets.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/integrations/_id_.delete.mjs +13 -8
- package/.output/server/chunks/routes/api/integrations/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/health.get.mjs +12 -7
- package/.output/server/chunks/routes/health.get.mjs.map +1 -1
- package/.output/server/chunks/routes/mcp/create.mjs +13 -8
- package/.output/server/chunks/routes/mcp/create.mjs.map +1 -1
- package/.output/server/chunks/routes/mcp/static.mjs +61 -0
- package/.output/server/chunks/routes/mcp/static.mjs.map +1 -0
- package/.output/server/chunks/routes/mcp.mjs +14 -9
- package/.output/server/chunks/routes/mcp.mjs.map +1 -1
- package/.output/server/index.mjs +12 -7
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/README.md +17 -1
- package/bin/cli.mjs +34 -17
- package/package.json +15 -14
- package/.output/public/_nuxt/B2dAlp_u.js +0 -59
- package/.output/public/_nuxt/Ba0BY0O0.js +0 -1
- package/.output/public/_nuxt/_id_.BKAjWkoP.css +0 -1
- package/.output/public/_nuxt/builds/meta/87720575-dfd4-475f-92c1-554fcd8b22f1.json +0 -1
- package/.output/server/chunks/build/IntegrationCredentials-styles.CULcCK6_.mjs +0 -8
- package/.output/server/chunks/build/IntegrationCredentials-styles.CULcCK6_.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-D2QibUBT.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-DYvawybF.mjs.map +0 -1
- package/.output/server/chunks/build/fetch-BmYZnj75.mjs.map +0 -1
- package/.output/server/chunks/build/index-5H-nmhph.mjs.map +0 -1
- package/.output/server/chunks/build/index-CL-Gkd-Y.mjs.map +0 -1
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
2
|
-
import
|
|
3
|
-
import '@modelcontextprotocol/sdk/types.js';
|
|
1
|
+
import { d as defineEventHandler, b as getRouterParam, c as createError, k as getOrCreateEncryptionSecret, s as readBody, h as getDb, i as getIntegrationById, S as SqlCredentialStore, u as updateIntegrationCredentials, p as findIntegrationTypeConfig, I as IntegrationProxy, t as checkIntegrationHealth, q as updateIntegrationHealth, r as refreshMcpState } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
4
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
5
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
6
|
-
import '
|
|
5
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
7
6
|
import 'fastest-levenshtein';
|
|
8
|
-
import 'node:fs';
|
|
9
|
-
import 'node:path';
|
|
10
7
|
import 'node:url';
|
|
11
8
|
import 'node:vm';
|
|
12
9
|
import 'turndown';
|
|
13
10
|
import 'marked';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:fs/promises';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import 'node:fs';
|
|
17
|
+
import 'drizzle-orm';
|
|
14
18
|
import 'node:buffer';
|
|
15
19
|
import 'google-auth-library';
|
|
16
20
|
import 'node:http';
|
|
17
21
|
import 'node:https';
|
|
18
22
|
import 'node:events';
|
|
19
|
-
import 'node:os';
|
|
20
23
|
import 'better-sqlite3';
|
|
21
24
|
import 'drizzle-orm/better-sqlite3';
|
|
22
25
|
import 'drizzle-orm/node-postgres';
|
|
23
26
|
import 'pg';
|
|
27
|
+
import 'drizzle-orm/better-sqlite3/migrator';
|
|
28
|
+
import 'drizzle-orm/node-postgres/migrator';
|
|
29
|
+
import 'drizzle-orm/sqlite-core';
|
|
30
|
+
import 'drizzle-orm/pg-core';
|
|
24
31
|
import 'node:process';
|
|
25
32
|
import 'js-yaml';
|
|
26
33
|
import 'zod';
|
|
27
|
-
import 'drizzle-orm/sqlite-core';
|
|
28
|
-
import 'drizzle-orm/pg-core';
|
|
29
34
|
import '@iconify/utils';
|
|
30
35
|
import 'consola';
|
|
31
36
|
|
|
@@ -39,15 +44,19 @@ const credentials_post = defineEventHandler(async (event) => {
|
|
|
39
44
|
if (!body || typeof body !== "object")
|
|
40
45
|
throw createError({ statusCode: 400, statusMessage: "credentials payload is required" });
|
|
41
46
|
const db = await getDb();
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
const row = rows == null ? void 0 : rows[0];
|
|
45
|
-
if (!row)
|
|
47
|
+
const integ = await getIntegrationById(db, id);
|
|
48
|
+
if (!integ)
|
|
46
49
|
throw createError({ statusCode: 404, statusMessage: "integration not found" });
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
|
|
50
|
+
const payload = body;
|
|
51
|
+
const credentialVariant = payload.credentialVariant;
|
|
52
|
+
const credentialValues = Object.fromEntries(
|
|
53
|
+
Object.entries(payload).filter(
|
|
54
|
+
(entry) => entry[0] !== "credentialVariant" && typeof entry[1] === "string"
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
const spaceId = (_a = integ.spaceId) != null ? _a : "local";
|
|
58
|
+
const credentialId = integ.credentialId || `${integ.referenceId}-creds`;
|
|
59
|
+
const resolvedVariant = (typeof credentialVariant === "string" ? credentialVariant : null) || integ.credentialVariant || null;
|
|
51
60
|
const store = new SqlCredentialStore(db, encryptionSecret);
|
|
52
61
|
await store.saveCredentials(spaceId, credentialId, credentialValues);
|
|
53
62
|
await updateIntegrationCredentials(db, id, {
|
|
@@ -58,21 +67,16 @@ const credentials_post = defineEventHandler(async (event) => {
|
|
|
58
67
|
const typeConfig = await findIntegrationTypeConfig({
|
|
59
68
|
db,
|
|
60
69
|
spaceId,
|
|
61
|
-
typeSlug:
|
|
70
|
+
typeSlug: integ.type
|
|
62
71
|
});
|
|
63
72
|
const integrationForCheck = {
|
|
64
|
-
|
|
65
|
-
id,
|
|
66
|
-
type: row.type,
|
|
67
|
-
referenceId: row.referenceId,
|
|
68
|
-
label: row.label,
|
|
73
|
+
...integ,
|
|
69
74
|
connectionMethod: "credentials",
|
|
70
75
|
credentialId,
|
|
71
76
|
credentialVariant: resolvedVariant
|
|
72
77
|
};
|
|
73
78
|
const proxy = new IntegrationProxy({
|
|
74
79
|
credentialStore: store,
|
|
75
|
-
trelloApiKey: process.env.TRELLO_API_KEY,
|
|
76
80
|
integrationTypeConfigsRef: typeConfig ? { current: [typeConfig] } : void 0
|
|
77
81
|
});
|
|
78
82
|
const healthResult = await checkIntegrationHealth({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.post.mjs","sources":["../../../../../../../server/api/integrations/[id]/credentials.post.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credentials.post.mjs","sources":["../../../../../../../server/api/integrations/[id]/credentials.post.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,yBAAe,kBAAA,CAAmB,OAAO,KAAA,KAAU;AAfnD,EAAA,IAAA,EAAA,EAAA,EAAA;AAgBE,EAAA,MAAM,EAAA,GAAK,cAAA,CAAe,KAAA,EAAO,IAAI,CAAA;AACrC,EAAA,IAAI,CAAC,EAAA;AACH,IAAA,MAAM,YAAY,EAAE,UAAA,EAAY,GAAA,EAAK,aAAA,EAAe,kBAAkB,CAAA;AAExE,EAAA,MAAM,mBAAmB,2BAAA,EAA4B;AAErD,EAAA,MA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B,IAAI,EAAA,EAAI;AAAA,IACzC,gBAAA,EAAkB,aAAA;AAAA,IAClB,YAAA;AAAA,IACA,iBAAA,EAAmB;AAAA,GACpB,CAAA;AAED,EAAA,MAAM,UAAA,GAAa,MAAM,yBAAA,CAA0B;AAAA,IACjD,EAAA;AAAA,IACA,OAAA;AAAA,IACA,UAAU,KAAA,CAAM;AAAA,GACjB,CAAA;AAED,EAAA,MAAM,mBAAA,GAAuC;AAAA,IAC3C,GAAG,KAAA;AAAA,IACH,gBAAA,EAAkB,aAAA;AAAA,IAClB,YAAA;AAAA,IACA,iBAAA,EAAmB;AAAA,GACrB;AAEA,EAAA,MAAM,KAAA,GAAQ,IAAI,gBAAA,CAAiB;AAAA,IACjC,eAAA,EAAiB,KAAA;AAAA,IACjB,2BAA2B,UAAA,GACvB,EAAE,SAAS,CAAC,UAAU,GAAE,GACxB;AAAA,GACL,CAAA;AAED,EAAA,MAAM,YAAA,GAAe,MAAM,sBAAA,CAAuB;AAAA,IAChD,WAAA,EAAa,mBAAA;AAAA,IACb,KAAA;AAAA,IACA;AAAA,GACD,CAAA;AAGD,EAAA,MAAM,wBAAwB,EAAA,EAAI,EAAA,EAAI,YAAA,CAAa,MAAA,EAAQ,aAAa,SAAS,CAAA;AAEjF,EAAA,MAAM,eAAA,EAAgB;AAEtB,EAAA,OAAO;AAAA,IACL,EAAA,EAAI,IAAA;AAAA,IACJ,YAAA;AAAA,IACA,eAAe,YAAA,CAAa,MAAA;AAAA,IAC5B,iBAAA,EAAA,CAAmB,EAAA,GAAA,YAAA,CAAa,SAAA,KAAb,IAAA,GAAA,MAAA,GAAA,EAAA,CAAwB,WAAA;AAAA,GAC7C;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
2
|
-
import '
|
|
1
|
+
import { d as defineEventHandler, b as getRouterParam, c as createError, s as readBody, h as getDb, n as listIntegrations, v as upsertIntegration, r as refreshMcpState } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
-
import '
|
|
5
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import 'fastest-levenshtein';
|
|
7
|
-
import 'node:fs';
|
|
8
|
-
import 'node:path';
|
|
9
7
|
import 'node:url';
|
|
10
8
|
import 'node:vm';
|
|
11
9
|
import 'turndown';
|
|
12
10
|
import 'marked';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:fs/promises';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import 'node:fs';
|
|
13
17
|
import 'drizzle-orm';
|
|
14
18
|
import 'node:buffer';
|
|
15
19
|
import 'google-auth-library';
|
|
16
20
|
import 'node:http';
|
|
17
21
|
import 'node:https';
|
|
18
22
|
import 'node:events';
|
|
19
|
-
import 'node:os';
|
|
20
23
|
import 'better-sqlite3';
|
|
21
24
|
import 'drizzle-orm/better-sqlite3';
|
|
22
25
|
import 'drizzle-orm/node-postgres';
|
|
23
26
|
import 'pg';
|
|
27
|
+
import 'drizzle-orm/better-sqlite3/migrator';
|
|
28
|
+
import 'drizzle-orm/node-postgres/migrator';
|
|
29
|
+
import 'drizzle-orm/sqlite-core';
|
|
30
|
+
import 'drizzle-orm/pg-core';
|
|
24
31
|
import 'node:process';
|
|
25
32
|
import 'js-yaml';
|
|
26
33
|
import 'zod';
|
|
27
|
-
import 'drizzle-orm/sqlite-core';
|
|
28
|
-
import 'drizzle-orm/pg-core';
|
|
29
34
|
import '@iconify/utils';
|
|
30
35
|
import 'consola';
|
|
31
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.post.mjs","sources":["../../../../../../../server/api/integrations/[id]/permissions.post.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"perm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AEhI,EAAA,MAAM,iBAAA,CAAkB,IAAI,WAAW,CAAA;AACvC,EAAA,MAAM,eAAA,EAAgB;AAEtB,EAAA,OAAO,EAAE,EAAA,EAAI,IAAA,EAAM,QAAA,EAAA,CAAU,EAAA,GAAA,WAAA,CAAY,QAAA,KAAZ,IAAA,GAAA,EAAA,GAAwB,IAAA,EAAM,aAAA,EAAA,CAAe,EAAA,GAAA,WAAA,CAAY,aAAA,KAAZ,IAAA,GAAA,EAAA,GAA6B,IAAA,EAAK;AAC9G,CAAC,CAAA;;;;"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
2
|
-
import '
|
|
1
|
+
import { d as defineEventHandler, b as getRouterParam, c as createError, s as readBody, h as getDb, i as getIntegrationById, w as deleteToolDefinitionByName, r as refreshMcpState } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
-
import '
|
|
5
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import 'fastest-levenshtein';
|
|
7
|
-
import 'node:fs';
|
|
8
|
-
import 'node:path';
|
|
9
7
|
import 'node:url';
|
|
10
8
|
import 'node:vm';
|
|
11
9
|
import 'turndown';
|
|
12
10
|
import 'marked';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:fs/promises';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import 'node:fs';
|
|
13
17
|
import 'drizzle-orm';
|
|
14
18
|
import 'node:buffer';
|
|
15
19
|
import 'google-auth-library';
|
|
16
20
|
import 'node:http';
|
|
17
21
|
import 'node:https';
|
|
18
22
|
import 'node:events';
|
|
19
|
-
import 'node:os';
|
|
20
23
|
import 'better-sqlite3';
|
|
21
24
|
import 'drizzle-orm/better-sqlite3';
|
|
22
25
|
import 'drizzle-orm/node-postgres';
|
|
23
26
|
import 'pg';
|
|
27
|
+
import 'drizzle-orm/better-sqlite3/migrator';
|
|
28
|
+
import 'drizzle-orm/node-postgres/migrator';
|
|
29
|
+
import 'drizzle-orm/sqlite-core';
|
|
30
|
+
import 'drizzle-orm/pg-core';
|
|
24
31
|
import 'node:process';
|
|
25
32
|
import 'js-yaml';
|
|
26
33
|
import 'zod';
|
|
27
|
-
import 'drizzle-orm/sqlite-core';
|
|
28
|
-
import 'drizzle-orm/pg-core';
|
|
29
34
|
import '@iconify/utils';
|
|
30
35
|
import 'consola';
|
|
31
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.delete.mjs","sources":["../../../../../../../server/api/integrations/[id]/tools.delete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.delete.mjs","sources":["../../../../../../../server/api/integrations/[id]/tools.delete.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,qBAAe,kBAAA,CAAmB,OAAO,KAAA,KAAU;AACjD,EAAA,MAAM,EAAA,GAAK,cAAA,CAAe,KAAA,EAAO,IAAI,CAAA;AACrC,EAAA,IAAI,CAAC,EAAA;AACH,IAAA,MAAM,YAAY,EAAE,UAAA,EAAY,GAAA,EAAK,aAAA,EAAe,kBAAkB,CAAA;AAExE,EAAA,MAAM,IAAA,GAAO,MAAM,QAAA,CAAS,KAAK,CAAA;AACjC,EAAA,MAAM,OAAO,MAAA,CAAA,CAAO,IAAA,IAAA,IAAA,GAAA,MAAA,GAAA,IAAA,CAAM,IAAA,KAAQ,EAAE,EAAE,IAAA,EAAK;AAC3C,EAAA,IAAI,CAAC,IAAA;AACH,IAAA,MAAM,YAAY,EAAE,UAAA,EAAY,GAAA,EAAK,aAAA,EAAe,oBAAoB,CAAA;AAE1E,EAAA,MAAM,EAAA,GAAK,MAAM,KAAA,EAAM;AACvB,EAAA,MAAM,WAAA,GAAc,MAAM,kBAAA,CAAmB,EAAA,EAAI,EAAE,CAAA;AACnD,EAAA,IAAI,CAAC,WAAA;AACH,IAAA,MAAM,YAAY,EAAE,UAAA,EAAY,GAAA,EAAK,aAAA,EAAe,yBAAyB,CAAA;AAE/E,EAAA,MAAM,OAAA,GAAU,MAAM,0BAAA,CAA2B,EAAA,EAAI,YAAY,OAAA,IAAW,OAAA,EAAS,WAAA,CAAY,EAAA,EAAI,IAAI,CAAA;AACzG,EAAA,IAAI,OAAA;AACF,IAAA,MAAM,eAAA,EAAgB;AAExB,EAAA,OAAO,EAAE,EAAA,EAAI,IAAA,EAAM,OAAA,EAAS,UAAU,CAAA,EAAE;AAC1C,CAAC,CAAA;;;;"}
|
|
@@ -1,38 +1,46 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
2
|
-
import '
|
|
1
|
+
import { d as defineEventHandler, b as getRouterParam, c as createError, h as getDb, i as getIntegrationById, x as applyFileProcessingCapabilityToIntegration, g as getFileProcessingCapability, e as loadIntegrationToolList, y as listToolDefinitionsForIntegration } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
-
import '
|
|
5
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import 'fastest-levenshtein';
|
|
7
|
-
import 'node:fs';
|
|
8
|
-
import 'node:path';
|
|
9
7
|
import 'node:url';
|
|
10
8
|
import 'node:vm';
|
|
11
9
|
import 'turndown';
|
|
12
10
|
import 'marked';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:fs/promises';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import 'node:fs';
|
|
13
17
|
import 'drizzle-orm';
|
|
14
18
|
import 'node:buffer';
|
|
15
19
|
import 'google-auth-library';
|
|
16
20
|
import 'node:http';
|
|
17
21
|
import 'node:https';
|
|
18
22
|
import 'node:events';
|
|
19
|
-
import 'node:os';
|
|
20
23
|
import 'better-sqlite3';
|
|
21
24
|
import 'drizzle-orm/better-sqlite3';
|
|
22
25
|
import 'drizzle-orm/node-postgres';
|
|
23
26
|
import 'pg';
|
|
27
|
+
import 'drizzle-orm/better-sqlite3/migrator';
|
|
28
|
+
import 'drizzle-orm/node-postgres/migrator';
|
|
29
|
+
import 'drizzle-orm/sqlite-core';
|
|
30
|
+
import 'drizzle-orm/pg-core';
|
|
24
31
|
import 'node:process';
|
|
25
32
|
import 'js-yaml';
|
|
26
33
|
import 'zod';
|
|
27
|
-
import 'drizzle-orm/sqlite-core';
|
|
28
|
-
import 'drizzle-orm/pg-core';
|
|
29
34
|
import '@iconify/utils';
|
|
30
35
|
import 'consola';
|
|
31
36
|
|
|
37
|
+
const UNDERSCORE_RE = /_/g;
|
|
38
|
+
const WHITESPACE_RE = /\s+/g;
|
|
32
39
|
function humanizeName(s) {
|
|
33
|
-
return (s || "").replace(
|
|
40
|
+
return (s || "").replace(UNDERSCORE_RE, " ").split(WHITESPACE_RE).filter(Boolean).map((w) => w.length ? `${w[0].toUpperCase()}${w.slice(1).toLowerCase()}` : w).join(" ");
|
|
34
41
|
}
|
|
35
42
|
const tools_get = defineEventHandler(async (event) => {
|
|
43
|
+
var _a, _b, _c, _d;
|
|
36
44
|
const id = getRouterParam(event, "id");
|
|
37
45
|
if (!id)
|
|
38
46
|
throw createError({ statusCode: 400, statusMessage: "id is required" });
|
|
@@ -40,7 +48,16 @@ const tools_get = defineEventHandler(async (event) => {
|
|
|
40
48
|
const integration = await getIntegrationById(db, id);
|
|
41
49
|
if (!integration)
|
|
42
50
|
throw createError({ statusCode: 404, statusMessage: "Integration not found" });
|
|
43
|
-
const
|
|
51
|
+
const runtimeIntegration = applyFileProcessingCapabilityToIntegration(
|
|
52
|
+
integration,
|
|
53
|
+
await getFileProcessingCapability()
|
|
54
|
+
);
|
|
55
|
+
const builtIn = loadIntegrationToolList(runtimeIntegration.type, {
|
|
56
|
+
credentialVariant: (_a = runtimeIntegration.credentialVariant) != null ? _a : void 0,
|
|
57
|
+
toolsets: (_b = runtimeIntegration.enabledToolsets) != null ? _b : void 0,
|
|
58
|
+
maxScope: (_c = runtimeIntegration.maxScope) != null ? _c : void 0,
|
|
59
|
+
disabledTools: (_d = runtimeIntegration.disabledTools) != null ? _d : void 0
|
|
60
|
+
});
|
|
44
61
|
const customDefs = await listToolDefinitionsForIntegration(db, integration.spaceId || "local", integration.id);
|
|
45
62
|
const custom = customDefs.map((def) => ({
|
|
46
63
|
name: def.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.get.mjs","sources":["../../../../../../../server/api/integrations/[id]/tools.get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.get.mjs","sources":["../../../../../../../server/api/integrations/[id]/tools.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAM,aAAA,GAAgB,IAAA;AACtB,MAAM,aAAA,GAAgB,MAAA;AAItB,SAAS,aAAa,CAAA,EAAmB;AACvC,EAAA,OAAA,CAAQ,CAAA,IAAK,EAAA,EACV,OAAA,CAAQ,aAAA,EAAe,GAAG,CAAA,CAC1B,KAAA,CAAM,aAAa,CAAA,CACnB,MAAA,CAAO,OAAO,CAAA,CACd,GAAA,CAAI,OAAM,CAAA,CAAE,MAAA,GAAS,CAAA,EAAG,CAAA,CAAE,CAAC,CAAA,CAAG,WAAA,EAAa,GAAG,CAAA,CAAE,KAAA,CAAM,CAAC,CAAA,CAAE,aAAa,CAAA,CAAA,GAAK,CAAE,CAAA,CAC7E,KAAK,GAAG,CAAA;AACb;AAEA,kBAAe,kBAAA,CAAmB,OAAO,KAAA,KAA+B;AAzBxE,EAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA;AA0BE,EAAA,MAAM,EAAA,GAAK,cAAA,CAA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AAa,IAAI,IAAI,CAAA;AAAA,IACrD,aAAa,GAAA,CAAI,WAAA;AAAA,IACjB,OAAO,GAAA,CAAI,KAAA;AAAA,IACX,OAAA,EAAS,QAAA;AAAA,IACT,MAAA,EAAQ;AAAA,GACV,CAAE,CAAA;AACF,EAAA,OAAO,CAAC,GAAG,OAAA,EAAS,GAAG,MAAM,CAAA;AAC/B,CAAC,CAAA;;;;"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
2
|
-
import '
|
|
1
|
+
import { d as defineEventHandler, b as getRouterParam, c as createError, h as getDb, i as getIntegrationById, f as loadIntegrationToolsets, y as listToolDefinitionsForIntegration } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
-
import '
|
|
5
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import 'fastest-levenshtein';
|
|
7
|
-
import 'node:fs';
|
|
8
|
-
import 'node:path';
|
|
9
7
|
import 'node:url';
|
|
10
8
|
import 'node:vm';
|
|
11
9
|
import 'turndown';
|
|
12
10
|
import 'marked';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:fs/promises';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import 'node:fs';
|
|
13
17
|
import 'drizzle-orm';
|
|
14
18
|
import 'node:buffer';
|
|
15
19
|
import 'google-auth-library';
|
|
16
20
|
import 'node:http';
|
|
17
21
|
import 'node:https';
|
|
18
22
|
import 'node:events';
|
|
19
|
-
import 'node:os';
|
|
20
23
|
import 'better-sqlite3';
|
|
21
24
|
import 'drizzle-orm/better-sqlite3';
|
|
22
25
|
import 'drizzle-orm/node-postgres';
|
|
23
26
|
import 'pg';
|
|
27
|
+
import 'drizzle-orm/better-sqlite3/migrator';
|
|
28
|
+
import 'drizzle-orm/node-postgres/migrator';
|
|
29
|
+
import 'drizzle-orm/sqlite-core';
|
|
30
|
+
import 'drizzle-orm/pg-core';
|
|
24
31
|
import 'node:process';
|
|
25
32
|
import 'js-yaml';
|
|
26
33
|
import 'zod';
|
|
27
|
-
import 'drizzle-orm/sqlite-core';
|
|
28
|
-
import 'drizzle-orm/pg-core';
|
|
29
34
|
import '@iconify/utils';
|
|
30
35
|
import 'consola';
|
|
31
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolsets.get.mjs","sources":["../../../../../../../server/api/integrations/[id]/toolsets.get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolsets.get.mjs","sources":["../../../../../../../server/api/integrations/[id]/toolsets.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,qBAAe,kBAAA,CAAmB,OAAO,KAAA,KAAU;AAJnD,EAAA,IAAA,EAAA;AAKE,EAAA,MAAM,EAAA,GAAK,cAAA,CAAe,KAAA,EAAO,IAAI,CAAA;AACrC,EAAA,IAAI,CAAC,EAAA;AACH,IAAA,MAAM,YAAY,EAAE,UAAA,EAAY,GAAA,EAAK,aAAA,EAAe,kBAAkB,CAAA;AAExE,EAAA,MAAM,EAAA,GAAK,MAAM,KAAA,EAAM;AACvB,EAAA,MAAM,WAAA,GAAc,MAAM,kBAAA,CAAmB,EAAA,EAAI,EAAE,CAAA;AACnD,EAAA,IAAI,CAAC,WAAA;AACH,IAAA,MAAM,YAAY,EAAE,UAAA,EAAY,GAAA,EAAK,aAAA,EAAe,yBAAyB,CAAA;AAE/E,EAAA,MAAM,YAAW,EAAA,GAAA,uBAAA,CAAwB,WAAA,CAAY,IAAI,CAAA,KAAxC,YAA6C,EAAC;AAC/D,EAAA,MAAM,UAAA,GAAa,MAAM,iCAAA,CAAkC,EAAA,EAAI,YAAY,OAAA,IAAW,OAAA,EAAS,YAAY,EAAE,CAAA;AAC7G,EAAA,IAAI,WAAW,MAAA,EAAQ;AACrB,IAAA,QAAA,CAAS,MAAA,GAAS;AAAA,MAChB,KAAA,EAAO,cAAA;AAAA,MACP,WAAA,EAAa,CAAA,wBAAA,EAA2B,WAAA,CAAY,KAAK,CAAA;AAAA,KAC3D;AAAA,EACF;AACA,EAAA,OAAO,QAAA;AACT,CAAC,CAAA;;;;"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
2
|
-
import '
|
|
1
|
+
import { d as defineEventHandler, b as getRouterParam, c as createError, s as readBody, h as getDb, n as listIntegrations, v as upsertIntegration, r as refreshMcpState } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
-
import '
|
|
5
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import 'fastest-levenshtein';
|
|
7
|
-
import 'node:fs';
|
|
8
|
-
import 'node:path';
|
|
9
7
|
import 'node:url';
|
|
10
8
|
import 'node:vm';
|
|
11
9
|
import 'turndown';
|
|
12
10
|
import 'marked';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:fs/promises';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import 'node:fs';
|
|
13
17
|
import 'drizzle-orm';
|
|
14
18
|
import 'node:buffer';
|
|
15
19
|
import 'google-auth-library';
|
|
16
20
|
import 'node:http';
|
|
17
21
|
import 'node:https';
|
|
18
22
|
import 'node:events';
|
|
19
|
-
import 'node:os';
|
|
20
23
|
import 'better-sqlite3';
|
|
21
24
|
import 'drizzle-orm/better-sqlite3';
|
|
22
25
|
import 'drizzle-orm/node-postgres';
|
|
23
26
|
import 'pg';
|
|
27
|
+
import 'drizzle-orm/better-sqlite3/migrator';
|
|
28
|
+
import 'drizzle-orm/node-postgres/migrator';
|
|
29
|
+
import 'drizzle-orm/sqlite-core';
|
|
30
|
+
import 'drizzle-orm/pg-core';
|
|
24
31
|
import 'node:process';
|
|
25
32
|
import 'js-yaml';
|
|
26
33
|
import 'zod';
|
|
27
|
-
import 'drizzle-orm/sqlite-core';
|
|
28
|
-
import 'drizzle-orm/pg-core';
|
|
29
34
|
import '@iconify/utils';
|
|
30
35
|
import 'consola';
|
|
31
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolsets.post.mjs","sources":["../../../../../../../server/api/integrations/[id]/toolsets.post.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolsets.post.mjs","sources":["../../../../../../../server/api/integrations/[id]/toolsets.post.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,sBAAe,kBAAA,CAAmB,OAAO,KAAA,KAAU;AALnD,EAAA,IAAA,EAAA;AAME,EAAA,MAAM,EAAA,GAAK,cAAA,CAAe,KAAA,EAAO,IAAI,CAAA;AACrC,EAAA,IAAI,CAAC,EAAA;AACH,IAAA,MAAM,YAAY,EAAE,UAAA,EAAY,GAAA,EAAK,aAAA,EAAe,kBAAkB,CAAA;AAExE,EAAA,MAAM,IAAA,GAAO,MAAM,QAAA,CAAS,KAAK,CAAA;AACjC,EAAA,IAAI,CAAC,KAAA,CAAM,OAAA,CAAQ,IAAA,IAAA,IAAA,GAAA,MAAA,GAAA,IAAA,CAAM,eAAe,CAAA;AACtC,IAAA,MAAM,YAAY,EAAE,UAAA,EAAY,GAAA,EAAK,aAAA,EAAe,oCAAoC,CAAA;AAE1F,EAAA,MAAM,EAAA,GAAK,MAAM,KAAA,EAAM;AACvB,EAAA,MAAM,WAAW,OAAA,CAAQ,GAAA,CAAI,oBAAA,IAAwB,OAAA,EAAS,MAAK,IAAK,OAAA;AACxE,EAAA,MAAM,YAAA,GAAe,MAAM,gBAAA,CAAiB,EAAA,EAAI,OAAO,CAAA;AACvD,EAAA,MAAM,cAAc,YAAA,CAAa,IAAA,CAAK,CAAA,CAAA,KAAK,CAAA,CAAE,OAAO,EAAE,CAAA;AACtD,EAAA,IAAI,CAAC,WAAA;AACH,IAAA,MAAM,YAAY,EAAE,UAAA,EAAY,GAAA,EAAK,aAAA,EAAe,yBAAyB,CAAA;AAG/E,EAAA,WAAA,CAAY,kBAAkB,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,eAAe,KAAK,IAAA,CAAK,eAAA,CAAgB,MAAA,GACtF,IAAA,CAAK,gBAAgB,GAAA,CAAI,CAAC,UAAmB,MAAA,CAAO,KAAK,CAAC,CAAA,GAC1D,IAAA;AACJ,EAAA,MAAM,iBAAA,CAAkB,IAAI,WAAW,CAAA;AACvC,EAAA,MAAM,eAAA,EAAgB;AAEtB,EAAA,OAAO,EAAE,EAAA,EAAI,IAAA,EAAM,kBAAiB,EAAA,GAAA,WAAA,CAAY,eAAA,KAAZ,YAA+B,IAAA,EAAK;AAC1E,CAAC,CAAA;;;;"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
2
|
-
import '
|
|
1
|
+
import { d as defineEventHandler, b as getRouterParam, h as getDb, i as getIntegrationById, j as deleteToolDefinitionsForIntegration, S as SqlCredentialStore, k as getOrCreateEncryptionSecret, m as deleteIntegrationById, n as listIntegrations, o as deleteIntegrationTypeConfig, r as refreshMcpState } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
-
import '
|
|
5
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import 'fastest-levenshtein';
|
|
7
|
-
import 'node:fs';
|
|
8
|
-
import 'node:path';
|
|
9
7
|
import 'node:url';
|
|
10
8
|
import 'node:vm';
|
|
11
9
|
import 'turndown';
|
|
12
10
|
import 'marked';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:fs/promises';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import 'node:fs';
|
|
13
17
|
import 'drizzle-orm';
|
|
14
18
|
import 'node:buffer';
|
|
15
19
|
import 'google-auth-library';
|
|
16
20
|
import 'node:http';
|
|
17
21
|
import 'node:https';
|
|
18
22
|
import 'node:events';
|
|
19
|
-
import 'node:os';
|
|
20
23
|
import 'better-sqlite3';
|
|
21
24
|
import 'drizzle-orm/better-sqlite3';
|
|
22
25
|
import 'drizzle-orm/node-postgres';
|
|
23
26
|
import 'pg';
|
|
27
|
+
import 'drizzle-orm/better-sqlite3/migrator';
|
|
28
|
+
import 'drizzle-orm/node-postgres/migrator';
|
|
29
|
+
import 'drizzle-orm/sqlite-core';
|
|
30
|
+
import 'drizzle-orm/pg-core';
|
|
24
31
|
import 'node:process';
|
|
25
32
|
import 'js-yaml';
|
|
26
33
|
import 'zod';
|
|
27
|
-
import 'drizzle-orm/sqlite-core';
|
|
28
|
-
import 'drizzle-orm/pg-core';
|
|
29
34
|
import '@iconify/utils';
|
|
30
35
|
import 'consola';
|
|
31
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_id_.delete.mjs","sources":["../../../../../../server/api/integrations/[id].delete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_id_.delete.mjs","sources":["../../../../../../server/api/integrations/[id].delete.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,oBAAe,kBAAA,CAAmB,OAAO,KAAA,KAAU;AACjD,EAAA,MAAM,EAAA,GAAK,cAAA,CAAe,KAAA,EAAO,IAAI,CAAA;AACrC,EAAA,IAAI,CAAC,EAAA;AACH,IAAA,OAAO,EAAE,IAAI,IAAA,EAAK;AAEpB,EAAA,MAAM,EAAA,GAAK,MAAM,KAAA,EAAM;AACvB,EA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4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
-
import '
|
|
5
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import 'fastest-levenshtein';
|
|
7
|
-
import 'node:fs';
|
|
8
|
-
import 'node:path';
|
|
9
7
|
import 'node:url';
|
|
10
8
|
import 'node:vm';
|
|
11
9
|
import 'turndown';
|
|
12
10
|
import 'marked';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:fs/promises';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import 'node:fs';
|
|
13
17
|
import 'drizzle-orm';
|
|
14
18
|
import 'node:buffer';
|
|
15
19
|
import 'google-auth-library';
|
|
16
20
|
import 'node:http';
|
|
17
21
|
import 'node:https';
|
|
18
22
|
import 'node:events';
|
|
19
|
-
import 'node:os';
|
|
20
23
|
import 'better-sqlite3';
|
|
21
24
|
import 'drizzle-orm/better-sqlite3';
|
|
22
25
|
import 'drizzle-orm/node-postgres';
|
|
23
26
|
import 'pg';
|
|
27
|
+
import 'drizzle-orm/better-sqlite3/migrator';
|
|
28
|
+
import 'drizzle-orm/node-postgres/migrator';
|
|
29
|
+
import 'drizzle-orm/sqlite-core';
|
|
30
|
+
import 'drizzle-orm/pg-core';
|
|
24
31
|
import 'node:process';
|
|
25
32
|
import 'js-yaml';
|
|
26
33
|
import 'zod';
|
|
27
|
-
import 'drizzle-orm/sqlite-core';
|
|
28
|
-
import 'drizzle-orm/pg-core';
|
|
29
34
|
import '@iconify/utils';
|
|
30
35
|
import 'consola';
|
|
31
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.get.mjs","sources":["../../../../server/routes/health.get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"health.get.mjs","sources":["../../../../server/routes/health.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,mBAAe,mBAAmB,MAAM;AACtC,EAAA,OAAO,EAAE,IAAI,IAAA,EAAK;AACpB,CAAC,CAAA;;;;"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
2
|
-
import '
|
|
1
|
+
import { d as defineEventHandler, s as readBody, z as handleMcpHttp, A as setResponseStatus } from '../../nitro/nitro.mjs';
|
|
2
|
+
import 'node:crypto';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
-
import '
|
|
5
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
import 'fastest-levenshtein';
|
|
7
|
-
import 'node:fs';
|
|
8
|
-
import 'node:path';
|
|
9
7
|
import 'node:url';
|
|
10
8
|
import 'node:vm';
|
|
11
9
|
import 'turndown';
|
|
12
10
|
import 'marked';
|
|
11
|
+
import 'node:util';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:fs/promises';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import 'node:os';
|
|
16
|
+
import 'node:fs';
|
|
13
17
|
import 'drizzle-orm';
|
|
14
18
|
import 'node:buffer';
|
|
15
19
|
import 'google-auth-library';
|
|
16
20
|
import 'node:http';
|
|
17
21
|
import 'node:https';
|
|
18
22
|
import 'node:events';
|
|
19
|
-
import 'node:os';
|
|
20
23
|
import 'better-sqlite3';
|
|
21
24
|
import 'drizzle-orm/better-sqlite3';
|
|
22
25
|
import 'drizzle-orm/node-postgres';
|
|
23
26
|
import 'pg';
|
|
27
|
+
import 'drizzle-orm/better-sqlite3/migrator';
|
|
28
|
+
import 'drizzle-orm/node-postgres/migrator';
|
|
29
|
+
import 'drizzle-orm/sqlite-core';
|
|
30
|
+
import 'drizzle-orm/pg-core';
|
|
24
31
|
import 'node:process';
|
|
25
32
|
import 'js-yaml';
|
|
26
33
|
import 'zod';
|
|
27
|
-
import 'drizzle-orm/sqlite-core';
|
|
28
|
-
import 'drizzle-orm/pg-core';
|
|
29
34
|
import '@iconify/utils';
|
|
30
35
|
import 'consola';
|
|
31
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.mjs","sources":["../../../../../server/routes/mcp/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.mjs","sources":["../../../../../server/routes/mcp/create.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,eAAe,kBAAA,CAAmB,OAAO,KAAA,KAAU;AAHnD,EAAA,IAAA,EAAA,EAAA,EAAA;AAIE,EAAA,MAAM,MAAA,GAAS,KAAA,CAAM,IAAA,CAAK,GAAA,CAAI,MAAA,IAAU,KAAA;AACxC,EAAA,MAAM,OAAO,MAAA,KAAW,MAAA,GAAS,MAAM,QAAA,CAAS,KAAK,CAAA,GAAI,MAAA;AAEzD,EAAA,MAAM,MAAA,GAAS,MAAM,aAAA,CAAc;AAAA,IACjC,OAAA,EAAS,MAAM,IAAA,CAAK,GAAA;AAAA,IACpB,OAAA,EAAS,MAAM,IAAA,CAAK,GAAA;AAAA,IACpB,IAAA;AAAA,IACA,QAAA,EAAU,QAAA;AAAA,IACV,eAAc,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAM,OAAA,CAAQ,IAAA,KAAd,IAAA,GAAA,MAAA,GAAA,EAAA,CAAoB,aAApB,IAAA,GAAA,EAAA,GAAgC;AAAA,GAC/C,CAAA;AAED,EAAA,IAAI,MAAA,CAAO,SAAS,SAAA,EAAW;AAC7B,IAAA,KAAA,CAAM,QAAA,GAAW,IAAA;AACjB,IAAA;AAAA,EACF;AAEA,EAAA,iBAAA,CAAkB,KAAA,EAAO,OAAO,UAAU,CAAA;AAC1C,EAAA,OAAO;AAAA,IACL,OAAA,EAAS,KAAA;AAAA,IACT,OAAO,EAAE,IAAA,EAAM,KAAA,EAAQ,OAAA,EAAS,OAAO,OAAA,EAAQ;AAAA,IAC/C,EAAA,EAAI;AAAA,GACN;AACF,CAAC,CAAA;;;;"}
|