Setup Via Dialog
setup_via_dialogConfigure or update a Redshift connection profile when tools report 'not_configured' by using an OS-native dialog to collect the password securely without exposing it in chat.
Instructions
Bootstrap (or update) a Redshift connection profile from inside an MCP session.
Use when DB tools (list_schemas etc.) return {"error": "not_configured"},
or to add a new profile / re-key an existing one. Ask the user for
host / port / user / dbname conversationally — these are not secret —
then call this tool. The password is collected via an OS-native
dialog (macOS osascript / Linux zenity) launched server-side; it
never crosses the MCP wire, never appears in chat or tool args.
Outcomes (return shape):
{"status": "configured", ...}— profile written, password in keychain. Lazy resolve picks it up on next DB tool call; no restart needed.{"status": "dialog_cancelled" | "permission_denied" | "dialog_unavailable" | "platform_unsupported" | "empty_password", ...}— the password step failed, so NOTHING was written: config.toml and the keychain are exactly as they were before the call. The message field tells the agent / user what to do next (often: runredshift-comment-mcp set-fields+set-password --profile X --stdinfrom a terminal).
Write ordering: the password is collected FIRST; config.toml and the keychain are only touched once one is in hand. That keeps a failed setup from leaving a profile whose fields point at the new cluster while the keychain still holds the old password.
For headless environments without a GUI, prefer the CLI pair
set-fields + set-password --stdin instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| user | Yes | ||
| dbname | Yes | ||
| profile | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||