@gitkraken/gk
v3.1.48
Published
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
Downloads
154
Maintainers
Readme
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
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
| Toolset | Description |
|---------|-------------|
| git_add_or_commit | Add 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_blame | Show what revision and author last modified each line of a file (git blame <file>). |
| git_branch | List or create branches (git branch). |
| git_checkout | Switch branches or restore working tree files (git checkout <branch>). |
| git_log_or_diff | Show commit logs or changes between commits (git log --oneline or git diff). |
| git_push | Update remote refs along with associated objects (git push). |
| git_stash | Stash the changes in a dirty working directory (git stash). |
| git_status | Show the working tree status (git status). |
| git_worktree | List or add git worktrees (git worktree <action>). |
Pull Request Tools
| Toolset | Description |
|---------|-------------|
| pull_request_assigned_to_me | Search pull requests where you are the assignee, author, or reviewer |
| pull_request_create | Create a new pull request |
| pull_request_create_review | Create a review for a pull request |
| pull_request_get_comments | Get all the comments in a pull requests |
| pull_request_get_detail | Get an specific pull request |
| repository_get_file_content | Get file content from a repository |
Issue Tools
| Toolset | Description |
|---------|-------------|
| issues_add_comment | Add a comment to an issue |
| issues_assigned_to_me | Fetch issues assigned to the user |
| issues_get_detail | Retrieve detailed information about a specific issue by its unique ID |
GitKraken Tools
| Toolset | Description |
|---------|-------------|
| gitkraken_workspace_list | Lists 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)
