Skip to main content
Glama
pickstar-2002

MinIO Storage MCP

delete_bucket_policy

Remove access policies from MinIO storage buckets to manage permissions and control data security configurations.

Instructions

删除存储桶策略

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bucketNameYes存储桶名称

Implementation Reference

  • Core implementation of the delete_bucket_policy tool handler. Ensures MinIO connection and sets an empty policy on the specified bucket to delete the existing policy.
    async deleteBucketPolicy(bucketName: string): Promise<void> {
      this.ensureConnected();
      await this.client!.setBucketPolicy(bucketName, '');
    }
  • src/index.ts:302-311 (registration)
    Registration of the 'delete_bucket_policy' tool in the MCP server's tools list, including name, description, and input schema.
      name: 'delete_bucket_policy',
      description: '删除存储桶策略',
      inputSchema: {
        type: 'object',
        properties: {
          bucketName: { type: 'string', description: '存储桶名称' }
        },
        required: ['bucketName']
      }
    }
  • MCP server request handler for 'delete_bucket_policy' tool. Parses input arguments using Zod and delegates to MinIO client, returning success response.
    case 'delete_bucket_policy': {
      const { bucketName } = z.object({
        bucketName: z.string()
      }).parse(args);
      
      await this.minioClient.deleteBucketPolicy(bucketName);
      return {
        content: [
          {
            type: 'text',
            text: `成功删除存储桶 ${bucketName} 的策略`
          }
        ]
      };
    }
  • Input schema definition for the delete_bucket_policy tool, specifying the required 'bucketName' string parameter.
    inputSchema: {
      type: 'object',
      properties: {
        bucketName: { type: 'string', description: '存储桶名称' }
      },
      required: ['bucketName']
    }

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