forgejo-mcp/pkg/flag
Dev Bot 805fb5da6d refactor: replace host/port flags with url and separate sse-port
- Replace separate -host and -port flags with single -url flag for Forgejo instance
- Add dedicated -sse-port flag for MCP server SSE transport mode
- Remove hardcoded forgejo.org default, URLs now required with validation
- Enforce http:// or https:// schemes in URL validation
- Clean separation: -url for Forgejo API, -sse-port for MCP server listening
- Add connection testing before server startup
- Improve logging with configuration details

This fixes the confusion between Forgejo instance URL and MCP server port,
making the configuration clearer and more robust.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-18 01:24:42 +00:00
..
flag.go refactor: replace host/port flags with url and separate sse-port 2025-09-18 01:24:42 +00:00