mirror of
https://gitea.com/gitea/gitea-mcp.git
synced 2026-08-27 10:37:44 +00:00
6744cab627
Add a GITEA_EXTRA_HEADERS environment variable that accepts a JSON object of header name/value pairs (e.g. Cloudflare Access credentials) and applies them to every outbound request to Gitea, both the raw pkg/gitea.DoJSON/DoBytes path and the SDK-backed pkg/gitea.NewClient path, without overriding Authorization, Content-Type, or Accept. Co-Authored-By: Codet <codet@commitgo.dev> (GPT-5-Codex)
22 lines
323 B
Go
22 lines
323 B
Go
package flag
|
|
|
|
import "net/http"
|
|
|
|
var (
|
|
Host string
|
|
Bind string
|
|
Port int
|
|
Token string
|
|
Version string
|
|
Mode string
|
|
|
|
MaxInlineAttachmentBytes int
|
|
|
|
Insecure bool
|
|
ReadOnly bool
|
|
Debug bool
|
|
AllowedTools map[string]struct{}
|
|
AllowedScopes map[string]struct{}
|
|
ExtraHeaders http.Header
|
|
)
|