GitChanger MCP Server
Allows AI assistants to inspect Git repositories, manage Git profiles and identities, switch active profiles per repository or globally, update remote URLs and SSH configurations, and test SSH authentication.
Provides tools for synchronizing GitHub Personal Access Tokens across MCP-enabled tools, managing tokens for profiles or client configurations, and verifying token validity, login, and OAuth scopes against the GitHub API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitChanger MCP Server Switch this repo to my work profile and test the SSH connection"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitChanger MCP Server β‘
Official Model Context Protocol (MCP) server for GitChanger (gitchanger).
Allows AI assistants (Claude Desktop, Cursor, Antigravity / Gemini CLI, VS Code / Roo Code / Cline) to seamlessly inspect Git repositories, switch between multiple Git accounts and SSH configurations, and synchronize GitHub MCP Personal Access Tokens automatically.
π Features
π Automatic Git Account Switching: Let your AI assistant switch your active Git profile (author name, email, SSH keys, signing keys, and remote URLs) per repository or globally.
π€ GitHub MCP Token Synchronization: Synchronize GitHub Personal Access Tokens (PATs) across all your MCP-enabled tools (
@modelcontextprotocol/server-github) when changing profiles.π Diagnostics & Scanning: Query Git identities, active remotes, loaded SSH keys, and system MCP configurations on demand.
π‘ Security by Design: Masked tokens by default, atomic configuration updates, and full compatibility with existing
~/.ssh/configblocks.
Related MCP server: Git MCP Server
π Available MCP Tools
Tool | Description |
| Show current repository Git identity, matching profile, remote URLs, and active MCP token status. |
| List all configured Git profiles in GitChanger. |
| Switch active Git profile for current repository or globally (auto-updates SSH agent & MCP tokens). |
| Add a new Git profile (name, email, transport, key, host alias, GitHub token). |
| Delete a Git profile and optionally clean up SSH host configuration. |
| Set a profile as the default Git profile. |
| Test SSH network and key authentication for a specific profile. |
| Scan |
| Show status of GitHub MCP tokens across profiles and detected AI client configurations. |
| Set GitHub Personal Access Token for a profile or directly in MCP client configs. |
| Retrieve configured GitHub MCP token for a profile or active configuration. |
| Sync a profile's GitHub token to all detected MCP client configuration files. |
| Test and verify token validity, login, and OAuth scopes against GitHub API. |
| Remove GitHub MCP token from a profile and/or MCP client configs. |
π¦ Resources
URI | MIME Type | Description |
|
| List of all configured Git profiles in JSON format. |
|
| Formatted status of current repository and active Git identity. |
π¦ Installation & Setup
Prerequisites
Install GitChanger CLI:
git clone https://github.com/culcat/GitChangerCLI.git cd GitChangerCLI cargo install --path .Ensure
gitchangeris accessible in your$PATH(typically~/.cargo/bin).Clone and build GitChangerMCP:
git clone git@github.com:culcat/GitChangerMCP.git cd GitChangerMCP npm install npm run build
βοΈ Configuration in AI Clients
1. Google Antigravity / Gemini CLI (~/.gemini/config/mcp_config.json)
{
"mcpServers": {
"gitchanger": {
"command": "node",
"args": ["/path/to/GitChangerMCP/dist/index.js"]
}
}
}2. Claude Desktop
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"gitchanger": {
"command": "node",
"args": ["/path/to/GitChangerMCP/dist/index.js"]
}
}
}3. Cursor (~/.cursor/mcp.json or project .cursor/mcp.json)
{
"mcpServers": {
"gitchanger": {
"command": "node",
"args": ["/path/to/GitChangerMCP/dist/index.js"]
}
}
}4. VS Code (Cline / Roo Code)
Add under mcpServers in your extension settings:
{
"gitchanger": {
"command": "node",
"args": ["/path/to/GitChangerMCP/dist/index.js"]
}
}π¬ Example Prompts
Once configured, you can simply ask your AI assistant:
"What Git account am I currently using in this repository?"
"Switch this repo to my 'work' profile and verify the SSH connection."
"List all my configured Git profiles and show which one is default."
"Add a new Git profile for 'freelance' with email dev@client.com using SSH."
"Sync my GitHub MCP token with my work profile."
"Verify my GitHub MCP token against the GitHub API."
π License
Available Tools
14 toolsgitchanger_addC
Add a new Git profile to GitChanger.
Inputs: id (required), name (required), email (required), key, +6 more.
gitchanger_deleteC
Delete a Git profile from GitChanger.
Inputs: profile (required), keep_ssh.
gitchanger_listB
List all configured Git profiles in GitChanger with their details.
Inputs: verbose.
gitchanger_mcp_getB
Retrieve configured GitHub MCP token for a profile or active MCP client configuration.
Inputs: unmask, profile.
gitchanger_mcp_removeC
Remove GitHub MCP token from a profile and/or MCP client configs.
Inputs: profile, clear_mcp.
gitchanger_mcp_setB
Set GitHub MCP Personal Access Token for a profile or directly into MCP client configs.
Inputs: token (required), file, sync, direct, +1 more.
gitchanger_mcp_statusB
Show GitHub MCP token status across profiles and detected AI client configurations (Antigravity, Claude, Cursor, VS Code).
Inputs: cwd.
gitchanger_mcp_syncB
Sync a profile's GitHub token to all detected MCP client configuration files.
Inputs: file, profile.
gitchanger_mcp_testB
Test and verify GitHub token validity, account username, and OAuth scopes against GitHub API.
Inputs: token, profile.
gitchanger_scanB
Scan ~/.ssh directory, SSH config, and MCP client configurations for existing keys and hosts.
Inputs: no named parameters.
gitchanger_set_defaultC
Set a profile as the default GitChanger profile.
Inputs: profile (required).
gitchanger_statusA
Show current Git identity, matching GitChanger profile, remote URLs, and active GitHub MCP token status for the repository or global environment.
Inputs: cwd, verbose.
gitchanger_switchA
Switch active Git profile for the current repository or globally. Automatically configures git user.name/email, SSH host alias/keys, adds key to ssh-agent, and syncs GitHub MCP token to AI clients.
Inputs: profile (required), cwd, test, global, +3 more.
gitchanger_test_sshC
Test SSH connection for a Git profile.
Inputs: profile (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 14 tools
Most tools target clearly distinct operations (add/delete/switch/scan/test_ssh vs. MCP token set/get/remove/sync/test). The main potential confusion is gitchanger_status vs gitchanger_mcp_status and gitchanger_list, which all report state, but descriptions make the split (identity/remote vs. token status vs. profile inventory) reasonably clear.
All tools use a consistent gitchanger_ prefix with snake_case verb/noun suffixes, and the MCP subgroup cleanly nests as gitchanger_mcp_*. No mixed camelCase or inconsistent verb styles.
14 tools is well within a reasonable range and each maps to a concrete operation across two coherent sub-domains (profile lifecycle and MCP token lifecycle). No obvious filler tools.
Profile CRUD is largely covered (add, delete, list, switch, set_default, status) plus SSH testing/scanning and full MCP token management (set/get/remove/sync/status/test). The notable gap is an update/edit operation for an existing profile's fields (e.g., changing name/email/SSH key without deleting and re-adding).
Maintenance
Related MCP Connectors
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Access the GitHub API, enabling file operations, repository management, search functionality, andβ¦
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered GitHub interactions including repository analysis, code search, PR reviews, and more through the MCP protocol.4MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to inspect local Git repositories and interact with the GitHub API for reading commits, diffs, files, issues, comments, pull requests, and project boards.10ISC
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with GitHub issues, pull requests, and Actions workflows through MCP tools.-
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Git repositories via MCP, supporting status checks, diffs, staging, commits, branch management, and log queries.12MIT