@imagekit/api-mcp 7.1.1
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/LICENSE +201 -0
- package/README.md +351 -0
- package/code-tool-paths.cjs +6 -0
- package/code-tool-paths.cjs.map +1 -0
- package/code-tool-paths.d.cts +2 -0
- package/code-tool-paths.d.cts.map +1 -0
- package/code-tool-types.d.mts +14 -0
- package/code-tool-types.d.mts.map +1 -0
- package/code-tool-types.d.ts +14 -0
- package/code-tool-types.d.ts.map +1 -0
- package/code-tool-types.js +4 -0
- package/code-tool-types.js.map +1 -0
- package/code-tool-types.mjs +3 -0
- package/code-tool-types.mjs.map +1 -0
- package/code-tool-worker.d.mts +5 -0
- package/code-tool-worker.d.mts.map +1 -0
- package/code-tool-worker.d.ts +5 -0
- package/code-tool-worker.d.ts.map +1 -0
- package/code-tool-worker.js +45 -0
- package/code-tool-worker.js.map +1 -0
- package/code-tool-worker.mjs +40 -0
- package/code-tool-worker.mjs.map +1 -0
- package/code-tool.d.mts +12 -0
- package/code-tool.d.mts.map +1 -0
- package/code-tool.d.ts +12 -0
- package/code-tool.d.ts.map +1 -0
- package/code-tool.js +159 -0
- package/code-tool.js.map +1 -0
- package/code-tool.mjs +123 -0
- package/code-tool.mjs.map +1 -0
- package/compat.d.mts +58 -0
- package/compat.d.mts.map +1 -0
- package/compat.d.ts +58 -0
- package/compat.d.ts.map +1 -0
- package/compat.js +387 -0
- package/compat.js.map +1 -0
- package/compat.mjs +378 -0
- package/compat.mjs.map +1 -0
- package/docs-search-tool.d.mts +44 -0
- package/docs-search-tool.d.mts.map +1 -0
- package/docs-search-tool.d.ts +44 -0
- package/docs-search-tool.d.ts.map +1 -0
- package/docs-search-tool.js +43 -0
- package/docs-search-tool.js.map +1 -0
- package/docs-search-tool.mjs +39 -0
- package/docs-search-tool.mjs.map +1 -0
- package/dynamic-tools.d.mts +12 -0
- package/dynamic-tools.d.mts.map +1 -0
- package/dynamic-tools.d.ts +12 -0
- package/dynamic-tools.d.ts.map +1 -0
- package/dynamic-tools.js +135 -0
- package/dynamic-tools.js.map +1 -0
- package/dynamic-tools.mjs +132 -0
- package/dynamic-tools.mjs.map +1 -0
- package/filtering.d.mts +2 -0
- package/filtering.d.mts.map +1 -0
- package/filtering.d.ts +2 -0
- package/filtering.d.ts.map +1 -0
- package/filtering.js +20 -0
- package/filtering.js.map +1 -0
- package/filtering.mjs +13 -0
- package/filtering.mjs.map +1 -0
- package/headers.d.mts +4 -0
- package/headers.d.mts.map +1 -0
- package/headers.d.ts +4 -0
- package/headers.d.ts.map +1 -0
- package/headers.js +29 -0
- package/headers.js.map +1 -0
- package/headers.mjs +25 -0
- package/headers.mjs.map +1 -0
- package/http.d.mts +9 -0
- package/http.d.mts.map +1 -0
- package/http.d.ts +9 -0
- package/http.d.ts.map +1 -0
- package/http.js +108 -0
- package/http.js.map +1 -0
- package/http.mjs +100 -0
- package/http.mjs.map +1 -0
- package/index.d.mts +3 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +91 -0
- package/index.js.map +1 -0
- package/index.mjs +89 -0
- package/index.mjs.map +1 -0
- package/options.d.mts +20 -0
- package/options.d.mts.map +1 -0
- package/options.d.ts +20 -0
- package/options.d.ts.map +1 -0
- package/options.js +424 -0
- package/options.js.map +1 -0
- package/options.mjs +417 -0
- package/options.mjs.map +1 -0
- package/package.json +216 -0
- package/server.d.mts +35 -0
- package/server.d.mts.map +1 -0
- package/server.d.ts +35 -0
- package/server.d.ts.map +1 -0
- package/server.js +174 -0
- package/server.js.map +1 -0
- package/server.mjs +160 -0
- package/server.mjs.map +1 -0
- package/src/code-tool-paths.cts +3 -0
- package/src/code-tool-types.ts +14 -0
- package/src/code-tool-worker.ts +46 -0
- package/src/code-tool.ts +148 -0
- package/src/compat.ts +483 -0
- package/src/docs-search-tool.ts +48 -0
- package/src/dynamic-tools.ts +153 -0
- package/src/filtering.ts +14 -0
- package/src/headers.ts +31 -0
- package/src/http.ts +127 -0
- package/src/index.ts +108 -0
- package/src/options.ts +466 -0
- package/src/server.ts +207 -0
- package/src/stdio.ts +13 -0
- package/src/tools/accounts/origins/create-accounts-origins.ts +318 -0
- package/src/tools/accounts/origins/delete-accounts-origins.ts +43 -0
- package/src/tools/accounts/origins/get-accounts-origins.ts +41 -0
- package/src/tools/accounts/origins/list-accounts-origins.ts +35 -0
- package/src/tools/accounts/origins/update-accounts-origins.ts +360 -0
- package/src/tools/accounts/url-endpoints/create-accounts-url-endpoints.ts +103 -0
- package/src/tools/accounts/url-endpoints/delete-accounts-url-endpoints.ts +43 -0
- package/src/tools/accounts/url-endpoints/get-accounts-url-endpoints.ts +49 -0
- package/src/tools/accounts/url-endpoints/list-accounts-url-endpoints.ts +44 -0
- package/src/tools/accounts/url-endpoints/update-accounts-url-endpoints.ts +112 -0
- package/src/tools/accounts/usage/get-accounts-usage.ts +56 -0
- package/src/tools/assets/list-assets.ts +94 -0
- package/src/tools/beta/v2/files/upload-v2-beta-files.ts +316 -0
- package/src/tools/cache/invalidation/create-cache-invalidation.ts +46 -0
- package/src/tools/cache/invalidation/get-cache-invalidation.ts +47 -0
- package/src/tools/custom-metadata-fields/create-custom-metadata-fields.ts +154 -0
- package/src/tools/custom-metadata-fields/delete-custom-metadata-fields.ts +47 -0
- package/src/tools/custom-metadata-fields/list-custom-metadata-fields.ts +53 -0
- package/src/tools/custom-metadata-fields/update-custom-metadata-fields.ts +150 -0
- package/src/tools/files/bulk/add-tags-files-bulk.ts +56 -0
- package/src/tools/files/bulk/delete-files-bulk.ts +49 -0
- package/src/tools/files/bulk/remove-ai-tags-files-bulk.ts +56 -0
- package/src/tools/files/bulk/remove-tags-files-bulk.ts +56 -0
- package/src/tools/files/copy-files.ts +55 -0
- package/src/tools/files/delete-files.ts +41 -0
- package/src/tools/files/get-files.ts +47 -0
- package/src/tools/files/metadata/get-files-metadata.ts +47 -0
- package/src/tools/files/metadata/get-from-url-files-metadata.ts +48 -0
- package/src/tools/files/move-files.ts +50 -0
- package/src/tools/files/rename-files.ts +58 -0
- package/src/tools/files/update-files.ts +196 -0
- package/src/tools/files/upload-files.ts +332 -0
- package/src/tools/files/versions/delete-files-versions.ts +52 -0
- package/src/tools/files/versions/get-files-versions.ts +50 -0
- package/src/tools/files/versions/list-files-versions.ts +47 -0
- package/src/tools/files/versions/restore-files-versions.ts +52 -0
- package/src/tools/folders/copy-folders.ts +55 -0
- package/src/tools/folders/create-folders.ts +52 -0
- package/src/tools/folders/delete-folders.ts +48 -0
- package/src/tools/folders/job/get-folders-job.ts +47 -0
- package/src/tools/folders/move-folders.ts +50 -0
- package/src/tools/folders/rename-folders.ts +56 -0
- package/src/tools/index.ts +153 -0
- package/src/tools/types.ts +103 -0
- package/src/tools.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/stdio.d.mts +3 -0
- package/stdio.d.mts.map +1 -0
- package/stdio.d.ts +3 -0
- package/stdio.d.ts.map +1 -0
- package/stdio.js +14 -0
- package/stdio.js.map +1 -0
- package/stdio.mjs +10 -0
- package/stdio.mjs.map +1 -0
- package/tools/accounts/origins/create-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/create-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/create-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/create-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/create-accounts-origins.js +314 -0
- package/tools/accounts/origins/create-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/create-accounts-origins.mjs +310 -0
- package/tools/accounts/origins/create-accounts-origins.mjs.map +1 -0
- package/tools/accounts/origins/delete-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/delete-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/delete-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/delete-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/delete-accounts-origins.js +38 -0
- package/tools/accounts/origins/delete-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/delete-accounts-origins.mjs +34 -0
- package/tools/accounts/origins/delete-accounts-origins.mjs.map +1 -0
- package/tools/accounts/origins/get-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/get-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/get-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/get-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/get-accounts-origins.js +37 -0
- package/tools/accounts/origins/get-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/get-accounts-origins.mjs +33 -0
- package/tools/accounts/origins/get-accounts-origins.mjs.map +1 -0
- package/tools/accounts/origins/list-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/list-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/list-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/list-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/list-accounts-origins.js +31 -0
- package/tools/accounts/origins/list-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/list-accounts-origins.mjs +27 -0
- package/tools/accounts/origins/list-accounts-origins.mjs.map +1 -0
- package/tools/accounts/origins/update-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/update-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/update-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/update-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/update-accounts-origins.js +348 -0
- package/tools/accounts/origins/update-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/update-accounts-origins.mjs +344 -0
- package/tools/accounts/origins/update-accounts-origins.mjs.map +1 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js +95 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs +91 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js +38 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs +34 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js +43 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs +39 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js +39 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs +35 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js +101 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs +97 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/usage/get-accounts-usage.d.mts +45 -0
- package/tools/accounts/usage/get-accounts-usage.d.mts.map +1 -0
- package/tools/accounts/usage/get-accounts-usage.d.ts +45 -0
- package/tools/accounts/usage/get-accounts-usage.d.ts.map +1 -0
- package/tools/accounts/usage/get-accounts-usage.js +49 -0
- package/tools/accounts/usage/get-accounts-usage.js.map +1 -0
- package/tools/accounts/usage/get-accounts-usage.mjs +45 -0
- package/tools/accounts/usage/get-accounts-usage.mjs.map +1 -0
- package/tools/assets/list-assets.d.mts +45 -0
- package/tools/assets/list-assets.d.mts.map +1 -0
- package/tools/assets/list-assets.d.ts +45 -0
- package/tools/assets/list-assets.d.ts.map +1 -0
- package/tools/assets/list-assets.js +85 -0
- package/tools/assets/list-assets.js.map +1 -0
- package/tools/assets/list-assets.mjs +81 -0
- package/tools/assets/list-assets.mjs.map +1 -0
- package/tools/beta/v2/files/upload-v2-beta-files.d.mts +45 -0
- package/tools/beta/v2/files/upload-v2-beta-files.d.mts.map +1 -0
- package/tools/beta/v2/files/upload-v2-beta-files.d.ts +45 -0
- package/tools/beta/v2/files/upload-v2-beta-files.d.ts.map +1 -0
- package/tools/beta/v2/files/upload-v2-beta-files.js +286 -0
- package/tools/beta/v2/files/upload-v2-beta-files.js.map +1 -0
- package/tools/beta/v2/files/upload-v2-beta-files.mjs +282 -0
- package/tools/beta/v2/files/upload-v2-beta-files.mjs.map +1 -0
- package/tools/cache/invalidation/create-cache-invalidation.d.mts +45 -0
- package/tools/cache/invalidation/create-cache-invalidation.d.mts.map +1 -0
- package/tools/cache/invalidation/create-cache-invalidation.d.ts +45 -0
- package/tools/cache/invalidation/create-cache-invalidation.d.ts.map +1 -0
- package/tools/cache/invalidation/create-cache-invalidation.js +41 -0
- package/tools/cache/invalidation/create-cache-invalidation.js.map +1 -0
- package/tools/cache/invalidation/create-cache-invalidation.mjs +37 -0
- package/tools/cache/invalidation/create-cache-invalidation.mjs.map +1 -0
- package/tools/cache/invalidation/get-cache-invalidation.d.mts +45 -0
- package/tools/cache/invalidation/get-cache-invalidation.d.mts.map +1 -0
- package/tools/cache/invalidation/get-cache-invalidation.d.ts +45 -0
- package/tools/cache/invalidation/get-cache-invalidation.d.ts.map +1 -0
- package/tools/cache/invalidation/get-cache-invalidation.js +42 -0
- package/tools/cache/invalidation/get-cache-invalidation.js.map +1 -0
- package/tools/cache/invalidation/get-cache-invalidation.mjs +38 -0
- package/tools/cache/invalidation/get-cache-invalidation.mjs.map +1 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts +45 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts.map +1 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts +45 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts.map +1 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.js +139 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.js.map +1 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs +135 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs.map +1 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts +45 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts.map +1 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts +45 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts.map +1 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.js +42 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.js.map +1 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs +38 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs.map +1 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts +45 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts.map +1 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts +45 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts.map +1 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.js +47 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.js.map +1 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs +43 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs.map +1 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts +45 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts.map +1 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts +45 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts.map +1 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.js +133 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.js.map +1 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs +129 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs.map +1 -0
- package/tools/files/bulk/add-tags-files-bulk.d.mts +45 -0
- package/tools/files/bulk/add-tags-files-bulk.d.mts.map +1 -0
- package/tools/files/bulk/add-tags-files-bulk.d.ts +45 -0
- package/tools/files/bulk/add-tags-files-bulk.d.ts.map +1 -0
- package/tools/files/bulk/add-tags-files-bulk.js +51 -0
- package/tools/files/bulk/add-tags-files-bulk.js.map +1 -0
- package/tools/files/bulk/add-tags-files-bulk.mjs +47 -0
- package/tools/files/bulk/add-tags-files-bulk.mjs.map +1 -0
- package/tools/files/bulk/delete-files-bulk.d.mts +45 -0
- package/tools/files/bulk/delete-files-bulk.d.mts.map +1 -0
- package/tools/files/bulk/delete-files-bulk.d.ts +45 -0
- package/tools/files/bulk/delete-files-bulk.d.ts.map +1 -0
- package/tools/files/bulk/delete-files-bulk.js +44 -0
- package/tools/files/bulk/delete-files-bulk.js.map +1 -0
- package/tools/files/bulk/delete-files-bulk.mjs +40 -0
- package/tools/files/bulk/delete-files-bulk.mjs.map +1 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts +45 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts.map +1 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts +45 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts.map +1 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.js +51 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.js.map +1 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.mjs +47 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.mjs.map +1 -0
- package/tools/files/bulk/remove-tags-files-bulk.d.mts +45 -0
- package/tools/files/bulk/remove-tags-files-bulk.d.mts.map +1 -0
- package/tools/files/bulk/remove-tags-files-bulk.d.ts +45 -0
- package/tools/files/bulk/remove-tags-files-bulk.d.ts.map +1 -0
- package/tools/files/bulk/remove-tags-files-bulk.js +51 -0
- package/tools/files/bulk/remove-tags-files-bulk.js.map +1 -0
- package/tools/files/bulk/remove-tags-files-bulk.mjs +47 -0
- package/tools/files/bulk/remove-tags-files-bulk.mjs.map +1 -0
- package/tools/files/copy-files.d.mts +45 -0
- package/tools/files/copy-files.d.mts.map +1 -0
- package/tools/files/copy-files.d.ts +45 -0
- package/tools/files/copy-files.d.ts.map +1 -0
- package/tools/files/copy-files.js +49 -0
- package/tools/files/copy-files.js.map +1 -0
- package/tools/files/copy-files.mjs +45 -0
- package/tools/files/copy-files.mjs.map +1 -0
- package/tools/files/delete-files.d.mts +45 -0
- package/tools/files/delete-files.d.mts.map +1 -0
- package/tools/files/delete-files.d.ts +45 -0
- package/tools/files/delete-files.d.ts.map +1 -0
- package/tools/files/delete-files.js +37 -0
- package/tools/files/delete-files.js.map +1 -0
- package/tools/files/delete-files.mjs +33 -0
- package/tools/files/delete-files.mjs.map +1 -0
- package/tools/files/get-files.d.mts +45 -0
- package/tools/files/get-files.d.mts.map +1 -0
- package/tools/files/get-files.d.ts +45 -0
- package/tools/files/get-files.d.ts.map +1 -0
- package/tools/files/get-files.js +42 -0
- package/tools/files/get-files.js.map +1 -0
- package/tools/files/get-files.mjs +38 -0
- package/tools/files/get-files.mjs.map +1 -0
- package/tools/files/metadata/get-files-metadata.d.mts +45 -0
- package/tools/files/metadata/get-files-metadata.d.mts.map +1 -0
- package/tools/files/metadata/get-files-metadata.d.ts +45 -0
- package/tools/files/metadata/get-files-metadata.d.ts.map +1 -0
- package/tools/files/metadata/get-files-metadata.js +42 -0
- package/tools/files/metadata/get-files-metadata.js.map +1 -0
- package/tools/files/metadata/get-files-metadata.mjs +38 -0
- package/tools/files/metadata/get-files-metadata.mjs.map +1 -0
- package/tools/files/metadata/get-from-url-files-metadata.d.mts +45 -0
- package/tools/files/metadata/get-from-url-files-metadata.d.mts.map +1 -0
- package/tools/files/metadata/get-from-url-files-metadata.d.ts +45 -0
- package/tools/files/metadata/get-from-url-files-metadata.d.ts.map +1 -0
- package/tools/files/metadata/get-from-url-files-metadata.js +43 -0
- package/tools/files/metadata/get-from-url-files-metadata.js.map +1 -0
- package/tools/files/metadata/get-from-url-files-metadata.mjs +39 -0
- package/tools/files/metadata/get-from-url-files-metadata.mjs.map +1 -0
- package/tools/files/move-files.d.mts +45 -0
- package/tools/files/move-files.d.mts.map +1 -0
- package/tools/files/move-files.d.ts +45 -0
- package/tools/files/move-files.d.ts.map +1 -0
- package/tools/files/move-files.js +45 -0
- package/tools/files/move-files.js.map +1 -0
- package/tools/files/move-files.mjs +41 -0
- package/tools/files/move-files.mjs.map +1 -0
- package/tools/files/rename-files.d.mts +45 -0
- package/tools/files/rename-files.d.mts.map +1 -0
- package/tools/files/rename-files.d.ts +45 -0
- package/tools/files/rename-files.d.ts.map +1 -0
- package/tools/files/rename-files.js +51 -0
- package/tools/files/rename-files.js.map +1 -0
- package/tools/files/rename-files.mjs +47 -0
- package/tools/files/rename-files.mjs.map +1 -0
- package/tools/files/update-files.d.mts +45 -0
- package/tools/files/update-files.d.mts.map +1 -0
- package/tools/files/update-files.d.ts +45 -0
- package/tools/files/update-files.d.ts.map +1 -0
- package/tools/files/update-files.js +181 -0
- package/tools/files/update-files.js.map +1 -0
- package/tools/files/update-files.mjs +177 -0
- package/tools/files/update-files.mjs.map +1 -0
- package/tools/files/upload-files.d.mts +45 -0
- package/tools/files/upload-files.d.mts.map +1 -0
- package/tools/files/upload-files.d.ts +45 -0
- package/tools/files/upload-files.d.ts.map +1 -0
- package/tools/files/upload-files.js +298 -0
- package/tools/files/upload-files.js.map +1 -0
- package/tools/files/upload-files.mjs +294 -0
- package/tools/files/upload-files.mjs.map +1 -0
- package/tools/files/versions/delete-files-versions.d.mts +45 -0
- package/tools/files/versions/delete-files-versions.d.mts.map +1 -0
- package/tools/files/versions/delete-files-versions.d.ts +45 -0
- package/tools/files/versions/delete-files-versions.d.ts.map +1 -0
- package/tools/files/versions/delete-files-versions.js +45 -0
- package/tools/files/versions/delete-files-versions.js.map +1 -0
- package/tools/files/versions/delete-files-versions.mjs +41 -0
- package/tools/files/versions/delete-files-versions.mjs.map +1 -0
- package/tools/files/versions/get-files-versions.d.mts +45 -0
- package/tools/files/versions/get-files-versions.d.mts.map +1 -0
- package/tools/files/versions/get-files-versions.d.ts +45 -0
- package/tools/files/versions/get-files-versions.d.ts.map +1 -0
- package/tools/files/versions/get-files-versions.js +45 -0
- package/tools/files/versions/get-files-versions.js.map +1 -0
- package/tools/files/versions/get-files-versions.mjs +41 -0
- package/tools/files/versions/get-files-versions.mjs.map +1 -0
- package/tools/files/versions/list-files-versions.d.mts +45 -0
- package/tools/files/versions/list-files-versions.d.mts.map +1 -0
- package/tools/files/versions/list-files-versions.d.ts +45 -0
- package/tools/files/versions/list-files-versions.d.ts.map +1 -0
- package/tools/files/versions/list-files-versions.js +42 -0
- package/tools/files/versions/list-files-versions.js.map +1 -0
- package/tools/files/versions/list-files-versions.mjs +38 -0
- package/tools/files/versions/list-files-versions.mjs.map +1 -0
- package/tools/files/versions/restore-files-versions.d.mts +45 -0
- package/tools/files/versions/restore-files-versions.d.mts.map +1 -0
- package/tools/files/versions/restore-files-versions.d.ts +45 -0
- package/tools/files/versions/restore-files-versions.d.ts.map +1 -0
- package/tools/files/versions/restore-files-versions.js +45 -0
- package/tools/files/versions/restore-files-versions.js.map +1 -0
- package/tools/files/versions/restore-files-versions.mjs +41 -0
- package/tools/files/versions/restore-files-versions.mjs.map +1 -0
- package/tools/folders/copy-folders.d.mts +45 -0
- package/tools/folders/copy-folders.d.mts.map +1 -0
- package/tools/folders/copy-folders.d.ts +45 -0
- package/tools/folders/copy-folders.d.ts.map +1 -0
- package/tools/folders/copy-folders.js +49 -0
- package/tools/folders/copy-folders.js.map +1 -0
- package/tools/folders/copy-folders.mjs +45 -0
- package/tools/folders/copy-folders.mjs.map +1 -0
- package/tools/folders/create-folders.d.mts +45 -0
- package/tools/folders/create-folders.d.mts.map +1 -0
- package/tools/folders/create-folders.d.ts +45 -0
- package/tools/folders/create-folders.d.ts.map +1 -0
- package/tools/folders/create-folders.js +45 -0
- package/tools/folders/create-folders.js.map +1 -0
- package/tools/folders/create-folders.mjs +41 -0
- package/tools/folders/create-folders.mjs.map +1 -0
- package/tools/folders/delete-folders.d.mts +45 -0
- package/tools/folders/delete-folders.d.mts.map +1 -0
- package/tools/folders/delete-folders.d.ts +45 -0
- package/tools/folders/delete-folders.d.ts.map +1 -0
- package/tools/folders/delete-folders.js +43 -0
- package/tools/folders/delete-folders.js.map +1 -0
- package/tools/folders/delete-folders.mjs +39 -0
- package/tools/folders/delete-folders.mjs.map +1 -0
- package/tools/folders/job/get-folders-job.d.mts +45 -0
- package/tools/folders/job/get-folders-job.d.mts.map +1 -0
- package/tools/folders/job/get-folders-job.d.ts +45 -0
- package/tools/folders/job/get-folders-job.d.ts.map +1 -0
- package/tools/folders/job/get-folders-job.js +42 -0
- package/tools/folders/job/get-folders-job.js.map +1 -0
- package/tools/folders/job/get-folders-job.mjs +38 -0
- package/tools/folders/job/get-folders-job.mjs.map +1 -0
- package/tools/folders/move-folders.d.mts +45 -0
- package/tools/folders/move-folders.d.mts.map +1 -0
- package/tools/folders/move-folders.d.ts +45 -0
- package/tools/folders/move-folders.d.ts.map +1 -0
- package/tools/folders/move-folders.js +45 -0
- package/tools/folders/move-folders.js.map +1 -0
- package/tools/folders/move-folders.mjs +41 -0
- package/tools/folders/move-folders.mjs.map +1 -0
- package/tools/folders/rename-folders.d.mts +45 -0
- package/tools/folders/rename-folders.d.mts.map +1 -0
- package/tools/folders/rename-folders.d.ts +45 -0
- package/tools/folders/rename-folders.d.ts.map +1 -0
- package/tools/folders/rename-folders.js +49 -0
- package/tools/folders/rename-folders.js.map +1 -0
- package/tools/folders/rename-folders.mjs +45 -0
- package/tools/folders/rename-folders.mjs.map +1 -0
- package/tools/index.d.mts +10 -0
- package/tools/index.d.mts.map +1 -0
- package/tools/index.d.ts +10 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +137 -0
- package/tools/index.js.map +1 -0
- package/tools/index.mjs +130 -0
- package/tools/index.mjs.map +1 -0
- package/tools/types.d.mts +51 -0
- package/tools/types.d.mts.map +1 -0
- package/tools/types.d.ts +51 -0
- package/tools/types.d.ts.map +1 -0
- package/tools/types.js +46 -0
- package/tools/types.js.map +1 -0
- package/tools/types.mjs +42 -0
- package/tools/types.mjs.map +1 -0
- package/tools.d.mts +2 -0
- package/tools.d.mts.map +1 -0
- package/tools.d.ts +2 -0
- package/tools.d.ts.map +1 -0
- package/tools.js +18 -0
- package/tools.js.map +1 -0
- package/tools.mjs +2 -0
- package/tools.mjs.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 Image Kit
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
# Image Kit TypeScript MCP Server
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
### Direct invocation
|
|
6
|
+
|
|
7
|
+
You can run the MCP Server directly via `npx`:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
export IMAGEKIT_PRIVATE_KEY="My Private Key"
|
|
11
|
+
export OPTIONAL_IMAGEKIT_IGNORES_THIS="My Password"
|
|
12
|
+
export IMAGEKIT_WEBHOOK_SECRET="My Webhook Secret"
|
|
13
|
+
npx -y @imagekit/api-mcp@latest
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Via MCP Client
|
|
17
|
+
|
|
18
|
+
There is a partial list of existing clients at [modelcontextprotocol.io](https://modelcontextprotocol.io/clients). If you already
|
|
19
|
+
have a client, consult their documentation to install the MCP server.
|
|
20
|
+
|
|
21
|
+
For clients with a configuration JSON, it might look something like this:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"mcpServers": {
|
|
26
|
+
"imagekit_nodejs_api": {
|
|
27
|
+
"command": "npx",
|
|
28
|
+
"args": ["-y", "@imagekit/api-mcp", "--client=claude", "--tools=dynamic"],
|
|
29
|
+
"env": {
|
|
30
|
+
"IMAGEKIT_PRIVATE_KEY": "My Private Key",
|
|
31
|
+
"OPTIONAL_IMAGEKIT_IGNORES_THIS": "My Password",
|
|
32
|
+
"IMAGEKIT_WEBHOOK_SECRET": "My Webhook Secret"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Exposing endpoints to your MCP Client
|
|
40
|
+
|
|
41
|
+
There are two ways to expose endpoints as tools in the MCP server:
|
|
42
|
+
|
|
43
|
+
1. Exposing one tool per endpoint, and filtering as necessary
|
|
44
|
+
2. Exposing a set of tools to dynamically discover and invoke endpoints from the API
|
|
45
|
+
|
|
46
|
+
### Filtering endpoints and tools
|
|
47
|
+
|
|
48
|
+
You can run the package on the command line to discover and filter the set of tools that are exposed by the
|
|
49
|
+
MCP Server. This can be helpful for large APIs where including all endpoints at once is too much for your AI's
|
|
50
|
+
context window.
|
|
51
|
+
|
|
52
|
+
You can filter by multiple aspects:
|
|
53
|
+
|
|
54
|
+
- `--tool` includes a specific tool by name
|
|
55
|
+
- `--resource` includes all tools under a specific resource, and can have wildcards, e.g. `my.resource*`
|
|
56
|
+
- `--operation` includes just read (get/list) or just write operations
|
|
57
|
+
|
|
58
|
+
### Dynamic tools
|
|
59
|
+
|
|
60
|
+
If you specify `--tools=dynamic` to the MCP server, instead of exposing one tool per endpoint in the API, it will
|
|
61
|
+
expose the following tools:
|
|
62
|
+
|
|
63
|
+
1. `list_api_endpoints` - Discovers available endpoints, with optional filtering by search query
|
|
64
|
+
2. `get_api_endpoint_schema` - Gets detailed schema information for a specific endpoint
|
|
65
|
+
3. `invoke_api_endpoint` - Executes any endpoint with the appropriate parameters
|
|
66
|
+
|
|
67
|
+
This allows you to have the full set of API endpoints available to your MCP Client, while not requiring that all
|
|
68
|
+
of their schemas be loaded into context at once. Instead, the LLM will automatically use these tools together to
|
|
69
|
+
search for, look up, and invoke endpoints dynamically. However, due to the indirect nature of the schemas, it
|
|
70
|
+
can struggle to provide the correct properties a bit more than when tools are imported explicitly. Therefore,
|
|
71
|
+
you can opt-in to explicit tools, the dynamic tools, or both.
|
|
72
|
+
|
|
73
|
+
See more information with `--help`.
|
|
74
|
+
|
|
75
|
+
All of these command-line options can be repeated, combined together, and have corresponding exclusion versions (e.g. `--no-tool`).
|
|
76
|
+
|
|
77
|
+
Use `--list` to see the list of available tools, or see below.
|
|
78
|
+
|
|
79
|
+
### Specifying the MCP Client
|
|
80
|
+
|
|
81
|
+
Different clients have varying abilities to handle arbitrary tools and schemas.
|
|
82
|
+
|
|
83
|
+
You can specify the client you are using with the `--client` argument, and the MCP server will automatically
|
|
84
|
+
serve tools and schemas that are more compatible with that client.
|
|
85
|
+
|
|
86
|
+
- `--client=<type>`: Set all capabilities based on a known MCP client
|
|
87
|
+
|
|
88
|
+
- Valid values: `openai-agents`, `claude`, `claude-code`, `cursor`
|
|
89
|
+
- Example: `--client=cursor`
|
|
90
|
+
|
|
91
|
+
Additionally, if you have a client not on the above list, or the client has gotten better
|
|
92
|
+
over time, you can manually enable or disable certain capabilities:
|
|
93
|
+
|
|
94
|
+
- `--capability=<name>`: Specify individual client capabilities
|
|
95
|
+
- Available capabilities:
|
|
96
|
+
- `top-level-unions`: Enable support for top-level unions in tool schemas
|
|
97
|
+
- `valid-json`: Enable JSON string parsing for arguments
|
|
98
|
+
- `refs`: Enable support for $ref pointers in schemas
|
|
99
|
+
- `unions`: Enable support for union types (anyOf) in schemas
|
|
100
|
+
- `formats`: Enable support for format validations in schemas (e.g. date-time, email)
|
|
101
|
+
- `tool-name-length=N`: Set maximum tool name length to N characters
|
|
102
|
+
- Example: `--capability=top-level-unions --capability=tool-name-length=40`
|
|
103
|
+
- Example: `--capability=top-level-unions,tool-name-length=40`
|
|
104
|
+
|
|
105
|
+
### Examples
|
|
106
|
+
|
|
107
|
+
1. Filter for read operations on cards:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
--resource=cards --operation=read
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
2. Exclude specific tools while including others:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
--resource=cards --no-tool=create_cards
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
3. Configure for Cursor client with custom max tool name length:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
--client=cursor --capability=tool-name-length=40
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
4. Complex filtering with multiple criteria:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
--resource=cards,accounts --operation=read --tag=kyc --no-tool=create_cards
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Running remotely
|
|
132
|
+
|
|
133
|
+
Launching the client with `--transport=http` launches the server as a remote server using Streamable HTTP transport. The `--port` setting can choose the port it will run on, and the `--socket` setting allows it to run on a Unix socket.
|
|
134
|
+
|
|
135
|
+
Authorization can be provided via the `Authorization` header using the Basic scheme.
|
|
136
|
+
|
|
137
|
+
Additionally, authorization can be provided via the following headers:
|
|
138
|
+
| Header | Equivalent client option | Security scheme |
|
|
139
|
+
| ---------------------------------- | ------------------------ | --------------- |
|
|
140
|
+
| `x-imagekit-private-key` | `privateKey` | basicAuth |
|
|
141
|
+
| `x-optional-imagekit-ignores-this` | `password` | basicAuth |
|
|
142
|
+
|
|
143
|
+
A configuration JSON for this server might look like this, assuming the server is hosted at `http://localhost:3000`:
|
|
144
|
+
|
|
145
|
+
```json
|
|
146
|
+
{
|
|
147
|
+
"mcpServers": {
|
|
148
|
+
"imagekit_nodejs_api": {
|
|
149
|
+
"url": "http://localhost:3000",
|
|
150
|
+
"headers": {
|
|
151
|
+
"Authorization": "Basic <auth value>"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
The command-line arguments for filtering tools and specifying clients can also be used as query parameters in the URL.
|
|
159
|
+
For example, to exclude specific tools while including others, use the URL:
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
http://localhost:3000?resource=cards&resource=accounts&no_tool=create_cards
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Or, to configure for the Cursor client, with a custom max tool name length, use the URL:
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
http://localhost:3000?client=cursor&capability=tool-name-length%3D40
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Importing the tools and server individually
|
|
172
|
+
|
|
173
|
+
```js
|
|
174
|
+
// Import the server, generated endpoints, or the init function
|
|
175
|
+
import { server, endpoints, init } from "@imagekit/api-mcp/server";
|
|
176
|
+
|
|
177
|
+
// import a specific tool
|
|
178
|
+
import createCustomMetadataFields from "@imagekit/api-mcp/tools/custom-metadata-fields/create-custom-metadata-fields";
|
|
179
|
+
|
|
180
|
+
// initialize the server and all endpoints
|
|
181
|
+
init({ server, endpoints });
|
|
182
|
+
|
|
183
|
+
// manually start server
|
|
184
|
+
const transport = new StdioServerTransport();
|
|
185
|
+
await server.connect(transport);
|
|
186
|
+
|
|
187
|
+
// or initialize your own server with specific tools
|
|
188
|
+
const myServer = new McpServer(...);
|
|
189
|
+
|
|
190
|
+
// define your own endpoint
|
|
191
|
+
const myCustomEndpoint = {
|
|
192
|
+
tool: {
|
|
193
|
+
name: 'my_custom_tool',
|
|
194
|
+
description: 'My custom tool',
|
|
195
|
+
inputSchema: zodToJsonSchema(z.object({ a_property: z.string() })),
|
|
196
|
+
},
|
|
197
|
+
handler: async (client: client, args: any) => {
|
|
198
|
+
return { myResponse: 'Hello world!' };
|
|
199
|
+
})
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
// initialize the server with your custom endpoints
|
|
203
|
+
init({ server: myServer, endpoints: [createCustomMetadataFields, myCustomEndpoint] });
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Available Tools
|
|
207
|
+
|
|
208
|
+
The following tools are available in this MCP server.
|
|
209
|
+
|
|
210
|
+
### Resource `customMetadataFields`:
|
|
211
|
+
|
|
212
|
+
- `create_custom_metadata_fields` (`write`): This API creates a new custom metadata field. Once a custom metadata field is created either through this API or using the dashboard UI, its value can be set on the assets. The value of a field for an asset can be set using the media library UI or programmatically through upload or update assets API.
|
|
213
|
+
- `update_custom_metadata_fields` (`write`): This API updates the label or schema of an existing custom metadata field.
|
|
214
|
+
- `list_custom_metadata_fields` (`read`): This API returns the array of created custom metadata field objects. By default the API returns only non deleted field objects, but you can include deleted fields in the API response.
|
|
215
|
+
|
|
216
|
+
You can also filter results by a specific folder path to retrieve custom metadata fields applicable at that location. This path-specific filtering is useful when using the **Path policy** feature to determine which custom metadata fields are selected for a given path.
|
|
217
|
+
|
|
218
|
+
- `delete_custom_metadata_fields` (`write`): This API deletes a custom metadata field. Even after deleting a custom metadata field, you cannot create any new custom metadata field with the same name.
|
|
219
|
+
|
|
220
|
+
### Resource `files`:
|
|
221
|
+
|
|
222
|
+
- `update_files` (`write`): This API updates the details or attributes of the current version of the file. You can update `tags`, `customCoordinates`, `customMetadata`, publication status, remove existing `AITags` and apply extensions using this API.
|
|
223
|
+
- `delete_files` (`write`): This API deletes the file and all its file versions permanently.
|
|
224
|
+
|
|
225
|
+
Note: If a file or specific transformation has been requested in the past, then the response is cached. Deleting a file does not purge the cache. You can purge the cache using purge cache API.
|
|
226
|
+
|
|
227
|
+
- `copy_files` (`write`): This will copy a file from one folder to another.
|
|
228
|
+
|
|
229
|
+
Note: If any file at the destination has the same name as the source file, then the source file and its versions (if `includeFileVersions` is set to true) will be appended to the destination file version history.
|
|
230
|
+
|
|
231
|
+
- `get_files` (`read`): This API returns an object with details or attributes about the current version of the file.
|
|
232
|
+
- `move_files` (`write`): This will move a file and all its versions from one folder to another.
|
|
233
|
+
|
|
234
|
+
Note: If any file at the destination has the same name as the source file, then the source file and its versions will be appended to the destination file.
|
|
235
|
+
|
|
236
|
+
- `rename_files` (`write`): You can rename an already existing file in the media library using rename file API. This operation would rename all file versions of the file.
|
|
237
|
+
|
|
238
|
+
Note: The old URLs will stop working. The file/file version URLs cached on CDN will continue to work unless a purge is requested.
|
|
239
|
+
|
|
240
|
+
- `upload_files` (`write`): ImageKit.io allows you to upload files directly from both the server and client sides. For server-side uploads, private API key authentication is used. For client-side uploads, generate a one-time `token`, `signature`, and `expire` from your secure backend using private API. [Learn more](/docs/api-reference/upload-file/upload-file#how-to-implement-client-side-file-upload) about how to implement client-side file upload.
|
|
241
|
+
|
|
242
|
+
The [V2 API](/docs/api-reference/upload-file/upload-file-v2) enhances security by verifying the entire payload using JWT.
|
|
243
|
+
|
|
244
|
+
**File size limit** \
|
|
245
|
+
On the free plan, the maximum upload file sizes are 20MB for images, audio, and raw files and 100MB for videos. On the paid plan, these limits increase to 40MB for images, audio, and raw files and 2GB for videos. These limits can be further increased with higher-tier plans.
|
|
246
|
+
|
|
247
|
+
**Version limit** \
|
|
248
|
+
A file can have a maximum of 100 versions.
|
|
249
|
+
|
|
250
|
+
**Demo applications**
|
|
251
|
+
|
|
252
|
+
- A full-fledged [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), supporting file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more.
|
|
253
|
+
- [Quick start guides](/docs/quick-start-guides) for various frameworks and technologies.
|
|
254
|
+
|
|
255
|
+
### Resource `files.bulk`:
|
|
256
|
+
|
|
257
|
+
- `delete_files_bulk` (`write`): This API deletes multiple files and all their file versions permanently.
|
|
258
|
+
|
|
259
|
+
Note: If a file or specific transformation has been requested in the past, then the response is cached. Deleting a file does not purge the cache. You can purge the cache using purge cache API.
|
|
260
|
+
|
|
261
|
+
A maximum of 100 files can be deleted at a time.
|
|
262
|
+
|
|
263
|
+
- `add_tags_files_bulk` (`write`): This API adds tags to multiple files in bulk. A maximum of 50 files can be specified at a time.
|
|
264
|
+
- `remove_ai_tags_files_bulk` (`write`): This API removes AITags from multiple files in bulk. A maximum of 50 files can be specified at a time.
|
|
265
|
+
- `remove_tags_files_bulk` (`write`): This API removes tags from multiple files in bulk. A maximum of 50 files can be specified at a time.
|
|
266
|
+
|
|
267
|
+
### Resource `files.versions`:
|
|
268
|
+
|
|
269
|
+
- `list_files_versions` (`read`): This API returns details of all versions of a file.
|
|
270
|
+
- `delete_files_versions` (`write`): This API deletes a non-current file version permanently. The API returns an empty response.
|
|
271
|
+
|
|
272
|
+
Note: If you want to delete all versions of a file, use the delete file API.
|
|
273
|
+
|
|
274
|
+
- `get_files_versions` (`read`): This API returns an object with details or attributes of a file version.
|
|
275
|
+
- `restore_files_versions` (`write`): This API restores a file version as the current file version.
|
|
276
|
+
|
|
277
|
+
### Resource `files.metadata`:
|
|
278
|
+
|
|
279
|
+
- `get_files_metadata` (`read`): You can programmatically get image EXIF, pHash, and other metadata for uploaded files in the ImageKit.io media library using this API.
|
|
280
|
+
|
|
281
|
+
You can also get the metadata in upload API response by passing `metadata` in `responseFields` parameter.
|
|
282
|
+
|
|
283
|
+
- `get_from_url_files_metadata` (`read`): Get image EXIF, pHash, and other metadata from ImageKit.io powered remote URL using this API.
|
|
284
|
+
|
|
285
|
+
### Resource `assets`:
|
|
286
|
+
|
|
287
|
+
- `list_assets` (`read`): This API can list all the uploaded files and folders in your ImageKit.io media library. In addition, you can fine-tune your query by specifying various filters by generating a query string in a Lucene-like syntax and provide this generated string as the value of the `searchQuery`.
|
|
288
|
+
|
|
289
|
+
### Resource `cache.invalidation`:
|
|
290
|
+
|
|
291
|
+
- `create_cache_invalidation` (`write`): This API will purge CDN cache and ImageKit.io's internal cache for a file. Note: Purge cache is an asynchronous process and it may take some time to reflect the changes.
|
|
292
|
+
- `get_cache_invalidation` (`read`): This API returns the status of a purge cache request.
|
|
293
|
+
|
|
294
|
+
### Resource `folders`:
|
|
295
|
+
|
|
296
|
+
- `create_folders` (`write`): This will create a new folder. You can specify the folder name and location of the parent folder where this new folder should be created.
|
|
297
|
+
- `delete_folders` (`write`): This will delete a folder and all its contents permanently. The API returns an empty response.
|
|
298
|
+
- `copy_folders` (`write`): This will copy one folder into another. The selected folder, its nested folders, files, and their versions (in `includeVersions` is set to true) are copied in this operation. Note: If any file at the destination has the same name as the source file, then the source file and its versions will be appended to the destination file version history.
|
|
299
|
+
- `move_folders` (`write`): This will move one folder into another. The selected folder, its nested folders, files, and their versions are moved in this operation. Note: If any file at the destination has the same name as the source file, then the source file and its versions will be appended to the destination file version history.
|
|
300
|
+
- `rename_folders` (`write`): This API allows you to rename an existing folder. The folder and all its nested assets and sub-folders will remain unchanged, but their paths will be updated to reflect the new folder name.
|
|
301
|
+
|
|
302
|
+
### Resource `folders.job`:
|
|
303
|
+
|
|
304
|
+
- `get_folders_job` (`read`): This API returns the status of a bulk job like copy and move folder operations.
|
|
305
|
+
|
|
306
|
+
### Resource `accounts.usage`:
|
|
307
|
+
|
|
308
|
+
- `get_accounts_usage` (`read`): Get the account usage information between two dates. Note that the API response includes data from the start date while excluding data from the end date. In other words, the data covers the period starting from the specified start date up to, but not including, the end date.
|
|
309
|
+
|
|
310
|
+
### Resource `accounts.origins`:
|
|
311
|
+
|
|
312
|
+
- `create_accounts_origins` (`write`): **Note:** This API is currently in beta.
|
|
313
|
+
Creates a new origin and returns the origin object.
|
|
314
|
+
- `update_accounts_origins` (`write`): **Note:** This API is currently in beta.
|
|
315
|
+
Updates the origin identified by `id` and returns the updated origin object.
|
|
316
|
+
- `list_accounts_origins` (`read`): **Note:** This API is currently in beta.
|
|
317
|
+
Returns an array of all configured origins for the current account.
|
|
318
|
+
- `delete_accounts_origins` (`write`): **Note:** This API is currently in beta.
|
|
319
|
+
Permanently removes the origin identified by `id`. If the origin is in use by any URL‑endpoints, the API will return an error.
|
|
320
|
+
- `get_accounts_origins` (`read`): **Note:** This API is currently in beta.
|
|
321
|
+
Retrieves the origin identified by `id`.
|
|
322
|
+
|
|
323
|
+
### Resource `accounts.urlEndpoints`:
|
|
324
|
+
|
|
325
|
+
- `create_accounts_url_endpoints` (`write`): **Note:** This API is currently in beta.
|
|
326
|
+
Creates a new URL‑endpoint and returns the resulting object.
|
|
327
|
+
- `update_accounts_url_endpoints` (`write`): **Note:** This API is currently in beta.
|
|
328
|
+
Updates the URL‑endpoint identified by `id` and returns the updated object.
|
|
329
|
+
- `list_accounts_url_endpoints` (`read`): **Note:** This API is currently in beta.
|
|
330
|
+
Returns an array of all URL‑endpoints configured including the default URL-endpoint generated by ImageKit during account creation.
|
|
331
|
+
- `delete_accounts_url_endpoints` (`write`): **Note:** This API is currently in beta.
|
|
332
|
+
Deletes the URL‑endpoint identified by `id`. You cannot delete the default URL‑endpoint created by ImageKit during account creation.
|
|
333
|
+
- `get_accounts_url_endpoints` (`read`): **Note:** This API is currently in beta.
|
|
334
|
+
Retrieves the URL‑endpoint identified by `id`.
|
|
335
|
+
|
|
336
|
+
### Resource `beta.v2.files`:
|
|
337
|
+
|
|
338
|
+
- `upload_v2_beta_files` (`write`): The V2 API enhances security by verifying the entire payload using JWT. This API is in beta.
|
|
339
|
+
|
|
340
|
+
ImageKit.io allows you to upload files directly from both the server and client sides. For server-side uploads, private API key authentication is used. For client-side uploads, generate a one-time `token` from your secure backend using private API. [Learn more](/docs/api-reference/upload-file/upload-file-v2#how-to-implement-secure-client-side-file-upload) about how to implement secure client-side file upload.
|
|
341
|
+
|
|
342
|
+
**File size limit** \
|
|
343
|
+
On the free plan, the maximum upload file sizes are 20MB for images, audio, and raw files, and 100MB for videos. On the paid plan, these limits increase to 40MB for images, audio, and raw files, and 2GB for videos. These limits can be further increased with higher-tier plans.
|
|
344
|
+
|
|
345
|
+
**Version limit** \
|
|
346
|
+
A file can have a maximum of 100 versions.
|
|
347
|
+
|
|
348
|
+
**Demo applications**
|
|
349
|
+
|
|
350
|
+
- A full-fledged [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), supporting file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more.
|
|
351
|
+
- [Quick start guides](/docs/quick-start-guides) for various frameworks and technologies.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.workerPath = void 0;
|
|
5
|
+
exports.workerPath = require.resolve('./code-tool-worker.mjs');
|
|
6
|
+
//# sourceMappingURL=code-tool-paths.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-tool-paths.cjs","sourceRoot":"","sources":["src/code-tool-paths.cts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEzE,QAAA,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-tool-paths.d.cts","sourceRoot":"","sources":["src/code-tool-paths.cts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAA4C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientOptions } from '@imagekit/nodejs';
|
|
2
|
+
export type WorkerInput = {
|
|
3
|
+
opts: ClientOptions;
|
|
4
|
+
code: string;
|
|
5
|
+
};
|
|
6
|
+
export type WorkerSuccess = {
|
|
7
|
+
result: unknown | null;
|
|
8
|
+
logLines: string[];
|
|
9
|
+
errLines: string[];
|
|
10
|
+
};
|
|
11
|
+
export type WorkerError = {
|
|
12
|
+
message: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=code-tool-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-tool-types.d.mts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,kBAAkB;AAEhD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientOptions } from '@imagekit/nodejs';
|
|
2
|
+
export type WorkerInput = {
|
|
3
|
+
opts: ClientOptions;
|
|
4
|
+
code: string;
|
|
5
|
+
};
|
|
6
|
+
export type WorkerSuccess = {
|
|
7
|
+
result: unknown | null;
|
|
8
|
+
logLines: string[];
|
|
9
|
+
errLines: string[];
|
|
10
|
+
};
|
|
11
|
+
export type WorkerError = {
|
|
12
|
+
message: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=code-tool-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-tool-types.d.ts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,kBAAkB;AAEhD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-tool-types.js","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-tool-types.mjs","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-tool-worker.d.mts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";iBAM0B,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;;AAuCrD,wBAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-tool-worker.d.ts","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":";iBAM0B,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC;;AAuCrD,wBAAyB"}
|