repo:readList granted repositories, search paths, read files, branches and commit history.
Gitea CGPT is a least-privilege MCP gateway for Gitea and Forgejo. You connect your instance, grant individual repositories, and decide separately whether each repository is read-only or writable.
https://gitea-chat.kardos.devhttps://api.gitea-chat.kardos.dev/mcpOAuth-capable MCP clients discover Gitea CGPT through protected-resource and authorization-server metadata. The flow uses authorization code + PKCE S256, short-lived access tokens and rotating refresh tokens.
https://api.gitea-chat.kardos.dev/.well-known/oauth-protected-resource Manual MCP bearer tokens remain available in the dashboard for clients that do not support the OAuth flow. Gitea credentials themselves are never returned through MCP.
repo:readList granted repositories, search paths, read files, branches and commit history.
repo:writeCreate branches and commit bounded file changes. A paid plan and explicit repository write grant are still required.
usage:readRead the current plan allowance and tool-call usage.
list_repositoriesReadList only repositories explicitly granted to Gitea CGPT.search_repositoryReadSearch repository file paths without dumping file contents.read_fileReadRead one bounded file from a granted repository.list_branchesReadInspect branches in a granted repository.list_commitsReadInspect recent commit history.get_usageReadCheck monthly allowance and current usage.create_branchWriteCreate a branch from an existing branch.write_fileWriteCreate or update one file and commit it.Not exposed: repository deletion, force-push, organization administration, user administration, raw credential retrieval or arbitrary Gitea API proxying.
The intended AI workflow is: inspect the repository, search and read the relevant files, create a branch when practical, then make bounded file changes with explicit commit messages. Existing-file updates require the current file SHA, which protects against blind overwrites.
Tool calls are rate-limited and metered against the account plan. Repository grants, write permissions, plan entitlements and OAuth scopes are independent gates. Security-relevant activity is recorded in the account audit history.
Connect your Gitea