/gitea:giteafrom gitea
Use a self-hosted or private Gitea instance for source control, CI/CD (Gitea Actions), issues, pull requests, and lightweight project management — via the mcp__gitea__* tools this plugin provides. Trigger whenever the user wants to create/find/push/clone a repo, open or triage an issue, check or kick off a CI run, manage milestones/labels, review or write a pull request, cut a release/tag, or do any "source control" / "CI" / "issue tracking" / "project management" work against a Gitea instance — not GitHub. Also trigger on bare mentions of "Gitea" or a Gitea instance URL. Do NOT use this for GitHub work (gh CLI, github.com URLs) — that's a separate system with separate credentials.
Ships in gitea. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This is a Claude Code plugin (.claude-plugin/plugin.json + .mcp.json in
this same directory) — it bundles the gitea MCP server definition, not
just this skill, so installing/enabling it is what actually makes the
mcp__gitea__* tools available in a session. The server is a Docker
container (docker.gitea.com/gitea-mcp-server) authenticated via two
env vars, GITEA_ACCESS_TOKEN and GITEA_HOST, read from the shell
environment at launch (see .mcp.json — never hardcode a token there,
that file is meant to be shared/committed). Set them before starting
Claude Code:
export GITEA_ACCESS_TOKEN="<a token for the account Claude should act as>"
export GITEA_HOST="http://<your-gitea-host>:<port>"
See README.md for how to obtain a token.
The mcp__gitea__* tools are deferred — load the ones you need with
ToolSearch, e.g. ToolSearch("select:mcp__gitea__issue_write"), rather
than assuming they're already loaded. Don't load all ~60 of them at once;
grab the handful relevant to the task.
Figure out who you're authenticated as and what you have access to before
assuming anything about the instance: mcp__gitea__get_me (account
identity) and mcp__gitea__get_user_orgs (orgs that account belongs to).
Don't assume an org name, a repo's existence, or what repos exist —
list_org_repos/search_repos first, every time; a previous session's
notes about "what's in the org" go stale fast.
Many Gitea setups authenticate Claude as a bot/service account that has
push/pull on existing repos but deliberately lacks org-level
repo-creation rights (create_repo with an organization arg failing
with "User is not allowed to create repositories in this organization"
is a real, common Gitea permission, not a bug). If a task needs a brand
new org repo and that call fails this way: tell the user and ask them to
either create it themselves or grant the bot account repo-creation
rights — don't retry expecting a fluke, and don't silently fall back to
creating it under the bot's own personal namespace instead, since that
changes who owns the repo. (Repo creation under the authenticated
account's own personal namespace, with no organization arg, works
regardless of org permissions — offer that explicitly as the alternative,
rather than doing it unasked.)
Most self-hosted Gitea instances don't have an HTTP credential helper set
up, so git clone/push over https:// will prompt for credentials
that may not exist. SSH is usually the reliable path. If the user has
already set up an SSH host alias for this instance (check ~/.ssh/config
for anything pointing at the Gitea host), use that alias in remotes
instead of the API's raw ssh_url field — it's shorter and doesn't need
an explicit -i <key> flag:
git remote add origin ssh://<ssh-alias>/<owner>/<repo>.git
git push -u origin main
If no alias exists yet, the API's own ssh_url (e.g.
ssh://git@your-gitea-host:2222/...) works too, with -i <path-to-key>
if the key isn't the SSH agent's default identity.
Pick the reference file(s) for what you're actually doing — don't read all three for a one-line issue comment:
If a task spans more than one area (e.g. "open a PR and link it to an issue"), read both relevant files; they're short.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (jygeer/claude-gitea-plugin) — no native marketplace selected
npx claudepluginhub p/jygeer-gitea