Skip to main content
Glama
forgejo-mcp-gateway

forgejo-mcp-gateway

by mitchboulay

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLog level. Logs are JSON, one line per event.INFO
PUBLIC_URLNoThis gateway's public HTTPS address, which is also the OAuth issuer. Set together with SECRET_KEY to turn OAuth on.
SECRET_KEYNoAt least 32 random bytes, hex or base64. Keys stored hashes and encrypts stored Forgejo tokens. Set together with PUBLIC_URL to turn OAuth on.
FORGEJO_URLYesHow the gateway reaches Forgejo, e.g. http://forgejo:3000.
DATABASE_PATHNoPath to the SQLite database file used to keep gateway state./data/gateway.sqlite3
OAUTH_CLIENTSNoJSON list of {client_id, name, redirect_uris}. Clients are matched exactly and never registered dynamically.ChatGPT
RATE_LIMIT_BURSTNoBurst limit for /mcp per token.60
FORGEJO_PUBLIC_URLNoThe Forgejo address people open in a browser. Defaults to FORGEJO_URL.
TOKEN_CACHE_SECONDSNoHow long a verified Forgejo token is trusted before Forgejo is asked again.60
ALLOW_FORGEJO_TOKENSNoAccept a Forgejo access token directly as the bearer token.true
FORGEJO_MAX_ATTEMPTSNoMaximum number of attempts for retryable Forgejo reads.3
RATE_LIMIT_PER_MINUTENoLimits /mcp per token. The limit per caller address is four times higher.120
FORGEJO_TIMEOUT_SECONDSNoForgejo request timeout in seconds. Reads are retried with backoff on timeouts, 429 and 5xx. Writes are never retried.20
TRUSTED_CLIENT_IP_HEADERNoThe header your proxy sets to the caller's address, e.g. CF-Connecting-IP. Set it only when every request comes through that proxy.
OAUTH_RATE_LIMIT_PER_MINUTENoLimits the OAuth pages and the token endpoint per caller address.30

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