Gitea MCP server for AI agents

Live

API KEY

GIT HOSTING

Developer Tools

Gitea gives your agent access to the repositories in your Gitea account: browse branches, commits, and files, work with issues and pull requests, submit reviews, merge, and publish releases.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Gitea
agent · Acme Q3
Run
Which pull requests are open on acme/api?
S
gitea_pulls_list
160ms
Code review agent
3 pull requests are open on acme/api. The oldest, Add rate limiting, has 1 approval and no requested changes.
Sources: Gitea pull requests, acme/api
gitea
3 pull requests
18:29
Message Claude...

Tools your git hosting agent reaches for on Gitea, scoped per user.

CALL ANY TOOL
60 tools for git hosting in Gitea: browse repositories, branches, commits, and files, manage issues and pull requests, submit reviews, merge, and publish releases.
gitea_branch_create
Create branch
Create a branch from an existing branch, tag or commit (old_ref_name). Returns the new branch. Get names from gitea_branches_list.
Parameters
Name
Type
Required
Description
new_branch_name
string
Required
Name of the branch to create. Example: feature/login-fix.
owner
string
Required
Owner of the repository: a user name or organization name. Example: octo-org.
repo
string
Required
Name of the repository. Example: hello-world.
old_ref_name
string
Optional
Branch, tag or commit SHA to create the branch from. Defaults to the default branch. Example: main.
gitea_branch_delete
Delete branch
gitea_branch_get
Get branch
gitea_branches_list
List branches
gitea_collaborator_add
Add collaborator
gitea_commits_list
List commits
gitea_contents_get
Get contents
gitea_file_create
Create file
gitea_file_update
Update file
gitea_issue_comment_delete
Delete issue comment
gitea_issue_create
Create issue
gitea_issue_label_remove
Remove issue label
gitea_issue_update
Update issue
gitea_issues_list
List issues
gitea_issues_search
Search issues
gitea_milestone_create
Create milestone
gitea_milestones_list
List milestones
gitea_org_get
Get org
gitea_org_members_list
List org members
gitea_orgs_list
List orgs
gitea_pull_create
Create pull
gitea_pull_merge
Merge pull
gitea_pull_reviews_list
List pull reviews
gitea_release_create
Create release
gitea_release_get
Get release
gitea_releases_list
List releases
gitea_repo_get
Get repo
gitea_repos_search
Search repos
gitea_tags_list
List tags
gitea_user_get_by_name
User get by name

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Gitea tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["gitea"], toolNames: [
    "gitea_pulls_list",
    "gitea_pull_get",
    "gitea_pull_review_create"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List the open pull requests on acme/api, read the one about rate limiting, and submit an approving review" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["gitea"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List the open pull requests on acme/api, read the one about rate limiting, and submit an approving review" }],
  tools,
});

// Execute the tool call with the user's vaulted Gitea API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["gitea"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List the open pull requests on acme/api, read the one about rate limiting, and submit an approving review" }],
  tools,
});

// Tool call runs with the user's vaulted Gitea API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["gitea"] }, pageSize: 100,
});

const agent = new Agent({
  name: "code_review_agent",
  model: "gemini-2.5-pro",
  instruction: "Gitea tools scoped to this user",
  tools,
});

await agent.run("List the open pull requests on acme/api, read the one about rate limiting, and submit an approving review");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Gitea tool. Click to copy, paste into your agent, done.
Browse code
Copy the prompt
Copied
List the branches in acme/api.
Copy the prompt
Copied
Show the last 10 commits on main in acme/api.
Copy the prompt
Copied
Get the contents of README.md on the main branch of acme/api.
Issues and pull requests
Copy the prompt
Copied
Search issues assigned to me across all repositories.
Copy the prompt
Copied
Show the files changed in pull request 42 on acme/api.
Copy the prompt
Copied
Add a comment to issue 17 saying the fix ships Friday.
Releases and repositories
Copy the prompt
Copied
What is the latest release of acme/api?
Copy the prompt
Copied
Create a release v1.4.0 for the main branch of acme/api.
Copy the prompt
Copied
Fork acme/api into my account.
SEE HOW AUTH WORKS
Each user connects their own Gitea API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Gitea
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Gitea
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Gitea
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Gitea
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Engineering Teams
Auto release notes agent
Reads merged GitHub PRs, groups them into structured release notes, publishes the page to Notion, and announces the release in Slack. Every call runs on the engineer's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other developer connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
ENGINEERING
Auto-release notes agent
Group merged GitHub PRs into structured release notes, publish the page to Notion, and announce the release in Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Gitea API key looks fine in a demo. In production every issue and pull request looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Gitea today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Gitea as the user or through a shared key?
As the user. Each user connects their own Gitea API key once, and Scalekit sends it with every call. Audit logs attribute every commit, issue, and pull request action to that user, not a shared service account.
Where is the Gitea API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Gitea?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without gitea_repo_delete or gitea_branch_delete, which permanently remove repositories and branches. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Gitea access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent merge pull requests?
Yes. gitea_pull_merge merges a pull request with a merge style such as merge, rebase, or squash, and can delete the branch afterwards. gitea_pull_review_create submits approvals and change requests separately, so you can expose reviews and hide the merge tool.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""gitea"": {
""url"": ""https://mcp.scalekit.com/gitea"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.gitea]
url = ""https://mcp.scalekit.com/gitea""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""gitea"": {
""url"": ""https://mcp.scalekit.com/gitea"",
""type"": ""http""
}
}
}