Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ENV ARGOCD_URL=https://argocd-server
ENV ARGOCD_TOKEN=secure-token
ENV ARGOCD_MCP_SERVER_INSECURE=false
ENV ARGOCD_MCP_SERVER_DEBUG=false
ENV ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0
ENV ARGOCD_MCP_SERVER_LISTEN_HOST=127.0.0.1
ENV ARGOCD_MCP_SERVER_LISTEN_PORT=8080

# Run as non-root user
Expand Down
2 changes: 1 addition & 1 deletion cmd/start_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var startServerCmd = &cobra.Command{
logger := slog.New(slog.NewTextHandler(cmd.ErrOrStderr(), &slog.HandlerOptions{
Level: lvl,
}))
logger.Info("starting the Argo CD MCP server", "transport", transport, "argocd-url", argocdURL, "insecure", argocdInsecure, "debug", debug)
logger.Info("starting the Argo CD MCP server", "transport", transport, "listen", listen, "argocd-url", argocdURL, "insecure", argocdInsecure, "debug", debug)
if debug {
lvl.Set(slog.LevelDebug)
logger.Debug("debug mode enabled")
Expand Down
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
- ARGOCD_TOKEN=secure-token
- ARGOCD_MCP_SERVER_INSECURE=true
- ARGOCD_MCP_SERVER_DEBUG=true
- ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0
- ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0 # here we need to bind to 0.0.0.0 to be able to connect to the server from the host machine
- ARGOCD_MCP_SERVER_LISTEN_PORT=8080
argocd-mcp-server-unreachable:
# instance of the Argo CD MCP server with an invalid URL for the Argo CD server
Expand All @@ -38,5 +38,5 @@ services:
- ARGOCD_TOKEN=secure-token
- ARGOCD_MCP_SERVER_INSECURE=true
- ARGOCD_MCP_SERVER_DEBUG=true
- ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0
- ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0 # here we need to bind to 0.0.0.0 to be able to connect to the server from the host machine
- ARGOCD_MCP_SERVER_LISTEN_PORT=8080