Skip to content

Commit 2d2c9bd

Browse files
authored
fix(cli): correct logic around CODER_MCP_APP_STATUS_SLUG (#17391)
Past me was not smart.
1 parent a986059 commit 2d2c9bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/exp_mcp.go

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy