@commandable/mcp 0.1.2 → 0.2.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/app → .output}/nitro.json +1 -1
- package/{dist/app/public/_nuxt/-tOYwuj2.js → .output/public/_nuxt/B04gGCnx.js} +3 -3
- package/{dist/app/public/_nuxt/D-43HurL.js → .output/public/_nuxt/B2dAlp_u.js} +8 -8
- package/.output/public/_nuxt/Ba0BY0O0.js +1 -0
- package/.output/public/_nuxt/BvFUCPqA.js +1 -0
- package/{dist/app/public/_nuxt/BdctKXor.js → .output/public/_nuxt/Dm_hd4at.js} +1 -1
- package/{dist/app/public/_nuxt/BlP7Uu-5.js → .output/public/_nuxt/S2P9sd4n.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/ee5097c4-b785-4b77-92d6-c16a7396d677.json +1 -0
- package/{dist/app/public/_nuxt/CsbkV5Bd.js → .output/public/_nuxt/d2XTSFt9.js} +1 -1
- package/{dist/app/server/chunks/build/_id_-DBwSV4AY.mjs → .output/server/chunks/build/_id_-Bnxenh08.mjs} +7 -7
- package/{dist/app/server/chunks/build/_id_-DBwSV4AY.mjs.map → .output/server/chunks/build/_id_-Bnxenh08.mjs.map} +1 -1
- package/{dist/app → .output}/server/chunks/build/client.precomputed.mjs +1 -1
- package/{dist/app/server/chunks/build/fetch-ZbqIFhDG.mjs → .output/server/chunks/build/fetch-BmYZnj75.mjs} +58 -6
- package/.output/server/chunks/build/fetch-BmYZnj75.mjs.map +1 -0
- package/{dist/app/server/chunks/build/index-C8flTcKI.mjs → .output/server/chunks/build/index-CL-Gkd-Y.mjs} +4 -4
- package/.output/server/chunks/build/index-CL-Gkd-Y.mjs.map +1 -0
- package/{dist/app → .output}/server/chunks/build/server.mjs +3 -3
- package/{dist/app → .output}/server/chunks/nitro/nitro.mjs +417 -204
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/{dist/app → .output}/server/chunks/routes/api/index.get.mjs +1 -1
- package/{dist/app → .output}/server/chunks/routes/api/index.post.mjs +1 -1
- package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials-config.get.mjs +1 -1
- package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials-status.get.mjs +1 -1
- package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials.delete.mjs +1 -1
- package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials.post.mjs +1 -1
- package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/permissions.post.mjs +1 -1
- package/.output/server/chunks/routes/api/integrations/_id/tools.delete.mjs +51 -0
- package/.output/server/chunks/routes/api/integrations/_id/tools.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/integrations/_id/tools.get.mjs +57 -0
- package/.output/server/chunks/routes/api/integrations/_id/tools.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/integrations/_id/toolsets.get.mjs +53 -0
- package/.output/server/chunks/routes/api/integrations/_id/toolsets.get.mjs.map +1 -0
- package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/toolsets.post.mjs +1 -1
- package/.output/server/chunks/routes/api/integrations/_id_.delete.mjs +55 -0
- package/.output/server/chunks/routes/api/integrations/_id_.delete.mjs.map +1 -0
- package/{dist/app → .output}/server/chunks/routes/mcp/create.mjs +1 -1
- package/{dist/app → .output}/server/chunks/routes/mcp.mjs +1 -1
- package/{dist/app → .output}/server/chunks/routes/renderer.mjs +1 -1
- package/{dist/app → .output}/server/index.mjs +1 -1
- package/{dist/app → .output}/server/package.json +2 -2
- package/LICENSE +17 -6
- package/README.md +32 -32
- package/bin/cli.mjs +552 -0
- package/bin/commandable-mcp.mjs +8 -0
- package/package.json +30 -40
- package/dist/app/public/_nuxt/DU1mG77A.js +0 -1
- package/dist/app/public/_nuxt/builds/latest.json +0 -1
- package/dist/app/public/_nuxt/builds/meta/b13ec2b2-ddd3-4ead-abd4-4fba9dfc0061.json +0 -1
- package/dist/app/public/_nuxt/uS7FY2am.js +0 -1
- package/dist/app/server/chunks/build/fetch-ZbqIFhDG.mjs.map +0 -1
- package/dist/app/server/chunks/build/index-C8flTcKI.mjs.map +0 -1
- package/dist/app/server/chunks/nitro/nitro.mjs.map +0 -1
- package/dist/app/server/chunks/routes/api/integrations/_id_.delete.mjs +0 -44
- package/dist/app/server/chunks/routes/api/integrations/_id_.delete.mjs.map +0 -1
- package/dist/app/server/migrations/pg/0000_initial.sql +0 -74
- package/dist/app/server/migrations/pg/meta/_journal.json +0 -13
- package/dist/app/server/migrations/sqlite/0000_initial.sql +0 -74
- package/dist/app/server/migrations/sqlite/meta/_journal.json +0 -13
- package/dist/cli/bin.d.ts +0 -3
- package/dist/cli/bin.d.ts.map +0 -1
- package/dist/cli/bin.js +0 -7
- package/dist/cli/bin.js.map +0 -1
- package/dist/cli/credentialManager.d.ts +0 -19
- package/dist/cli/credentialManager.d.ts.map +0 -1
- package/dist/cli/credentialManager.js +0 -82
- package/dist/cli/credentialManager.js.map +0 -1
- package/dist/cli/index.d.ts +0 -17
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -818
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/setup.d.ts +0 -3
- package/dist/cli/setup.d.ts.map +0 -1
- package/dist/cli/setup.js +0 -353
- package/dist/cli/setup.js.map +0 -1
- package/dist/config/configApply.d.ts +0 -16
- package/dist/config/configApply.d.ts.map +0 -1
- package/dist/config/configApply.js +0 -77
- package/dist/config/configApply.js.map +0 -1
- package/dist/config/configLoader.d.ts +0 -9
- package/dist/config/configLoader.d.ts.map +0 -1
- package/dist/config/configLoader.js +0 -75
- package/dist/config/configLoader.js.map +0 -1
- package/dist/config/configSchema.d.ts +0 -45
- package/dist/config/configSchema.d.ts.map +0 -1
- package/dist/config/configSchema.js +0 -23
- package/dist/config/configSchema.js.map +0 -1
- package/dist/crypto/encryption.d.ts +0 -3
- package/dist/crypto/encryption.d.ts.map +0 -1
- package/dist/crypto/encryption.js +0 -29
- package/dist/crypto/encryption.js.map +0 -1
- package/dist/db/client.d.ts +0 -24
- package/dist/db/client.d.ts.map +0 -1
- package/dist/db/client.js +0 -50
- package/dist/db/client.js.map +0 -1
- package/dist/db/credentialStore.d.ts +0 -15
- package/dist/db/credentialStore.d.ts.map +0 -1
- package/dist/db/credentialStore.js +0 -56
- package/dist/db/credentialStore.js.map +0 -1
- package/dist/db/integrationStore.d.ts +0 -12
- package/dist/db/integrationStore.d.ts.map +0 -1
- package/dist/db/integrationStore.js +0 -111
- package/dist/db/integrationStore.js.map +0 -1
- package/dist/db/integrationTypeConfigStore.d.ts +0 -6
- package/dist/db/integrationTypeConfigStore.d.ts.map +0 -1
- package/dist/db/integrationTypeConfigStore.js +0 -94
- package/dist/db/integrationTypeConfigStore.js.map +0 -1
- package/dist/db/migrate.d.ts +0 -3
- package/dist/db/migrate.d.ts.map +0 -1
- package/dist/db/migrate.js +0 -11
- package/dist/db/migrate.js.map +0 -1
- package/dist/db/migrations/pg/0000_initial.sql +0 -74
- package/dist/db/migrations/pg/meta/_journal.json +0 -13
- package/dist/db/migrations/sqlite/0000_initial.sql +0 -74
- package/dist/db/migrations/sqlite/meta/_journal.json +0 -13
- package/dist/db/schema.d.ts +0 -1863
- package/dist/db/schema.d.ts.map +0 -1
- package/dist/db/schema.js +0 -133
- package/dist/db/schema.js.map +0 -1
- package/dist/db/toolDefinitionStore.d.ts +0 -6
- package/dist/db/toolDefinitionStore.d.ts.map +0 -1
- package/dist/db/toolDefinitionStore.js +0 -95
- package/dist/db/toolDefinitionStore.js.map +0 -1
- package/dist/errors/httpError.d.ts +0 -6
- package/dist/errors/httpError.d.ts.map +0 -1
- package/dist/errors/httpError.js +0 -11
- package/dist/errors/httpError.js.map +0 -1
- package/dist/index.d.ts +0 -32
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -32
- package/dist/index.js.map +0 -1
- package/dist/integrations/actionsFactory.d.ts +0 -16
- package/dist/integrations/actionsFactory.d.ts.map +0 -1
- package/dist/integrations/actionsFactory.js +0 -98
- package/dist/integrations/actionsFactory.js.map +0 -1
- package/dist/integrations/catalog.d.ts +0 -8
- package/dist/integrations/catalog.d.ts.map +0 -1
- package/dist/integrations/catalog.js +0 -45
- package/dist/integrations/catalog.js.map +0 -1
- package/dist/integrations/customToolFactory.d.ts +0 -13
- package/dist/integrations/customToolFactory.d.ts.map +0 -1
- package/dist/integrations/customToolFactory.js +0 -31
- package/dist/integrations/customToolFactory.js.map +0 -1
- package/dist/integrations/dataLoader.d.ts +0 -3
- package/dist/integrations/dataLoader.d.ts.map +0 -1
- package/dist/integrations/dataLoader.js +0 -2
- package/dist/integrations/dataLoader.js.map +0 -1
- package/dist/integrations/fileIntegrationTypeConfigStore.d.ts +0 -7
- package/dist/integrations/fileIntegrationTypeConfigStore.d.ts.map +0 -1
- package/dist/integrations/fileIntegrationTypeConfigStore.js +0 -34
- package/dist/integrations/fileIntegrationTypeConfigStore.js.map +0 -1
- package/dist/integrations/getIntegration.d.ts +0 -14
- package/dist/integrations/getIntegration.d.ts.map +0 -1
- package/dist/integrations/getIntegration.js +0 -30
- package/dist/integrations/getIntegration.js.map +0 -1
- package/dist/integrations/googleServiceAccount.d.ts +0 -6
- package/dist/integrations/googleServiceAccount.d.ts.map +0 -1
- package/dist/integrations/googleServiceAccount.js +0 -54
- package/dist/integrations/googleServiceAccount.js.map +0 -1
- package/dist/integrations/health.d.ts +0 -20
- package/dist/integrations/health.d.ts.map +0 -1
- package/dist/integrations/health.js +0 -43
- package/dist/integrations/health.js.map +0 -1
- package/dist/integrations/integrationTypeConfigLookup.d.ts +0 -12
- package/dist/integrations/integrationTypeConfigLookup.d.ts.map +0 -1
- package/dist/integrations/integrationTypeConfigLookup.js +0 -11
- package/dist/integrations/integrationTypeConfigLookup.js.map +0 -1
- package/dist/integrations/providerRegistry.d.ts +0 -2
- package/dist/integrations/providerRegistry.d.ts.map +0 -1
- package/dist/integrations/providerRegistry.js +0 -72
- package/dist/integrations/providerRegistry.js.map +0 -1
- package/dist/integrations/proxy.d.ts +0 -19
- package/dist/integrations/proxy.d.ts.map +0 -1
- package/dist/integrations/proxy.js +0 -377
- package/dist/integrations/proxy.js.map +0 -1
- package/dist/integrations/sandbox.d.ts +0 -8
- package/dist/integrations/sandbox.d.ts.map +0 -1
- package/dist/integrations/sandbox.js +0 -221
- package/dist/integrations/sandbox.js.map +0 -1
- package/dist/integrations/sandboxUtils.d.ts +0 -15
- package/dist/integrations/sandboxUtils.d.ts.map +0 -1
- package/dist/integrations/sandboxUtils.js +0 -489
- package/dist/integrations/sandboxUtils.js.map +0 -1
- package/dist/integrations/tools.d.ts +0 -3
- package/dist/integrations/tools.d.ts.map +0 -1
- package/dist/integrations/tools.js +0 -70
- package/dist/integrations/tools.js.map +0 -1
- package/dist/mcp/abilityCatalog.d.ts +0 -46
- package/dist/mcp/abilityCatalog.d.ts.map +0 -1
- package/dist/mcp/abilityCatalog.js +0 -275
- package/dist/mcp/abilityCatalog.js.map +0 -1
- package/dist/mcp/auth.d.ts +0 -18
- package/dist/mcp/auth.d.ts.map +0 -1
- package/dist/mcp/auth.js +0 -45
- package/dist/mcp/auth.js.map +0 -1
- package/dist/mcp/builder_guide.md +0 -441
- package/dist/mcp/commandable_readme.md +0 -29
- package/dist/mcp/handlers.d.ts +0 -21
- package/dist/mcp/handlers.d.ts.map +0 -1
- package/dist/mcp/handlers.js +0 -86
- package/dist/mcp/handlers.js.map +0 -1
- package/dist/mcp/metaTools.d.ts +0 -77
- package/dist/mcp/metaTools.d.ts.map +0 -1
- package/dist/mcp/metaTools.js +0 -753
- package/dist/mcp/metaTools.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -25
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -14
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/sessionState.d.ts +0 -18
- package/dist/mcp/sessionState.d.ts.map +0 -1
- package/dist/mcp/sessionState.js +0 -65
- package/dist/mcp/sessionState.js.map +0 -1
- package/dist/mcp/toolAdapter.d.ts +0 -34
- package/dist/mcp/toolAdapter.d.ts.map +0 -1
- package/dist/mcp/toolAdapter.js +0 -24
- package/dist/mcp/toolAdapter.js.map +0 -1
- package/dist/types.d.ts +0 -92
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -7
- package/dist/version.js.map +0 -1
- /package/{dist/app → .output}/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
- /package/{dist/app → .output}/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
- /package/{dist/app → .output}/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
- /package/{dist/app → .output}/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
- /package/{dist/app → .output}/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
- /package/{dist/app → .output}/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
- /package/{dist/app → .output}/public/_nuxt/_id_.BKAjWkoP.css +0 -0
- /package/{dist/app → .output}/public/_nuxt/entry.Y3mA4bzA.css +0 -0
- /package/{dist/app → .output}/public/_nuxt/error-404.C7fg894-.css +0 -0
- /package/{dist/app → .output}/public/_nuxt/error-500.DjUK_N2Y.css +0 -0
- /package/{dist/app → .output}/public/favicon.ico +0 -0
- /package/{dist/app → .output}/server/chunks/_/error-500.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/_/error-500.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/_/icons.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/_/icons.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/_/icons2.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/_/icons2.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/build/IntegrationCredentials-styles.CULcCK6_.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/build/IntegrationCredentials-styles.CULcCK6_.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/build/client.precomputed.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/build/error-404-D2QibUBT.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/build/error-404-D2QibUBT.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/build/error-404-styles.Bvxdxqjk.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/build/error-404-styles.Bvxdxqjk.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/build/error-500-DYvawybF.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/build/error-500-DYvawybF.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/build/error-500-styles.BnYAAXSg.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/build/error-500-styles.BnYAAXSg.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/build/index-5H-nmhph.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/build/index-5H-nmhph.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/build/server.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/build/styles.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/build/styles.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/_commandable/status.get.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/_commandable/status.get.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/catalog/_type/tools.get.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/catalog/_type/tools.get.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/catalog/_type/toolsets.get.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/catalog/_type/toolsets.get.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/catalog.get.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/catalog.get.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/index.get.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/index.post.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials-config.get.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials-status.get.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials.delete.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials.post.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/permissions.post.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/toolsets.post.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/health.get.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/routes/health.get.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/mcp/create.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/mcp.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/routes/renderer.mjs.map +0 -0
- /package/{dist/app → .output}/server/chunks/virtual/_virtual_spa-template.mjs +0 -0
- /package/{dist/app → .output}/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -0
- /package/{dist/app → .output}/server/index.mjs.map +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nitro.mjs","sources":["../../../../../node_modules/destr/dist/index.mjs","../../../../../node_modules/ufo/dist/index.mjs","../../../../../node_modules/radix3/dist/index.mjs","../../../../../node_modules/defu/dist/defu.mjs","../../../../../node_modules/node-mock-http/dist/index.mjs","../../../../../node_modules/h3/dist/index.mjs","../../../../../node_modules/hookable/dist/index.mjs","../../../../../node_modules/node-fetch-native/dist/native.mjs","../../../../../node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../node_modules/ofetch/dist/node.mjs","../../../../../node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../node_modules/unstorage/dist/index.mjs","../../../../../node_modules/unstorage/drivers/utils/index.mjs","../../../../../node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../node_modules/unstorage/drivers/fs-lite.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs","../../../../../node_modules/ohash/dist/crypto/node/index.mjs","../../../../../node_modules/ohash/dist/index.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../node_modules/klona/dist/index.mjs","../../../../../node_modules/@nuxt/nitro-server/dist/runtime/utils/config.mjs","../../../../app/app.config.ts","../../../../../node_modules/scule/dist/index.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../node_modules/unctx/dist/index.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../node_modules/@nuxt/nitro-server/dist/runtime/utils/error.mjs","../../../../../node_modules/@nuxt/nitro-server/dist/runtime/handlers/error.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../node_modules/@nuxtjs/color-mode/dist/runtime/nitro-plugin.js","../../../../../packages/core/dist/errors/httpError.js","../../../../../packages/core/dist/crypto/encryption.js","../../../../../packages/integration-data/dist/loader.js","../../../../../packages/core/dist/integrations/tools.js","../../../../../packages/core/dist/integrations/providerRegistry.js","../../../../../packages/core/dist/integrations/sandbox.js","../../../../../packages/core/dist/integrations/getIntegration.js","../../../../../packages/core/dist/integrations/sandboxUtils.js","../../../../../packages/core/dist/integrations/actionsFactory.js","../../../../../packages/core/dist/integrations/fileIntegrationTypeConfigStore.js","../../../../../packages/core/dist/integrations/googleServiceAccount.js","../../../../../packages/core/dist/integrations/proxy.js","../../../../../packages/core/dist/db/schema.js","../../../../../packages/core/dist/db/integrationTypeConfigStore.js","../../../../../packages/core/dist/integrations/health.js","../../../../../packages/core/dist/integrations/integrationTypeConfigLookup.js","../../../../../packages/core/dist/db/client.js","../../../../../packages/core/dist/db/credentialStore.js","../../../../../packages/core/dist/db/integrationStore.js","../../../../../packages/core/dist/db/toolDefinitionStore.js","../../../../../packages/core/dist/mcp/toolAdapter.js","../../../../../packages/core/dist/mcp/abilityCatalog.js","../../../../../packages/core/dist/integrations/customToolFactory.js","../../../../../packages/core/dist/mcp/metaTools.js","../../../../../packages/core/dist/mcp/handlers.js","../../../../../packages/core/dist/mcp/sessionState.js","../../../../../packages/core/dist/mcp/auth.js","../../../../../packages/core/dist/config/configSchema.js","../../../../../packages/core/dist/config/configLoader.js","../../../../../packages/core/dist/config/configApply.js","../../../../../packages/core/dist/runtime/credentialManager.js","../../../../server/utils/db.ts","../../../../server/plugins/configApply.ts","../../../../server/plugins/requireEncryptionSecret.ts","../../../../../node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/static.mjs","../../../../server/middleware/mcpAuth.ts","../../../../../node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/renderer.mjs","../../../../../node_modules/@nuxt/nitro-server/dist/runtime/utils/paths.mjs","../../../../server/utils/mcp.ts","../../../../node_modules/.cache/nuxt/.nuxt/nuxt-icon-server-bundle.mjs","../../../../../node_modules/@nuxt/icon/dist/runtime/server/api.js","../../../../../node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["getQuery","createRouter","f","h","c","i","l","createError","getHeader","mergeHeaders","s","nodeFetch","fetch","Headers","Headers$1","AbortController$1","$fetch","normalizeKey","defineDriver","DRIVER_NAME","dirname","fsPromises","resolve","fsp","serialize","hash","getKey","_inlineAppConfig","createRadixRouter","__publicField","SCOPE_RANK","URL","URLSearchParams","baseUrl","creds","v","Buffer","providerCfg","finalUrl","response","sqlitePrimaryKey","pgText","pgInteger","pgPrimaryKey","t","db","parseJson","normalizeHintMarkdown","drizzlePg","drizzleSqlite","humanize","levenshtein","_a","_b","_c","name","tool","res","cwd","sid","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,70,71,73,74,75,77,78,79,80,81,82]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, f as getDb,
|
|
1
|
+
import { d as defineEventHandler, f as getDb, m as listIntegrations } from '../../nitro/nitro.mjs';
|
|
2
2
|
import '@modelcontextprotocol/sdk/types.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
|
-
import { d as defineEventHandler,
|
|
2
|
+
import { d as defineEventHandler, t as readBody, c as createError, f as getDb, w as upsertIntegration, r as refreshMcpState } from '../../nitro/nitro.mjs';
|
|
3
3
|
import '@modelcontextprotocol/sdk/types.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
5
5
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials-config.get.mjs
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getRouterParam, c as createError, f as getDb, s as sqliteIntegrations, p as pgIntegrations,
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, f as getDb, s as sqliteIntegrations, p as pgIntegrations, o as findIntegrationTypeConfig } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { eq } from 'drizzle-orm';
|
|
3
3
|
import '@modelcontextprotocol/sdk/types.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/index.js';
|
package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials-status.get.mjs
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getRouterParam, c as createError,
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, j as getOrCreateEncryptionSecret, f as getDb, s as sqliteIntegrations, p as pgIntegrations, o as findIntegrationTypeConfig, S as SqlCredentialStore } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { eq } from 'drizzle-orm';
|
|
3
3
|
import '@modelcontextprotocol/sdk/types.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/index.js';
|
package/{dist/app → .output}/server/chunks/routes/api/integrations/_id/credentials.delete.mjs
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getRouterParam, c as createError, f as getDb, s as sqliteIntegrations, p as pgIntegrations,
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, f as getDb, s as sqliteIntegrations, p as pgIntegrations, j as getOrCreateEncryptionSecret, S as SqlCredentialStore, u as updateIntegrationCredentials, q as updateIntegrationHealth, r as refreshMcpState } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { eq } from 'drizzle-orm';
|
|
3
3
|
import '@modelcontextprotocol/sdk/types.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getRouterParam, c as createError,
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, j as getOrCreateEncryptionSecret, t as readBody, f as getDb, s as sqliteIntegrations, p as pgIntegrations, S as SqlCredentialStore, u as updateIntegrationCredentials, o as findIntegrationTypeConfig, I as IntegrationProxy, v as checkIntegrationHealth, q as updateIntegrationHealth, r as refreshMcpState } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { eq } from 'drizzle-orm';
|
|
3
3
|
import '@modelcontextprotocol/sdk/types.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getRouterParam, c as createError,
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, t as readBody, f as getDb, m as listIntegrations, w as upsertIntegration, r as refreshMcpState } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import '@modelcontextprotocol/sdk/types.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, t as readBody, f as getDb, h as getIntegrationById, x as deleteToolDefinitionByName, r as refreshMcpState } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
|
+
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
+
import 'node:crypto';
|
|
6
|
+
import 'fastest-levenshtein';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:url';
|
|
10
|
+
import 'node:vm';
|
|
11
|
+
import 'turndown';
|
|
12
|
+
import 'marked';
|
|
13
|
+
import 'drizzle-orm';
|
|
14
|
+
import 'node:buffer';
|
|
15
|
+
import 'google-auth-library';
|
|
16
|
+
import 'node:http';
|
|
17
|
+
import 'node:https';
|
|
18
|
+
import 'node:events';
|
|
19
|
+
import 'node:os';
|
|
20
|
+
import 'better-sqlite3';
|
|
21
|
+
import 'drizzle-orm/better-sqlite3';
|
|
22
|
+
import 'drizzle-orm/node-postgres';
|
|
23
|
+
import 'pg';
|
|
24
|
+
import 'node:process';
|
|
25
|
+
import 'js-yaml';
|
|
26
|
+
import 'zod';
|
|
27
|
+
import 'drizzle-orm/sqlite-core';
|
|
28
|
+
import 'drizzle-orm/pg-core';
|
|
29
|
+
import '@iconify/utils';
|
|
30
|
+
import 'consola';
|
|
31
|
+
|
|
32
|
+
const tools_delete = defineEventHandler(async (event) => {
|
|
33
|
+
const id = getRouterParam(event, "id");
|
|
34
|
+
if (!id)
|
|
35
|
+
throw createError({ statusCode: 400, statusMessage: "id is required" });
|
|
36
|
+
const body = await readBody(event);
|
|
37
|
+
const name = String((body == null ? void 0 : body.name) || "").trim();
|
|
38
|
+
if (!name)
|
|
39
|
+
throw createError({ statusCode: 400, statusMessage: "name is required" });
|
|
40
|
+
const db = await getDb();
|
|
41
|
+
const integration = await getIntegrationById(db, id);
|
|
42
|
+
if (!integration)
|
|
43
|
+
throw createError({ statusCode: 404, statusMessage: "Integration not found" });
|
|
44
|
+
const deleted = await deleteToolDefinitionByName(db, integration.spaceId || "local", integration.id, name);
|
|
45
|
+
if (deleted)
|
|
46
|
+
await refreshMcpState();
|
|
47
|
+
return { ok: true, deleted: deleted > 0 };
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export { tools_delete as default };
|
|
51
|
+
//# sourceMappingURL=tools.delete.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, f as getDb, h as getIntegrationById, b as loadIntegrationToolList, y as listToolDefinitionsForIntegration } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
|
+
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
+
import 'node:crypto';
|
|
6
|
+
import 'fastest-levenshtein';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:url';
|
|
10
|
+
import 'node:vm';
|
|
11
|
+
import 'turndown';
|
|
12
|
+
import 'marked';
|
|
13
|
+
import 'drizzle-orm';
|
|
14
|
+
import 'node:buffer';
|
|
15
|
+
import 'google-auth-library';
|
|
16
|
+
import 'node:http';
|
|
17
|
+
import 'node:https';
|
|
18
|
+
import 'node:events';
|
|
19
|
+
import 'node:os';
|
|
20
|
+
import 'better-sqlite3';
|
|
21
|
+
import 'drizzle-orm/better-sqlite3';
|
|
22
|
+
import 'drizzle-orm/node-postgres';
|
|
23
|
+
import 'pg';
|
|
24
|
+
import 'node:process';
|
|
25
|
+
import 'js-yaml';
|
|
26
|
+
import 'zod';
|
|
27
|
+
import 'drizzle-orm/sqlite-core';
|
|
28
|
+
import 'drizzle-orm/pg-core';
|
|
29
|
+
import '@iconify/utils';
|
|
30
|
+
import 'consola';
|
|
31
|
+
|
|
32
|
+
function humanizeName(s) {
|
|
33
|
+
return (s || "").replace(/_/g, " ").split(/\s+/g).filter(Boolean).map((w) => w.length ? `${w[0].toUpperCase()}${w.slice(1).toLowerCase()}` : w).join(" ");
|
|
34
|
+
}
|
|
35
|
+
const tools_get = defineEventHandler(async (event) => {
|
|
36
|
+
const id = getRouterParam(event, "id");
|
|
37
|
+
if (!id)
|
|
38
|
+
throw createError({ statusCode: 400, statusMessage: "id is required" });
|
|
39
|
+
const db = await getDb();
|
|
40
|
+
const integration = await getIntegrationById(db, id);
|
|
41
|
+
if (!integration)
|
|
42
|
+
throw createError({ statusCode: 404, statusMessage: "Integration not found" });
|
|
43
|
+
const builtIn = loadIntegrationToolList(integration.type);
|
|
44
|
+
const customDefs = await listToolDefinitionsForIntegration(db, integration.spaceId || "local", integration.id);
|
|
45
|
+
const custom = customDefs.map((def) => ({
|
|
46
|
+
name: def.name,
|
|
47
|
+
displayName: def.displayName || humanizeName(def.name),
|
|
48
|
+
description: def.description,
|
|
49
|
+
scope: def.scope,
|
|
50
|
+
toolset: "custom",
|
|
51
|
+
custom: true
|
|
52
|
+
}));
|
|
53
|
+
return [...builtIn, ...custom];
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export { tools_get as default };
|
|
57
|
+
//# sourceMappingURL=tools.get.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.get.mjs","sources":["../../../../../../../server/api/integrations/[id]/tools.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,SAAS,aAAa,CAAA,EAAmB;AACvC,EAAA,OAAA,CAAQ,CAAA,IAAK,EAAA,EACV,OAAA,CAAQ,IAAA,EAAM,GAAG,CAAA,CACjB,KAAA,CAAM,MAAM,CAAA,CACZ,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;AACtE,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,OAAA,GAAU,uBAAA,CAAwB,WAAA,CAAY,IAAI,CAAA;AACxD,EAAA,MAAM,UAAA,GAAa,MAAM,iCAAA,CAAkC,EAAA,EAAI,YAAY,OAAA,IAAW,OAAA,EAAS,YAAY,EAAE,CAAA;AAC7G,EAAA,MAAM,MAAA,GAAqB,UAAA,CAAW,GAAA,CAAI,CAAA,GAAA,MAAQ;AAAA,IAChD,MAAM,GAAA,CAAI,IAAA;AAAA,IACV,WAAA,EAAa,GAAA,CAAI,WAAA,IAAe,YAAA,CAAa,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;;;;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, f as getDb, h as getIntegrationById, e as loadIntegrationToolsets, y as listToolDefinitionsForIntegration } from '../../../../nitro/nitro.mjs';
|
|
2
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
|
+
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
+
import 'node:crypto';
|
|
6
|
+
import 'fastest-levenshtein';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:url';
|
|
10
|
+
import 'node:vm';
|
|
11
|
+
import 'turndown';
|
|
12
|
+
import 'marked';
|
|
13
|
+
import 'drizzle-orm';
|
|
14
|
+
import 'node:buffer';
|
|
15
|
+
import 'google-auth-library';
|
|
16
|
+
import 'node:http';
|
|
17
|
+
import 'node:https';
|
|
18
|
+
import 'node:events';
|
|
19
|
+
import 'node:os';
|
|
20
|
+
import 'better-sqlite3';
|
|
21
|
+
import 'drizzle-orm/better-sqlite3';
|
|
22
|
+
import 'drizzle-orm/node-postgres';
|
|
23
|
+
import 'pg';
|
|
24
|
+
import 'node:process';
|
|
25
|
+
import 'js-yaml';
|
|
26
|
+
import 'zod';
|
|
27
|
+
import 'drizzle-orm/sqlite-core';
|
|
28
|
+
import 'drizzle-orm/pg-core';
|
|
29
|
+
import '@iconify/utils';
|
|
30
|
+
import 'consola';
|
|
31
|
+
|
|
32
|
+
const toolsets_get = defineEventHandler(async (event) => {
|
|
33
|
+
var _a;
|
|
34
|
+
const id = getRouterParam(event, "id");
|
|
35
|
+
if (!id)
|
|
36
|
+
throw createError({ statusCode: 400, statusMessage: "id is required" });
|
|
37
|
+
const db = await getDb();
|
|
38
|
+
const integration = await getIntegrationById(db, id);
|
|
39
|
+
if (!integration)
|
|
40
|
+
throw createError({ statusCode: 404, statusMessage: "Integration not found" });
|
|
41
|
+
const toolsets = (_a = loadIntegrationToolsets(integration.type)) != null ? _a : {};
|
|
42
|
+
const customDefs = await listToolDefinitionsForIntegration(db, integration.spaceId || "local", integration.id);
|
|
43
|
+
if (customDefs.length) {
|
|
44
|
+
toolsets.custom = {
|
|
45
|
+
label: "Custom Tools",
|
|
46
|
+
description: `Agent-created tools for ${integration.label}`
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return toolsets;
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export { toolsets_get as default };
|
|
53
|
+
//# sourceMappingURL=toolsets.get.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getRouterParam, c as createError,
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, c as createError, t as readBody, f as getDb, m as listIntegrations, w as upsertIntegration, r as refreshMcpState } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import '@modelcontextprotocol/sdk/types.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { d as defineEventHandler, g as getRouterParam, f as getDb, h as getIntegrationById, i as deleteToolDefinitionsForIntegration, S as SqlCredentialStore, j as getOrCreateEncryptionSecret, k as deleteIntegrationById, m as listIntegrations, n as deleteIntegrationTypeConfig, r as refreshMcpState } from '../../../nitro/nitro.mjs';
|
|
2
|
+
import '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
|
+
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
5
|
+
import 'node:crypto';
|
|
6
|
+
import 'fastest-levenshtein';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:url';
|
|
10
|
+
import 'node:vm';
|
|
11
|
+
import 'turndown';
|
|
12
|
+
import 'marked';
|
|
13
|
+
import 'drizzle-orm';
|
|
14
|
+
import 'node:buffer';
|
|
15
|
+
import 'google-auth-library';
|
|
16
|
+
import 'node:http';
|
|
17
|
+
import 'node:https';
|
|
18
|
+
import 'node:events';
|
|
19
|
+
import 'node:os';
|
|
20
|
+
import 'better-sqlite3';
|
|
21
|
+
import 'drizzle-orm/better-sqlite3';
|
|
22
|
+
import 'drizzle-orm/node-postgres';
|
|
23
|
+
import 'pg';
|
|
24
|
+
import 'node:process';
|
|
25
|
+
import 'js-yaml';
|
|
26
|
+
import 'zod';
|
|
27
|
+
import 'drizzle-orm/sqlite-core';
|
|
28
|
+
import 'drizzle-orm/pg-core';
|
|
29
|
+
import '@iconify/utils';
|
|
30
|
+
import 'consola';
|
|
31
|
+
|
|
32
|
+
const _id__delete = defineEventHandler(async (event) => {
|
|
33
|
+
const id = getRouterParam(event, "id");
|
|
34
|
+
if (!id)
|
|
35
|
+
return { ok: true };
|
|
36
|
+
const db = await getDb();
|
|
37
|
+
const integration = await getIntegrationById(db, id);
|
|
38
|
+
if (!integration)
|
|
39
|
+
return { ok: true, deleted: false };
|
|
40
|
+
const spaceId = integration.spaceId || (process.env.COMMANDABLE_SPACE_ID || "local").trim() || "local";
|
|
41
|
+
await deleteToolDefinitionsForIntegration(db, spaceId, integration.id);
|
|
42
|
+
if (integration.connectionMethod === "credentials" && integration.credentialId) {
|
|
43
|
+
const credentialStore = new SqlCredentialStore(db, getOrCreateEncryptionSecret());
|
|
44
|
+
await credentialStore.deleteCredentials(spaceId, integration.credentialId);
|
|
45
|
+
}
|
|
46
|
+
await deleteIntegrationById(db, integration.id);
|
|
47
|
+
const remaining = await listIntegrations(db, spaceId);
|
|
48
|
+
if (!remaining.some((i) => i.type === integration.type))
|
|
49
|
+
await deleteIntegrationTypeConfig(db, spaceId, integration.type);
|
|
50
|
+
await refreshMcpState();
|
|
51
|
+
return { ok: true, deleted: true };
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export { _id__delete as default };
|
|
55
|
+
//# sourceMappingURL=_id_.delete.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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,EAAA,MAAM,WAAA,GAAc,MAAM,kBAAA,CAAmB,EAAA,EAAI,EAAE,CAAA;AACnD,EAAA,IAAI,CAAC,WAAA;AACH,IAAA,OAAO,EAAE,EAAA,EAAI,IAAA,EAAM,OAAA,EAAS,KAAA,EAAM;AAEpC,EAAA,MAAM,OAAA,GAAU,YAAY,OAAA,IAAA,CAAY,OAAA,CAAQ,IAAI,oBAAA,IAAwB,OAAA,EAAS,MAAK,IAAK,OAAA;AAC/F,EAAA,MAAM,mCAAA,CAAoC,EAAA,EAAI,OAAA,EAAS,WAAA,CAAY,EAAE,CAAA;AACrE,EAAA,IAAI,WAAA,CAAY,gBAAA,KAAqB,aAAA,IAAiB,WAAA,CAAY,YAAA,EAAc;AAC9E,IAAA,MAAM,eAAA,GAAkB,IAAI,kBAAA,CAAmB,EAAA,EAAI,6BAA6B,CAAA;AAChF,IAAA,MAAM,eAAA,CAAgB,iBAAA,CAAkB,OAAA,EAAS,WAAA,CAAY,YAAY,CAAA;AAAA,EAC3E;AACA,EAAA,MAAM,qBAAA,CAAsB,EAAA,EAAI,WAAA,CAAY,EAAE,CAAA;AAE9C,EAAA,MAAM,SAAA,GAAY,MAAM,gBAAA,CAAiB,EAAA,EAAI,OAAO,CAAA;AACpD,EAAA,IAAI,CAAC,SAAA,CAAU,IAAA,CAAK,OAAK,CAAA,CAAE,IAAA,KAAS,YAAY,IAAI,CAAA;AAClD,IAAA,MAAM,2BAAA,CAA4B,EAAA,EAAI,OAAA,EAAS,WAAA,CAAY,IAAI,CAAA;AAEjE,EAAA,MAAM,eAAA,EAAgB;AACtB,EAAA,OAAO,EAAE,EAAA,EAAI,IAAA,EAAM,OAAA,EAAS,IAAA,EAAK;AACnC,CAAC,CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, t as readBody, z as handleMcpHttp, A as setResponseStatus } from '../../nitro/nitro.mjs';
|
|
2
2
|
import '@modelcontextprotocol/sdk/types.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, t as readBody, z as handleMcpHttp, A as setResponseStatus } from '../nitro/nitro.mjs';
|
|
2
2
|
import '@modelcontextprotocol/sdk/types.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
4
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRenderer, getRequestDependencies, getPreloadLinks, getPrefetchLinks } from 'vue-bundle-renderer/runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { B as buildAssetsURL, C as useRuntimeConfig, D as getResponseStatusText, E as getResponseStatus, F as defineRenderHandler, G as publicAssetsURL, H as getQuery, c as createError, J as destr, K as getRouteRules, L as joinURL, M as useNitroApp } from '../nitro/nitro.mjs';
|
|
3
3
|
import { renderToString } from 'vue/server-renderer';
|
|
4
4
|
import { createHead as createHead$1, propsToString, renderSSRHead } from 'unhead/server';
|
|
5
5
|
import { stringify, uneval } from 'devalue';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process from 'node:process';globalThis._importMeta_={url:import.meta.url,env:process.env};import 'node:http';
|
|
2
2
|
import 'node:https';
|
|
3
|
-
export {
|
|
3
|
+
export { a7 as default } from './chunks/nitro/nitro.mjs';
|
|
4
4
|
import '@modelcontextprotocol/sdk/types.js';
|
|
5
5
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
6
6
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
package/LICENSE
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
Version 3, 19 November 2007
|
|
1
|
+
MIT License
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
Copyright (c) 2025 Nuxt UI Templates
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
10
14
|
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
# @commandable/mcp
|
|
1
|
+
# @commandable/mcp App Package
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This workspace is the published `@commandable/mcp` package.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
It owns:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- the Nuxt management UI
|
|
8
|
+
- the `/mcp` read endpoint
|
|
9
|
+
- the `/mcp/create` create endpoint
|
|
10
|
+
- the local server lifecycle CLI
|
|
11
|
+
- the human-facing `create` and `connect` commands
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
npx -y @commandable/mcp serve
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### 2) Connect Claude Code for create
|
|
13
|
+
## Main Commands
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
+
npx -y @commandable/mcp serve
|
|
16
17
|
npx -y @commandable/mcp create
|
|
18
|
+
npx -y @commandable/mcp connect --client claude-desktop
|
|
17
19
|
```
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
The generated local client snippets target `@commandable/mcp-connect`.
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
## Development
|
|
24
|
+
|
|
25
|
+
From the repo root:
|
|
22
26
|
|
|
23
27
|
```bash
|
|
24
|
-
|
|
28
|
+
yarn install
|
|
29
|
+
yarn workspace @commandable/mcp dev
|
|
25
30
|
```
|
|
26
31
|
|
|
27
|
-
|
|
32
|
+
For the full local product flow, prefer the root scripts:
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- `npx -y @commandable/mcp doctor`
|
|
35
|
-
- `npx -y @commandable/mcp destroy local --yes`
|
|
36
|
-
- `npx -y @commandable/mcp apply [--config <file>]`
|
|
37
|
-
- `npx -y @commandable/mcp create-api-key [name]`
|
|
38
|
-
|
|
39
|
-
Legacy / advanced:
|
|
40
|
-
|
|
41
|
-
- `npx -y @commandable/mcp static-init`
|
|
42
|
-
- `npx -y @commandable/mcp add`
|
|
34
|
+
```bash
|
|
35
|
+
yarn dev:serve
|
|
36
|
+
yarn dev:create
|
|
37
|
+
yarn dev:connect
|
|
38
|
+
```
|
|
43
39
|
|
|
44
|
-
|
|
40
|
+
## HTTP Deployment
|
|
45
41
|
|
|
46
|
-
|
|
42
|
+
For remote/shared deployments, run this package as the app server and use:
|
|
47
43
|
|
|
48
|
-
|
|
44
|
+
```bash
|
|
45
|
+
npx -y @commandable/mcp create --transport http --url <create-url> --api-key <api-key>
|
|
46
|
+
npx -y @commandable/mcp connect --transport http --url <read-url> --api-key <api-key>
|
|
47
|
+
```
|
|
49
48
|
|
|
50
|
-
##
|
|
49
|
+
## Notes
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
- The old embedded-bundle-in-another-package model is gone.
|
|
52
|
+
- This package now publishes and runs the built Nuxt app directly.
|