Skip to main content
Glama
pickstar-2002

MinIO Storage MCP

list_buckets

Retrieve all storage buckets from MinIO object storage to view available containers for data management and organization.

Instructions

列出所有存储桶

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'list_buckets': calls minioClient.listBuckets() and returns formatted text response with bucket names and creation dates.
    case 'list_buckets': {
      const buckets = await this.minioClient.listBuckets();
      return {
        content: [
          {
            type: 'text',
            text: `找到 ${buckets.length} 个存储桶:\n${buckets.map(b => `- ${b.name} (创建时间: ${b.creationDate.toISOString()})`).join('\n')}`
          }
        ]
      };
    }
  • src/index.ts:83-86 (registration)
    Registration of the 'list_buckets' tool in the ListTools response, including name, description, and empty input schema.
    {
      name: 'list_buckets',
      description: '列出所有存储桶',
      inputSchema: { type: 'object', properties: {} }
  • Core implementation of listBuckets in MinIOStorageClient: ensures connection, lists buckets via MinIO client, maps to BucketInfo array.
    async listBuckets(): Promise<BucketInfo[]> {
      this.ensureConnected();
      const buckets = await this.client!.listBuckets();
      return buckets.map((bucket: any) => ({
        name: bucket.name,
        creationDate: bucket.creationDate
      }));
    }
  • Type definition for BucketInfo used in listBuckets return type.
    export interface BucketInfo {
      name: string;
      creationDate: Date;
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pickstar-2002/minio-storage-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server