SSH Setup for Git Operations
The Gitea MCP handles all Gitea API operations (repos, issues, PRs, etc.) via HTTPS. However, git operations (clone, push, pull, fetch) go through SSH.
Configure SSH for Gitea
Add to ~/.ssh/config:
Replace:
gt.covalente.dk with your Gitea instance hostname
222 with your Gitea SSH port (default Gitea SSH is 222, not 22)
~/.ssh/your_ssh_key with the path to your SSH private key
Verify SSH Access
Expected output (Gitea doesn't provide shell access, but confirms authentication):
Using SSH with Goose
Goose can run git commands via its shell tool. Once SSH is configured:
SSH + MCP = Full Workflow
| Operation |
Tool |
Transport |
| Create repo |
Gitea MCP (create_repo) |
HTTPS API |
| Create issue |
Gitea MCP (issue_write) |
HTTPS API |
| Clone repo |
Shell (git clone) |
SSH port 222 |
| Push code |
Shell (git push) |
SSH port 222 |
| Create PR |
Gitea MCP (pull_request_write) |
HTTPS API |
| Merge PR |
Gitea MCP (pull_request_write) |
HTTPS API |