forgejo-mcp/pkg/flag/flag.go
Tristin Stagg d3cb629db7
feat: add user agent configuration support
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
2026-03-11 12:41:15 +01:00

11 lines
122 B
Go

package flag
var (
URL string
SSEPort int
Token string
Version string
UserAgent string
Debug bool
)