
Gk Cli
com.gitkraken由 gitkraken.com 發布v3.1.77更新於 Oct 24, 2026
The GitKraken MCP Server for managing repos, PRs, issues across GitHub, GitLab, Bitbucket and more.
概覽
GitKraken 的在地 MCP 伺服器,讓助理管理 git 儲存庫、工作項目、議題與拉取請求,涵蓋 GitHub、GitLab、Bitbucket 和 Jira。
- 可以做什麼
- 操作 git 儲存庫:透過 gk 命令列包裝執行 git 指令,管理提交、推送與提交圖,並可用 AI 產生提交訊息與拉取請求說明。管理工作項目:將多個儲存庫加入同一工作項目,或建立新的工作項目。管理 GitKraken 中的議題與組織。處理拉取請求以及 GitHub、GitLab、Bitbucket、Jira 等程式碼代管與議題服務。登入 GitKraken 平台並新增或移除各服務的權杖。
- 適用情境
- 適合想讓助理在對話中直接完成 git 與代管平台操作的情境,例如提交變更、推送分支、建立拉取請求,以及跨多個儲存庫追蹤議題與工作項目。
- 執行需求
- 以在地程序在使用者桌機上執行,透過 npm 套件 @gitkraken/gk 安裝(也可用 Homebrew、Winget、.deb/.rpm 或發行版二進位檔安裝,支援 macOS、Windows 與 Unix)。需以 gk auth login 登入 GitKraken 平台,並為所用的代管服務新增服務權杖。未宣告環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Gk Cli,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🚀 GitKraken CLI
gk is GitKraken on the command line. The core functionality is focused on "Work Items" which can be thought of as the feature or issue you are trying to tackle. This allows you to work with multiple repos at once and get the same UX as if you were in a monorepo. We also provide robust AI-powered commit messages and Pull Request generation. It also provides an MCP server that streamlines working with git and your Issue and git hosting providers.
GitKraken CLI is available on macOS, Windows, and Unix systems.
Table of Contents
MCP Server
The GitKraken MCP server is a local MCP server that is powerful and easy to use. It wraps git, GitHub, Jira MCP actions as well as provides tools to LLMs that work with GitKraken APIs and functionality. You can find specific installation instructions based on your chosen AI application in the Help Center.
If you want to read more about the MCP server, you can check out the introduction blog post
Documentation
gk help is going to be your best source for exploring the CLI. But also see the workflows below.
Workflows
Start with a single repo. You can add more later.
In general, your process will look like this:
Once you have familiarized yourself with using a single repo, try out creating work items and generating commits and PRs for multiple repos at a time by just adding multiple repos to a new Work Item.
git Command Passthrough
You can also use gk to pass through any git command. eg:
Installation
macOS
gk is available from Homebrew with the following command:
Homebrew:
Or download it from the releases page and add it to your binaries folder:
Unix / Ubuntu
gk is available as a downloadable binary from the releases page. Once you have it, add it to your binaries folder:
Or create a new directory, move the binary and add it to $PATH:
You can also [download][releases page] your corresponding package (.deb, .rpm) and install it with:
or
Windows
gk is available from [Winget][winget] with the following command:
⚙️ Configuration
Nerd Fonts
The GitKraken CLI supports Nerd Fonts to display icons for some commands. To ensure correct icon rendering, please obtain and install a Nerd Font available at https://www.nerdfonts.com/. After installation, set the selected Nerd Font as the default font for your terminal.
Troubleshooting
gk login freezes after authenticating in browser
This problem is due to the browser. Currently we know that Safari and Brave do not allow to respond to localhost through port 1314. To fix this, change your default browser or copy the URL before the redirect and open it in another browser.
gk from Oh-My-Zsh
Oh-My-Zsh has gitk aliased as gk and that can create some problems. To fix this, type in your terminal:
Manual macOS Installation
If you install the CLI manually from the releases page on macOS, you will likely run into a security error that looks like this:
To fix this, go to Settings > Security & Privacy > General and click "Allow Anyway".
Try running gk setup again and then click "Open Anyway" to continue.
來源:README.md,提交 5e5eeeb
工具
0版本歷史
2- v3.1.77最新Oct 14, 2026
- v3.1.70Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。