- Run a local Vite dev server that hosts the Turbo Broccoli site.
- Install and run an MCP server that calls the GitHub Actions API.
- Configure authentication (GitHub Personal Access Token).
- Add the MCP server to your host/Claude configuration.
- Trigger a workflow and inspect the result in GitHub Actions.

- The MCP server acts as a bridge to a CI/CD platform (GitHub Actions in this example).
- The client (an LLM client such as Claude) runs inside your AI-enabled app/IDE and calls the MCP server for Actions operations.
- The host application is the UI you interact with (for example, the Claude desktop app).
1) Run the Vite site locally
Start the local dev server in your Turbo Broccoli project directory:http://localhost:5173/ so you can validate changes before or after triggering CI/CD. (See Vite docs: https://vitejs.dev/)
2) GitHub Actions workflow (what we will trigger)
The repo uses an Azure Static Web Apps CI/CD workflow implemented with GitHub Actions. The workflow runs on pushes tomain, PR updates, or manual dispatch.
Example workflow header and a build job:
Note: A
workflow_dispatch can accept inputs which you may pass via the MCP server when triggering.
3) Install the GitHub Actions trigger MCP server
Install (or run via npx) the MCP package that exposes GitHub Actions operations: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: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.
5) Add the MCP server to your Claude/host configuration
Add an MCP server entry so your host can start and connect to it. ExamplemcpServers JSON snippet for the host configuration:
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.
6) Start the MCP server and authorize the client
- Start the host/Claude application (or the MCP directly via npx) and ensure
github-action-trigger-mcpappears in the tools/services list. - When the LLM client requests the tool, grant access (for example, “Allow always”) so the client can call the MCP.
- When asked for repository context, provide the owner and repo (for example:
jeremymorgan/turbo-broccoli).
7) Trigger a workflow via the MCP server
To trigger a workflow manually, provide the payload that includes the repository, workflow identifier, and the ref (branch or SHA). Example request payload:workflow_idmay be the workflow file name, the numeric workflow id, or the workflow name depending on the API/MCP implementation.- Many implementations accept optional
inputsforworkflow_dispatchinputs.
8) Next steps and possibilities
- Extend this pattern to trigger different workflows, pass inputs, or orchestrate multiple workflows across repositories.
- Use other MCP servers that expose Git commands, cloud provider APIs, or infra actions to build more sophisticated LLM-driven automation.
- Always evaluate security: prefer short‑lived credentials (OIDC, GitHub Apps) and minimize granted scopes.
Links and references
- GitHub Actions docs
- Vite docs
- Azure Static Web Apps documentation
- @nextdrive/github-action-trigger-mcp on npm