Add --user-agent CLI flag and FORGEJO_USER_AGENT environment variable to allow custom HTTP User-Agent headers. Changes: - Add UserAgent flag to pkg/flag - Add --user-agent CLI option and FORGEJO_USER_AGENT env var - Default to 'forgejo-mcp/<version>' if not configured - Update forgejo client to use configured user agent - Update documentation in README.md and DEVELOPER.md
11 lines
122 B
Go
11 lines
122 B
Go
package flag
|
|
|
|
var (
|
|
URL string
|
|
SSEPort int
|
|
Token string
|
|
Version string
|
|
UserAgent string
|
|
|
|
Debug bool
|
|
)
|