Hatchyard

Platform tool

Gitea

by Hatch Work · v1.22.6 · MIT

Git hosting with pull requests, issues and a package registry.

What it installs

  • Gitea platform tool

    Installed once per stack in its own namespace and shared by every app.

What it can access

Worked out from the manifest, not taken from the publisher's word.

  • NetworkInternet-facing over HTTPS at gitea.<your domain>, behind its own sign-in.
  • Your credentialsNone. It asks for no keys or passwords of yours.
  • Secrets it makesadmin-password, webhook-token; keys from its setup job: api-token, ci-token, argocd-token, pull-token. Kept in the gateway's secret store, never shown to your AI.
  • Sharesci-token, argocd-token, webhook-token, pull-token, with the platform tools that need it. Each belongs to its own limited account.
  • ClusterNothing outside its own namespace.
  • BackupsIts data is in the stack's encrypted backups.
  • AI tools36 tools, each listed with its inputs under Tools your AI gets. A key only reaches the ones its rights open.

Security

What runs, and how it is fenced in.

Not verified yet. It ships inside this Hatchyard release and passed the catalog's checks: a pinned chart, declared hosts, and tools that only reach their own secrets.

  • InstallsThe gitea Helm chart, version 10.6.0, pinned. From https://dl.gitea.com/charts/
  • Its own spaceIts own namespace, removed with it. Only the hosts above are published.

Setup

Automatic: Hatchyard does the first-run setup.

  • First runOnce its pods are ready, a setup job makes the limited accounts and keys the gateway uses (api-token, ci-token, argocd-token, pull-token). They stay in the gateway's secret store; your AI never sees them.

Tools your AI gets

36 tools, 19 read, 17 write

Your AI reaches these through the stack's AI gateway, at one MCP address. Each key gets only the rights you tick on Connect your AI, and every call is logged.

Gitea · read

read needs gitea:read · 19 tools

gitea.repo_getread

Get a repository

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}

gitea.org_list_reposread

List an organization's repos

InputTypeRequiredDescription
orgstringrequiredname of the organization
limitintegeroptionalpage size of results
pageintegeroptionalpage number of results to return (1-based)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.org_list_repos",
    "arguments": {
      "org": "<org>",
      "limit": 1,
      "page": 1
    }
  }
}

gitea.repo_list_branchesread

List a repository's branches

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
limitintegeroptionalpage size of results
pageintegeroptionalpage number of results to return (1-based)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_list_branches",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "limit": 1,
      "page": 1
    }
  }
}

gitea.repo_get_contentsread

Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir

InputTypeRequiredDescription
filepathstringrequiredpath of the dir, file, symlink or submodule in the repo
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
refstringoptionalThe name of the commit/branch/tag. Default the repository’s default branch (usually master)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get_contents",
    "arguments": {
      "filepath": "<filepath>",
      "owner": "<owner>",
      "repo": "<repo>",
      "ref": "<ref>"
    }
  }
}

gitea.repo_list_pull_requestsread

List a repo's pull requests

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
labelsarray of integer (int64)optionalLabel IDs
limitintegeroptionalpage size of results
milestoneinteger (int64)optionalID of the milestone
pageintegeroptionalpage number of results to return (1-based)
sortone of oldest, recentupdate, leastupdate, mostcomment, leastcomment, priorityoptionalType of sort
stateone of closed, open, alloptionalState of pull request: open or closed (optional)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_list_pull_requests",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "labels": [1],
      "limit": 1,
      "milestone": 1,
      "page": 1,
      "sort": "oldest",
      "state": "closed"
    }
  }
}

gitea.repo_get_pull_requestread

Get a pull request

InputTypeRequiredDescription
indexinteger (int64)requiredindex of the pull request to get
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get_pull_request",
    "arguments": {
      "index": 1,
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}

gitea.issue_list_issuesread

List a repository's issues

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
assigned_bystringoptionalOnly show items for which the given user is assigned
beforestring (date-time)optionalOnly show items updated before the given time. This is a timestamp in RFC 3339 format
created_bystringoptionalOnly show items which were created by the given user
labelsstringoptionalcomma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded
limitintegeroptionalpage size of results
mentioned_bystringoptionalOnly show items in which the given user was mentioned
milestonesstringoptionalcomma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded
pageintegeroptionalpage number of results to return (1-based)
qstringoptionalsearch string
sincestring (date-time)optionalOnly show items updated after the given time. This is a timestamp in RFC 3339 format
stateone of closed, open, alloptionalwhether issue is open or closed
typeone of issues, pullsoptionalfilter by type (issues / pulls) if set
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.issue_list_issues",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "assigned_by": "<assigned_by>",
      "before": "<before>",
      "created_by": "<created_by>",
      "labels": "<labels>",
      "limit": 1,
      "mentioned_by": "<mentioned_by>",
      "milestones": "<milestones>",
      "page": 1,
      "q": "<q>",
      "since": "<since>",
      "state": "closed",
      "type": "issues"
    }
  }
}

gitea.issue_get_issueread

Get an issue

InputTypeRequiredDescription
indexinteger (int64)requiredindex of the issue to get
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.issue_get_issue",
    "arguments": {
      "index": 1,
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}

gitea.repo_get_contents_listread

Gets the metadata of all the entries of the root dir

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
refstringoptionalThe name of the commit/branch/tag. Default the repository’s default branch (usually master)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get_contents_list",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "ref": "<ref>"
    }
  }
}

gitea.get_treeread

Gets the tree of a repository.

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
shastringrequiredsha of the commit
pageintegeroptionalpage number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page
per_pageintegeroptionalnumber of items per page
recursivebooleanoptionalshow all directories and files
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.get_tree",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "sha": "<sha>",
      "page": 1,
      "per_page": 1,
      "recursive": false
    }
  }
}

gitea.repo_get_raw_fileread

Get a file from a repository

InputTypeRequiredDescription
filepathstringrequiredfilepath of the file to get
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
refstringoptionalThe name of the commit/branch/tag. Default the repository’s default branch (usually master)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get_raw_file",
    "arguments": {
      "filepath": "<filepath>",
      "owner": "<owner>",
      "repo": "<repo>",
      "ref": "<ref>"
    }
  }
}

gitea.repo_get_all_commitsread

Get a list of all commits from a repository

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
filesbooleanoptionalinclude a list of affected files for every commit (disable for speedup, default 'true')
limitintegeroptionalpage size of results (ignored if used with 'path')
notstringoptionalcommits that match the given specifier will not be listed.
pageintegeroptionalpage number of results to return (1-based)
pathstringoptionalfilepath of a file/dir
shastringoptionalSHA or branch to start listing commits from (usually 'master')
statbooleanoptionalinclude diff stats for every commit (disable for speedup, default 'true')
verificationbooleanoptionalinclude verification for every commit (disable for speedup, default 'true')
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get_all_commits",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "files": false,
      "limit": 1,
      "not": "<not>",
      "page": 1,
      "path": "<path>",
      "sha": "<sha>",
      "stat": false,
      "verification": false
    }
  }
}

gitea.repo_get_single_commitread

Get a single commit from a repository

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
shastringrequireda git ref or commit sha
filesbooleanoptionalinclude a list of affected files for every commit (disable for speedup, default 'true')
statbooleanoptionalinclude diff stats for every commit (disable for speedup, default 'true')
verificationbooleanoptionalinclude verification for every commit (disable for speedup, default 'true')
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get_single_commit",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "sha": "<sha>",
      "files": false,
      "stat": false,
      "verification": false
    }
  }
}

gitea.repo_get_branchread

Retrieve a specific branch from a repository, including its effective branch protection

InputTypeRequiredDescription
branchstringrequiredbranch to get
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get_branch",
    "arguments": {
      "branch": "<branch>",
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}

gitea.list_forksread

List a repository's forks

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
limitintegeroptionalpage size of results
pageintegeroptionalpage number of results to return (1-based)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.list_forks",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "limit": 1,
      "page": 1
    }
  }
}

gitea.repo_get_pull_request_filesread

Get changed files for a pull request

InputTypeRequiredDescription
indexinteger (int64)requiredindex of the pull request to get
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
limitintegeroptionalpage size of results
pageintegeroptionalpage number of results to return (1-based)
skip-tostringoptionalskip to given file
whitespaceone of ignore-all, ignore-change, ignore-eol, show-alloptionalwhitespace behavior
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get_pull_request_files",
    "arguments": {
      "index": 1,
      "owner": "<owner>",
      "repo": "<repo>",
      "limit": 1,
      "page": 1,
      "skip-to": "<skip-to>",
      "whitespace": "ignore-all"
    }
  }
}

gitea.repo_list_pull_reviewsread

List all reviews for a pull request

InputTypeRequiredDescription
indexinteger (int64)requiredindex of the pull request
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
limitintegeroptionalpage size of results
pageintegeroptionalpage number of results to return (1-based)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_list_pull_reviews",
    "arguments": {
      "index": 1,
      "owner": "<owner>",
      "repo": "<repo>",
      "limit": 1,
      "page": 1
    }
  }
}

gitea.repo_get_combined_status_by_refread

Get a commit's combined status, by branch/tag/commit reference

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
refstringrequiredname of branch/tag/commit
repostringrequiredname of the repo
limitintegeroptionalpage size of results
pageintegeroptionalpage number of results to return (1-based)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_get_combined_status_by_ref",
    "arguments": {
      "owner": "<owner>",
      "ref": "<ref>",
      "repo": "<repo>",
      "limit": 1,
      "page": 1
    }
  }
}

Gitea · write

write needs gitea:write · 14 tools

gitea.create_org_repowrite

Create a repository in an organization

InputTypeRequiredDescription
orgstringrequiredname of organization
bodyobjectoptionalCreateRepoOption options when creating repository
body.namestringrequiredName of the repository to create
body.auto_initbooleanoptionalWhether the repository should be auto-initialized?
body.default_branchstringoptionalDefaultBranch of the repository (used when initializes and in template)
body.descriptionstringoptionalDescription of the repository to create
body.gitignoresstringoptionalGitignores to use
body.issue_labelsstringoptionalLabel-Set to use
body.licensestringoptionalLicense to use
body.object_format_nameone of sha1, sha256optionalObjectFormatName of the underlying git repository
body.privatebooleanoptionalWhether the repository is private
body.readmestringoptionalReadme of the repository to create
body.templatebooleanoptionalWhether the repository is template
body.trust_modelone of default, collaborator, committer, collaboratorcommitteroptionalTrustModel of the repository
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.create_org_repo",
    "arguments": {
      "org": "<org>",
      "body": {
        "name": "<name>",
        "auto_init": false,
        "default_branch": "<default_branch>",
        "description": "<description>",
        "gitignores": "<gitignores>",
        "issue_labels": "<issue_labels>",
        "license": "<license>",
        "object_format_name": "sha1",
        "private": false,
        "readme": "<readme>",
        "template": false,
        "trust_model": "default"
      }
    }
  }
}

gitea.create_current_user_repowrite

Create a repository

InputTypeRequiredDescription
bodyobjectoptionalCreateRepoOption options when creating repository
body.namestringrequiredName of the repository to create
body.auto_initbooleanoptionalWhether the repository should be auto-initialized?
body.default_branchstringoptionalDefaultBranch of the repository (used when initializes and in template)
body.descriptionstringoptionalDescription of the repository to create
body.gitignoresstringoptionalGitignores to use
body.issue_labelsstringoptionalLabel-Set to use
body.licensestringoptionalLicense to use
body.object_format_nameone of sha1, sha256optionalObjectFormatName of the underlying git repository
body.privatebooleanoptionalWhether the repository is private
body.readmestringoptionalReadme of the repository to create
body.templatebooleanoptionalWhether the repository is template
body.trust_modelone of default, collaborator, committer, collaboratorcommitteroptionalTrustModel of the repository
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.create_current_user_repo",
    "arguments": {
      "body": {
        "name": "<name>",
        "auto_init": false,
        "default_branch": "<default_branch>",
        "description": "<description>",
        "gitignores": "<gitignores>",
        "issue_labels": "<issue_labels>",
        "license": "<license>",
        "object_format_name": "sha1",
        "private": false,
        "readme": "<readme>",
        "template": false,
        "trust_model": "default"
      }
    }
  }
}

gitea.repo_create_filewrite

Create a file in a repository

InputTypeRequiredDescription
bodyobjectrequiredCreateFileOptions options for creating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
body.contentstringrequiredcontent must be base64 encoded
body.authorobjectoptionalIdentity for a person's identity like an author or committer
body.branchstringoptionalbranch (optional) to base this file from. if not given, the default branch is used
body.committerobjectoptionalIdentity for a person's identity like an author or committer
body.datesobjectoptionalCommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE
body.messagestringoptionalmessage (optional) for the commit of this file. if not supplied, a default message will be used
body.new_branchstringoptionalnew_branch (optional) will make a new branch from `branch` before creating the file
body.signoffbooleanoptionalAdd a Signed-off-by trailer by the committer at the end of the commit log message.
filepathstringrequiredpath of the file to create
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_create_file",
    "arguments": {
      "body": {
        "content": "<content>",
        "author": {
          "email": "<email>",
          "name": "<name>"
        },
        "branch": "<branch>",
        "committer": {
          "email": "<email>",
          "name": "<name>"
        },
        "dates": {
          "author": "<author>",
          "committer": "<committer>"
        },
        "message": "<message>",
        "new_branch": "<new_branch>",
        "signoff": false
      },
      "filepath": "<filepath>",
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}

gitea.repo_update_filewrite

Update a file in a repository

InputTypeRequiredDescription
bodyobjectrequiredUpdateFileOptions options for updating files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
body.contentstringrequiredcontent must be base64 encoded
body.shastringrequiredsha is the SHA for the file that already exists
body.authorobjectoptionalIdentity for a person's identity like an author or committer
body.branchstringoptionalbranch (optional) to base this file from. if not given, the default branch is used
body.committerobjectoptionalIdentity for a person's identity like an author or committer
body.datesobjectoptionalCommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE
body.from_pathstringoptionalfrom_path (optional) is the path of the original file which will be moved/renamed to the path in the URL
body.messagestringoptionalmessage (optional) for the commit of this file. if not supplied, a default message will be used
body.new_branchstringoptionalnew_branch (optional) will make a new branch from `branch` before creating the file
body.signoffbooleanoptionalAdd a Signed-off-by trailer by the committer at the end of the commit log message.
filepathstringrequiredpath of the file to update
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_update_file",
    "arguments": {
      "body": {
        "content": "<content>",
        "sha": "<sha>",
        "author": {
          "email": "<email>",
          "name": "<name>"
        },
        "branch": "<branch>",
        "committer": {
          "email": "<email>",
          "name": "<name>"
        },
        "dates": {
          "author": "<author>",
          "committer": "<committer>"
        },
        "from_path": "<from_path>",
        "message": "<message>",
        "new_branch": "<new_branch>",
        "signoff": false
      },
      "filepath": "<filepath>",
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}

gitea.repo_create_branchwrite

Create a branch

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
bodyobjectoptionalCreateBranchRepoOption options when creating a branch in a repository
body.new_branch_namestringrequiredName of the branch to create
body.old_branch_namestringoptionalDeprecated: true Name of the old branch to create from
body.old_ref_namestringoptionalName of the old branch/tag/commit to create from
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_create_branch",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "body": {
        "new_branch_name": "<new_branch_name>",
        "old_branch_name": "<old_branch_name>",
        "old_ref_name": "<old_ref_name>"
      }
    }
  }
}

gitea.repo_create_pull_requestwrite

Create a pull request

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
bodyobjectoptionalCreatePullRequestOption options when creating a pull request
body.assigneestringoptional
body.assigneesarray of stringoptional
body.basestringoptional
body.bodystringoptional
body.due_datestring (date-time)optional
body.headstringoptional
body.labelsarray of integer (int64)optional
body.milestoneinteger (int64)optional
body.titlestringoptional
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_create_pull_request",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "body": {
        "assignee": "<assignee>",
        "assignees": ["<assignees>"],
        "base": "<base>",
        "body": "<body>",
        "due_date": "<due_date>",
        "head": "<head>",
        "labels": [1],
        "milestone": 1,
        "title": "<title>"
      }
    }
  }
}

gitea.repo_merge_pull_requestwrite

Merge a pull request

InputTypeRequiredDescription
indexinteger (int64)requiredindex of the pull request to merge
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
bodyobjectoptionalMergePullRequestForm form for merging Pull Request
body.Doone of merge, rebase, rebase-merge, squash, fast-forward-only, manually-mergedrequired
body.MergeCommitIDstringoptional
body.MergeMessageFieldstringoptional
body.MergeTitleFieldstringoptional
body.delete_branch_after_mergebooleanoptional
body.force_mergebooleanoptional
body.head_commit_idstringoptional
body.merge_when_checks_succeedbooleanoptional
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_merge_pull_request",
    "arguments": {
      "index": 1,
      "owner": "<owner>",
      "repo": "<repo>",
      "body": {
        "Do": "merge",
        "MergeCommitID": "<MergeCommitID>",
        "MergeMessageField": "<MergeMessageField>",
        "MergeTitleField": "<MergeTitleField>",
        "delete_branch_after_merge": false,
        "force_merge": false,
        "head_commit_id": "<head_commit_id>",
        "merge_when_checks_succeed": false
      }
    }
  }
}

gitea.issue_create_issuewrite

Create an issue. If using deadline only the date will be taken into account, and time of day ignored.

InputTypeRequiredDescription
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
bodyobjectoptionalCreateIssueOption options to create one issue
body.titlestringrequired
body.assigneestringoptionaldeprecated
body.assigneesarray of stringoptional
body.bodystringoptional
body.closedbooleanoptional
body.due_datestring (date-time)optional
body.labelsarray of integer (int64)optionallist of label ids
body.milestoneinteger (int64)optionalmilestone id
body.refstringoptional
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.issue_create_issue",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "body": {
        "title": "<title>",
        "assignee": "<assignee>",
        "assignees": ["<assignees>"],
        "body": "<body>",
        "closed": false,
        "due_date": "<due_date>",
        "labels": [1],
        "milestone": 1,
        "ref": "<ref>"
      }
    }
  }
}

gitea.issue_create_commentwrite

Add a comment to an issue

InputTypeRequiredDescription
indexinteger (int64)requiredindex of the issue
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
bodyobjectoptionalCreateIssueCommentOption options for creating a comment on an issue
body.bodystringrequired
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.issue_create_comment",
    "arguments": {
      "index": 1,
      "owner": "<owner>",
      "repo": "<repo>",
      "body": {
        "body": "<body>"
      }
    }
  }
}

gitea.repo_change_fileswrite

Modify multiple files in a repository

InputTypeRequiredDescription
bodyobjectrequiredChangeFilesOptions options for creating, updating or deleting multiple files Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
body.filesarray of objectrequiredlist of file operations
body.authorobjectoptionalIdentity for a person's identity like an author or committer
body.branchstringoptionalbranch (optional) to base this file from. if not given, the default branch is used
body.committerobjectoptionalIdentity for a person's identity like an author or committer
body.datesobjectoptionalCommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE
body.messagestringoptionalmessage (optional) for the commit of this file. if not supplied, a default message will be used
body.new_branchstringoptionalnew_branch (optional) will make a new branch from `branch` before creating the file
body.signoffbooleanoptionalAdd a Signed-off-by trailer by the committer at the end of the commit log message.
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_change_files",
    "arguments": {
      "body": {
        "files": [{}],
        "author": {
          "email": "<email>",
          "name": "<name>"
        },
        "branch": "<branch>",
        "committer": {
          "email": "<email>",
          "name": "<name>"
        },
        "dates": {
          "author": "<author>",
          "committer": "<committer>"
        },
        "message": "<message>",
        "new_branch": "<new_branch>",
        "signoff": false
      },
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}

gitea.repo_delete_filewrite

Delete a file in a repository

InputTypeRequiredDescription
bodyobjectrequiredDeleteFileOptions options for deleting files (used for other File structs below) Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
body.shastringrequiredsha is the SHA for the file that already exists
body.authorobjectoptionalIdentity for a person's identity like an author or committer
body.branchstringoptionalbranch (optional) to base this file from. if not given, the default branch is used
body.committerobjectoptionalIdentity for a person's identity like an author or committer
body.datesobjectoptionalCommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE
body.messagestringoptionalmessage (optional) for the commit of this file. if not supplied, a default message will be used
body.new_branchstringoptionalnew_branch (optional) will make a new branch from `branch` before creating the file
body.signoffbooleanoptionalAdd a Signed-off-by trailer by the committer at the end of the commit log message.
filepathstringrequiredpath of the file to delete
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_delete_file",
    "arguments": {
      "body": {
        "sha": "<sha>",
        "author": {
          "email": "<email>",
          "name": "<name>"
        },
        "branch": "<branch>",
        "committer": {
          "email": "<email>",
          "name": "<name>"
        },
        "dates": {
          "author": "<author>",
          "committer": "<committer>"
        },
        "message": "<message>",
        "new_branch": "<new_branch>",
        "signoff": false
      },
      "filepath": "<filepath>",
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}

gitea.create_forkwrite

Fork a repository

InputTypeRequiredDescription
ownerstringrequiredowner of the repo to fork
repostringrequiredname of the repo to fork
bodyobjectoptionalCreateForkOption options for creating a fork
body.namestringoptionalname of the forked repository
body.organizationstringoptionalorganization name, if forking into an organization
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.create_fork",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>",
      "body": {
        "name": "<name>",
        "organization": "<organization>"
      }
    }
  }
}

gitea.repo_create_pull_reviewwrite

Create a review to an pull request

InputTypeRequiredDescription
bodyobjectrequiredCreatePullReviewOptions are options to create a pull review
body.bodystringoptional
body.commentsarray of objectoptional
body.commit_idstringoptional
body.eventstringoptionalReviewStateType review state type
indexinteger (int64)requiredindex of the pull request
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_create_pull_review",
    "arguments": {
      "body": {
        "body": "<body>",
        "comments": [{}],
        "commit_id": "<commit_id>",
        "event": "<event>"
      },
      "index": 1,
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}

gitea.repo_edit_pull_requestwrite

Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.

InputTypeRequiredDescription
indexinteger (int64)requiredindex of the pull request to edit
ownerstringrequiredowner of the repo
repostringrequiredname of the repo
bodyobjectoptionalEditPullRequestOption options when modify pull request
body.allow_maintainer_editbooleanoptional
body.assigneestringoptional
body.assigneesarray of stringoptional
body.basestringoptional
body.bodystringoptional
body.due_datestring (date-time)optional
body.labelsarray of integer (int64)optional
body.milestoneinteger (int64)optional
body.statestringoptional
body.titlestringoptional
body.unset_due_datebooleanoptional
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_edit_pull_request",
    "arguments": {
      "index": 1,
      "owner": "<owner>",
      "repo": "<repo>",
      "body": {
        "allow_maintainer_edit": false,
        "assignee": "<assignee>",
        "assignees": ["<assignees>"],
        "base": "<base>",
        "body": "<body>",
        "due_date": "<due_date>",
        "labels": [1],
        "milestone": 1,
        "state": "<state>",
        "title": "<title>",
        "unset_due_date": false
      }
    }
  }
}

Gitea · admin

write needs gitea:admin · 3 tools

gitea.org_createwrite

Create an organization

InputTypeRequiredDescription
bodyobjectrequiredCreateOrgOption options for creating an organization
body.usernamestringrequired
body.descriptionstringoptional
body.emailstringoptional
body.full_namestringoptional
body.locationstringoptional
body.repo_admin_change_team_accessbooleanoptional
body.visibilityone of public, limited, privateoptionalpossible values are `public` (default), `limited` or `private`
body.websitestringoptional
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.org_create",
    "arguments": {
      "body": {
        "username": "<username>",
        "description": "<description>",
        "email": "<email>",
        "full_name": "<full_name>",
        "location": "<location>",
        "repo_admin_change_team_access": false,
        "visibility": "public",
        "website": "<website>"
      }
    }
  }
}

gitea.admin_create_userwrite

Create a user

InputTypeRequiredDescription
bodyobjectoptionalCreateUserOption create user options
body.emailstring (email)required
body.usernamestringrequired
body.created_atstring (date-time)optionalFor explicitly setting the user creation timestamp. Useful when users are migrated from other systems. When omitted, the user's creation timestamp will be set to "now".
body.full_namestringoptional
body.login_namestringoptional
body.must_change_passwordbooleanoptional
body.passwordstringoptional
body.restrictedbooleanoptional
body.send_notifybooleanoptional
body.source_idinteger (int64)optional
body.visibilitystringoptional
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.admin_create_user",
    "arguments": {
      "body": {
        "email": "<email>",
        "username": "<username>",
        "created_at": "<created_at>",
        "full_name": "<full_name>",
        "login_name": "<login_name>",
        "must_change_password": false,
        "password": "<password>",
        "restricted": false,
        "send_notify": false,
        "source_id": 1,
        "visibility": "<visibility>"
      }
    }
  }
}

gitea.repo_deletewrite

Delete a repository

InputTypeRequiredDescription
ownerstringrequiredowner of the repo to delete
repostringrequiredname of the repo to delete
Example call
{
  "method": "tools/call",
  "params": {
    "name": "gitea.repo_delete",
    "arguments": {
      "owner": "<owner>",
      "repo": "<repo>"
    }
  }
}