FlowTruxFlowTrux/Docs
Docsmcp

GitHub MCP Server

Connect FlowTrux workflows to GitHub issues, pull requests, repos, and Actions

The GitHub MCP server provides 12 tools for managing repositories, issues, pull requests, and GitHub Actions.

Setup

  1. Create a Personal Access Token (fine-grained recommended).
  2. Grant permissions: Issues (read/write), Pull requests (read/write), Actions (read/write), Contents (read).
  3. In FlowTrux, go to Settings > MCP Servers > Add > GitHub.
  4. Paste the token. Optionally set a default owner/org.

Tools

Repositories

ToolDescriptionRequired Params
list_reposList repositories for user or org(none - uses default owner)
get_repoGet repository detailsowner, repo

Issues

ToolDescriptionRequired Params
list_issuesList issues (with state/label filters)owner, repo
get_issueGet a single issueowner, repo, issue_number
create_issueCreate an issueowner, repo, title
update_issueUpdate issue (title, body, state, labels)owner, repo, issue_number
add_issue_commentAdd a comment to an issueowner, repo, issue_number, body

Pull Requests

ToolDescriptionRequired Params
list_pull_requestsList PRs (with state filter)owner, repo
get_pull_requestGet a single PRowner, repo, pull_number
create_pull_requestCreate a PRowner, repo, title, head, base

GitHub Actions

ToolDescriptionRequired Params
list_workflowsList Actions workflowsowner, repo
trigger_workflowTrigger a workflow dispatchowner, repo, workflow_id, ref

Examples

Auto-create issue from 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"]})

Trigger deploy after approval:

Webhook → Generate Callback → Slack (approve button) → Wait for Callback → Action:MCP(github, trigger_workflow, {owner: "myorg", repo: "infra", workflow_id: "deploy.yml", ref: "main"})