Skip to main content
Glama

create_bucket

Create and configure storage buckets in MinIO Storage MCP by specifying a bucket name and optional region settings for organized object storage management.

Instructions

创建存储桶

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bucketNameYes存储桶名称
regionNo区域设置(可选)

Implementation Reference

  • Main tool handler for 'create_bucket' in the CallToolRequestSchema switch statement. Parses input arguments using Zod, calls the MinIO client's createBucket method, and returns a success response.
    case 'create_bucket': { const { bucketName, region } = z.object({ bucketName: z.string(), region: z.string().optional() }).parse(args); await this.minioClient.createBucket(bucketName, region); return { content: [ { type: 'text', text: `成功创建存储桶: ${bucketName}` } ] }; }
  • src/index.ts:88-99 (registration)
    Tool registration for 'create_bucket' in the ListToolsRequestSchema handler, including name, description, and input schema.
    { name: 'create_bucket', description: '创建存储桶', inputSchema: { type: 'object', properties: { bucketName: { type: 'string', description: '存储桶名称' }, region: { type: 'string', description: '区域设置(可选)' } }, required: ['bucketName'] } },
  • Zod schema validation for 'create_bucket' input arguments within the tool handler.
    const { bucketName, region } = z.object({ bucketName: z.string(), region: z.string().optional() }).parse(args);
  • Core implementation of bucket creation in MinIOStorageClient class using the MinIO SDK's makeBucket method.
    /** * 创建存储桶 */ async createBucket(bucketName: string, region?: string): Promise<void> { this.ensureConnected(); await this.client!.makeBucket(bucketName, region || this.config!.region || 'us-east-1'); }

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