Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RUST_LOGNoLog verbosity; logs go to stderr (stdout is the MCP transport), e.g. RUST_LOG=forgejo_mcp_rs=debug.
FORGEJO_URLNoInstance base URL (e.g. https://codeberg.org or https://gitea.com).https://codeberg.org
FORGEJO_TOKENNoAlternative name for the mandatory read token, used instead of FORGEJO_TOKEN_READ_ONLY.
FORGEJO_FLAVORNoforgejo, gitea, or auto to detect from the instance version. Only the Actions (CI) tools consult it.auto
FORGEJO_TOKEN_WRITENoWrite/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_ROOTNoDirectory upload_release_asset may read files from. Uploading is disabled while this is unset.
FORGEJO_MIRROR_TOKENNoCredential 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_TOKENNoCredential 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_MBNoCeiling on one uploaded asset (MiB). The file is read into memory to be sent.100
FORGEJO_WRITE_MINUTESNoDefault write-mode window (minutes, max 60).10
FORGEJO_TOKEN_READ_ONLYNoRead 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.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources