beget-s3-mcp-ai-cli
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BEGET_S3_POOL | No | Signing pool | ru1 |
| BEGET_S3_ALLOW | No | Independent write,delete,admin levels; read only by default | |
| BEGET_S3_ENDPOINT | No | Optional endpoint override | |
| BEGET_S3_FILE_ROOT | No | Optional confined local file root | |
| BEGET_S3_AUDIT_FILE | No | Optional private append-only audit output | |
| BEGET_S3_ACCESS_KEY_ID | No | S3 access key ID | |
| BEGET_S3_ALLOW_INSECURE | No | Set 1 only for explicit HTTP test endpoints | |
| BEGET_S3_ALLOWED_BUCKETS | No | Comma-separated bucket scope | |
| BEGET_S3_ALLOWED_PREFIXES | No | Comma-separated bucket/prefix/ scope | |
| BEGET_S3_SECRET_ACCESS_KEY | No | S3 secret access key | |
| BEGET_S3_DESTRUCTIVE_POLICY | No | BEGET_S3_DESTRUCTIVE_POLICY | confirm |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only by default. Get human approval for destructive operations. Transfer large bytes by presigned URLs or confined files.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| s3_get_objectA | Return a small object's whole body inline as UTF-8 text or base64; read-only. Use it for objects up to 262144 bytes (256 KiB); to look at the start of a larger file use s3_preview_object, to save it to disk use s3_download_file, and to hand it over use s3_presign_get. Returns key, bytes, data, encoding and content_type. Fails instead of truncating when the object exceeds max_bytes, and fails on non-UTF-8 content unless encoding is base64. |
| s3_head_objectA | Read one object's metadata without downloading its body; read-only. Use it to check existence, size or content type before s3_get_object, s3_download_file or s3_presign_get. Returns key, size (bytes), etag, content_type, last_modified, version_id and user metadata. A missing key fails with a not-found error (NotFound or http_404). |
| s3_largest_objectsA | Find the largest objects under a prefix by scanning up to max_scan keys (default 10000); read-only. Use it to locate what consumes space; use s3_prefix_usage for totals per sub-prefix and s3_list_objects for plain browsing. Returns objects[] sorted by size descending (at most limit, default 10), scanned, partial and continuation_token. partial:true means the scan stopped early and the ranking covers only scanned keys; pass continuation_token to rank the next batch. |
| s3_list_bucketsA | List the buckets these credentials can see, filtered by the configured bucket scope; read-only, up to 1000 per page. Use it to discover bucket names; to list keys inside a bucket use s3_list_objects. Returns buckets[] (name, created_at) and continuation_token, which is empty on the last page. Buckets outside the allowed scope are omitted rather than reported as errors. |
| s3_list_multipart_uploadsA | List in-progress multipart uploads (started, not yet completed or aborted) in a bucket; read-only, one page of up to 1000. Use it for a raw page of uploads; use s3_unfinished_uploads to find uploads older than N hours across many pages, and s3_list_parts for the parts of one upload. Returns uploads[] (Key, UploadId, Initiated and more), truncated, continuation_token and upload_id_marker; send them back as continuation_token and upload_id for the next page. |
| s3_list_objectsA | List one page of current object keys under a prefix in a bucket; read-only. Use it to browse objects; use s3_list_object_versions for old versions and delete markers, and s3_largest_objects or s3_prefix_usage for size analysis across many pages. Returns objects[] (key, size in bytes, etag, last_modified, storage_class), truncated, and continuation_token for the next page. Fails with scope_denied outside the configured bucket/prefix scope. |
| s3_list_partsA | List the parts already uploaded for one multipart upload; read-only. Use it before s3_multipart_complete to collect part numbers and ETags, or to check upload progress. Returns parts[] (PartNumber, ETag, Size, LastModified), truncated and continuation_token (a part-number marker) for the next page. An unknown upload_id fails with NoSuchUpload. |
| s3_prefix_usageA | Sum bytes and object counts per first-level sub-prefix under prefix, scanning up to max_scan keys (default 10000); read-only. Use it to see which folders take space; use s3_largest_objects for individual files. Returns prefixes[] (prefix, bytes, count; objects directly under prefix are grouped under prefix itself), scanned, partial, continuation_token and next_result_offset when more than 1000 rows exist. partial:true means totals cover only the scanned keys; this is an estimate, not billing data. |
| s3_preview_objectA | Read only the first bytes of an object (default and maximum 65536) with a ranged GET; read-only. Use it to inspect the format or header of a file of any size; use s3_get_object when you need the full body of a small object. Returns key, bytes, data, encoding (base64 is chosen automatically for binary data when encoding is omitted), content_type, detected_type (sniffed MIME type) and, for .csv keys or CSV content types, csv_header. |
| s3_unfinished_uploadsA | Find multipart uploads started more than older_than_hours ago (default 24), scanning up to max_scan uploads (default 10000); read-only. Use it to spot abandoned uploads that still occupy storage, then remove them with s3_multipart_abort; use s3_list_multipart_uploads for a raw page regardless of age. Returns uploads[] (key, upload_id, initiated; at most 1000), scanned, partial, continuation_token and upload_id_marker; when partial is true send both markers back to continue. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| capabilities | |
| config | |
| pools |
TDQS
Scored across 10 tools
Each tool targets a distinct S3 operation, and the descriptions explicitly disambiguate the close pairs (get vs preview vs head, list_objects vs largest_objects vs prefix_usage, list_multipart_uploads vs unfinished_uploads vs list_parts). An agent can map intent to exactly one tool without guessing.
All names are snake_case with a uniform s3_ prefix, and most follow verb_noun (s3_get_object, s3_list_buckets, s3_list_parts). A few deviate into adjective/noun forms (s3_largest_objects, s3_unfinished_uploads, s3_prefix_usage), but the pattern remains predictable and readable.
Ten tools is well within the sweet spot and each covers a real, non-redundant read/inspection task. The set is tightly scoped to analysis operations with no filler tools.
The surface is read/inspect-only and several tools explicitly point to operations that do not exist in this set: s3_download_file, s3_presign_get, s3_list_object_versions, s3_multipart_complete and s3_multipart_abort. An agent following the guidance hits dead ends, and there is no way to save a large object to disk or complete/abort a multipart upload.