@imagekit/api-mcp 7.1.1 → 7.2.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 +1 -1
- package/README.md +26 -273
- package/code-tool-types.d.mts +7 -7
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +7 -7
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool.d.mts +3 -3
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +3 -3
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +74 -135
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +74 -102
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +16 -9
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +16 -9
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +11 -3
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +11 -3
- package/docs-search-tool.mjs.map +1 -1
- package/headers.d.mts.map +1 -1
- package/headers.d.ts.map +1 -1
- package/headers.js +1 -1
- package/headers.js.map +1 -1
- package/headers.mjs +1 -1
- package/headers.mjs.map +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +4 -24
- package/http.js.map +1 -1
- package/http.mjs +4 -24
- package/http.mjs.map +1 -1
- package/index.js +4 -40
- package/index.js.map +1 -1
- package/index.mjs +4 -40
- package/index.mjs.map +1 -1
- package/options.d.mts +0 -9
- package/options.d.mts.map +1 -1
- package/options.d.ts +0 -9
- package/options.d.ts.map +1 -1
- package/options.js +6 -358
- package/options.js.map +1 -1
- package/options.mjs +6 -358
- package/options.mjs.map +1 -1
- package/package.json +14 -68
- package/server.d.mts +3 -8
- package/server.d.mts.map +1 -1
- package/server.d.ts +3 -8
- package/server.d.ts.map +1 -1
- package/server.js +12 -65
- package/server.js.map +1 -1
- package/server.mjs +11 -62
- package/server.mjs.map +1 -1
- package/src/code-tool-types.ts +7 -5
- package/src/code-tool.ts +81 -120
- package/src/docs-search-tool.ts +15 -4
- package/src/headers.ts +3 -1
- package/src/http.ts +5 -26
- package/src/index.ts +5 -52
- package/src/options.ts +7 -381
- package/src/server.ts +12 -72
- package/src/stdio.ts +2 -3
- package/src/{tools/types.ts → types.ts} +13 -1
- package/stdio.d.mts +1 -2
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts +1 -2
- package/stdio.d.ts.map +1 -1
- package/stdio.js +2 -2
- package/stdio.js.map +1 -1
- package/stdio.mjs +2 -2
- package/stdio.mjs.map +1 -1
- package/{tools/types.d.mts → types.d.mts} +2 -1
- package/types.d.mts.map +1 -0
- package/{tools/types.d.ts → types.d.ts} +2 -1
- package/types.d.ts.map +1 -0
- package/{tools/types.js → types.js} +12 -0
- package/types.js.map +1 -0
- package/{tools/types.mjs → types.mjs} +11 -0
- package/types.mjs.map +1 -0
- package/code-tool-paths.cjs +0 -6
- package/code-tool-paths.cjs.map +0 -1
- package/code-tool-paths.d.cts +0 -2
- package/code-tool-paths.d.cts.map +0 -1
- package/code-tool-worker.d.mts +0 -5
- package/code-tool-worker.d.mts.map +0 -1
- package/code-tool-worker.d.ts +0 -5
- package/code-tool-worker.d.ts.map +0 -1
- package/code-tool-worker.js +0 -45
- package/code-tool-worker.js.map +0 -1
- package/code-tool-worker.mjs +0 -40
- package/code-tool-worker.mjs.map +0 -1
- package/compat.d.mts +0 -58
- package/compat.d.mts.map +0 -1
- package/compat.d.ts +0 -58
- package/compat.d.ts.map +0 -1
- package/compat.js +0 -387
- package/compat.js.map +0 -1
- package/compat.mjs +0 -378
- package/compat.mjs.map +0 -1
- package/dynamic-tools.d.mts +0 -12
- package/dynamic-tools.d.mts.map +0 -1
- package/dynamic-tools.d.ts +0 -12
- package/dynamic-tools.d.ts.map +0 -1
- package/dynamic-tools.js +0 -135
- package/dynamic-tools.js.map +0 -1
- package/dynamic-tools.mjs +0 -132
- package/dynamic-tools.mjs.map +0 -1
- package/filtering.d.mts +0 -2
- package/filtering.d.mts.map +0 -1
- package/filtering.d.ts +0 -2
- package/filtering.d.ts.map +0 -1
- package/filtering.js +0 -20
- package/filtering.js.map +0 -1
- package/filtering.mjs +0 -13
- package/filtering.mjs.map +0 -1
- package/src/code-tool-paths.cts +0 -3
- package/src/code-tool-worker.ts +0 -46
- package/src/compat.ts +0 -483
- package/src/dynamic-tools.ts +0 -153
- package/src/filtering.ts +0 -14
- package/src/tools/accounts/origins/create-accounts-origins.ts +0 -318
- package/src/tools/accounts/origins/delete-accounts-origins.ts +0 -43
- package/src/tools/accounts/origins/get-accounts-origins.ts +0 -41
- package/src/tools/accounts/origins/list-accounts-origins.ts +0 -35
- package/src/tools/accounts/origins/update-accounts-origins.ts +0 -360
- package/src/tools/accounts/url-endpoints/create-accounts-url-endpoints.ts +0 -103
- package/src/tools/accounts/url-endpoints/delete-accounts-url-endpoints.ts +0 -43
- package/src/tools/accounts/url-endpoints/get-accounts-url-endpoints.ts +0 -49
- package/src/tools/accounts/url-endpoints/list-accounts-url-endpoints.ts +0 -44
- package/src/tools/accounts/url-endpoints/update-accounts-url-endpoints.ts +0 -112
- package/src/tools/accounts/usage/get-accounts-usage.ts +0 -56
- package/src/tools/assets/list-assets.ts +0 -94
- package/src/tools/beta/v2/files/upload-v2-beta-files.ts +0 -316
- package/src/tools/cache/invalidation/create-cache-invalidation.ts +0 -46
- package/src/tools/cache/invalidation/get-cache-invalidation.ts +0 -47
- package/src/tools/custom-metadata-fields/create-custom-metadata-fields.ts +0 -154
- package/src/tools/custom-metadata-fields/delete-custom-metadata-fields.ts +0 -47
- package/src/tools/custom-metadata-fields/list-custom-metadata-fields.ts +0 -53
- package/src/tools/custom-metadata-fields/update-custom-metadata-fields.ts +0 -150
- package/src/tools/files/bulk/add-tags-files-bulk.ts +0 -56
- package/src/tools/files/bulk/delete-files-bulk.ts +0 -49
- package/src/tools/files/bulk/remove-ai-tags-files-bulk.ts +0 -56
- package/src/tools/files/bulk/remove-tags-files-bulk.ts +0 -56
- package/src/tools/files/copy-files.ts +0 -55
- package/src/tools/files/delete-files.ts +0 -41
- package/src/tools/files/get-files.ts +0 -47
- package/src/tools/files/metadata/get-files-metadata.ts +0 -47
- package/src/tools/files/metadata/get-from-url-files-metadata.ts +0 -48
- package/src/tools/files/move-files.ts +0 -50
- package/src/tools/files/rename-files.ts +0 -58
- package/src/tools/files/update-files.ts +0 -196
- package/src/tools/files/upload-files.ts +0 -332
- package/src/tools/files/versions/delete-files-versions.ts +0 -52
- package/src/tools/files/versions/get-files-versions.ts +0 -50
- package/src/tools/files/versions/list-files-versions.ts +0 -47
- package/src/tools/files/versions/restore-files-versions.ts +0 -52
- package/src/tools/folders/copy-folders.ts +0 -55
- package/src/tools/folders/create-folders.ts +0 -52
- package/src/tools/folders/delete-folders.ts +0 -48
- package/src/tools/folders/job/get-folders-job.ts +0 -47
- package/src/tools/folders/move-folders.ts +0 -50
- package/src/tools/folders/rename-folders.ts +0 -56
- package/src/tools/index.ts +0 -153
- package/src/tools.ts +0 -1
- package/tools/accounts/origins/create-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/create-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/create-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/create-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/create-accounts-origins.js +0 -314
- package/tools/accounts/origins/create-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/create-accounts-origins.mjs +0 -310
- package/tools/accounts/origins/create-accounts-origins.mjs.map +0 -1
- package/tools/accounts/origins/delete-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/delete-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/delete-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/delete-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/delete-accounts-origins.js +0 -38
- package/tools/accounts/origins/delete-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/delete-accounts-origins.mjs +0 -34
- package/tools/accounts/origins/delete-accounts-origins.mjs.map +0 -1
- package/tools/accounts/origins/get-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/get-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/get-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/get-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/get-accounts-origins.js +0 -37
- package/tools/accounts/origins/get-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/get-accounts-origins.mjs +0 -33
- package/tools/accounts/origins/get-accounts-origins.mjs.map +0 -1
- package/tools/accounts/origins/list-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/list-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/list-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/list-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/list-accounts-origins.js +0 -31
- package/tools/accounts/origins/list-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/list-accounts-origins.mjs +0 -27
- package/tools/accounts/origins/list-accounts-origins.mjs.map +0 -1
- package/tools/accounts/origins/update-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/update-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/update-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/update-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/update-accounts-origins.js +0 -348
- package/tools/accounts/origins/update-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/update-accounts-origins.mjs +0 -344
- package/tools/accounts/origins/update-accounts-origins.mjs.map +0 -1
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js +0 -95
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs +0 -91
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js +0 -38
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs +0 -34
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js +0 -43
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs +0 -39
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js +0 -39
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs +0 -35
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js +0 -101
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs +0 -97
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/usage/get-accounts-usage.d.mts +0 -45
- package/tools/accounts/usage/get-accounts-usage.d.mts.map +0 -1
- package/tools/accounts/usage/get-accounts-usage.d.ts +0 -45
- package/tools/accounts/usage/get-accounts-usage.d.ts.map +0 -1
- package/tools/accounts/usage/get-accounts-usage.js +0 -49
- package/tools/accounts/usage/get-accounts-usage.js.map +0 -1
- package/tools/accounts/usage/get-accounts-usage.mjs +0 -45
- package/tools/accounts/usage/get-accounts-usage.mjs.map +0 -1
- package/tools/assets/list-assets.d.mts +0 -45
- package/tools/assets/list-assets.d.mts.map +0 -1
- package/tools/assets/list-assets.d.ts +0 -45
- package/tools/assets/list-assets.d.ts.map +0 -1
- package/tools/assets/list-assets.js +0 -85
- package/tools/assets/list-assets.js.map +0 -1
- package/tools/assets/list-assets.mjs +0 -81
- package/tools/assets/list-assets.mjs.map +0 -1
- package/tools/beta/v2/files/upload-v2-beta-files.d.mts +0 -45
- package/tools/beta/v2/files/upload-v2-beta-files.d.mts.map +0 -1
- package/tools/beta/v2/files/upload-v2-beta-files.d.ts +0 -45
- package/tools/beta/v2/files/upload-v2-beta-files.d.ts.map +0 -1
- package/tools/beta/v2/files/upload-v2-beta-files.js +0 -286
- package/tools/beta/v2/files/upload-v2-beta-files.js.map +0 -1
- package/tools/beta/v2/files/upload-v2-beta-files.mjs +0 -282
- package/tools/beta/v2/files/upload-v2-beta-files.mjs.map +0 -1
- package/tools/cache/invalidation/create-cache-invalidation.d.mts +0 -45
- package/tools/cache/invalidation/create-cache-invalidation.d.mts.map +0 -1
- package/tools/cache/invalidation/create-cache-invalidation.d.ts +0 -45
- package/tools/cache/invalidation/create-cache-invalidation.d.ts.map +0 -1
- package/tools/cache/invalidation/create-cache-invalidation.js +0 -41
- package/tools/cache/invalidation/create-cache-invalidation.js.map +0 -1
- package/tools/cache/invalidation/create-cache-invalidation.mjs +0 -37
- package/tools/cache/invalidation/create-cache-invalidation.mjs.map +0 -1
- package/tools/cache/invalidation/get-cache-invalidation.d.mts +0 -45
- package/tools/cache/invalidation/get-cache-invalidation.d.mts.map +0 -1
- package/tools/cache/invalidation/get-cache-invalidation.d.ts +0 -45
- package/tools/cache/invalidation/get-cache-invalidation.d.ts.map +0 -1
- package/tools/cache/invalidation/get-cache-invalidation.js +0 -42
- package/tools/cache/invalidation/get-cache-invalidation.js.map +0 -1
- package/tools/cache/invalidation/get-cache-invalidation.mjs +0 -38
- package/tools/cache/invalidation/get-cache-invalidation.mjs.map +0 -1
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts +0 -45
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts.map +0 -1
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts +0 -45
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts.map +0 -1
- package/tools/custom-metadata-fields/create-custom-metadata-fields.js +0 -139
- package/tools/custom-metadata-fields/create-custom-metadata-fields.js.map +0 -1
- package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs +0 -135
- package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs.map +0 -1
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts +0 -45
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts.map +0 -1
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts +0 -45
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts.map +0 -1
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.js +0 -42
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.js.map +0 -1
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs +0 -38
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs.map +0 -1
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts +0 -45
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts.map +0 -1
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts +0 -45
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts.map +0 -1
- package/tools/custom-metadata-fields/list-custom-metadata-fields.js +0 -47
- package/tools/custom-metadata-fields/list-custom-metadata-fields.js.map +0 -1
- package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs +0 -43
- package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs.map +0 -1
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts +0 -45
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts.map +0 -1
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts +0 -45
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts.map +0 -1
- package/tools/custom-metadata-fields/update-custom-metadata-fields.js +0 -133
- package/tools/custom-metadata-fields/update-custom-metadata-fields.js.map +0 -1
- package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs +0 -129
- package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs.map +0 -1
- package/tools/files/bulk/add-tags-files-bulk.d.mts +0 -45
- package/tools/files/bulk/add-tags-files-bulk.d.mts.map +0 -1
- package/tools/files/bulk/add-tags-files-bulk.d.ts +0 -45
- package/tools/files/bulk/add-tags-files-bulk.d.ts.map +0 -1
- package/tools/files/bulk/add-tags-files-bulk.js +0 -51
- package/tools/files/bulk/add-tags-files-bulk.js.map +0 -1
- package/tools/files/bulk/add-tags-files-bulk.mjs +0 -47
- package/tools/files/bulk/add-tags-files-bulk.mjs.map +0 -1
- package/tools/files/bulk/delete-files-bulk.d.mts +0 -45
- package/tools/files/bulk/delete-files-bulk.d.mts.map +0 -1
- package/tools/files/bulk/delete-files-bulk.d.ts +0 -45
- package/tools/files/bulk/delete-files-bulk.d.ts.map +0 -1
- package/tools/files/bulk/delete-files-bulk.js +0 -44
- package/tools/files/bulk/delete-files-bulk.js.map +0 -1
- package/tools/files/bulk/delete-files-bulk.mjs +0 -40
- package/tools/files/bulk/delete-files-bulk.mjs.map +0 -1
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts +0 -45
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts.map +0 -1
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts +0 -45
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts.map +0 -1
- package/tools/files/bulk/remove-ai-tags-files-bulk.js +0 -51
- package/tools/files/bulk/remove-ai-tags-files-bulk.js.map +0 -1
- package/tools/files/bulk/remove-ai-tags-files-bulk.mjs +0 -47
- package/tools/files/bulk/remove-ai-tags-files-bulk.mjs.map +0 -1
- package/tools/files/bulk/remove-tags-files-bulk.d.mts +0 -45
- package/tools/files/bulk/remove-tags-files-bulk.d.mts.map +0 -1
- package/tools/files/bulk/remove-tags-files-bulk.d.ts +0 -45
- package/tools/files/bulk/remove-tags-files-bulk.d.ts.map +0 -1
- package/tools/files/bulk/remove-tags-files-bulk.js +0 -51
- package/tools/files/bulk/remove-tags-files-bulk.js.map +0 -1
- package/tools/files/bulk/remove-tags-files-bulk.mjs +0 -47
- package/tools/files/bulk/remove-tags-files-bulk.mjs.map +0 -1
- package/tools/files/copy-files.d.mts +0 -45
- package/tools/files/copy-files.d.mts.map +0 -1
- package/tools/files/copy-files.d.ts +0 -45
- package/tools/files/copy-files.d.ts.map +0 -1
- package/tools/files/copy-files.js +0 -49
- package/tools/files/copy-files.js.map +0 -1
- package/tools/files/copy-files.mjs +0 -45
- package/tools/files/copy-files.mjs.map +0 -1
- package/tools/files/delete-files.d.mts +0 -45
- package/tools/files/delete-files.d.mts.map +0 -1
- package/tools/files/delete-files.d.ts +0 -45
- package/tools/files/delete-files.d.ts.map +0 -1
- package/tools/files/delete-files.js +0 -37
- package/tools/files/delete-files.js.map +0 -1
- package/tools/files/delete-files.mjs +0 -33
- package/tools/files/delete-files.mjs.map +0 -1
- package/tools/files/get-files.d.mts +0 -45
- package/tools/files/get-files.d.mts.map +0 -1
- package/tools/files/get-files.d.ts +0 -45
- package/tools/files/get-files.d.ts.map +0 -1
- package/tools/files/get-files.js +0 -42
- package/tools/files/get-files.js.map +0 -1
- package/tools/files/get-files.mjs +0 -38
- package/tools/files/get-files.mjs.map +0 -1
- package/tools/files/metadata/get-files-metadata.d.mts +0 -45
- package/tools/files/metadata/get-files-metadata.d.mts.map +0 -1
- package/tools/files/metadata/get-files-metadata.d.ts +0 -45
- package/tools/files/metadata/get-files-metadata.d.ts.map +0 -1
- package/tools/files/metadata/get-files-metadata.js +0 -42
- package/tools/files/metadata/get-files-metadata.js.map +0 -1
- package/tools/files/metadata/get-files-metadata.mjs +0 -38
- package/tools/files/metadata/get-files-metadata.mjs.map +0 -1
- package/tools/files/metadata/get-from-url-files-metadata.d.mts +0 -45
- package/tools/files/metadata/get-from-url-files-metadata.d.mts.map +0 -1
- package/tools/files/metadata/get-from-url-files-metadata.d.ts +0 -45
- package/tools/files/metadata/get-from-url-files-metadata.d.ts.map +0 -1
- package/tools/files/metadata/get-from-url-files-metadata.js +0 -43
- package/tools/files/metadata/get-from-url-files-metadata.js.map +0 -1
- package/tools/files/metadata/get-from-url-files-metadata.mjs +0 -39
- package/tools/files/metadata/get-from-url-files-metadata.mjs.map +0 -1
- package/tools/files/move-files.d.mts +0 -45
- package/tools/files/move-files.d.mts.map +0 -1
- package/tools/files/move-files.d.ts +0 -45
- package/tools/files/move-files.d.ts.map +0 -1
- package/tools/files/move-files.js +0 -45
- package/tools/files/move-files.js.map +0 -1
- package/tools/files/move-files.mjs +0 -41
- package/tools/files/move-files.mjs.map +0 -1
- package/tools/files/rename-files.d.mts +0 -45
- package/tools/files/rename-files.d.mts.map +0 -1
- package/tools/files/rename-files.d.ts +0 -45
- package/tools/files/rename-files.d.ts.map +0 -1
- package/tools/files/rename-files.js +0 -51
- package/tools/files/rename-files.js.map +0 -1
- package/tools/files/rename-files.mjs +0 -47
- package/tools/files/rename-files.mjs.map +0 -1
- package/tools/files/update-files.d.mts +0 -45
- package/tools/files/update-files.d.mts.map +0 -1
- package/tools/files/update-files.d.ts +0 -45
- package/tools/files/update-files.d.ts.map +0 -1
- package/tools/files/update-files.js +0 -181
- package/tools/files/update-files.js.map +0 -1
- package/tools/files/update-files.mjs +0 -177
- package/tools/files/update-files.mjs.map +0 -1
- package/tools/files/upload-files.d.mts +0 -45
- package/tools/files/upload-files.d.mts.map +0 -1
- package/tools/files/upload-files.d.ts +0 -45
- package/tools/files/upload-files.d.ts.map +0 -1
- package/tools/files/upload-files.js +0 -298
- package/tools/files/upload-files.js.map +0 -1
- package/tools/files/upload-files.mjs +0 -294
- package/tools/files/upload-files.mjs.map +0 -1
- package/tools/files/versions/delete-files-versions.d.mts +0 -45
- package/tools/files/versions/delete-files-versions.d.mts.map +0 -1
- package/tools/files/versions/delete-files-versions.d.ts +0 -45
- package/tools/files/versions/delete-files-versions.d.ts.map +0 -1
- package/tools/files/versions/delete-files-versions.js +0 -45
- package/tools/files/versions/delete-files-versions.js.map +0 -1
- package/tools/files/versions/delete-files-versions.mjs +0 -41
- package/tools/files/versions/delete-files-versions.mjs.map +0 -1
- package/tools/files/versions/get-files-versions.d.mts +0 -45
- package/tools/files/versions/get-files-versions.d.mts.map +0 -1
- package/tools/files/versions/get-files-versions.d.ts +0 -45
- package/tools/files/versions/get-files-versions.d.ts.map +0 -1
- package/tools/files/versions/get-files-versions.js +0 -45
- package/tools/files/versions/get-files-versions.js.map +0 -1
- package/tools/files/versions/get-files-versions.mjs +0 -41
- package/tools/files/versions/get-files-versions.mjs.map +0 -1
- package/tools/files/versions/list-files-versions.d.mts +0 -45
- package/tools/files/versions/list-files-versions.d.mts.map +0 -1
- package/tools/files/versions/list-files-versions.d.ts +0 -45
- package/tools/files/versions/list-files-versions.d.ts.map +0 -1
- package/tools/files/versions/list-files-versions.js +0 -42
- package/tools/files/versions/list-files-versions.js.map +0 -1
- package/tools/files/versions/list-files-versions.mjs +0 -38
- package/tools/files/versions/list-files-versions.mjs.map +0 -1
- package/tools/files/versions/restore-files-versions.d.mts +0 -45
- package/tools/files/versions/restore-files-versions.d.mts.map +0 -1
- package/tools/files/versions/restore-files-versions.d.ts +0 -45
- package/tools/files/versions/restore-files-versions.d.ts.map +0 -1
- package/tools/files/versions/restore-files-versions.js +0 -45
- package/tools/files/versions/restore-files-versions.js.map +0 -1
- package/tools/files/versions/restore-files-versions.mjs +0 -41
- package/tools/files/versions/restore-files-versions.mjs.map +0 -1
- package/tools/folders/copy-folders.d.mts +0 -45
- package/tools/folders/copy-folders.d.mts.map +0 -1
- package/tools/folders/copy-folders.d.ts +0 -45
- package/tools/folders/copy-folders.d.ts.map +0 -1
- package/tools/folders/copy-folders.js +0 -49
- package/tools/folders/copy-folders.js.map +0 -1
- package/tools/folders/copy-folders.mjs +0 -45
- package/tools/folders/copy-folders.mjs.map +0 -1
- package/tools/folders/create-folders.d.mts +0 -45
- package/tools/folders/create-folders.d.mts.map +0 -1
- package/tools/folders/create-folders.d.ts +0 -45
- package/tools/folders/create-folders.d.ts.map +0 -1
- package/tools/folders/create-folders.js +0 -45
- package/tools/folders/create-folders.js.map +0 -1
- package/tools/folders/create-folders.mjs +0 -41
- package/tools/folders/create-folders.mjs.map +0 -1
- package/tools/folders/delete-folders.d.mts +0 -45
- package/tools/folders/delete-folders.d.mts.map +0 -1
- package/tools/folders/delete-folders.d.ts +0 -45
- package/tools/folders/delete-folders.d.ts.map +0 -1
- package/tools/folders/delete-folders.js +0 -43
- package/tools/folders/delete-folders.js.map +0 -1
- package/tools/folders/delete-folders.mjs +0 -39
- package/tools/folders/delete-folders.mjs.map +0 -1
- package/tools/folders/job/get-folders-job.d.mts +0 -45
- package/tools/folders/job/get-folders-job.d.mts.map +0 -1
- package/tools/folders/job/get-folders-job.d.ts +0 -45
- package/tools/folders/job/get-folders-job.d.ts.map +0 -1
- package/tools/folders/job/get-folders-job.js +0 -42
- package/tools/folders/job/get-folders-job.js.map +0 -1
- package/tools/folders/job/get-folders-job.mjs +0 -38
- package/tools/folders/job/get-folders-job.mjs.map +0 -1
- package/tools/folders/move-folders.d.mts +0 -45
- package/tools/folders/move-folders.d.mts.map +0 -1
- package/tools/folders/move-folders.d.ts +0 -45
- package/tools/folders/move-folders.d.ts.map +0 -1
- package/tools/folders/move-folders.js +0 -45
- package/tools/folders/move-folders.js.map +0 -1
- package/tools/folders/move-folders.mjs +0 -41
- package/tools/folders/move-folders.mjs.map +0 -1
- package/tools/folders/rename-folders.d.mts +0 -45
- package/tools/folders/rename-folders.d.mts.map +0 -1
- package/tools/folders/rename-folders.d.ts +0 -45
- package/tools/folders/rename-folders.d.ts.map +0 -1
- package/tools/folders/rename-folders.js +0 -49
- package/tools/folders/rename-folders.js.map +0 -1
- package/tools/folders/rename-folders.mjs +0 -45
- package/tools/folders/rename-folders.mjs.map +0 -1
- package/tools/index.d.mts +0 -10
- package/tools/index.d.mts.map +0 -1
- package/tools/index.d.ts +0 -10
- package/tools/index.d.ts.map +0 -1
- package/tools/index.js +0 -137
- package/tools/index.js.map +0 -1
- package/tools/index.mjs +0 -130
- package/tools/index.mjs.map +0 -1
- package/tools/types.d.mts.map +0 -1
- package/tools/types.d.ts.map +0 -1
- package/tools/types.js.map +0 -1
- package/tools/types.mjs.map +0 -1
- package/tools.d.mts +0 -2
- package/tools.d.mts.map +0 -1
- package/tools.d.ts +0 -2
- package/tools.d.ts.map +0 -1
- package/tools.js +0 -18
- package/tools.js.map +0 -1
- package/tools.mjs +0 -2
- package/tools.mjs.map +0 -1
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Image Kit
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ For clients with a configuration JSON, it might look something like this:
|
|
|
25
25
|
"mcpServers": {
|
|
26
26
|
"imagekit_nodejs_api": {
|
|
27
27
|
"command": "npx",
|
|
28
|
-
"args": ["-y", "@imagekit/api-mcp"
|
|
28
|
+
"args": ["-y", "@imagekit/api-mcp"],
|
|
29
29
|
"env": {
|
|
30
30
|
"IMAGEKIT_PRIVATE_KEY": "My Private Key",
|
|
31
31
|
"OPTIONAL_IMAGEKIT_IGNORES_THIS": "My Password",
|
|
@@ -36,97 +36,45 @@ For clients with a configuration JSON, it might look something like this:
|
|
|
36
36
|
}
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
### Cursor
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables
|
|
42
|
+
in Cursor's `mcp.json`, which can be found in Cursor Settings > Tools & MCP > New MCP Server.
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
2. Exposing a set of tools to dynamically discover and invoke endpoints from the API
|
|
44
|
+
[](https://cursor.com/en-US/install-mcp?name=%40imagekit%2Fapi-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBpbWFnZWtpdC9hcGktbWNwIl0sImVudiI6eyJJTUFHRUtJVF9QUklWQVRFX0tFWSI6IlNldCB5b3VyIElNQUdFS0lUX1BSSVZBVEVfS0VZIGhlcmUuIiwiT1BUSU9OQUxfSU1BR0VLSVRfSUdOT1JFU19USElTIjoiU2V0IHlvdXIgT1BUSU9OQUxfSU1BR0VLSVRfSUdOT1JFU19USElTIGhlcmUuIiwiSU1BR0VLSVRfV0VCSE9PS19TRUNSRVQiOiJTZXQgeW91ciBJTUFHRUtJVF9XRUJIT09LX1NFQ1JFVCBoZXJlLiJ9fQ)
|
|
45
45
|
|
|
46
|
-
###
|
|
46
|
+
### VS Code
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
context window.
|
|
48
|
+
If you use MCP, you can install the MCP server by clicking the link below. You will need to set your environment variables
|
|
49
|
+
in VS Code's `mcp.json`, which can be found via Command Palette > MCP: Open User Configuration.
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
[Open VS Code](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40imagekit%2Fapi-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40imagekit%2Fapi-mcp%22%5D%2C%22env%22%3A%7B%22IMAGEKIT_PRIVATE_KEY%22%3A%22Set%20your%20IMAGEKIT_PRIVATE_KEY%20here.%22%2C%22OPTIONAL_IMAGEKIT_IGNORES_THIS%22%3A%22Set%20your%20OPTIONAL_IMAGEKIT_IGNORES_THIS%20here.%22%2C%22IMAGEKIT_WEBHOOK_SECRET%22%3A%22Set%20your%20IMAGEKIT_WEBHOOK_SECRET%20here.%22%7D%7D)
|
|
53
52
|
|
|
54
|
-
|
|
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
|
|
53
|
+
### Claude Code
|
|
57
54
|
|
|
58
|
-
|
|
55
|
+
If you use Claude Code, you can install the MCP server by running the command below in your terminal. You will need to set your
|
|
56
|
+
environment variables in Claude Code's `.claude.json`, which can be found in your home directory.
|
|
59
57
|
|
|
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
58
|
```
|
|
112
|
-
|
|
113
|
-
2. Exclude specific tools while including others:
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
--resource=cards --no-tool=create_cards
|
|
59
|
+
claude mcp add imagekit_api_mcp_api --env IMAGEKIT_PRIVATE_KEY="Your IMAGEKIT_PRIVATE_KEY here." OPTIONAL_IMAGEKIT_IGNORES_THIS="Your OPTIONAL_IMAGEKIT_IGNORES_THIS here." IMAGEKIT_WEBHOOK_SECRET="Your IMAGEKIT_WEBHOOK_SECRET here." -- npx -y @imagekit/api-mcp
|
|
117
60
|
```
|
|
118
61
|
|
|
119
|
-
|
|
62
|
+
## Code Mode
|
|
120
63
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
64
|
+
This MCP server is built on the "Code Mode" tool scheme. In this MCP Server,
|
|
65
|
+
your agent will write code against the TypeScript SDK, which will then be executed in an
|
|
66
|
+
isolated sandbox. To accomplish this, the server will expose two tools to your agent:
|
|
124
67
|
|
|
125
|
-
|
|
68
|
+
- The first tool is a docs search tool, which can be used to generically query for
|
|
69
|
+
documentation about your API/SDK.
|
|
126
70
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
71
|
+
- The second tool is a code tool, where the agent can write code against the TypeScript SDK.
|
|
72
|
+
The code will be executed in a sandbox environment without web or filesystem access. Then,
|
|
73
|
+
anything the code returns or prints will be returned to the agent as the result of the
|
|
74
|
+
tool call.
|
|
75
|
+
|
|
76
|
+
Using this scheme, agents are capable of performing very complex tasks deterministically
|
|
77
|
+
and repeatably.
|
|
130
78
|
|
|
131
79
|
## Running remotely
|
|
132
80
|
|
|
@@ -154,198 +102,3 @@ A configuration JSON for this server might look like this, assuming the server i
|
|
|
154
102
|
}
|
|
155
103
|
}
|
|
156
104
|
```
|
|
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.
|
package/code-tool-types.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ClientOptions } from '@imagekit/nodejs';
|
|
2
2
|
export type WorkerInput = {
|
|
3
|
-
|
|
3
|
+
project_name: string;
|
|
4
4
|
code: string;
|
|
5
|
+
client_opts: ClientOptions;
|
|
6
|
+
intent?: string | undefined;
|
|
5
7
|
};
|
|
6
|
-
export type
|
|
8
|
+
export type WorkerOutput = {
|
|
9
|
+
is_error: boolean;
|
|
7
10
|
result: unknown | null;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
export type WorkerError = {
|
|
12
|
-
message: string | undefined;
|
|
11
|
+
log_lines: string[];
|
|
12
|
+
err_lines: string[];
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=code-tool-types.d.mts.map
|
|
@@ -1 +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,
|
|
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,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,aAAa,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AACF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC"}
|
package/code-tool-types.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ClientOptions } from '@imagekit/nodejs';
|
|
2
2
|
export type WorkerInput = {
|
|
3
|
-
|
|
3
|
+
project_name: string;
|
|
4
4
|
code: string;
|
|
5
|
+
client_opts: ClientOptions;
|
|
6
|
+
intent?: string | undefined;
|
|
5
7
|
};
|
|
6
|
-
export type
|
|
8
|
+
export type WorkerOutput = {
|
|
9
|
+
is_error: boolean;
|
|
7
10
|
result: unknown | null;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
export type WorkerError = {
|
|
12
|
-
message: string | undefined;
|
|
11
|
+
log_lines: string[];
|
|
12
|
+
err_lines: string[];
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=code-tool-types.d.ts.map
|
package/code-tool-types.d.ts.map
CHANGED
|
@@ -1 +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,
|
|
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,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,aAAa,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AACF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC"}
|
package/code-tool.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { McpTool } from "./types.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* A tool that runs code against a copy of the SDK.
|
|
4
4
|
*
|
|
5
|
-
* Instead of exposing every endpoint as
|
|
5
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
6
6
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
7
7
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
8
8
|
*
|
|
9
9
|
* @param endpoints - The endpoints to include in the list.
|
|
10
10
|
*/
|
|
11
|
-
export declare function codeTool():
|
|
11
|
+
export declare function codeTool(): McpTool;
|
|
12
12
|
//# sourceMappingURL=code-tool.d.mts.map
|
package/code-tool.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAgE;AAyBhF;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAwElC"}
|
package/code-tool.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { McpTool } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* A tool that runs code against a copy of the SDK.
|
|
4
4
|
*
|
|
5
|
-
* Instead of exposing every endpoint as
|
|
5
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
6
6
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
7
7
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
8
8
|
*
|
|
9
9
|
* @param endpoints - The endpoints to include in the list.
|
|
10
10
|
*/
|
|
11
|
-
export declare function codeTool():
|
|
11
|
+
export declare function codeTool(): McpTool;
|
|
12
12
|
//# sourceMappingURL=code-tool.d.ts.map
|
package/code-tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAgE;AAyBhF;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAwElC"}
|