MCP cover image
See in Github
2025-04-14

0

Github Watches

0

Github Forks

0

Github Stars

GitHub MCP Client

A TypeScript client for interacting with GitHub using the Model Context Protocol (MCP) and the Vercel AI SDK with Gemini.

Features

  • MCP Integration: Connects to the GitHub MCP server to perform GitHub operations
  • AI-Powered: Uses the Gemini model to process natural language queries
  • CLI Interface: Provides a command-line interface for interacting with the agent
  • Interactive Mode: Supports an interactive chat-like interface

Prerequisites

  • Node.js 18 or later
  • GitHub Personal Access Token
  • Google Gemini API Key

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/github-mcp-client.git
cd github-mcp-client
  1. Install dependencies:
npm install
  1. Create a .env file with your API keys:
GITHUB_TOKEN=your_github_personal_access_token
GEMINI_API_KEY=your_gemini_api_key
  1. Build the project:
npm run build

Usage

CLI Commands

Query Mode

Process a single query:

npm start -- query "Search for repositories related to TypeScript MCP"

Interactive Mode

Start an interactive session:

npm start -- interactive

Or use the shorthand:

npm start -- i

API Usage

You can also use the GitHub MCP client programmatically:

import { GitHubAgent } from 'github-mcp-client';

async function main() {
  // Create a GitHub agent
  const agent = new GitHubAgent(
    'your_github_token',
    'your_gemini_api_key'
  );

  try {
    // Process a query
    const response = await agent.processQuery(
      'Search for repositories related to TypeScript MCP'
    );
    console.log(response);
  } finally {
    // Close the agent
    await agent.close();
  }
}

main().catch(console.error);

Available GitHub Operations

The GitHub MCP client supports the following operations:

  • Create a repository
  • Search for repositories
  • Get file contents
  • Create or update files
  • Push multiple files
  • Create issues
  • Create pull requests
  • Create branches
  • Search code, issues, and users

Development

Project Structure

github-mcp-client/
├── src/
│   ├── client/         # MCP client implementation
│   ├── agent/          # AI agent implementation
│   ├── cli/            # CLI interface
│   ├── config/         # Configuration management
│   └── index.ts        # Main entry point
├── dist/               # Compiled JavaScript
├── .env                # Environment variables
├── tsconfig.json       # TypeScript configuration
└── package.json        # Project metadata

Scripts

  • npm run build: Build the project
  • npm start: Run the CLI
  • npm run dev: Run the CLI in development mode

License

MIT

相关推荐

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • langgenius
  • Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.

  • alibaba
  • an easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • Byaidu
  • PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero

  • caio-moliveira
  • This project was created to demonstrate how we can connect with different Model Context Protocols (MCPs).

  • rulego
  • ⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.

  • hkr04
  • Lightweight C++ MCP (Model Context Protocol) SDK

  • nbonamy
  • Witsy: desktop AI assistant / universal MCP client

  • microsoft
  • Python tool for converting files and office documents to Markdown.

    Reviews

    2 (5)
    Avatar
    user_nuhvH0oH
    2025-04-24

    As a dedicated mcp application enthusiast, I find the GitHub-MCP-Agent developed by objones25 to be immensely useful. This agent seamlessly integrates with GitHub, providing robust automation and efficient management of my projects. It’s user-friendly and significantly streamlines my workflow. Highly recommended!

    Avatar
    user_76NIB51G
    2025-04-24

    I've been using github-mcp-agent by objones25, and it's truly a game-changer for developers. It has streamlined my workflow and provided intuitive management of my projects. The integration and support are top-notch, making it an essential tool for anyone serious about efficient coding and project management. Highly recommend!

    Avatar
    user_V2H02aie
    2025-04-24

    I've been using the github-mcp-agent for a while now, and it has vastly improved my workflow. Created by objones25, this tool integrates seamlessly with my existing setup. The efficiency and reliability of the agent are top-notch, making my coding tasks much more manageable. I highly recommend it to any developer looking for a robust and user-friendly solution!

    Avatar
    user_71cSHuFN
    2025-04-23

    As a dedicated user of mcp applications, I highly recommend the github-mcp-agent created by objones25. This tool is incredibly efficient and user-friendly, enhancing productivity for managing repositories. It seamlessly integrates with GitHub, providing a smooth workflow and powerful features that streamline development tasks. Whether you are a beginner or an experienced developer, this agent will significantly boost your efficiency.

    Avatar
    user_GoWT8CU9
    2025-04-23

    As a dedicated user of the github-mcp-agent by objones25, I must say it has significantly streamlined my workflow. Efficient and reliable, this agent seamlessly integrates with my projects, providing robust functionalities that enhance my development experience. Highly recommended for anyone looking to boost their productivity with a dependable tool.