git_add
Adds specified files to the staging area in a Git repository, enabling version control and preparation for commits. Integrates with the MCP Git Server for repository management.
Instructions
Adds file contents to the staging area
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": {
"repo_path": "<repo_path>",
"files": "<files>"
},
"name": "git_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| repo_path | Yes |