gitea_action
Interact with the self-hosted Gitea forge REST API: read repos, branches, and files, create branches and single-file commits, open/merge/close pull requests, comment, manage issues, and manage push mirrors so the forge owns downstream syncs (for example a calm scheduled mirror to GitHub).
This record as markdown: /tools/io-github-malamutemayhem-unclick-mcp-server/gitea-action.md
What gitea_action does on UnClick
AI agents use gitea_action to create or update resources in UnClick, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your UnClick environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
ref | string | — | Branch, tag, or commit for get_file or get_commit_status. |
base | string | — | Pull request base branch. |
body | string | — | Issue, pull request, or comment body text. |
head | string | — | Pull request head branch. |
page | number | — | Page number. |
path | string | — | Repo-relative file path for get_file and upsert_file. |
repo | string | — | Repository name. |
owner | string | — | Repository owner login. |
query | string | — | Search query string (for search_repos). |
state | string | — | Filter by state: open, closed, all. |
title | string | — | Issue or pull request title. |
action | string | Yes | Action: get_version, search_repos, get_repo, list_branches, create_branch, get_file, get_commit_status, upsert_file, list_issues, create_issue, comment_issue_or |
Parameters from the server's own tool schema.
Why gitea_action is rated Medium
An AI agent can call gitea_action faster than any human can review: one bad instruction and it creates or modifies resources in UnClick by the hundred, each call as confident as the last.
Risk signalsAccepts file system path (path) · Accepts URL/endpoint input (base_url) · Handles credentials or secrets (access_token) · Accepts raw HTML/template content (body) · High parameter count (39 properties)
Attacks that exploit this kind of access
The rule that runs gitea_action safely
PolicyLayer is an MCP gateway: it sits between your AI agents and UnClick, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For gitea_action, this is the rule to start with:
gitea_action stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect UnClick, apply this rule, and every gitea_action call is checked against it from then on.
Questions about gitea_action
Interact with the self-hosted Gitea forge REST API: read repos, branches, and files, create branches and single-file commits, open/merge/close pull requests, comment, manage issues, and manage push mirrors so the forge owns downstream syncs (for example a calm scheduled mirror to GitHub). It is categorised as a Write tool in the UnClick MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
gitea_action accepts 12 parameters: ref, base, body, head, page, path, repo, owner, query, state, title, action. Required: action. The full parameter table on this page comes from the server's own tool schema.
Register the UnClick MCP server in PolicyLayer and add a rule for gitea_action: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches UnClick. Nothing to install.
gitea_action is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the gitea_action rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for gitea_action. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
gitea_action is provided by the UnClick MCP server (@unclick/mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on UnClick, and thousands of servers like it.
This server
Across the catalogue