Flag MCP
🚩 Flag MCP
✨ 什么是“Flag”?
在视觉小说和 Galgame 中,“Flag”(フラグ)是指一个选择触发新故事分支的时刻。一个决定可以改变一切。
Flag MCP 将同样的力量带到了 AI 辅助编码中。当你的 AI 助手遇到十字路口时,它不会盲目猜测 —— 而是会插下一面旗帜,等待你选择路线。
🎮 你是主角。 AI 会在每一个分支点等待你的指令。
💎 每一面旗帜都决定了路线。 不再需要反复进行推测性的重写。
🚀 丰富的交互。 文本、截图、标注 —— 你的全套工具库。
这让 AI 编码从“祈祷它能运行”转变为由你掌控全局的叙事过程。
适用范围:
按请求计费的编码方案。
希望掌控 AI 行为的开发者。
Related MCP server: Human-In-the-Loop MCP Server
🔥 使用前后对比
❌ 没有 Flag MCP | ✅ 使用 Flag MCP |
AI 猜测 → 代码错误 → 痛苦的重构 | AI 插旗 → 你来选择 → 代码正确 |
多轮“等等,你是什么意思?”的沟通 | 一次结构化的对话,清晰明了 |
焦虑:“AI 到底要干什么?!” | 自信:每一个动作都由你确认 |
无助的乘客 | 你是路线的制定者 |
🎯 核心功能
🖥️ 深色主题 UI — 适配你工作流的精美原生桌面对话框
✅ 路线选择 — 结构化的预定义选项(复选框样式)
💬 自由文本 — 当预定义路线不够用时,编写你自己的脚本
📷 丰富的媒体工具库
从剪贴板粘贴图像
选择本地文件
截图 + 内置标注工具(矩形、圆形、箭头、画笔、文本、裁剪)
🖼️ 提示图像 — AI 可以向你展示图像(本地路径、
file://、http(s)://)🔒 安全第一 — 远程图像经过验证、大小限制并异步加载
🎨 macOS 优化 — 正确的图标处理和视觉润色
📦 安装
前置要求
Python
>= 3.11uv(推荐) 或pip
快速安装
git clone https://github.com/pauoliva/interactive-feedback-mcp.git
cd interactive-feedback-mcp
uv sync⚙️ 配置
添加到你的 MCP 客户端配置中:
Cursor (mcp.json) / Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"interactive-feedback": {
"command": "uv",
"args": [
"--directory",
"/path/to/interactive-feedback-mcp",
"run",
"server.py"
],
"timeout": 900000,
"autoApprove": ["interactive_feedback"]
}
}
}⚠️ 注意:Cursor 的超时时间单位为毫秒(
900000= 15 分钟)。某些客户端使用秒,请相应调整。
🚩 interactive_feedback 工具
参数
参数 | 类型 | 描述 |
|
| 要显示的问题/提示 |
|
| 可选。用于快速决策的路线选项 |
|
| 可选。要显示的图像(本地/远程 URL) |
返回值
来自用户的文本反馈
可选的图像附件(作为 MCP 图像内容块)
🧙 专业提示
推荐的 Agent 规则
将其添加到你的 AI 助手自定义指令中:
If requirements are unclear, call interactive_feedback before implementing.
Present predefined options whenever possible — give the user clear route choices.
Before finishing a task, call interactive_feedback once more for final confirmation.环境变量
变量 | 默认值 | 描述 |
|
| UI 进程的最大生命周期 |
| — | 自定义应用图标路径 |
|
| 远程图像获取超时时间 |
|
| 远程图像最大大小 (10MB) |
🛡️ 安全与可靠性
✅ 远程图像通过内容类型 (
image/*) 进行验证✅ 大负载通过大小上限进行拦截
✅ 异步获取保持 UI 响应
✅ 本地文件仅在明确引用时读取
📄 许可证
MIT 许可证 — 随意分叉、插旗、交付。
🚩 插下你的旗帜。书写你自己的路线。
献给那些拒绝在自己的代码库中充当 NPC 的开发者,用心制作 💜。
Available Tools
1 toolinteractive_feedbackA
Request interactive feedback from the user. Supports text and image attachments. 使用方式:
当你通过此工具询问用户时,务必说明需要用户确定的内容。
请在完成用户布置的工作后调用该工具时,提供"结束"的选项,如果用户选择,则本次请求结束. 使用技巧:
请给出可选项,让用户选择,选项中请包涵你最推荐的选项,并说明理由.
针对每个选项,请给出对应的描述,让用户了解每个选项的含义. 什么时候使用:
每当你全部工作完成时,请调用此工具,而非直接结束流程.
每当你遇到需要用户确定的点时(例如进行需求讨论,或者执行任务中遇到重要分岔路口时),务必调用此工具.
Inputs: message, predefined_options, message_images. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool available, there is no ambiguity or risk of tool misselection. The single tool has a clear, distinct purpose that does not overlap with any other tools.
The single tool follows a clear snake_case naming convention. While 'interactive' is an adjective rather than a verb, there are no other tools to create inconsistency, so the naming pattern is uniform.
A single tool is insufficient for the apparent 'Flag' domain suggested by the server name. Even for a minimal utility server, one generic feedback tool represents a severely undersized tool surface that likely cannot fulfill the server's intended purpose.
The server named 'Flag MCP' implies a feature flag or flagging domain, yet provides only a generic user feedback tool with no flag creation, management, querying, or lifecycle operations. This represents a severely incomplete surface for the stated purpose.
Related MCP Connectors
Human-in-the-loop for AI coding agents — ask questions, get approvals via Slack.
Give any AI agent a way to ask a person — for approval, a decision, an answer or a review.
A design agent in your coding agent's loop: briefs each screen, reviews UX and visual quality.
Draw architecture diagrams, UML, planning boards and clickable wireframes from your AI assistant.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to request user input through interactive popups in VS Code, supporting button selections, text inputs, and confirmation dialogs. This system allows for seamless human-in-the-loop interactions without interrupting the conversational flow.4-
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with humans through GUI dialogs for text input, choices, confirmations, and information display.6MIT
- AlicenseAqualityFmaintenanceEnables AI assistants like Claude to interact with humans through intuitive GUI dialogs, supporting text input, choices, confirmations, and information displays.6164MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to render native-looking floating dialogs and forms on the user's desktop, capturing user interactions like button clicks and form inputs.-