git_manage
Manage Git repositories and operations including file handling, branching, commits, and pull requests through FleetQ's MCP server.
Instructions
Manage git repositories and operations. Actions: repo_list, repo_get (repo_id), repo_create (name, url, credentials), repo_update (repo_id + fields), repo_delete (repo_id), repo_test (repo_id — test connection), file_read (repo_id, path, branch), file_write (repo_id, path, content, branch, message), file_list (repo_id, path, branch), branch_create (repo_id, name, source), commit (repo_id, message, files), pr_create (repo_id, title, body, source, target), pr_list (repo_id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform: repo_list, repo_get, repo_create, repo_update, repo_delete, repo_test, file_read, file_write, file_list, branch_create, commit, pr_create, pr_list | |
| provider | No | Filter by provider: github, gitlab, bitbucket, gitea, generic | |
| mode | No | Filter by mode: api_only, sandbox, bridge | |
| status | No | Filter by status: active, disabled, error | |
| limit | No | Max results (default 15, max 100) | |
| id | Yes | Repository UUID | |
| name | Yes | Friendly name for the repository | |
| url | Yes | Repository URL (HTTPS or SSH) | |
| default_branch | No | Default branch name (default: main) | main |
| credential_id | No | UUID of a Credential containing the PAT/SSH key for authentication | |
| config | No | Mode-specific config. sandbox: {provider, instance_type, run_tests, test_command}. bridge: {repo_name, working_directory}. pr: {require_approval} | |
| repository_id | Yes | Repository UUID | |
| path | Yes | File path relative to repo root (e.g. "src/app.php") | |
| ref | No | Git ref: branch name, tag, or commit SHA (default: HEAD) | HEAD |
| content | Yes | Full file content to write | |
| message | Yes | Commit message | |
| branch | No | Branch to commit to (defaults to repository default_branch) | |
| from | No | Source branch or commit SHA to branch from (defaults to repository default_branch) | |
| changes | Yes | Array of file changes: [{path, content}] or [{path, deleted: true}] | |
| title | Yes | Pull request title | |
| body | No | Pull request description/body | |
| head | Yes | Source branch (the branch with changes) | |
| base | No | Target branch (defaults to repository default_branch) | |
| state | No | PR state filter: open, closed, all (default: open) | open |