From 7b92be43384a6490f98113a441816f8047059b5e Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Mon, 14 Apr 2025 16:07:38 +0100 Subject: [PATCH] fix(cli): fix incorrect logic around CODER_MCP_APP_STATUS_SLUG --- 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 35032a43d68fc..63ee0db04b552 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)