Start the local dev server in your Turbo Broccoli project directory:
jeremy@MACSTUDIO turbo-broccoli % npm run dev
You should see output similar to:
> vue-splash@0.0.0 dev> vite12:25:32 AM [vite] (client) Re-optimizing dependencies because vite config has changedVITE v7.0.5 ready in 299 ms→ Local: http://localhost:5173/→ Network: use --host to exposepress h + enter to show help
This serves the site at http://localhost:5173/ so you can validate changes before or after triggering CI/CD. (See Vite docs: https://vitejs.dev/)
The repo uses an Azure Static Web Apps CI/CD workflow implemented with GitHub Actions. The workflow runs on pushes to main, PR updates, or manual dispatch.Example workflow header and a build job:
Install (or run via npx) the MCP package that exposes GitHub Actions operations:
# Global install (may require sudo)sudo npm install -g @nextdrive/github-action-trigger-mcp# Or run it via npx (no global install required)npx -y @nextdrive/github-action-trigger-mcp
4) Configure authentication (GitHub Personal Access Token)
The MCP server needs a GitHub Personal Access Token (PAT) with the correct permissions to trigger workflows. Export the token into your environment before starting the MCP server or include it in your host configuration:
repo (private repos) or public_repo (public) and workflow
Fine‑grained PAT
Actions (Read & Write) or equivalent for workflows
Alternative
Use GitHub Apps or OIDC where possible to avoid long‑lived tokens
Store and manage PATs securely. Do not commit tokens to source control. Use secrets managers or environment variables with least privilege and proper access controls.
Fill GITHUB_PERSONAL_ACCESS_TOKEN with your token or ensure the environment variable is set for the running process. See your host/Claude docs for exact config file location and syntax.
To trigger a workflow manually, provide the payload that includes the repository, workflow identifier, and the ref (branch or SHA). Example request payload:
After triggering, open the GitHub Actions UI to view the run, logs, and deployment progress. In this demo the run redeploys the site to Azure Static Web Apps.
This lesson demonstrated wiring an MCP server to GitHub Actions, configuring authentication with a PAT, adding the MCP to your host/Claude setup, and triggering a workflow. The pattern generalizes to other CI/CD platforms and MCP implementations.