F

Forgejo MCP Rs

by brechanbech · io.github.brechanbech/forgejo-mcp-rs

Enables MCP clients to read a Forgejo, Codeberg, or Gitea instance—including users, repositories, issues, pull requests, search, notifications, comments, reviews, and Actions runs—with opt-in, time-boxed guarded writes for repository, branch, issue, pull request, comment, migration, push-mirror, and workflow operations.

cargo Local · stdio GlamaOfficial MCP Registry High confidence

Install

No install method is published for this server: no package and no remote endpoint. Check its source repository or registry listing for setup instructions.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
RUST_LOG No Log verbosity; logs go to stderr (stdout is the MCP transport), e.g. RUST_LOG=forgejo_mcp_rs=debug.
FORGEJO_URL No Instance base URL (e.g. https://codeberg.org or https://gitea.com). Default: https://codeberg.org
FORGEJO_TOKEN No Alternative name for the mandatory read token, used instead of FORGEJO_TOKEN_READ_ONLY.
FORGEJO_FLAVOR No forgejo, gitea, or auto to detect from the instance version. Only the Actions (CI) tools consult it. Default: auto
FORGEJO_TOKEN_WRITE No Write/delete-scoped token. Providing it enables the write tools (which also require entering write mode); omit it for a pure read-only server.
FORGEJO_UPLOAD_ROOT No Directory upload_release_asset may read files from. Uploading is disabled while this is unset.
FORGEJO_MIRROR_TOKEN No Credential add_push_mirror sends as the remote's password (e.g. a GitHub PAT). Kept out of the conversation — never passed as a tool argument. Omit if you only use use_ssh=true mirrors.
FORGEJO_MIGRATE_TOKEN No Credential migrate_repo sends to the source instance it reads from. Also never passed as a tool argument. Kept separate from FORGEJO_MIRROR_TOKEN on purpose. Omit if you only migrate public repos.
FORGEJO_UPLOAD_MAX_MB No Ceiling on one uploaded asset (MiB). The file is read into memory to be sent. Default: 100
FORGEJO_WRITE_MINUTES No Default write-mode window (minutes, max 60). Default: 10
FORGEJO_TOKEN_READ_ONLY No Read token (or FORGEJO_TOKEN). Read-only scopes (read:repository, read:issue, read:user) are enough. A read token is mandatory — the server refuses to start on a write token alone, and the read token must be a different token from FORGEJO_TOKEN_WRITE.

Similar servers