AgentHubAgentHub

github-twin

MCP ServerMCP Registry官方收录

io.github.ChristopherDavenport/github-twin · v0.0.17

Personal RAG over your GitHub history (commits, code, reviews), served to Claude Code over MCP.

概览

github-twin 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "github-twin": {
      "command": "uvx",
      "args": [
        "github-twin"
      ]
    }
  }
}

环境变量

GITHUB_TOKEN可选secret

GitHub personal access token. Optional: github-twin can also pick the token up from `gh auth token` or from its own OAuth device-flow login (`gt auth login`).

ANTHROPIC_API_KEY可选secret

Optional. Enables the Claude backend for `gt summarize`, `gt distill`, and `gt eval`. Defaults to local Ollama when unset.

GEMINI_API_KEY可选secret

Optional. Enables the Gemini backend for embedding and the LLM seam. Vertex AI ADC via `GT_GEMINI_PROJECT` is also supported.

GT_PATHS__DATA_DIR可选

Optional. Override the on-disk data directory holding the SQLite index, embeddings, and cached GitHub responses. Defaults to `$XDG_DATA_HOME/github-twin`.

相关资源

统一 Manifest

{
  "id": "io.github.ChristopherDavenport/github-twin",
  "type": "mcp-server",
  "version": "0.0.17",
  "displayName": "github-twin",
  "description": "Personal RAG over your GitHub history (commits, code, reviews), served to Claude Code over MCP.",
  "repository": {
    "url": "https://github.com/ChristopherDavenport/github-twin",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "pypi",
        "identifier": "github-twin",
        "version": "0.0.17",
        "runtimeHint": "uvx",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "GITHUB_TOKEN",
            "description": "GitHub personal access token. Optional: github-twin can also pick the token up from `gh auth token` or from its own OAuth device-flow login (`gt auth login`).",
            "isSecret": true
          },
          {
            "name": "ANTHROPIC_API_KEY",
            "description": "Optional. Enables the Claude backend for `gt summarize`, `gt distill`, and `gt eval`. Defaults to local Ollama when unset.",
            "isSecret": true
          },
          {
            "name": "GEMINI_API_KEY",
            "description": "Optional. Enables the Gemini backend for embedding and the LLM seam. Vertex AI ADC via `GT_GEMINI_PROJECT` is also supported.",
            "isSecret": true
          },
          {
            "name": "GT_PATHS__DATA_DIR",
            "description": "Optional. Override the on-disk data directory holding the SQLite index, embeddings, and cached GitHub responses. Defaults to `$XDG_DATA_HOME/github-twin`."
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.ChristopherDavenport/github-twin",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.ChristopherDavenport%2Fgithub-twin/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
github-twin — MCP Server 安装与配置 · AgentHub