codebolt.git
Git repository management and version control operations for managing code repositories.
Available Tools
git_init
- Initialize a new Git repositorygit_clone
- Clone a repositorygit_pull
- Pull changes from remotegit_push
- Push changes to remotegit_status
- Get working directory statusgit_add
- Add files to staging areagit_commit
- Commit staged changesgit_checkout
- Checkout branch or filesgit_branch
- Create or list branchesgit_logs
- Get commit historygit_diff
- Get changes between commits
Sample Usage
// Initialize a new Git repository
const initResult = await codeboltMCP.executeTool(
"codebolt.git",
"git_init",
{ path: "/path/to/project" }
);
// Clone a repository
const cloneResult = await codeboltMCP.executeTool(
"codebolt.git",
"git_clone",
{
url: "https://github.com/user/repo.git",
destination: "/path/to/clone"
}
);
// Check repository status
const statusResult = await codeboltMCP.executeTool(
"codebolt.git",
"git_status",
{}
);
// Add files to staging
const addResult = await codeboltMCP.executeTool(
"codebolt.git",
"git_add",
{ files: ["file1.js", "file2.js"] }
);
// Commit changes
const commitResult = await codeboltMCP.executeTool(
"codebolt.git",
"git_commit",
{ message: "Add new features" }
);
// Get commit history
const logsResult = await codeboltMCP.executeTool(
"codebolt.git",
"git_logs",
{ limit: 10 }
);
info
This functionality is similar to the git API and provides the same Git operations through MCP interface.