ytka
MCP Serverytkapublic

limited github cli mcp

MCP Server for Github CLI

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
JavaScript
Language
MIT License
License

About This Server

MCP Server for Github CLI

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

limited-github-cli-mcp

An MCP server that uses GitHub CLI to perform pull request (PR) operations on GitHub. It leverages the local gh command without requiring a GitHub Access Token.

Features

This MCP server provides the following features:

  1. Create PR (create_pr)

    • Specify title, body, base branch, head branch, and draft option
  2. List PRs (list_prs)

    • Filter by state (open, closed, merged, all), base branch, and limit the number of results
  3. View PR (view_pr)

    • Get detailed information about a specific PR by number
  4. Comment on PR (comment_pr)

    • Add a comment to a PR by specifying PR number and comment body

Prerequisites

  • GitHub CLI (gh) installed
  • Logged in to GitHub account using gh auth login
  • Local clone of the GitHub repository you want to work with

Usage Examples

Create a PR

use_mcp_tool({
  server_name: "limited-github-cli",
  tool_name: "create_pr",
  arguments: {
    title: "Add new feature",
    body: "This PR adds feature X",
    base: "main",
    head: "feature/x",
    draft: true
  }
})

List PRs

use_mcp_tool({
  server_name: "limited-github-cli",
  tool_name: "list_prs",
  arguments: {
    state: "open",
    limit: 5
  }
})

View PR Details

use_mcp_tool({
  server_name: "limited-github-cli",
  tool_name: "view_pr",
  arguments: {
    number: 123
  }
})

Comment on PR

use_mcp_tool({
  server_name: "limited-github-cli",
  tool_name: "comment_pr",
  arguments: {
    number: 123,
    body: "I've reviewed this. LGTM!"
  }
})

Security

This MCP server uses the local GitHub CLI, so it doesn't directly handle GitHub Access Tokens. It leverages the authentication credentials of the GitHub CLI, making it a secure way to perform GitHub operations.

Quick Start

1

Clone the repository

git clone https://github.com/ytka/limited-github-cli-mcp
2

Install dependencies

cd limited-github-cli-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerytka
Repolimited-github-cli-mcp
LanguageJavaScript
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation