# gk-cli

A local MCP server for working with Git, GitHub, GitLab, Bitbucket and Jira through an AI agent. It also supports workflows across multiple repositories.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 462
- Author: gitkraken
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/gitkraken/gk-cli
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/mcp/gk-cli

## What it does

gk-cli connects an agent to GitKraken CLI and exposes actions for Git, GitHub, Jira and other code-hosting services. Its Work Items can group several repositories under one task, after which AI features can create commit messages and Pull Requests.

The server runs locally through `npx`. The CLI includes commands for authentication, issues, work items and workspaces, plus a passthrough for regular Git commands through `gk`. Claude Code can add the server with the command shown below.

A Nerd Font is needed for terminal icons. Safari and Brave do not respond to the `localhost` redirect on port `1314`, so browser authentication can hang there; use another browser for that step.

## Requirements
- Needs: Node.js (commands run via npx)
- Works with: GitHub, GitLab, Jira

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add gk-cli -- npx -y @gitkraken/gk
```

### Codex

**Platform CLI**
```bash
codex mcp add gk-cli -- npx -y @gitkraken/gk
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "gk-cli": {
            "command": "npx",
            "args": [
                "-y",
                "@gitkraken/gk"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "gk-cli": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@gitkraken/gk"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add gk-cli npx -y @gitkraken/gk
```

## When to use it
- group several repositories under one work item
- generate an AI commit after code changes
- open a Pull Request from a work item
- manage issues through an MCP server
- pass Git commands to an agent

## Example prompts
- Connect `gk-cli` and turn the changes in the current Work Item into a commit.
- Use `gk-cli` to add `./path/to/repo` to the current work item.
- Create a Pull Request for the current Work Item with AI through `gk-cli`.

## Similar
- [GitDiagram](https://affpapa.org/en/nevibecode/mcp/gitdiagram.md) — MCP server · ★ 18446
- [Repowise](https://affpapa.org/en/nevibecode/mcp/repowise.md) — MCP server · ★ 7891
- [Octocode MCP - AI Context Platform](https://affpapa.org/en/nevibecode/mcp/octocode-mcp-ai-context-platform.md) — MCP server · ★ 955
- [projectmem](https://affpapa.org/en/nevibecode/mcp/projectmem.md) — MCP server · ★ 866
- [Memorix](https://affpapa.org/en/nevibecode/mcp/memorix.md) — MCP server · ★ 863
- [loki-mode](https://affpapa.org/en/nevibecode/mcp/loki-mode.md) — MCP server · ★ 1107

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
