Gitea MCP (gitea-mcp)
Use the gitea-mcp MCP tools as the primary interface for all Gitea operations.
Tool Selection & Workflows
Most domain tools are consolidated into _read / _write pairs that take a method parameter. Inspect each tool's schema for exact method values and required arguments.
- Discover & inspect repositories:
get_me,get_user_orgs,search_repos,repo_read(repo details, org/user repos, branch protections) →repo_write(create, fork, settings, topics, branch protections). - Browse & edit files:
get_repository_tree→get_file_contentsorget_dir_contents→create_or_update_file(create, update, rename, or delete in one commit; accepts base64 content up to 32 MiB) ordelete_file. - Branches, tags, commits:
branch_read/branch_write,tag_read/tag_write,commit_read(commits, diffs, combined statuses, compare refs) /commit_write(commit statuses). - Issues & search:
search_issues(full-text across repos) orlist_issues→issue_read(comments, labels, dependencies, attachments) →issue_write. Pair withlabel_read/label_writeandmilestone_read/milestone_write. - Pull requests & reviews:
list_pull_requests→pull_request_read(diff, files, commits, status, reviews, comments, reviewer candidates, find by branch/commit) →pull_request_write(create, update, merge, close, reopen, update branch, reviewers) andpull_request_review_write(create/submit/delete/dismiss reviews, reply/resolve comments). - Gitea Actions:
actions_run_read(workflows, runs, jobs, logs, artifacts) →actions_run_write(dispatch, cancel, rerun, approve, toggle workflows);actions_config_read/actions_config_write(secrets and variables). - Releases, wikis, projects, packages, notifications, time:
release_read/release_write,wiki_read/wiki_write,project_read/project_write,package_read/package_write,notification_read/notification_write,timetracking_read/timetracking_write.
Read references/tools-reference.md for the complete 48-tool inventory, -S scope names, and Read/Write classifications.
Gotchas
- Pagination is silently capped:
pageandper_pageare clamped to the Gitea server's[api].MAX_RESPONSE_ITEMS(default50). Always paginate withpageif a list returns 50 items. - Missing Write tools: If Write tools are absent, the server is running in read-only mode (
-r/GITEA_READONLY=true) or filtered by-S/-O. package_writeis irreversible: Deleting a package version cannot be undone; confirm before calling.- Error shapes: Gitea/tool failures return
tools/callwithresult.isError: true; malformed requests or server faults return JSON-RPC errors. - Scope + tool filtering: Setting both
-S(--scope) and-O(--tools) loads their union. Deprecated legacy tool names in-O(e.g.,list_branches) enable only the matchingmethodon the consolidated tool. - No local
gitCLI operations:gitea-mcpoperates via Gitea's API only and does not manage localgitworking trees, staging, orgit push.
Server Setup & Troubleshooting
If gitea-mcp is not yet connected or needs transport/auth/TLS configuration, read references/client-configs.md for flags, environment variables, client snippets (Claude Code, VS Code, OpenCode, Cursor, Mistral Vibe), stateless HTTP proxy requirements, mTLS, and OAuth 2.1 PKCE.


