Skip to content

Commit 16872df

Browse files
committed
feat: Make configurable via environment
1 parent 9f46a54 commit 16872df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/v1-mcp-server/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ func main() {
2121

2222
func run() error {
2323
readOnly := flag.Bool("readonly", true, "set readonly false to allow the MCP server to perform write operations.")
24-
v1Region := flag.String("region", "", "set the region of your vision one account.")
24+
v1Region := flag.String("region", getEnvOrDefault("TREND_VISION_ONE_REGION", ""), "set the region of your vision one account.")
2525
showVersion := flag.Bool("version", false, "print version information")
26-
host := flag.String("host", "", "set the Trend Vision One endpoint you want to use. Only useful for interacting with internal environments.")
26+
host := flag.String("host", getEnvOrDefault("TREND_VISION_ONE_HOST", ""), "set the Trend Vision One endpoint you want to use. Only useful for interacting with internal environments.")
2727
transport := flag.String("transport", getEnvOrDefault("TRANSPORT", "stdio"), "transport type: stdio or http")
2828
addr := flag.String("addr", getEnvOrDefault("ADDR", ":8000"), "address to listen on when using http transport")
2929

0 commit comments

Comments
 (0)