GitHub 智能聊天 MCP 服务器
使用 Go 实现的 GitHub 智能聊天 MCP 服务器,支持自然语言交互和向量搜索。
快速入门
-
克隆仓库: git clone https://github.com/akhidasTech/github-agentic-chat-mcp.git cd github-agentic-chat-mcp
-
设置环境变量: 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
-
配置 PostgreSQL 并启用 pgvector 扩展: CREATE EXTENSION vector;
-
构建服务器: go build -o bin/github-agentic-chat-mcp
-
配置 Claude Desktop 客户端: 编辑 ~/Library/Application Support/Claude/claude_desktop_config.json 文件,添加以下内容: { "mcpServers": { "github-chat": { "command": "/absolute/path/to/bin/github-agentic-chat-mcp" } } }
-
重启 Claude Desktop。
功能
- 搜索 GitHub 仓库
- 创建 Issue
- 向量存储和语义搜索