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.

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

  • 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!

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

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

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • langgenius
  • alibaba
  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

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

  • mindsdb
  • AI's query engine - Platform for building AI that can answer questions over large scale federated data. - The only MCP Server you'll ever need

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • caio-moliveira
  • 创建该项目是为了证明我们如何与不同的模型上下文协议(MCP)连接。

  • labring
  • AstrBotDevs
  • llm llm聊天机器人及开发框架平台支持QQ QQ QQ 频道、电报| mcp 服务器、 openai,deepseek,双子座、硅基流动、月之暗面、 ollama,

  • beclab
  • 欧拉斯:本地AI的开源主权云OS

    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.