askq-cli
v0.3.3
Published
Native GUI for AskUserQuestion-style multiple-choice prompts (CLI + MCP server) for AI coding agents. Pops a window, prints the chosen answers as JSON.
Maintainers
Readme
askq
Native GUI for AskUserQuestion-style multiple-choice prompts, for AI coding agents. A blocking CLI: feed it the questions JSON, the user answers in a real window, it prints the answers JSON to stdout and exits. Also runs as an MCP server.
npm install -g askq-cliThis installs the askq command. (The package is askq-cli because the bare
name askq is blocked by npm's similarity filter; the CLI itself is askq.) The
right prebuilt binary for your platform is pulled in automatically as an optional
dependency (askq-darwin-arm64, askq-linux-x64, askq-linux-arm64).
Use
# CLI: pipe questions in, read answers out
echo '{"questions":[{"question":"Pick one","header":"Demo","multiSelect":false,
"options":[{"label":"A","description":"first"},{"label":"B"}]}]}' | askq
# => {"questions":[...],"answers":{"Pick one":"A"}}
askq --help # full input/output schema
askq mcp # run as an MCP server (stdio) exposing ask_user_questionMCP
Register it with any MCP client (Claude Code .mcp.json, Cursor
.cursor/mcp.json, …):
{ "mcpServers": { "askq": { "command": "askq", "args": ["mcp"] } } }Source, the Claude Code plugin (PreToolUse hook + skill), and full docs: https://github.com/AngusFu/askq
