AI Intervention Agent
You can use this MCP server to add real-time human-in-the-loop intervention to AI agent workflows through the interactive_feedback tool.
Pause an agent and ask a human for clarification, confirmation, plan approval, design review, or final sign-off.
Display Markdown messages and optional predefined options in a Web UI, including recommended pre-checked choices.
Collect free-text replies, selected options, and optional images, returning them to the agent as MCP content blocks.
Block the call until the user submits, the auto-resubmit countdown expires, or the backend timeout is reached.
Render rich Markdown and show allowed local images referenced in messages.
Add loop/workflow context with
loop_id,loop_phase,loop_objective,iteration_label,success_criteria,header_label, andfeedback_placeholder.Accept compatibility aliases and ignored parameters from other feedback MCP servers, such as
summary,prompt,options,timeout,project_directory, andtask_id.Support multi-task tabs, notifications, i18n, PWA access, and an optional VS Code extension via the broader project UI.
Uses Flask to provide a Web UI service with HTTP API endpoints for real-time user intervention and feedback management during AI agent interactions.
Renders Markdown content in the Web UI for displaying agent messages and user feedback with code highlighting and math rendering support.
Uses Mermaid for architecture diagrams in documentation to visualize the system's component relationships and data flow.
Click on "Deploy 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., "@AI Intervention Agent I need to review the agent's current approach before it continues."
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.
AI Intervention Agent gives you a Web UI to pause the agent at key moments, review what it's about to do, type a course-correction, attach screenshots, and resume it. Everything goes through the MCP interactive_feedback tool, without ending the conversation.
Works with Cursor, VS Code, Claude Code, Augment, Windsurf, Trae, and more.
Quick start
Point your AI tool at the MCP server via uvx (installs and runs the latest version automatically):
{
"mcpServers": {
"ai-intervention-agent": {
"command": "uvx",
"args": ["ai-intervention-agent"],
"timeout": 600,
"autoApprove": ["interactive_feedback"]
}
}
}
Then add the prompt snippet below to your agent rules / system prompt, so the agent asks you through interactive_feedback instead of finishing tasks silently.
- Only ask me through the MCP `ai-intervention-agent` tool; do not ask directly in chat or ask for end-of-task confirmation in chat.
- If a tool call fails, keep asking again through `ai-intervention-agent` instead of making assumptions, until the tool call succeeds.
ai-intervention-agent usage details:
- If requirements are unclear, use `ai-intervention-agent` to ask for clarification with predefined options.
- If there are multiple approaches, use `ai-intervention-agent` to ask instead of deciding unilaterally.
- If a plan/strategy needs to change, use `ai-intervention-agent` to ask instead of deciding unilaterally.
- Before finishing a request, always ask for feedback via `ai-intervention-agent`.
- Do not end the conversation/request unless the user explicitly allows it via `ai-intervention-agent`.Install the package (needs Python 3.11 or newer; remember to pip install --upgrade ai-intervention-agent periodically):
pip install ai-intervention-agentThen configure your AI tool to launch the installed entry point:
{
"mcpServers": {
"ai-intervention-agent": {
"command": "ai-intervention-agent",
"args": [],
"timeout": 600,
"autoApprove": ["interactive_feedback"]
}
}
}If your IDE/CLI has an AI agent (Cursor, Claude Code, VS Code, Windsurf, Trae, Augment, ...), paste this prompt in chat and let it write the config:
Please configure my IDE / AI tool to use the `ai-intervention-agent` MCP server:
1. Locate the correct MCP config file for my current IDE
(e.g. `.cursor/mcp.json` or `~/.cursor/mcp.json` for Cursor,
`~/.claude.json` for Claude Code,
`.vscode/mcp.json` for VS Code).
2. Add this entry under `mcpServers`:
- command: `uvx`
- args: `["ai-intervention-agent"]`
- timeout: 600
- autoApprove: `["interactive_feedback"]`
Keep every other server and setting in the file exactly as it is.
If an `ai-intervention-agent` entry already exists, show me the
difference and ask before replacing it.
3. Open the link below and append the rules from its
"Prompt snippet (copy/paste)" block to my agent rules / system prompt,
so the agent always asks me through `interactive_feedback`
instead of ending tasks silently:
https://raw.githubusercontent.com/xiadengma/ai-intervention-agent/main/README.md
If you cannot open that link, ask me to paste the block.
4. Verify by listing MCP servers and confirming `ai-intervention-agent` is loaded
(tell me if I need to restart or reload the tool).
5. Finish by telling me which files you changed and what the check showed.interactive_feedback is a long-running tool, and some clients enforce a hard request timeout. To keep sessions alive, the Web UI ships a countdown with auto re-submit (feedback.frontend_countdown, default 240 seconds, range 0 or [10, 3600]). The default stays under the common 300-second hard timeout.
Related MCP server: ai-intervention-agent
Screenshots
Key features
Real-time intervention: the agent pauses and waits for your input via
interactive_feedbackWeb UI: Markdown, code highlighting, and math rendering out of the box
Multi-task tabs: concurrent requests with independent countdowns, per-task draft autosave, and auto re-submit that keeps long sessions alive (your typed text and checked options are submitted at zero, never an empty prompt)
Typing-hold: the countdown auto-extends while you type and never fires mid-input (web page and VS Code extension alike)
Skill and command picker: type
/in the feedback box to insert an installed Agent Skill or custom command (Cursor / Claude Code / Codex layouts, auto-detected or set with[feedback] skill_dirs)Local images in prompts: write
in the message and the Web UI shows the file; only images inside your workspace folders and the temp directory are read (adjust with[feedback] local_image_dirs); click any image in the message to see it larger (Web UI and VS Code panel)Agent-loop context: per-task
header_labelcontext chips,feedback_placeholderhints, and loop engineering metadata (loop_id,loop_phase,success_criteria)Notifications: web / sound / system / Bark (iOS push), plus custom notification sound upload
SSH / LAN friendly: works behind port forwarding; listens on this computer only by default, and once
bind_interfaceis a LAN address mDNS publishes a<host>.localURL when supportedi18n: Web UI + VS Code extension shipped in
en/zh-CN/zh-TWPWA, offline-aware, WCAG 2.1 AA accessible: installable from the browser, with contrast / focus / reduced-motion audited and locked by invariant tests
Stable install: built on Flask 3.x with conservative dependency pins; not affected by the Starlette 1.0 breaking change that broke several MCP feedback servers in early 2026
Architecture overview
AIIA runs as two cooperating Python processes bridging three surfaces:
an MCP stdio server exposing interactive_feedback (one per IDE window),
a Flask web server with an SSE event bus (started on demand as a
subprocess and shared by every window), and a persistent task queue
feeding the notification stack. The component diagram, the interaction
and failure-recovery sequence diagrams, the agent-side MCP parameter
table, and the runtime invariant catalogue live in
docs/architecture.md.
VS Code extension (optional)
Embeds the interaction panel into VS Code's sidebar so you never switch to a browser.
Install: from Open VSX (the extension registry that Cursor, VSCodium, Windsurf and other VS Code-based editors use), or download the VSIX from GitHub Releases. Microsoft's VS Code does not search Open VSX, so install the VSIX there: Command Palette → Extensions: Install from VSIX...
Key setting:
ai-intervention-agent.serverUrlmust match your Web UI URL (e.g.http://localhost:8080; change the port viaweb_ui.portinconfig.toml.default)More:
ai-intervention-agent.logLeveland macOS native notifications (on by default, toggle in the sidebar panel's Settings page). The full settings list and the AppleScript executor security model are inpackages/vscode/README.md
Configuration
On first run, config.toml is created from config.toml.default in your OS user config directory (the full TOML reference is in docs/configuration.md):
OS | User config directory |
Linux |
|
macOS |
|
Windows |
|
For uvx, Docker, systemd, or SSH-remote runtimes where editing the file is awkward, the most-used web_ui settings can be overridden by env var at startup (invalid values log a WARNING and fall back safely; full surface in docs/configuration.md#environment-variable-overrides):
export AI_INTERVENTION_AGENT_WEB_UI_HOST=0.0.0.0 # listen address, default 127.0.0.1 (this computer only); 0.0.0.0 = all interfaces
export AI_INTERVENTION_AGENT_WEB_UI_PORT=8181 # default 8080, range [1, 65535]
export AI_INTERVENTION_AGENT_WEB_UI_LANGUAGE=en # auto / en / zh-CN / zh-TW
uvx ai-intervention-agentCLI inspection: --version, --help, and --print-config. The last one dumps the effective merged config as jq-friendly JSON, with secret-like fields redacted, and answers "is my port from env or from config.toml?" in one pipeline.
On iPhone, the smoothest setup wraps the Web UI in a Shortcuts automation and points Bark notification taps at it. The step-by-step guide is in docs/configuration.md#recommended-iphone-setup-shortcuts--bark.
Documentation
Docs index (by audience):
docs/README.md·docs/README.zh-CN.mdArchitecture (diagrams + agent workflow):
docs/architecture.mdMCP tool reference:
docs/mcp_tools.md·docs/mcp_tools.zh-CN.mdAPI docs:
docs/api/index.md·docs/api.zh-CN/index.mdTroubleshooting / FAQ:
docs/troubleshooting.md·docs/troubleshooting.zh-CN.mdRelease notes:
CHANGELOG.md· VS Code extension (the Open VSX listing):packages/vscode/CHANGELOG.mdContributing:
CONTRIBUTING.md·CODE_OF_CONDUCT.md· scripts index:scripts/README.md· i18n guide:docs/i18n.mdSupport & security:
SUPPORT.md·SECURITY.mdRelease recovery runbook:
docs/release-recovery.md·docs/release-recovery.zh-CN.mdDeepWiki Q&A (AI-augmented Q&A over the repo):
Related projects
Project | Stars (approx.) | Focus |
mcp-feedback-enhanced (Minidoracat) | ~3.8k | Largest sibling; Web UI + Tauri desktop app, auto-command execution, SSH Remote / WSL detection. |
cunzhi (imhuso) | ~1.4k | Chinese-language project focused on preventing premature task completion. |
Relay (andeya) | new | Multi-IDE relay, multi-tab session merging, native desktop window, Cursor usage monitoring. |
new | Node.js port with WebSocket UI and Speech-to-Text via OpenAI Whisper. | |
interactive-feedback-mcp (junanchn) | ~30 | Win32-native always-on-top window, auto-reply rules. |
interactive-feedback-mcp (poliva) | ~310 | Direct ancestor fork (see Acknowledgements); minimal Python MCP, single feedback dialog. |
interactive-feedback-mcp (Pursue-LLL) | ~30 | Independent smaller-scale fork emphasising minimal dependencies. |
Where AIIA sits on the spectrum: AIIA targets the operationally deep end. The Web UI and the VS Code extension share one backend, and observability comes from a /api/system/metrics Prometheus endpoint plus a reference Grafana dashboard. The Web UI ships in three languages and the docs in two, the project follows an invariant test discipline (15,500+ tests + 1,300+ subtests across 40 audit cycles), and releases run through a 4-job pipeline. If you want the smallest drop-in, use poliva's fork; for a desktop app, mcp-feedback-enhanced; for voice input or a multi-tab UI, Relay or the Node.js fork.
Feature gaps (contributions welcome): Speech-to-Text input, always-on-top native window, Cursor usage monitoring, multi-tab session merging UI.
Star counts are approximate snapshots (last reviewed 2026-10); check each upstream for current numbers. Submit a PR if you'd like another related project listed.
Acknowledgements
The MCP interactive_feedback tool surface comes from two earlier projects: Fábio Ferreira's original noopstudios/interactive-feedback-mcp (2024) and Pau Oliva's poliva/interactive-feedback-mcp (2025). Their copyright notices are kept in LICENSE, as the MIT license requires. The v1.5.x line is a substantial rewrite (Web UI, VS Code extension, i18n, notification stack, CI/CD pipeline), owned and maintained by @xiadengma, the publisher on PyPI and Open VSX.
License
MIT License
Available Tools
1 toolinteractive_feedbackInteractive Feedback (人机协作反馈)A
Ask the human user for interactive feedback through the Web UI.
Use this tool whenever you need a human decision, clarification, confirmation, plan approval, design review, or final sign-off before continuing — especially when the next step has multiple valid approaches, irreversible side effects, or significant trade-offs.
Behavior:
Renders the resolved message (Markdown) and an optional list of options in a Web UI; the user submits text + selected options + optional images.
The call blocks until the user submits, the auto-resubmit countdown expires, or the configured backend timeout is reached.
On success, returns a list of MCP content blocks (text + image) that include the user reply, selected options, and an optional prompt suffix.
On parameter validation failure, raises
ToolErrorso the agent can retry with corrected arguments. On service / task failure, returns a configurable resubmit prompt instructing the agent to call this tool again, instead of silently dropping the request. After 3 failures in a row it returns the cause instead: stop calling and tell the user.
Cross-tool compatibility:
summary/promptare accepted as aliases formessageso the samemcp.jsonconfig can target other feedback MCP variants without retraining the agent.optionsis an alias forpredefined_options.project_directory,submit_button_text,timeout,timeout_seconds,feedback_type,priority,language,tags,user_id,task_idare accepted but ignored. They prevent the first-call validation failures observed when an agent reuses arguments shaped for a different feedback MCP server.
Inputs: tags, prompt, loop_id, message, +18 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so no selection ambiguity is possible. Its purpose (soliciting human feedback via a Web UI) is stated explicitly and cannot be confused with anything else on the server.
The lone tool uses a clear snake_case verb_noun name (`interactive_feedback`) consistent with common MCP conventions. With a single tool there is no opportunity for convention mixing.
The server's scope is deliberately narrow — one blocking human-in-the-loop request — so a single tool is defensible rather than thin. A slightly richer surface (e.g. a non-blocking/poll variant) would justify a higher score, but nothing here is redundant.
The ask-feedback lifecycle (render message/options, block, return reply, retry on failure, then surface cause after 3 failures) is well covered, including tolerance for alias parameters from sibling servers. Minor gaps exist: no way to query pending/previous feedback or to check status without issuing a new request.
Maintenance
Related MCP Connectors
Human-in-the-loop review and approval for AI agents. Audit trail, approval policies, native MCP.
Human-in-the-loop for AI agents over MCP: durable approvals with a hosted review page & audit trail
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Live data grids for AI agents. Push structured data; humans review, agents read back via MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceHuman-in-the-Loop authorization gateway for AI Agents. Securely pause MCP workflows and route high-risk actions to human approvers via Slack or Email.52 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables real-time user intervention for MCP agents via a Web UI and interactive_feedback tool, allowing users to review context and send instructions when agents drift from intent.MIT

Datashift MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents to submit tasks for human or AI review and receive decisions via MCP tools, adding human review checkpoints to workflows.MIT- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with any website through MCP, providing structured knowledge graph contexts, generated actions, and readiness scoring.MIT