overleaf_git_sync
Sync Overleaf projects with local files through Git Bridge: clone, pull, check status, or push commits from AI coding agents.
Instructions
Run direct Git Bridge operations (clone, pull, status, push) for Paid/Institutional Overleaf projects.
Args: action: 'clone' or 'pull' (sync remote to local), 'status' (view diff & commits), or 'push' (stage, commit, push). project_id: 24-character Overleaf project ID or full Overleaf project URL. local_dir: Optional local checkout directory (defaults to ~/.cache/overleaf-mcp/repos/<project_id>). commit_message: Commit message when action='push'. paths: Optional specific relative paths to stage when action='push' (defaults to all changes).
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": {
"action": "<action>",
"project_id": "<project_id>"
},
"name": "overleaf_git_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | ||
| action | Yes | ||
| local_dir | No | ||
| project_id | Yes | ||
| commit_message | No | Update via Overleaf MCP Agent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |