feat(ci): add GitHub Actions workflow for Modal docs MCP server deplo…#740
Conversation
…yment Add automated deployment workflow for the CUA documentation MCP server running on Modal. The workflow deploys on push to main when modal_app.py or the workflow file changes, and supports manual triggering with an optional initial crawl step.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR adds a GitHub Actions workflow to automate the deployment of a Modal-based documentation MCP server for CUA documentation. The workflow provides both automated deployment on code changes and manual triggering with an optional initial crawl.
Changes:
- Add automated deployment workflow for Modal docs MCP server
- Configure workflow to trigger on changes to modal_app.py or the workflow itself
- Enable manual deployment with optional initial data crawling
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -0,0 +1,67 @@ | |||
| name: Deploy Modal Docs MCP Server | |||
There was a problem hiding this comment.
Consider adding a concurrency control to prevent multiple simultaneous deployments to Modal, which could cause conflicts. This is especially important for deployments that modify shared state. Add a concurrency group similar to other workflows in this repository to ensure only one deployment runs at a time.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@r33drichards I've opened a new pull request, #741, to work on those changes. Once the pull request is ready, I'll request review from you. |
* Initial plan * Add concurrency control to Modal deployment workflow Co-authored-by: r33drichards <57335981+r33drichards@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: r33drichards <57335981+r33drichards@users.noreply.github.com>
Summary
mainwhendocs/scripts/modal_app.pyor the workflow file changesworkflow_dispatchwith optional initial crawlSetting Up Modal Authentication
To enable automated deployments, configure Modal authentication in your GitHub repository secrets:
Step 1: Create Modal API Tokens
github-actions-deploy)Step 2: Add GitHub Repository Secrets
Go to your repository on GitHub
Navigate to Settings → Secrets and variables → Actions
Click New repository secret and add:
MODAL_TOKEN_IDClick New repository secret again and add:
MODAL_TOKEN_SECRETStep 3: Test the Deployment
Workflow Features
mainwhen modal_app.py changesAfter Deployment
The MCP server will be available at: