Files
gitea-mcp/operation
chaim 4131a99256 feat(repo): add download_repo_archive tool
Download an entire repository as zip/tar.gz in a single MCP call.
Replaces N+ get_file_contents calls when fetching whole repos.

Calls Gitea's GET /repos/{owner}/{repo}/archive/{ref}.{format} endpoint,
saves bytes to disk at output_path, returns sha256 for integrity.

Safety: 500MB cap, requires absolute output_path, parent dir auto-created.

Performance impact: ~250 calls → 1 call for typical extension repo.
2026-05-13 16:18:42 +00:00
..