GitHub Configuration Guide

Overview

DMtools provides 8 MCP tools for GitHub integration, focused on pull request management: listing PRs, getting details, reading comments and review conversations, adding comments/labels, and getting diffs.

If you only need the GitHub-focused AI assistant package, install /dmtools-github with the instructions in ../../installation/README.md#install-only-the-skills-you-need.

Authentication

Generate a Personal Access Token

  1. Go to GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)
  2. Click Generate new token
  3. Select scopes:
    • repo — full repository access (read PRs, comments, reviews)
    • write:discussion — if you need to post comments
  4. Copy the token immediately (shown only once)

Configure DMtools

Add to your dmtools.env:

SOURCE_GITHUB_TOKEN=ghp_YourPersonalAccessTokenHere
SOURCE_GITHUB_WORKSPACE=YourOrgOrUsername    # optional default workspace
SOURCE_GITHUB_REPOSITORY=your-repo          # optional default repository
SOURCE_GITHUB_BASE_PATH=https://api.github.com
SOURCE_GITHUB_BRANCH=main                   # optional default branch

DMTOOLS_INTEGRATIONS

If your dmtools.env contains a DMTOOLS_INTEGRATIONS list, make sure github is included:

# Without this, `dmtools list github` returns {"tools": []}
DMTOOLS_INTEGRATIONS=jira,cli,file,teams,figma,jira_xray,testrail,github,ado,confluence

Verify Setup

# List all GitHub tools (should return 12 tools)
dmtools list github

# Get a specific pull request
dmtools github_get_pr workspace=MyOrg repository=my-repo pullRequestId=42

Tools Available

ToolDescription
github_list_prsList PRs by state (open, closed, merged)
github_get_prGet PR details (title, state, author, branches, merge info)
github_get_pr_commentsGet all comments (inline review + discussion)
github_get_pr_conversationsGet inline review threads grouped by root/replies
github_get_pr_activitiesGet all activity (reviews + comments)
github_add_pr_commentPost a comment to the PR discussion
github_reply_to_pr_threadReply to an existing inline review thread
github_add_inline_commentCreate a new inline code review comment on a file/line
github_get_pr_review_threadsGet all review threads via GraphQL (includes node IDs to resolve)
github_resolve_pr_threadResolve a review thread via GraphQL mutation
github_add_pr_labelAdd a label to a PR
github_remove_pr_labelRemove a label from a PR
github_get_pr_diffGet diff statistics (files changed, additions, deletions)

Full reference: github-tools.md

GitHub Enterprise

For GitHub Enterprise, set a custom base path:

SOURCE_GITHUB_BASE_PATH=https://github.yourcompany.com/api/v3
Edit this page on GitHub →

Rendered from dmtools-ai-docs/references/configuration/integrations/github.md, the same Markdown the DMTools agent skill reads. Last updated .