mcpField
R
Ruby Lambda Template

Ruby Lambda Template

Local
github.com/delian7Cloud & Infra0Updated 81w ago

About Ruby Lambda Template

Ruby Lambda Template is a starting template for building AWS Lambda functions in Ruby. It is for developers who need a base to adapt for HTTP requests or other serverless tasks, with tests and deployment steps included.

Key features

  1. 01Ruby AWS Lambda starter template
  2. 02HTTP request and serverless task customization
  3. 03RSpec test setup
  4. 04AWS CLI deployment instructions

Use cases

  1. 01Starting a Ruby Lambda function
  2. 02Adapting a function to handle HTTP requests
  3. 03Testing and deploying a Lambda application

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Ruby Lambda Template

This repository serves as a template for building AWS Lambda functions using Ruby. Customize it as needed to handle HTTP requests or other tasks in a serverless environment.

Prerequisites

  • Ruby
  • Bundler
  • AWS CLI

Setup

  1. Clone the repository:

    git clone https://github.com/delian7/ruby_lambda_template
    cd ruby_lambda_template
    
  2. Install the dependencies:

    bundle install
    
  3. Configure environment variables (if needed):

    If you require environment configuration, copy the .env.sample file to .env and update it accordingly:

    cp .env.sample .env
    

Running Tests

To run the tests using RSpec:

bundle exec rspec

Deploying to AWS Lambda

  1. Configure AWS CLI:

    aws configure
    
  2. Package the application:

    zip -r lambda_function.zip .
    
  3. Update the Lambda function code:

    aws lambda update-function-code --function-name your_lambda_function_name \
    --zip-file fileb://lambda_function.zip
    

Alternatively, you can combine packaging and updating:

zip -r lambda_function.zip . && aws lambda update-function-code --function-name your_lambda_function_name \
--zip-file fileb://lambda_function.zip

Usage

This repository provides a starting point for AWS Lambda functions written in Ruby. Modify the Lambda function code and tests as needed for your specific use case.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.