🎂 60-80% OFF Ends In:
Days
Hours
Minutes
Seconds

Git Blog

Releasing the Power of Git

Introducing GitKraken MCP: AI Agents Just Got a Power-Up

With the latest iteration of the GitKraken CLI, you can now connect to a local MCP server to deliver more functionality to your agent of choice. Whether you are using GitHub Copilot, Cursor, Windsurf, or any other tool, you can now leverage the power of GitKraken’s MCP server to enhance your workflows.

TL;DR: Get Up and Running

  1. Install the GitKraken CLI
  2. Run `gk auth login` to enable full functionality
  3. Connect the MCP Server to your preferred tool (see examples in the Help Center)

What is MCP?

If you’re unclear on what MCP is and means, we can provide a bit of an introduction. MCP stands for Model Context Protocol and it’s a protocol that allows LLMs and AI tools to extend their capabilities. It’s a standard way of interacting with things like REST APIs, local CLI tools, web browsers, etc. Using GitKraken’s MCP server opens up a whole new world of possibilities for your agentic workflows.

What Can You Do With It?

Would you like to ask Cursor questions about your codebase? Maybe you want to see who the subject matter expert is for specific code in your API or web app. Or maybe you want to list out all the open PRs and figure out which ones are most pressing for you to review.

The only limit to what you can do with the MCP server is your imagination. With the MCP server, your agent can now act like a real teammate by surfacing code insights, PR status, and team knowledge instantly.

Example Workflows

We have put together a few example workflows that you can use directly or treat as inspiration for your own custom workflows.

Update Dependencies Across All Your Repositories

Let’s assume you have a common library you share across several of your repositories. In a previous role I had at another company, the backend team had dozens of AWS Lambda functions that shared an internal library of utilities and middleware. At least a couple times, they had to have Saturday merge “parties” when they had major updates to the shared library.

Now, they could simply prompt the LLM to update the dependencies in all of their repositories and even have it create the PRs for them.

Example Prompt:

For all repositories in this GitKraken Workspace, create a new branch called “update-shared-components-to-X.X.X”, use npm to update the shared-component-library dependency to X.X.X and create Pull Requests for all affected repos. Make sure to tag “John Doe” as a reviewer.

Learn About Your Codebase and Issues

If you have configured GitKraken Integrations, you could ask Cursor or other agentic tools to list issues that are assigned to you, or even look for the most pertinent issues in your backlog.

Another thing you could do is ask who has the most experience working with the auth layer of your API. This would help you reach out for any specific questions you might have as you look at the codebase.

Example Prompt:

Look for all issues assigned to me in Jira. Find the most important one and then analyze the git commit history for the person I should reach out to if I have questions.

Git branch Cleanup & maintenance

Do you ever manually delete branches from your local repo? I know I don’t. But that can get annoying when trying to autocomplete a branch name and you see branches from years ago still lingering in your options.

Ask Claude or Cursor to clean those branches up for you. Have them find branches that haven’t been updated in X days and ask for them to be deleted. You can have it do this for a single repo or you can have it do this across an entire workspace, saving you a lot of time. In the past, I would have wasted a bunch of time writing up a bash script for this. Now, it’s one prompt away.

Example Prompt:

Look at all repositories in this GitKraken Workspace and find all local branches that have not been modified in 60 days. Show me the list along with their last modified dates.
(review the list)
Delete all those branches from my local git repository. Do not touch the remote branches.

This is Just the Beginning

We are excited about the potential of this new MCP server and we are looking forward to seeing what you can do with it. If you have any questions or feedback, don’t hesitate to reach out to us. Tag @GitKraken on social media with interesting use cases or success stories!

Like this post? Share it!

Read More Articles

Make Git Easier, Safer &
More Powerful

with GitKraken
Visual Studio Code is required to install GitLens.

Don’t have Visual Studio Code? Get it now.

Team Collaboration Services

Secure cloud-backed services that span across all products in the DevEx platform to keep your workflows connected across projects, repos, and team members
Launchpad – All your PRs, issues, & tasks in one spot to kick off a focused, unblocked day. Code Suggest – Real code suggestions anywhere in your project, as simple as in Google Docs. Cloud Patches – Speed up PR reviews by enabling early collaboration on work-in-progress. Workspaces – Group & sync repos to simplify multi-repo actions, & get new devs coding faster. DORA Insights – Data-driven code insights to track & improve development velocity. Security & Admin – Easily set up SSO, manage access, & streamline IdP integrations.
winget install gitkraken.cli