@@ -47,6 +47,8 @@ List objects in a bucket with optional filtering.
4747
4848``` json
4949{
50+ "bucket" : " my-bucket" ,
51+ "prefix" : " path/to/" ,
5052 "objects" : [
5153 {
5254 "key" : " path/to/file.txt" ,
@@ -57,9 +59,9 @@ List objects in a bucket with optional filtering.
5759 }
5860 ],
5961 "common_prefixes" : [" path/to/folder/" ],
62+ "count" : 1 ,
6063 "is_truncated" : false ,
61- "next_continuation_token" : null ,
62- "key_count" : 1
64+ "next_continuation_token" : null
6365}
6466```
6567
@@ -81,13 +83,15 @@ Retrieve object content.
8183
8284``` json
8385{
86+ "bucket" : " my-bucket" ,
8487 "key" : " path/to/file.txt" ,
8588 "content_type" : " text/plain" ,
8689 "size" : 1024 ,
8790 "last_modified" : " 2024-01-15T10:30:00Z" ,
8891 "etag" : " \" d41d8cd98f00b204e9800998ecf8427e\" " ,
89- "body" : " File content here..." ,
90- "encoding" : " text" ,
92+ "content" : " File content here..." ,
93+ "is_base64" : false ,
94+ "truncated" : false ,
9195 "metadata" : {
9296 "custom-key" : " custom-value"
9397 }
@@ -96,8 +100,8 @@ Retrieve object content.
96100
97101### Notes
98102
99- - Text content is returned as-is
100- - Binary content is returned as base64 with ` encoding: "base64" `
103+ - Text content is returned as-is in ` content `
104+ - Binary content is returned as base64 in ` content ` with ` is_base64: true `
101105- Objects larger than ` MCP_S3_MAX_GET_SIZE ` are rejected
102106
103107---
@@ -118,6 +122,7 @@ Get object metadata without downloading content (HEAD request).
118122
119123``` json
120124{
125+ "bucket" : " my-bucket" ,
121126 "key" : " path/to/file.txt" ,
122127 "content_type" : " text/plain" ,
123128 "content_length" : 1024 ,
@@ -154,7 +159,8 @@ Upload an object to S3.
154159 "bucket" : " my-bucket" ,
155160 "key" : " path/to/file.txt" ,
156161 "etag" : " \" d41d8cd98f00b204e9800998ecf8427e\" " ,
157- "size" : 1024
162+ "size" : 1024 ,
163+ "version_id" : " abc123"
158164}
159165```
160166
@@ -216,7 +222,9 @@ Copy an object within or between buckets.
216222 "source_key" : " path/to/source.txt" ,
217223 "dest_bucket" : " dest-bucket" ,
218224 "dest_key" : " path/to/dest.txt" ,
219- "etag" : " \" d41d8cd98f00b204e9800998ecf8427e\" "
225+ "etag" : " \" d41d8cd98f00b204e9800998ecf8427e\" " ,
226+ "last_modified" : " 2024-01-15T10:30:00Z" ,
227+ "version_id" : " abc123"
220228}
221229```
222230
@@ -244,8 +252,11 @@ Generate a presigned URL for direct access.
244252
245253``` json
246254{
255+ "bucket" : " my-bucket" ,
256+ "key" : " path/to/file.txt" ,
247257 "url" : " https://bucket.s3.amazonaws.com/key?X-Amz-Algorithm=..." ,
248258 "method" : " GET" ,
259+ "expires_in_seconds" : 3600 ,
249260 "expires_at" : " 2024-01-15T11:30:00Z"
250261}
251262```
@@ -274,7 +285,8 @@ None.
274285 "endpoint" : " http://localhost:8333"
275286 }
276287 ],
277- "default" : " default"
288+ "default_connection" : " default" ,
289+ "count" : 2
278290}
279291```
280292
0 commit comments