trigger-workflow
Trigger GitHub Actions workflows by dispatching workflow_dispatch events with custom inputs on any branch or tag. Start CI/CD runs directly from your MCP server.
Instructions
Trigger a GitHub Actions workflow via workflow_dispatch event.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"workflow_id": "<workflow_id>",
"ref": "<ref>"
},
"name": "trigger-workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Branch or tag ref to run the workflow on | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner | |
| inputs | No | Key-value inputs configured in the workflow_dispatch event | |
| workflow_id | Yes | Workflow ID (number) or filename (e.g. ci.yml) |