Cover image
Try Now
2025-03-21

使用GO进行GitHub代理聊天的MCP服务器实现

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

GitHub Agentic Chat MCP Server

This is an MCP (Model Context Protocol) server implementation for GitHub agentic chat using Go. It provides tools for interacting with GitHub through natural language and includes vector search capabilities.

Features

  • Search GitHub repositories
  • Create issues
  • Vector search functionality
    • Add documents to vector store
    • Semantic search across stored documents
  • Extensible structure for adding more features

Prerequisites

  • Go 1.21 or later
  • PostgreSQL with pgvector extension
  • GitHub Personal Access Token
  • OpenAI API Key
  • Claude Desktop or other MCP-compatible client

Setup

  1. Clone the repository:
git clone https://github.com/akhidasTech/github-agentic-chat-mcp.git
cd github-agentic-chat-mcp
  1. Set up environment variables:
export GITHUB_TOKEN=your_github_token_here
export DATABASE_URL=postgres://user:password@localhost:5432/dbname
export OPENAI_API_KEY=your_openai_api_key_here
  1. Set up PostgreSQL with pgvector:
CREATE EXTENSION vector;
  1. Build the server:
go build -o bin/github-agentic-chat-mcp
  1. Configure Claude Desktop: Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
    "mcpServers": {
        "github-chat": {
            "command": "/absolute/path/to/bin/github-agentic-chat-mcp"
        }
    }
}
  1. Restart Claude Desktop

Available Tools

GitHub Tools

search_repositories

Search for GitHub repositories using a query string.

create_issue

Create a new issue in a GitHub repository.

Vector Search Tools

add_to_vector_store

Add a document to the vector store for semantic search.

Parameters:

  • content: The text content to store
  • metadata: JSON string containing metadata about the content

Example:

{
    "content": "This is a document about GitHub Actions",
    "metadata": "{\"type\": \"documentation\", \"tags\": [\"github\", \"ci-cd\"]}"
}

vector_search

Perform semantic search across stored documents.

Parameters:

  • query: The search query text
  • limit: Maximum number of results to return (default: 5)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    5 (1)
    Avatar
    user_KG9jQSk6
    2025-04-17

    I've been using github-agentic-chat-mcp by akhidasTech, and it has truly revolutionized my workflow. The seamless integration with GitHub and intuitive interface make managing projects and communicating with my team effortless. Highly recommend this tool for any developer looking to boost productivity. Check it out here: https://github.com/akhidasTech/github-agentic-chat-mcp