mcp-feedback

mcp-feedback is a cursor rule for Cursor from rooney2020/qt-interactive-feedback-mcp. It costs 2,124 tokens per session, scanned A, original, MIT.

Rules for an interactive feedback system that keeps asking the user for input during a session and reconnects after a timeout. The rules are written in Chinese and specify fallback behavior after repeated failures.

In plain words
What is it for?
Choosing the feedback tool, handling user pauses, maintaining long waits with heartbeats, reconnecting after timeouts, and switching to a backup question tool when required.
Why use it?
They ensure the agent continues user interaction instead of ending alone, while distinguishing normal timeouts from actual tool failures.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Choosing the feedback tool, handling user pauses, maintaining long waits with heartbeats…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/rooney2020/qt-interactive-feedback-mcp/mcp-feedback
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/rooney2020/qt-interactive-feedback-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-feedback

README.md
[![agentmods](https://agentmods.dev/badge/rules/rooney2020/qt-interactive-feedback-mcp/mcp-feedback.svg)](https://agentmods.dev/rules/rooney2020/qt-interactive-feedback-mcp/mcp-feedback)
Your own site
<a href="https://agentmods.dev/rules/rooney2020/qt-interactive-feedback-mcp/mcp-feedback"><img src="https://agentmods.dev/badge/rules/rooney2020/qt-interactive-feedback-mcp/mcp-feedback.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,124 This file is loaded in full into every session.
When invoked 2,124 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02124 $0.02124
Opus 5 $0.01062 $0.01062
Sonnet 5 $0.00425 $0.00425
Haiku 4.5 $0.00212 $0.00212

Measured 6d ago against content hash f48eff27cf39, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mcp-feedback scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/mcp-feedback.mdc · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

反馈交互规则

核心原则

每次对话都必须通过交互工具与用户保持持续沟通,禁止单方面结束对话。

工具选择策略

interactive_feedback 始终优先,不区分中间过程还是最终确认。只有连续失败 3 次后才降级到 AskQuestion

场景 使用工具 说明
所有交互场景 interactive_feedback 始终优先使用
interactive_feedback 连续失败 3 次后 AskQuestion 降级备选

关键规则

  1. 所有交互(中间确认、方案选择、最终确认)都优先使用 interactive_feedback
  2. 只有 interactive_feedback 连续失败 3 次(非心跳的真正错误)后,才降级到 AskQuestion
  3. 降级后每次交互仍应先尝试 interactive_feedback,成功则恢复优先使用
  4. 用户说"等一下"/"稍后"/"我先离开"时,不要调用任何交互工具(避免超时浪费请求)

心跳保活机制

工作原理

interactive_feedback MCP 工具内置了 progress notification 心跳机制

  • Qt 反馈窗口在等待用户输入时不会被关闭
  • 工具在内部通过 MCP progress notification 保持连接,不会频繁返回心跳消息
  • 工具会持续等待直到用户提交反馈或 timeout 到期(默认 12 小时)
  • 只有在完整 timeout 到期后,才会返回心跳消息 [心跳]

心跳处理规则

  1. 正常情况无需处理心跳:工具会在内部保持等待,大多数情况下直接返回用户反馈
  2. 识别心跳:仅当 timeout 完全到期后,返回内容包含 [心跳] 关键词
  3. 静默重连:收到心跳后,不输出任何文字,直接再次调用 interactive_feedback(使用相同的 summary 和 project_directory 参数)
  4. 心跳不计入失败次数:心跳是正常行为,不算作失败

心跳流程

interactive_feedback(summary) → [内部 progress notification 保活] → 用户提交 → 返回反馈
                                                                  → timeout 到期 → [心跳] → 静默重新调用

超时重连机制

interactive_feedback 工具因 Cursor 侧超时或连接断开而失败时:

  1. 立即重新调用 interactive_feedback,使用相同的参数
  2. 不输出任何文字说明,直接静默重连
  3. 超时不计入连续失败次数
  4. 如果反复超时(连续 3 次),降级到 AskQuestion 并提供"重试 interactive_feedback"选项

Cursor MCP 工具注册表失效处理

长时间运行的 agent 会话中,Cursor 可能出现 MCP 工具注册表暂时失效,错误特征:Tool not foundConnection closed

  1. 识别:错误信息包含 Tool not foundConnection closed
  2. 不计入失败次数:此类错误是 Cursor 暂时性问题
  3. 重试策略:首次 sleep 10s 后重试;之后每次 sleep 60s;最多重试 10 次
  4. 全部失败:降级到 AskQuestion,说明 Cursor MCP 连接异常及重试次数
  5. 重试成功后重置所有计数

tab_id 和 tab_title 参数规则

调用 interactive_feedback 时,必须传入 tab_idtab_title 参数

tab_id(会话唯一标识)

  • 首次调用时必须随机生成一个全新的 UUID(使用 UUID v4 随机生成,严禁使用文档中的示例 UUID
  • 同一会话中所有调用必须使用相同的 tab_id
  • tab_id 用于去重:同一 tab_id 的新请求会自动替换旧 tab
  • 不同会话必须使用不同的 tab_id
  • 禁止直接复制文档示例中的 UUID,必须每次随机生成

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 162 lines · 2,124 tokens per session scan A f48eff27cf39

Subscribe to this mod's changes

mcp-feedback is a cursor rule published in the GitHub repository rooney2020/qt-interactive-feedback-mcp (16 stars, last pushed 4mo ago), licensed MIT. It adds 2,124 tokens to every session, about $0.0106 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.