minio_bucket_exists
Verify whether a specific bucket exists in MinIO or S3-compatible object storage to confirm availability before performing storage operations.
Instructions
Check if a bucket exists in MinIO
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket_name | Yes | Name of the bucket to check |
Implementation Reference
- src/minio_mcp/client.py:72-82 (handler)The actual implementation of bucket_exists method in MinioClient class that checks if a bucket exists using the MinIO client's bucket_exists method and returns a dictionary with bucket name and existence status.
def bucket_exists(self, bucket_name: str) -> dict: """Check if a bucket exists. Args: bucket_name: Name of the bucket to check Returns: Dictionary with exists status """ exists = self._client.bucket_exists(bucket_name) return {"bucket": bucket_name, "exists": exists} - src/minio_mcp/server.py:84-97 (registration)Tool registration in the TOOLS list that defines the minio_bucket_exists tool with its name, description, and input schema requiring a bucket_name parameter.
Tool( name="minio_bucket_exists", description="Check if a bucket exists in MinIO", inputSchema={ "type": "object", "properties": { "bucket_name": { "type": "string", "description": "Name of the bucket to check", }, }, "required": ["bucket_name"], }, ), - src/minio_mcp/server.py:331-332 (registration)Handler in the call_tool function that routes minio_bucket_exists tool calls to the MinioClient's bucket_exists method, passing the bucket_name argument.
elif name == "minio_bucket_exists": result = client.bucket_exists(arguments["bucket_name"])