gitchanger_switch
Switch the active Git profile for a repository or globally, updating user.name/email, SSH keys and host aliases, ssh-agent entries, and the GitHub MCP token for AI clients.
Instructions
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"profile": "<profile>"
},
"name": "gitchanger_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional repository path / working directory to apply to. | |
| test | No | Test SSH connection immediately after switching. | |
| global | No | Apply profile globally (~/.gitconfig) instead of local repository. | |
| no_mcp | No | Do not update GitHub MCP configuration token. | |
| profile | Yes | Profile ID or SSH host alias to switch to (e.g. 'work', 'personal'). | |
| no_ssh_agent | No | Do not automatically add SSH key to ssh-agent. | |
| no_remote_update | No | Do not automatically rewrite Git remote origin URLs. |