Codex Ask User
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., "@Codex Ask UserAsk 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.
Codex Ask User
Codex Ask User is a local Model Context Protocol (MCP) server that gives Codex a native, structured way to clarify requirements before it commits to a plan or implementation.
It uses MCP elicitation so Codex CLI and Codex desktop can display native controls for:
single-choice questions;
multiple-choice questions;
free-text and custom answers;
recommended choices that are labeled and preselected;
a Discuss with Codex first path that returns to chat before asking again;
session-scoped automatic selection of recommended answers.
Requirements
Node.js 20 or newer
Codex CLI or Codex desktop with MCP elicitation enabled
Related MCP server: Interactive Clarify
Build and test
npm install
npm testThe build produces a self-contained MCP server at plugins/ask-user/dist/server.js.
Install as a Codex MCP server
Build the project, then register the generated server using its absolute path:
codex mcp add ask-user -- node /absolute/path/to/codex-ask-user/plugins/ask-user/dist/server.jsStart a new Codex CLI session or desktop task after registration. The server exposes these tools:
ask_userpresents one to three single-choice, multiple-choice, or free-text questions.set_question_preferencesenables, disables, or reports automatic use of recommended answers for the current MCP session.
The repository also contains an installable Codex plugin bundle in plugins/ask-user. Its .mcp.json uses ${PLUGIN_ROOT}, so the bundle remains relocatable.
Codex approval policy
MCP elicitation must be allowed by the active Codex approval policy. To keep other prompt categories non-interactive while allowing questions, use:
approval_policy = { granular = { sandbox_approval = false, rules = false, mcp_elicitations = true, request_permissions = false, skill_approval = false } }In Codex desktop, the task's permission selector can override config.toml. Full access uses an approval policy that rejects MCP elicitations without displaying the question. Select the custom configuration and start a new task after changing the policy.
If ask_user immediately returns declined without visible UI, check the task's active approval policy before treating the result as a user decision.
Example
An agent can call ask_user with a recommended option and an open-ended alternative:
{
"questions": [
{
"id": "database",
"header": "Database",
"question": "Which database should back the first release?",
"kind": "single",
"options": [
{
"label": "PostgreSQL",
"description": "A strong default for production workloads.",
"recommended": true
},
{
"label": "SQLite",
"description": "Simpler deployment for a local-first application."
}
],
"allow_other": true,
"allow_discussion": true
}
]
}Selecting Always use recommended choices automatically resolves later questions that have recommendations during the current MCP session. Questions without recommendations are still shown. Ask Codex to stop auto-selecting recommendations to restore the default behavior.
Development
npm run check
npm run build
npm testsrc/server.tscontains the MCP server and tool implementation.tests/server.test.jstests elicitation flows through an in-memory MCP client.scripts/build.mjsbundles the server with esbuild.plugins/ask-usercontains the Codex plugin manifest and MCP configuration.
Author
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.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI assistants to request human input through interactive GUI dialogs with quiz-style questions, supporting multiple choice and free-form responses for clarification, decisions, and knowledge extraction.Last updated1
- Alicense-qualityDmaintenanceA universal 'Ask User Questions' MCP tool for AI coding agents.Last updated1MIT
- Alicense-qualityDmaintenanceAn MCP App that enables AI agents to ask users multiple questions with tab-based navigation, multiple-choice options, multi-select support, and custom text input, all rendered inline in the conversation.Last updated1MIT
- AlicenseAqualityBmaintenanceEnables AI agents to prompt users for input directly within the chat UI using MCP's elicitation capabilities, allowing for interactive multi-turn conversations without leaving the conversation interface.Last updated1171MIT
Related MCP Connectors
An AI concierge that turns static forms into adaptive AI conversations. From any MCP client.
Remote MCP for Kiro release readiness, evidence binders, signoff, and CI approval receipts.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/blhsing/codex-ask-user'
If you have feedback or need assistance with the MCP directory API, please join our Discord server