Skip to main content
Glama

GitHub DevTools MCP

A local stdio MCP server for GitHub engineering workflows in Codex.

Tool

Inputs and result

get_repo_info

Takes repo and returns repository identity, description, URL, visibility, privacy, default branch, primary language and archived status.

list_issues

Takes repo, optional state (open, closed or all) and optional limit (1–100). Defaults to 20 open issues. Returns numbers, titles, states, URLs, labels and available timestamps.

draft_issue

Takes repo, title, description, optional acceptanceCriteria and optional labels. Returns Markdown and created: false entirely locally.

Every tool requires an explicit OWNER/REPO identifier. GitHub reads target github.com and use the GitHub CLI login of the Windows user running Codex.

Set up on Windows with PowerShell

1. Install prerequisites

Install Git for Windows, Node.js 26 with npm, and GitHub CLI. Keep node and gh.exe on the PATH inherited by Codex. Install the Codex CLI to use the registration and verification commands below. With npm, install it using npm install -g @openai/codex.

Open a new PowerShell window and check the executables.

git --version
node --version
npm --version
gh --version
codex --version

Use the same Windows account for Codex and GitHub CLI. Run gh auth status --hostname github.com. If sign-in is needed, run gh auth login --hostname github.com and check status again. GitHub reads require network access and working GitHub CLI authentication. The draft tool runs locally.

2. Clone and build

git clone https://github.com/maidbarion/github-devtools-mcp.git
Set-Location .\github-devtools-mcp
npm ci
npm run build
$serverPath = (Resolve-Path .\dist\index.js -ErrorAction Stop).Path

The build uses src as its source root and dist as its output directory, so src/index.ts compiles to dist/index.js. Keep the clone and its installed dependencies in place after registering the absolute path.

3. Register the server

In the same PowerShell window, register the local stdio command.

codex mcp add github-devtools -- node "$serverPath"

Codex launches and manages the stdio process. You do not need to run npm start or leave a server terminal open.

Manual configuration alternative

Edit the user config.toml, normally at $env:USERPROFILE\.codex\config.toml or under $env:CODEX_HOME if set. Add or update the following table. Replace the example with your resolved path, using forward slashes in TOML.

$serverPath.Replace('\', '/')
[mcp_servers.github-devtools]
command = "node"
args = ["C:/path/to/github-devtools-mcp/dist/index.js"]

The Codex CLI and VS Code extension share MCP configuration on the same Codex host. In VS Code, open the Command Palette with Ctrl+Shift+P, run Developer: Reload Window, and start a new local Codex session. For the terminal, start a fresh session with codex and sign in if prompted. Official Codex MCP setup · VS Code Command Palette and reload

4. Verify the setup

Check

What to look for

Registration

Run codex mcp list. Check that github-devtools is enabled and the command and absolute path match step 3. This reads configuration only.

Connection

In a fresh interactive CLI session (run codex), use /mcp to inspect the active server and check for startup errors. Codex can defer startup until the first call, so a successful live response also confirms the connection.

Tool discovery

In the session, check that the server exposes get_repo_info, list_issues and draft_issue.

Invocation

Run the prompts below and check the tool activity and returned data for each call.

Smoke-test prompts

  • Use the github-devtools MCP tool get_repo_info for cli/cli and show the default branch and primary language.

  • Use the github-devtools MCP tool list_issues for cli/cli with state open and limit 3. Show the returned issue numbers and titles.

  • Use the github-devtools MCP tool draft_issue for cli/cli with title “Improve Windows setup docs”, description “Clarify PATH setup” and acceptance criterion “Document the required executables”. Show the Markdown and the value of created. Expect created: false.

Related MCP server: GitHub MCP Server

Troubleshooting

Symptom

Check

A command is missing

Use Get-Command git,node,npm,gh.exe,codex to check resolution. Reopen PowerShell and fully restart VS Code after changing PATH. The server looks for native gh.exe in absolute PATH directories.

The registered script path is wrong

From the clone, run npm run build and resolve dist/index.js again as in step 2. Update the registration if the clone moved.

GitHub reads fail

Repeat the GitHub CLI authentication check from step 1. Check network access to GitHub and access to the requested OWNER/REPO. A successful local draft does not test GitHub access.

Codex reports a startup or transport failure

Check the registered node command, installed dependencies and script path. Review the startup error in the Codex session. The server sends startup and transport diagnostics to stderr.

The server is listed but the tools are unavailable

Start a fresh local session after configuring the server. In VS Code, reload the window and check that the extension uses the same Codex host as the CLI. Check whether the effective configuration disables the server or filters its tools.

Development

Run npm run check for type checking, linting, formatting verification, tests and compilation. Use npm run dev for source-mode stdio, npm start for compiled stdio, npm run test:watch for watch mode and npm run format to apply formatting.

The MCP factory delegates reads to a response-validating GitHub service and the draft to a deterministic local formatter. The process layer uses a native executable, fixed command shapes, timeouts and bounded output. All three operations preserve GitHub state. See architecture, security, roadmap and progress.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables GitHub repository and issue management through the Model Context Protocol, supporting retrieval of repo details, issue listing, creation, and commenting.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to list, search, and inspect issues on any public GitHub repository via natural language.
      MIT