Skip to main content
Glama

connect_minio

Establish a connection to MinIO Storage MCP by providing server details, authentication keys, and SSL preferences to enable object storage operations like uploads, downloads, and permissions management.

Instructions

连接到MinIO服务器

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accessKeyYes访问密钥
endPointYesMinIO服务器地址
portYesMinIO服务器端口
regionNo区域设置(可选)
secretKeyYes秘密密钥
useSSLNo是否使用SSL连接

Implementation Reference

  • MCP tool handler for 'connect_minio': validates input using MinIOConfigSchema and calls MinIOStorageClient.connect
    case 'connect_minio': { const config = MinIOConfigSchema.parse(args); await this.minioClient.connect(config); return { content: [ { type: 'text', text: `成功连接到MinIO服务器 ${config.endPoint}:${config.port}` } ] }; }
  • Core implementation of MinIO connection in MinIOStorageClient.connect method: creates Minio.Client instance and tests with listBuckets
    async connect(config: MinIOConfig): Promise<void> { try { this.client = new Minio.Client({ endPoint: config.endPoint, port: config.port, useSSL: config.useSSL, accessKey: config.accessKey, secretKey: config.secretKey, region: config.region }); // 测试连接 await this.client.listBuckets(); this.config = config; } catch (error) { throw new Error(`连接MinIO服务器失败: ${error instanceof Error ? error.message : String(error)}`); } }
  • Zod schema for MinIO connection configuration, used for input validation in handler
    export const MinIOConfigSchema = z.object({ endPoint: z.string().describe('MinIO服务器地址'), port: z.number().min(1).max(65535).describe('MinIO服务器端口'), useSSL: z.boolean().default(false).describe('是否使用SSL连接'), accessKey: z.string().describe('访问密钥'), secretKey: z.string().describe('秘密密钥'), region: z.string().optional().describe('区域设置(可选)') });
  • src/index.ts:68-82 (registration)
    Tool registration in ListTools response: defines name, description, and input schema matching MinIOConfigSchema
    name: 'connect_minio', description: '连接到MinIO服务器', inputSchema: { type: 'object', properties: { endPoint: { type: 'string', description: 'MinIO服务器地址' }, port: { type: 'number', description: 'MinIO服务器端口' }, useSSL: { type: 'boolean', description: '是否使用SSL连接', default: false }, accessKey: { type: 'string', description: '访问密钥' }, secretKey: { type: 'string', description: '秘密密钥' }, region: { type: 'string', description: '区域设置(可选)' } }, required: ['endPoint', 'port', 'accessKey', 'secretKey'] } },

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