setup_via_dialog
Set up or update a Redshift connection profile by collecting host, user, and database name via chat, and password through a secure OS-native dialog that never transmits over MCP. Resolves 'not_configured' errors from other tools.
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" | "dialog_unavailable" | "platform_unsupported" | "empty_password", ...}— profile fields saved but no password set; the message field tells the agent / user what to do next (often: runredshift-comment-mcp set-password --profile X --stdinfrom a terminal).
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 | |||