Cover image
Try Now
2025-04-14

3 years

Works with Finder

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

相关推荐

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

  • Byaidu
  • PDF wissenschaftliche Papierübersetzung mit erhaltenen Formaten - 基于 ai 完整保留排版的 pdf 文档全文双语翻译 , 支持 支持 支持 支持 google/deeptl/ollama/openai 等服务 提供 cli/gui/mcp/docker/zotero

  • rulego
  • ⛓️Rugele ist ein leichter, leistungsstarker, leistungsstarker, eingebetteter Komponenten-Orchestrierungsregel-Motor-Rahmen für GO.

  • sigoden
  • Erstellen Sie einfach LLM -Tools und -Argarten mit einfachen Bash/JavaScript/Python -Funktionen.

  • hkr04
  • Leichtes C ++ MCP (Modellkontextprotokoll) SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / diskord / telegram / slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Diffy 、 Claude 、 Gemini 、 xai 、 ppio 、 、 ulama 、 lm Studio 、阿里云百炼、火山方舟、 siliconflow 、 qwen 、 mondshot 、 chatglm 、 sillytraven 、 mcp 等 llm 的机器人 / agent | LLM-basierte Instant Messaging Bots-Plattform, unterstützt Zwietracht, Telegramm, Wechat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • On-Premise-Konversationslappen mit konfigurierbaren Behältern

  • modelscope
  • Bauen Sie LLM-Multi-Agent-Anwendungen auf einfachere Weise auf.

    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.