mcpField
M
modal-deploy

modal-deploy

github.com/aiagentwithdhruvCloud & DevOps2036 installsUpdated 15w ago
Repository

About modal-deploy

modal-deploy is a skill for deploying execution scripts to Modal for serverless cloud runs. It supports webhook endpoints and scheduled functions, with secrets configured through the Modal dashboard.

Key features

  1. 01Deploy execution scripts
  2. 02Expose webhook endpoints
  3. 03Schedule functions
  4. 04Configure secrets in Modal

Use cases

  1. 01Run scripts in the cloud
  2. 02Trigger functions on a schedule
  3. 03Deploy lead-scraping or proposal endpoints

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aiagentwithdhruv/skills --skill modal-deploy

After installing, type/modal-deployin Claude Code to confirm it loaded.

Details

From the project README

Modal Cloud Deployment

Goal

Deploy execution scripts to Modal for serverless cloud execution.

Deploy Command

modal deploy execution/modal_webhook.py

Key Endpoints

EndpointPurpose
directiveExecute a directive by slug
list_webhooksList available webhooks
general_agentRun general agent tasks
scrape_leadsLead scraping endpoint
generate_proposalProposal generation
youtube_outliersYouTube outlier scraping

Adding New Functions

  1. Add function to execution/modal_webhook.py
  2. Decorate with @app.function() or @app.function(schedule=modal.Cron(...))
  3. Deploy: modal deploy execution/modal_webhook.py

Environment

Modal secrets are configured in the Modal dashboard, not local .env.

Cron Jobs

@app.function(schedule=modal.Cron("0 * * * *"))  # Every hour
def my_scheduled_function():
    pass

Schema

Inputs
NameTypeRequiredDescription
filefile_pathNoFile to deploy (default: execution/modal_webhook.py)
Outputs
NameTypeDescription
deployedbooleanWhether deployment succeeded
endpointsarrayList of deployed endpoint URLs
Credentials
NameSource
MODAL_TOKEN_IDModal dashboard
MODAL_TOKEN_SECRETModal dashboard
Composable With

Skills that chain well with this one: add-webhook

Cost

Modal compute (pay-per-use)

Comments

Markdown supported