GitHub MCP Server
Connect FlowTrux workflows to GitHub repositories, issues, pull requests and Actions
The GitHub MCP server provides 12 tools for repositories, issues, pull requests and GitHub Actions.
Setup
- Create a personal access token. A fine-grained token selects permissions per repository - grant Issues (read/write), Pull requests (read/write), Actions (read/write) and Contents (read). A classic token needs
repofor private repositories (orpublic_repofor public only) andworkflowfor Actions. - In FlowTrux, go to Resources > MCP Servers > Add Server (OWNER or ADMIN) and choose GitHub.
- Give it a Name and paste the token into Personal Access Token.
- Optionally set Default Owner/Org - used by
list_reposwhen a call does not passowner. - Under Available in workspaces, pick the workspaces, then click Add Server.
"Resource not accessible" almost always means the token lacks a permission, not that the repository is missing.
Tools
Repositories
list_repos
List repositories of the token's user or of a given owner or organization. Private repositories are included for the token's own user and its organizations.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | No | Owner or organization. Defaults to the server's Default Owner/Org, then to the token's user. |
type | string | No | Type filter: all, owner, member. One of: all, owner, member. Default: "owner". |
per_page | number | No | Results per page (max 100) Default: 30. |
get_repo
Get repository details.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
An empty list_repos for someone else's account usually means all their repositories are private: GitHub shows another user's public repositories only. For the token's own user and organizations it belongs to, private repositories are included.
Issues
list_issues
List issues for a repository.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
state | string | No | Issue state filter. One of: open, closed, all. Default: "open". |
labels | string | No | Comma-separated list of label names. |
per_page | number | No | Results per page (max 100) Default: 30. |
get_issue
Get a single issue by number.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
issue_number | number | Yes | Issue number. |
create_issue
Create a new issue in a repository.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
title | string | Yes | Issue title. |
body | string | No | Issue body (markdown) |
labels | array of string | No | Labels to assign. |
assignees | array of string | No | Usernames to assign. |
update_issue
Update an existing issue.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
issue_number | number | Yes | Issue number. |
title | string | No | New title. |
body | string | No | New body (markdown) |
state | string | No | Issue state. One of: open, closed. |
labels | array of string | No | Labels to set (replaces existing) |
assignees | array of string | No | Usernames to assign (replaces existing) |
add_issue_comment
Add a comment to an issue or pull request.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
issue_number | number | Yes | Issue or PR number. |
body | string | Yes | Comment body (markdown) |
Pull Requests
list_pull_requests
List pull requests for a repository.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
state | string | No | PR state filter. One of: open, closed, all. Default: "open". |
per_page | number | No | Results per page (max 100) Default: 30. |
get_pull_request
Get a single pull request by number.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
pull_number | number | Yes | Pull request number. |
create_pull_request
Create a new pull request.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
title | string | Yes | PR title. |
body | string | No | PR body (markdown) |
head | string | Yes | Branch containing changes. |
base | string | Yes | Target branch (e.g., main) |
GitHub Actions
list_workflows
List GitHub Actions workflows for a repository.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
per_page | number | No | Results per page (max 100) Default: 30. |
trigger_workflow
Trigger a GitHub Actions workflow dispatch event.
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner. |
repo | string | Yes | Repository name. |
workflow_id | string | Yes | Workflow filename (e.g., deploy.yml) or numeric ID. |
ref | string | Yes | Branch or tag ref to run the workflow on. |
inputs | object | No | Workflow input parameters. |
Rate Limits and Paging
GitHub allows 5000 requests an hour per token. Listing tools return 30 results per page by default (per_page up to 100); to go through a large list, page through it in a Loop node rather than asking for everything at once.
Examples
Create an issue from an AI analysis:
Webhook (error alert) → Agent (analyze error) → Action:MCP(github, create_issue, {owner: "myorg", repo: "backend", title: "{{steps.agent-1.output.response.title}}", body: "{{steps.agent-1.output.response.analysis}}", labels: ["bug", "auto-detected"]})
Deploy after approval:
Webhook → Generate Callback → Slack (link to approve) → Wait for Callback → Action:MCP(github, trigger_workflow, {owner: "myorg", repo: "infra", workflow_id: "deploy.yml", ref: "main"})
See Long Delays & Callbacks for the approval pattern.