Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ef63a0

Browse files
committed
warnf if app status slug is not set
1 parent 1e50758 commit 9ef63a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/exp_mcp.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ func mcpServerHandler(inv *serpent.Invocation, client *codersdk.Client, instruct
288288
} else {
289289
cliui.Warnf(inv.Stderr, "CODER_AGENT_TOKEN is not set, task reporting will not be available")
290290
}
291+
if appStatusSlug == "" {
292+
cliui.Warnf(inv.Stderr, "CODER_MCP_APP_STATUS_SLUG is not set, task reporting will not be available.")
293+
}
291294

292295
// Register tools based on the allowlist (if specified)
293296
reg := codermcp.AllTools()

0 commit comments

Comments
 (0)