🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@gitkraken/gk

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitkraken/gk

gk is GitKraken on the command line. It makes working across multiple repos easier with Workspaces, provides access to pull requests and issues from multiple services (GitHub, GitLab, Bitbucket, etc.), and seamlessly connects with GitKraken Client and Git

latest
Source
npmnpm
Version
3.1.70
Version published
Maintainers
1
Created
Source

GitKraken MCP Server

The GitKraken MCP Server is a local MCP server that is powerful and easy to use. It combines the functionality of all of your GitKraken Integrations and provides that power to your AI agents, assistants, and chatbots. Your agentic workflows will be more capable and efficient.

Use Cases

  • Safe Git Operations: Perform Git operations safely and securely
  • Issue & PR Automation: Read and Create Issues and Pull Requests across all supported GitKraken Integrations (GitHub, GitLab, BitBucket, Azure DevOps, Jira, Trello, Linear, etc.)
  • Understand Repo Changes: Get a detailed overview of all changes in a repository and understand the impact of each change

Local GitKraken MCP Server

Install in VS Code Install in VS Code Insiders Install in Cursor Install in Windsurf Install in Trae

Installation

There are several ways of installing the GitKraken MCP Server depending on the environment in which you want to use it.

Install in VS Code with GitLens

If you are using a new enough version of VS Code and have GitLens installed, the MCP Server is installed for you automatically. To verify this, you simply need to run a Copilot prompt that would use our MCP server. For example, you can run the following prompt:

What Issues are assigned to me?

Install in Other IDEs with GitLens

GitLens can automate it's installation in other VS Code based IDEs such as Cursor, WindSurf, Trae, and Kiro.

For quick installation, use one of the one-click install buttons above. Once you complete that flow, toggle Agent mode (located by the Copilot Chat text input) and the server will start.

If you already have Gitlens, you can simply bring up the Command Palette (Ctrl+Shift+P) and type "GitLens: Install MCP Server" and select the option to install the MCP Server in your IDE.

More about using MCP server tools in VS Code's agent mode documentation.

Install without GitLens

For easy installation, you can use the GitKraken CLI command:

gk mcp install <PLATFORM>

Alternatively, you can manually add the following JSON block to your IDE's MCP settings:

{
  "mcp": {
    "servers": {
      "gitkraken": {
        "command": "gk",
        "args": ["mcp"],
        "type": "stdio"
      }
    }
  }
}

This assumes that you ran the install command globally (npm i -g @gitkraken/gk).

Optionally, you can add a similar example (i.e. without the mcp key) to a file called .vs code/mcp.json in your workspace. This will allow you to share the configuration with other host applications that accept the same format.

More about using GitKraken MCP documentation

Tools

Git Tools

ToolsetDescription
git_add_or_commitAdd file contents to the index (git add <pathspec>) OR record changes to the repository (git commit -m <message> [files...]). Use the 'action' parameter to specify which action to perform.
git_blameShow what revision and author last modified each line of a file (git blame <file>).
git_branchList or create branches (git branch).
git_checkoutSwitch branches or restore working tree files (git checkout <branch>).
git_log_or_diffShow commit logs or changes between commits (git log --oneline or git diff).
git_pushUpdate remote refs along with associated objects (git push).
git_stashStash the changes in a dirty working directory (git stash).
git_statusShow the working tree status (git status).
git_worktreeList or add git worktrees (git worktree <action>).

Pull Request Tools

ToolsetDescription
pull_request_assigned_to_meSearch pull requests where you are the author or assignee (optionally include requested reviewer via reviewer)
pull_request_createCreate a new pull request. Supports optional assign_to_me; GitHub and GitLab assign the PR to the current user, while Azure DevOps and Bitbucket return a warning that the provider does not support assign_to_me.
pull_request_create_reviewCreate a review for a pull request
pull_request_get_commentsGet all the comments in a pull requests
pull_request_get_detailGet an specific pull request
repository_get_file_contentGet file content from a repository

Issue Tools

ToolsetDescription
issues_add_commentAdd a comment to an issue
issues_assigned_to_meFetch issues assigned to the user
issues_createCreate a new issue
issues_get_detailRetrieve detailed information about a specific issue by its unique ID

GitKraken Tools

ToolsetDescription
gitkraken_workspace_listLists all GitKraken workspaces

Prompts

  • code_review_branch - Generate a code review branch name based on the provided context.
    • branch_name: Branch name to review (required)

Keywords

cli

FAQs

Package last updated on 13 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts