
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 分
请在仓库或注册中心条目中声明许可证。