@cloudinary/asset-management-mcp 0.6.2 → 0.6.3
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/README.md +34 -0
- package/bin/mcp-server.js +6 -6
- package/bin/mcp-server.js.map +6 -6
- package/esm/hooks/oauth2scopes.d.ts +16 -0
- package/esm/hooks/oauth2scopes.d.ts.map +1 -0
- package/esm/hooks/oauth2scopes.js +5 -0
- package/esm/hooks/oauth2scopes.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +3 -1
- package/esm/lib/encodings.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/manifest.json +11 -1
- package/package.json +1 -1
- package/src/hooks/oauth2scopes.ts +19 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +4 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/tsconfig.json +0 -1
package/README.md
CHANGED
|
@@ -266,6 +266,40 @@ The MCP server uses your Cloudinary API key and secret for authentication:
|
|
|
266
266
|
|
|
267
267
|
The MCP server exposes Cloudinary's Asset Management API as tools. Use your AI application to discover and invoke the available tools for uploading, managing, searching, and transforming your media assets.
|
|
268
268
|
|
|
269
|
+
### Usage Examples
|
|
270
|
+
|
|
271
|
+
#### Example 1: Upload and Transform an Image
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
1. Upload a local image: "Upload file:///Users/me/photo.jpg to Cloudinary as 'hero-image'"
|
|
275
|
+
2. Transform it: "Transform asset 'hero-image' with transformations 'c_fill,w_800,h_600/e_sharpen'"
|
|
276
|
+
3. Get details: "Show me details for asset with ID [asset-id]"
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
#### Example 2: Search and Organize Assets
|
|
280
|
+
|
|
281
|
+
```
|
|
282
|
+
1. Search for images: "Find all images with tag 'product' uploaded in the last 7 days"
|
|
283
|
+
2. Create folder: "Create a new folder called 'summer-2024-products'"
|
|
284
|
+
3. List assets: "Show me all video assets in the 'marketing' folder"
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
#### Example 3: Generate Archive
|
|
288
|
+
|
|
289
|
+
```
|
|
290
|
+
1. Get transformation docs: "Show me the Cloudinary transformation reference"
|
|
291
|
+
2. Apply transformations: "Transform 'banner' asset with 'c_scale,w_1200/f_auto,q_auto'"
|
|
292
|
+
3. Create archive: "Generate a ZIP archive of all images with tag 'export-ready'"
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
#### Example 4: Asset Management Workflow
|
|
296
|
+
|
|
297
|
+
```
|
|
298
|
+
1. Upload multiple files: "Upload all images from folder /assets/new-products/"
|
|
299
|
+
2. Add tags: "Update asset [asset-id] and add tags 'featured,homepage'"
|
|
300
|
+
3. Get usage stats: "Show my Cloudinary account usage statistics"
|
|
301
|
+
```
|
|
302
|
+
|
|
269
303
|
## Custom Tools
|
|
270
304
|
|
|
271
305
|
This MCP server includes two powerful custom tools:
|
package/bin/mcp-server.js
CHANGED
|
@@ -4054,9 +4054,9 @@ var init_config = __esm(() => {
|
|
|
4054
4054
|
SDK_METADATA = {
|
|
4055
4055
|
language: "typescript",
|
|
4056
4056
|
openapiDocVersion: "0.3.5",
|
|
4057
|
-
sdkVersion: "0.6.
|
|
4058
|
-
genVersion: "2.
|
|
4059
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.6.
|
|
4057
|
+
sdkVersion: "0.6.3",
|
|
4058
|
+
genVersion: "2.767.2",
|
|
4059
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.6.3 2.767.2 0.3.5 @cloudinary/asset-management-mcp"
|
|
4060
4060
|
};
|
|
4061
4061
|
});
|
|
4062
4062
|
|
|
@@ -53025,7 +53025,7 @@ A report on the status of product environment usage, including storage, credits,
|
|
|
53025
53025
|
function createMCPServer(deps) {
|
|
53026
53026
|
const server = new McpServer({
|
|
53027
53027
|
name: "CloudinaryAssetMgmt",
|
|
53028
|
-
version: "0.6.
|
|
53028
|
+
version: "0.6.3"
|
|
53029
53029
|
});
|
|
53030
53030
|
const getClient = deps.getSDK || (() => new CloudinaryAssetMgmtCore({
|
|
53031
53031
|
security: deps.security,
|
|
@@ -54366,7 +54366,7 @@ var routes = ln({
|
|
|
54366
54366
|
var app = _e(routes, {
|
|
54367
54367
|
name: "mcp",
|
|
54368
54368
|
versionInfo: {
|
|
54369
|
-
currentVersion: "0.6.
|
|
54369
|
+
currentVersion: "0.6.3"
|
|
54370
54370
|
}
|
|
54371
54371
|
});
|
|
54372
54372
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -54374,5 +54374,5 @@ export {
|
|
|
54374
54374
|
app
|
|
54375
54375
|
};
|
|
54376
54376
|
|
|
54377
|
-
//# debugId=
|
|
54377
|
+
//# debugId=D4842FAA45F70FBA64756E2164756E21
|
|
54378
54378
|
//# sourceMappingURL=mcp-server.js.map
|