GitHub Checkout and Commit Tools
A repository to demonstrate the new checkout and commit tools for the GitHub MCP server
Overview
GitHub Checkout and Commit Tools is a repository that showcases new tools for checking out branches and commits, as well as creating commits on the GitHub MCP server.
To use these tools, integrate them with the GitHub MCP server to perform Git operations directly from your environment.
- checkout_branch: Checkout a branch in a local repository - checkout_commit: Checkout a specific commit in a local repository - create_commit: Create a commit in a local repository - commit_and_push_file: Commit and push a file to a GitHub repository
- Managing branches in a local Git repository
- Checking out specific commits for testing or debugging
- Committing changes and pushing them to a remote repository
Add to your AI client
Use these steps to connect GitHub Checkout and Commit Tools in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"github-checkout-commit-tools-tmw397": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-checkout-commit-tools-tmw397"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"github-checkout-commit-tools-tmw397": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-checkout-commit-tools-tmw397"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"github-checkout-commit-tools-tmw397": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-checkout-commit-tools-tmw397"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"github-checkout-commit-tools-tmw397": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-checkout-commit-tools-tmw397"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"github-checkout-commit-tools-tmw397": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-checkout-commit-tools-tmw397"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"github-checkout-commit-tools-tmw397": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github-checkout-commit-tools-tmw397"
]
}
}
}FAQ
Can I use these tools with any GitHub repository?
Yes! These tools are designed to work with any repository on the GitHub MCP server.
Are there any prerequisites to use these tools?
You need to have access to the GitHub MCP server and a local Git repository set up.
Is there documentation available for these tools?
Yes! You can find more information and examples in the repository's README file.