We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gangadharrr/aws-s3-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
s3Client.ts•580 B
import { S3Client } from '@aws-sdk/client-s3';
// Initialize the S3 client with credentials from environment variables or AWS config
const s3Client = new S3Client({
// If specific credentials are provided as environment variables, use them
// Otherwise, the SDK will look for credentials in the shared credentials file (~/.aws/credentials)
// or from the EC2 instance metadata service if running on an EC2 instance
region: process.env.AWS_REGION || 'us-east-1',
});
// Export a function to get the S3 client
export function getS3Client(): S3Client {
return s3Client;
}