FlowTruxFlowTrux/Docs

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

  1. 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 repo for private repositories (or public_repo for public only) and workflow for Actions.
  2. In FlowTrux, go to Resources > MCP Servers > Add Server (OWNER or ADMIN) and choose GitHub.
  3. Give it a Name and paste the token into Personal Access Token.
  4. Optionally set Default Owner/Org - used by list_repos when a call does not pass owner.
  5. 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.

ParameterTypeRequiredDescription
ownerstringNoOwner or organization. Defaults to the server's Default Owner/Org, then to the token's user.
typestringNoType filter: all, owner, member. One of: all, owner, member. Default: "owner".
per_pagenumberNoResults per page (max 100) Default: 30.

get_repo

Get repository details.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository 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.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
statestringNoIssue state filter. One of: open, closed, all. Default: "open".
labelsstringNoComma-separated list of label names.
per_pagenumberNoResults per page (max 100) Default: 30.

get_issue

Get a single issue by number.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
issue_numbernumberYesIssue number.

create_issue

Create a new issue in a repository.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
titlestringYesIssue title.
bodystringNoIssue body (markdown)
labelsarray of stringNoLabels to assign.
assigneesarray of stringNoUsernames to assign.

update_issue

Update an existing issue.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
issue_numbernumberYesIssue number.
titlestringNoNew title.
bodystringNoNew body (markdown)
statestringNoIssue state. One of: open, closed.
labelsarray of stringNoLabels to set (replaces existing)
assigneesarray of stringNoUsernames to assign (replaces existing)

add_issue_comment

Add a comment to an issue or pull request.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
issue_numbernumberYesIssue or PR number.
bodystringYesComment body (markdown)

Pull Requests

list_pull_requests

List pull requests for a repository.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
statestringNoPR state filter. One of: open, closed, all. Default: "open".
per_pagenumberNoResults per page (max 100) Default: 30.

get_pull_request

Get a single pull request by number.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
pull_numbernumberYesPull request number.

create_pull_request

Create a new pull request.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
titlestringYesPR title.
bodystringNoPR body (markdown)
headstringYesBranch containing changes.
basestringYesTarget branch (e.g., main)

GitHub Actions

list_workflows

List GitHub Actions workflows for a repository.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
per_pagenumberNoResults per page (max 100) Default: 30.

trigger_workflow

Trigger a GitHub Actions workflow dispatch event.

ParameterTypeRequiredDescription
ownerstringYesRepository owner.
repostringYesRepository name.
workflow_idstringYesWorkflow filename (e.g., deploy.yml) or numeric ID.
refstringYesBranch or tag ref to run the workflow on.
inputsobjectNoWorkflow 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.