From 2d2c9bda98993c83be536e332d200d428b75ac78 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Mon, 14 Apr 2025 16:24:02 +0100 Subject: [PATCH] fix(cli): correct logic around CODER_MCP_APP_STATUS_SLUG (#17391) Past me was not smart. --- cli/exp_mcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/exp_mcp.go b/cli/exp_mcp.go index 35032a43d6..63ee0db04b 100644 --- a/cli/exp_mcp.go +++ b/cli/exp_mcp.go @@ -411,7 +411,7 @@ func mcpServerHandler(inv *serpent.Invocation, client *codersdk.Client, instruct } else { cliui.Warnf(inv.Stderr, "CODER_AGENT_TOKEN is not set, task reporting will not be available") } - if appStatusSlug != "" { + if appStatusSlug == "" { cliui.Warnf(inv.Stderr, "CODER_MCP_APP_STATUS_SLUG is not set, task reporting will not be available.") } else { clientCtx = toolsdk.WithWorkspaceAppStatusSlug(clientCtx, appStatusSlug)