put_object
Store data objects in cloud storage buckets using the Akave MCP Server. Upload files or content by specifying bucket name, object key, and content body for S3-compatible storage operations.
Instructions
Put object into a bucket
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Object content | |
| bucket | Yes | Bucket name | |
| key | Yes | Object key |
Implementation Reference
- src/server.ts:143-153 (handler)MCP tool handler for 'put_object' that invokes the S3Client's putObject method and returns a success response.async ({ bucket, key, body }: PutObjectParams) => { await this.s3Client.putObject(bucket, key, body); return { content: [ { type: "text", text: JSON.stringify({ success: true }), }, ], }; }
- src/server.ts:138-142 (schema)Zod input schema definition for the 'put_object' tool parameters (bucket, key, body).{ bucket: z.string().describe("Bucket name"), key: z.string().describe("Object key"), body: z.string().describe("Object content"), },
- src/server.ts:135-154 (registration)Registration of the 'put_object' tool on the MCP server, including name, description, input schema, and handler.this.server.tool( "put_object", "Put object into a bucket", { bucket: z.string().describe("Bucket name"), key: z.string().describe("Object key"), body: z.string().describe("Object content"), }, async ({ bucket, key, body }: PutObjectParams) => { await this.s3Client.putObject(bucket, key, body); return { content: [ { type: "text", text: JSON.stringify({ success: true }), }, ], }; } );
- src/s3Client.ts:118-125 (helper)Helper method in S3Client class that executes the AWS S3 PutObjectCommand to store the object.async putObject(bucket: string, key: string, body: string) { const command = new PutObjectCommand({ Bucket: bucket, Key: key, Body: body, }); await this.client.send(command); }