Skip to main content
Glama
akave-ai

Akave MCP Server

by akave-ai

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
NameRequiredDescriptionDefault
bodyYesObject content
bucketYesBucket name
keyYesObject key

Implementation Reference

  • 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 }), }, ], }; }
  • 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 }), }, ], }; } );
  • 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); }

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/akave-ai/akave-mcp'

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