Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ if ($LASTEXITCODE -eq 0) {
# key above cannot authorize it. Do the browser sign-in now, while the user is
# still here, rather than surprising them mid-session.
if (Confirm-Step 'Sign in to the qBraid MCP now? (opens a browser)' 'y') {
# Unlike the piped bash path, `iex` keeps the console attached, so the
# OAuth prompt can read the redirect URL directly.
claude mcp login $McpName
if ($LASTEXITCODE -ne 0) { Warn "MCP sign-in did not complete. Run ``claude mcp login $McpName`` later." }
} else {
Expand Down
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,11 @@ fi
# still here, rather than surprising them mid-session.
if [ -n "$TTY" ]; then
if confirm "Sign in to the qBraid MCP now? (opens a browser)" y; then
claude mcp login "$MCP_NAME" \
# `claude mcp login` needs a real terminal to take the redirect URL. Under
# `curl … | bash` this script's stdin IS the pipe, so it must be handed the
# terminal explicitly — otherwise sign-in always fails with
# "stdin isn't a terminal".
claude mcp login "$MCP_NAME" < "$TTY" \
|| warn "MCP sign-in did not complete. Run \`claude mcp login $MCP_NAME\` later."
else
warn "skipped. Run \`claude mcp login $MCP_NAME\` when you want the qBraid tools."
Expand Down
Loading