Skip to content

Commit 7b92be4

Browse files
committed
fix(cli): fix incorrect logic around CODER_MCP_APP_STATUS_SLUG
1 parent a986059 commit 7b92be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/exp_mcp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func mcpServerHandler(inv *serpent.Invocation, client *codersdk.Client, instruct
411411
} else {
412412
cliui.Warnf(inv.Stderr, "CODER_AGENT_TOKEN is not set, task reporting will not be available")
413413
}
414-
if appStatusSlug != "" {
414+
if appStatusSlug == "" {
415415
cliui.Warnf(inv.Stderr, "CODER_MCP_APP_STATUS_SLUG is not set, task reporting will not be available.")
416416
} else {
417417
clientCtx = toolsdk.WithWorkspaceAppStatusSlug(clientCtx, appStatusSlug)

0 commit comments

Comments
 (0)