MCP cover image
See in Github
2025-03-21

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

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.

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

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • 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

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

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

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

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

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

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

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • modelcontextprotocol
  • 模型上下文协议服务器

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

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

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

  • open-webui
  • 用户友好的AI接口(支持Ollama,OpenAi API,...)

    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