Interactive Clarify
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Interactive ClarifyAsk me which database to use for the project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Interactive Clarify
A universal "Ask User Questions" MCP tool for AI coding agents. When an AI agent encounters ambiguity, it can open structured clarifying questions in either a VS Code webview panel or a browser UI.
Works with Codex CLI, Claude Code, Factory Droid, and any MCP-compatible agent.
Architecture
AI Agent (Codex / Claude Code / Factory Droid)
│ MCP stdio
▼
MCP Server (Node.js)
│ Auto / VS Code only / Browser only
├──→ VS Code Extension ──→ Webview Panel
└──→ Local Browser Window
▼
Returns JSON answers to agentRelated MCP server: Implore MCP
Features
Tab-based navigation — Questions shown as tabs, with click and keyboard navigation
Rich options — Each option has a label, description, and optional preview content
Recommended path — The first option is visually marked as recommended, with rationale shown in preview
Single & multi-select — Support for both exclusive and multi-choice questions
Freeform answer path — Every question supports a selectable freeform answer, and multi-select questions can combine checked options with freeform text
Per-answer notes — Selected structured answers can carry optional notes from the preview panel
Partial submit — Submission is allowed even when not every question is answered
Draft restoration — In-progress answers survive reloads for the same question set
Late-submit recovery — If the live MCP requester times out or disconnects, VS Code can still save the submitted response for later retrieval
VS Code themed — Webview uses native VS Code CSS variables for dark/light theme
Browser fallback — Opens the same React UI in your default browser when VS Code isn't available
Universal MCP — Any MCP-compatible agent can use it
Available MCP Tools
interactive_clarifydefault tool
prefers VS Code, falls back to browser
supports mixed single-select and multi-select question lists in one request
interactive_clarify_vscodeforces the VS Code extension UI
returns an error if VS Code is unavailable
interactive_clarify_browserforces the browser UI
shows the local browser URL in the page itself
interactive_clarify_get_late_responseretrieves a response saved after the original live MCP request timed out or disconnected
Project Structure
packages/
├── shared/ # Shared types, constants, and IPC protocol
├── mcp-server/ # MCP server (stdio transport) + browser fallback
└── vscode-extension/ # VS Code extension + React webview panel
└── src/webview/panel/Quick Start
Prerequisites
Node.js 18+
pnpm 9+
VS Code (optional, for in-editor webview UI)
1. Build
git clone <repo-url>
cd ask-user-questions-tool-interface
pnpm install
pnpm -r build2. Configure your AI agent
Pick the agent you use and add the MCP server config (see Agent Configuration below).
3. (Optional) Install VS Code Extension
cd packages/vscode-extension
pnpm run package # creates .vsix file
code --install-extension interactive-clarify-vscode-0.1.0.vsixNote:
pnpm run packageusesvscewhich is included as a devDependency. If you seevsce: command not found, make sure you've runpnpm installfirst.The package script already passes
--no-dependenciesbecausevscerunsnpm listinternally, which conflicts with pnpm workspaces. If you need to run it manually:npx @vscode/vsce package --no-dependencies
The extension activates automatically on VS Code startup and listens for incoming questions on a Unix socket.
4. Test it
Without VS Code (browser UI):
# With Codex CLI
codex "Use the interactive_clarify tool to ask me which database I prefer — PostgreSQL, MySQL, or SQLite — before suggesting an implementation"The questions will open in your default browser using the same React UI.
With VS Code extension installed:
Run the same command — questions will appear in a VS Code webview panel instead of the browser.
Each question controls its own selection mode. Set multiSelect: true on the questions that should render as checkbox groups, and omit it or set false on the ones that should render as radio groups. Multi-select questions keep Freeform chat as an additional answer path alongside checked options.
Smoke test (no agent needed):
Pipe raw JSON-RPC to the MCP server to verify it works:
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"test","version":"0.1.0"},"protocolVersion":"2024-11-05"}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"interactive_clarify","arguments":{"questions":[{"question":"Which database should we use?","header":"Database","options":[{"label":"PostgreSQL","description":"Relational DB with extensions"},{"label":"SQLite","description":"Lightweight file-based DB"}],"multiSelect":false}]}}}' | node packages/mcp-server/dist/bin/ask-user-mcp.jsThis opens the browser fallback so you can verify the tab-based question UI works.
Agent Configuration
Codex CLI / Codex App
Add to ~/.codex/config.toml:
[mcp_servers.interactive-clarify]
command = "node"
args = ["/absolute/path/to/packages/mcp-server/dist/bin/ask-user-mcp.js"]Tip: This config file is shared between Codex CLI and the Codex VS Code extension (Codex App). Configuring it once makes the tool available in both.
To instruct Codex to use the tool proactively, add to your system prompt or project instructions:
When you encounter ambiguous requirements or have clarifying questions,
use the interactive_clarify tool to ask the user before proceeding.Claude Code
Add to .mcp.json (project-scoped, committed to git) or ~/.claude.json (global):
{
"mcpServers": {
"interactive-clarify": {
"command": "node",
"args": ["/absolute/path/to/packages/mcp-server/dist/bin/ask-user-mcp.js"]
}
}
}Or via CLI:
claude mcp add interactive-clarify node /absolute/path/to/packages/mcp-server/dist/bin/ask-user-mcp.jsNote: Claude Code already has a built-in
AskUserQuestiontool. Theinteractive_clarifytool name avoids any conflict. Both tools can coexist — Claude will use whichever is more appropriate.
Factory Droid
In an active Droid session:
/mcp add interactive-clarify node /absolute/path/to/packages/mcp-server/dist/bin/ask-user-mcp.jsNote: Factory Droid also has a built-in
ask_usertool. Theinteractive_clarifyname avoids conflicts.
Generic MCP Client
Any MCP-compatible client using stdio transport:
{
"command": "node",
"args": ["/absolute/path/to/packages/mcp-server/dist/bin/ask-user-mcp.js"]
}If you install the server package globally or invoke package binaries directly, the published bin name is interactive-clarify-mcp.
Reference
Detailed reference is in docs/reference.md, including:
tool schemas
runtime flow
troubleshooting
keyboard behavior and answer semantics
package responsibilities and development entry points
Environment Variables
Variable | Description |
| Override the default IPC socket path. Default: |
Development
# Watch mode for all packages
pnpm dev
# Rebuild everything
pnpm -r build
# Run the MCP server directly
pnpm --filter @interactive-clarify/mcp-server start
# Package VS Code extension
cd packages/vscode-extension
pnpm run packageLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sreenivasanac/interactive_clarify_mcp_tool_for_codex'
If you have feedback or need assistance with the MCP directory API, please join our Discord server