cursor-feedback 1.0.6 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ name: Release Please
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ contents: write
10
+ pull-requests: write
11
+
12
+ jobs:
13
+ release-please:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: googleapis/release-please-action@v4
17
+ with:
18
+ release-type: node
19
+ package-name: cursor-feedback
package/CHANGELOG.md ADDED
@@ -0,0 +1,59 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ This file is automatically generated by [release-please](https://github.com/googleapis/release-please).
6
+
7
+ ## [1.0.6](https://github.com/jianger666/cursor-feedback-extension/releases/tag/v1.0.6) (2025-01-29)
8
+
9
+ ### Bug Fixes
10
+
11
+ * specify image dimensions in HTML for consistent rendering
12
+ * correct button image size (126x28)
13
+
14
+ ### Chores
15
+
16
+ * replace SVG button with PNG for VSCE compatibility
17
+
18
+ ## [1.0.5](https://github.com/jianger666/cursor-feedback-extension/releases/tag/v1.0.5)
19
+
20
+ ### Chores
21
+
22
+ * 更新版本并优化 README 中一键安装 MCP Server 的描述
23
+
24
+ ### Docs
25
+
26
+ * 更新 README,移除一键安装 MCP Server 的图像链接
27
+ * 更新 README,优化一键安装 MCP Server 的说明
28
+
29
+ ## [1.0.4](https://github.com/jianger666/cursor-feedback-extension/releases/tag/v1.0.4)
30
+
31
+ ### Chores
32
+
33
+ * 更新版本与优化用户反馈体验
34
+
35
+ ## [1.0.2](https://github.com/jianger666/cursor-feedback-extension/releases/tag/v1.0.2)
36
+
37
+ ### Chores
38
+
39
+ * 更新 WebView 结构与样式
40
+
41
+ ## [1.0.1](https://github.com/jianger666/cursor-feedback-extension/releases/tag/v1.0.1)
42
+
43
+ ### Chores
44
+
45
+ * 优化工具描述
46
+
47
+ ## [1.0.0](https://github.com/jianger666/cursor-feedback-extension/releases/tag/v1.0.0)
48
+
49
+ ### Features
50
+
51
+ * 简化 MCP Server 生命周期管理
52
+ * 侧边栏集成 - 直接在 IDE 侧边栏中显示反馈界面
53
+ * 交互式反馈 - AI Agent 可以通过 MCP 工具请求用户反馈
54
+ * 图片支持 - 支持上传图片或直接粘贴(Ctrl+V / Cmd+V)
55
+ * 文件支持 - 支持选择文件/文件夹,将路径告诉 AI 让其读取
56
+ * Markdown 渲染 - AI 摘要支持完整的 Markdown 格式
57
+ * 超时自动重试 - 默认 5 分钟超时,超时后 AI 会自动重新请求反馈
58
+ * 多语言支持 - 支持简体中文、繁体中文和英文
59
+ * 项目隔离 - 多窗口同时使用时,各项目互不干扰
package/README.md CHANGED
@@ -1,42 +1,58 @@
1
1
  # Cursor Feedback
2
2
 
3
- 一个用于 Cursor 的交互式反馈收集工具,类似于 [mcp-feedback-enhanced](https://github.com/Minidoracat/mcp-feedback-enhanced),但使用 TypeScript 重写,并以侧边栏形式嵌入 IDE。
3
+ [中文文档](./README_CN.md)
4
4
 
5
- ## ✨ 特性
5
+ [![Version](https://img.shields.io/visual-studio-marketplace/v/jianger666.cursor-feedback)](https://marketplace.visualstudio.com/items?itemName=jianger666.cursor-feedback)
6
+ [![Downloads](https://img.shields.io/visual-studio-marketplace/d/jianger666.cursor-feedback)](https://marketplace.visualstudio.com/items?itemName=jianger666.cursor-feedback)
7
+ [![npm](https://img.shields.io/npm/v/cursor-feedback)](https://www.npmjs.com/package/cursor-feedback)
6
8
 
7
- - 🎯 **侧边栏集成** - 直接在 IDE 侧边栏中显示反馈界面,无需打开外部浏览器
8
- - 💬 **交互式反馈** - AI Agent 可以通过 MCP 工具请求用户反馈
9
- - 🖼️ **图片支持** - 支持上传图片或直接粘贴(Ctrl+V / Cmd+V)
10
- - 📁 **文件支持** - 支持选择文件/文件夹,将路径告诉 AI 让其读取
11
- - 📝 **Markdown 渲染** - AI 摘要支持完整的 Markdown 格式
12
- - ⏱️ **超时自动重试** - 默认 5 分钟超时,超时后 AI 会自动重新请求反馈
13
- - 🌍 **多语言支持** - 支持简体中文、繁体中文和英文
14
- - 🔒 **项目隔离** - 多窗口同时使用时,各项目互不干扰
9
+ **Save your Cursor monthly quota!** An interactive feedback tool for Cursor that enables unlimited interactions within a single conversation through MCP (Model Context Protocol).
15
10
 
16
- ## 🚀 快速开始
11
+ ![Demo](./demo.gif)
17
12
 
18
- ### 1. 安装 Cursor 插件
13
+ ## 💡 Why Cursor Feedback?
19
14
 
20
- Cursor 扩展商店搜索 **"Cursor Feedback"** 安装。
15
+ If you're on Cursor's 500 requests/month plan, every conversation counts. With Cursor Feedback:
21
16
 
22
- > **如果搜索不到?** 可以通过命令行安装:
17
+ - **One conversation, unlimited interactions** - Keep chatting without consuming extra quota
18
+ - **Human-in-the-loop workflow** - AI waits for your feedback before proceeding
19
+ - **Sidebar integration** - No external browser needed, everything stays in your IDE
20
+
21
+ ## ✨ Features
22
+
23
+ - 🎯 **Sidebar Integration** - Feedback UI embedded directly in the IDE sidebar
24
+ - 💬 **Interactive Feedback** - AI Agent requests feedback via MCP tool
25
+ - 🖼️ **Image Support** - Upload images or paste directly (Ctrl+V / Cmd+V)
26
+ - 📁 **File Support** - Select files/folders to share paths with AI
27
+ - 📝 **Markdown Rendering** - Full Markdown support for AI summaries
28
+ - ⏱️ **Auto-retry on Timeout** - 5-minute default timeout, AI automatically re-requests
29
+ - 🌍 **Multi-language** - Supports English, Simplified Chinese, Traditional Chinese
30
+ - 🔒 **Project Isolation** - Multiple windows work independently
31
+
32
+ ## 🚀 Quick Start
33
+
34
+ ### 1. Install the Cursor Extension
35
+
36
+ Search for **"Cursor Feedback"** in the Cursor extension marketplace.
37
+
38
+ > **Can't find it?** Install via command line:
23
39
  > ```bash
24
40
  > cursor --install-extension jianger666.cursor-feedback
25
41
  > ```
26
42
 
27
- ### 2. 配置 MCP Server
43
+ ### 2. Configure MCP Server
28
44
 
29
- #### 方式 A:一键安装(推荐)
45
+ #### Option A: One-click Install (Recommended)
30
46
 
31
- 点击下方按钮,自动配置 MCP Server
47
+ Click the button below to automatically configure the MCP Server:
32
48
 
33
49
  <a href="https://cursor.com/en/install-mcp?name=cursor-feedback&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImN1cnNvci1mZWVkYmFja0BsYXRlc3QiXX0%3D">
34
50
  <img src="mcp-install-dark.png" alt="Install MCP Server" width="126" height="28" />
35
51
  </a>
36
52
 
37
- #### 方式 B:手动配置
53
+ #### Option B: Manual Configuration
38
54
 
39
- Cursor MCP 配置文件中添加(`~/.cursor/mcp.json`):
55
+ Add to your Cursor MCP config file (`~/.cursor/mcp.json`):
40
56
 
41
57
  ```json
42
58
  {
@@ -49,13 +65,13 @@
49
65
  }
50
66
  ```
51
67
 
52
- #### 方式 C:全局安装
68
+ #### Option C: Global Installation
53
69
 
54
70
  ```bash
55
71
  npm install -g cursor-feedback
56
72
  ```
57
73
 
58
- 然后配置:
74
+ Then configure:
59
75
 
60
76
  ```json
61
77
  {
@@ -67,71 +83,76 @@ npm install -g cursor-feedback
67
83
  }
68
84
  ```
69
85
 
70
- ### 3. 使用
86
+ ### 3. Usage
71
87
 
72
- 1. 重启 Cursor
73
- 2. 侧边栏会出现 **Cursor Feedback** 图标
74
- 3. 在聊天中让 AI 调用 `interactive_feedback` 工具
75
- 4. AI 会在侧边栏显示工作摘要,等待您的反馈
88
+ 1. Restart Cursor
89
+ 2. The **Cursor Feedback** icon appears in the sidebar
90
+ 3. Ask AI to call the `interactive_feedback` tool in chat
91
+ 4. AI displays work summary in sidebar, waiting for your feedback
76
92
 
77
- ### 4. 配置 User Rules(推荐)
93
+ ### 4. Configure User Rules (Recommended)
78
94
 
79
- 为了让 AI 更好地使用 Cursor Feedback,建议在 Cursor 设置中添加以下 User Rules:
95
+ Add these User Rules in Cursor settings for best experience:
80
96
 
81
97
  ```
82
- # Cursor Feedback 规则
98
+ # Cursor Feedback Rules
83
99
 
84
- 1. 在任何流程、任务、对话进行时,无论是询问、回复、或完成阶段性任务,皆必须调用 MCP cursor-feedback
85
- 2. 每当收到用户反馈,必须再次调用 MCP cursor-feedback,并根据反馈内容调整行为。
86
- 3. 完成任务前,必须使用 MCP cursor-feedback 工具向用户询问反馈。
87
- 4. 所有需要展示给用户的内容必须全部通过 cursor-feedback summary 参数传递。
100
+ 1. Always call MCP cursor-feedback during any workflow, task, or conversation.
101
+ 2. After receiving user feedback, call MCP cursor-feedback again and adjust behavior accordingly.
102
+ 3. Before completing a task, use MCP cursor-feedback to ask for user feedback.
103
+ 4. All content to show users must be passed through cursor-feedback's summary parameter.
88
104
  ```
89
105
 
90
- 配置后,AI 会在对话过程中自动调用 Cursor Feedback 工具,所有回复内容都会通过侧边栏展示,实现持续的交互式对话。
106
+ This enables continuous interactive dialogue where AI automatically uses Cursor Feedback throughout the conversation.
91
107
 
92
- ## 📖 MCP 工具
108
+ ## 📖 MCP Tool
93
109
 
94
110
  ### interactive_feedback
95
111
 
96
- 交互式反馈收集工具。
112
+ Interactive feedback collection tool.
113
+
114
+ **Parameters:**
115
+
116
+ | Parameter | Type | Default | Description |
117
+ |-----------|------|---------|-------------|
118
+ | `project_directory` | string | `.` | Absolute path of project directory (for multi-window isolation) |
119
+ | `summary` | string | `I have completed the task you requested.` | AI work summary (supports Markdown) |
120
+ | `timeout` | number | `300` | Timeout in seconds (default 5 minutes) |
97
121
 
98
- **参数:**
122
+ **Timeout Mechanism:**
99
123
 
100
- | 参数 | 类型 | 默认值 | 描述 |
101
- |------|------|--------|------|
102
- | `project_directory` | string | `.` | 项目目录的绝对路径(用于多窗口项目隔离) |
103
- | `summary` | string | `I have completed the task you requested.` | AI 工作摘要(支持 Markdown) |
104
- | `timeout` | number | `300` | 超时时间(秒),默认 5 分钟 |
124
+ - Default wait time: 5 minutes (300 seconds)
125
+ - On timeout, AI receives notification
126
+ - AI automatically re-calls the tool based on instructions
127
+ - Even if you step away, AI will still be waiting when you return
105
128
 
106
- **超时机制:**
129
+ **Returns:**
107
130
 
108
- - 默认等待用户反馈 5 分钟(300 秒)
109
- - 超时后 AI 会收到超时通知
110
- - AI 会根据工具指令自动重新调用此工具,继续等待用户反馈
111
- - 这样即使您暂时离开,回来后 AI 仍会等待您的反馈
131
+ User feedback content including text, images, and attached file paths.
112
132
 
113
- **返回:**
133
+ ## ⚙️ Configuration
114
134
 
115
- 用户反馈内容,包括文字、图片和附加文件路径。
135
+ ### Language Settings
116
136
 
117
- ## ⚙️ 配置选项
137
+ **Method 1: Click the 🌐 button in the sidebar** (Recommended)
118
138
 
119
- ### Cursor 插件设置
139
+ Click the globe icon in the Cursor Feedback sidebar to switch languages.
120
140
 
121
- 在设置中搜索 "Cursor Feedback":
141
+ **Method 2: Through VS Code Settings**
122
142
 
123
- | 设置 | 类型 | 默认值 | 描述 |
124
- |------|------|--------|------|
125
- | `cursorFeedback.language` | string | `zh-CN` | 界面语言 |
143
+ Search "Cursor Feedback" in settings:
126
144
 
127
- 可选语言:
128
- - `zh-CN` - 简体中文
129
- - `zh-TW` - 繁體中文
145
+ | Setting | Type | Default | Description |
146
+ |---------|------|---------|-------------|
147
+ | `cursorFeedback.language` | string | `zh-CN` | UI language |
148
+
149
+ Available languages:
150
+ - `zh-CN` - Simplified Chinese (简体中文)
130
151
  - `en` - English
131
152
 
132
- ### MCP Server 配置示例
153
+ ### MCP Server Configuration
133
154
 
134
- 基本配置:
155
+ Basic config:
135
156
 
136
157
  ```json
137
158
  {
@@ -144,7 +165,7 @@ npm install -g cursor-feedback
144
165
  }
145
166
  ```
146
167
 
147
- 配置超时时间(可选,默认 5 分钟):
168
+ Custom timeout (optional, default 5 minutes):
148
169
 
149
170
  ```json
150
171
  {
@@ -160,14 +181,12 @@ npm install -g cursor-feedback
160
181
  }
161
182
  ```
162
183
 
163
- | 环境变量 | 默认值 | 描述 |
164
- |---------|--------|------|
165
- | `MCP_FEEDBACK_TIMEOUT` | `300` | 超时时间(秒),默认 5 分钟 |
166
- | `MCP_AUTO_RETRY` | `true` | 超时后是否提示 AI 自动重试。设为 `false` 可禁用自动重试指示 |
167
-
168
- > **超时机制**:如果用户在超时时间内没有响应,AI 会收到超时通知。默认情况下,返回消息会包含重试指示,AI 会自动重新调用 feedback 工具继续等待。如果您不希望 AI 自动重试,可以设置 `MCP_AUTO_RETRY=false`。
184
+ | Environment Variable | Default | Description |
185
+ |---------------------|---------|-------------|
186
+ | `MCP_FEEDBACK_TIMEOUT` | `300` | Timeout in seconds (default 5 minutes) |
187
+ | `MCP_AUTO_RETRY` | `true` | Whether AI should auto-retry on timeout. Set to `false` to disable |
169
188
 
170
- ## 🏗️ 架构
189
+ ## 🏗️ Architecture
171
190
 
172
191
  ```
173
192
  ┌─────────────────┐ stdio ┌──────────────────┐
@@ -177,69 +196,69 @@ npm install -g cursor-feedback
177
196
  │ HTTP API
178
197
 
179
198
  ┌──────────────────┐
180
- │ Cursor 插件
199
+ │ Cursor Extension
181
200
  │ (extension.js) │
182
201
  └────────┬─────────┘
183
202
  │ WebView
184
203
 
185
204
  ┌──────────────────┐
186
- 用户界面
187
- │ (侧边栏)
205
+ User Interface
206
+ │ (Sidebar)
188
207
  └──────────────────┘
189
208
  ```
190
209
 
191
- **工作流程:**
210
+ **Workflow:**
192
211
 
193
- 1. AI Agent 通过 stdio 调用 MCP Server `interactive_feedback` 工具
194
- 2. MCP Server 创建反馈请求,通过 HTTP API 暴露给 Cursor 插件
195
- 3. Cursor 插件通过轮询获取请求,在侧边栏 WebView 中显示
196
- 4. 用户输入反馈(文字/图片/文件),提交后通过 HTTP 返回给 MCP Server
197
- 5. MCP Server 将反馈结果返回给 AI Agent
212
+ 1. AI Agent calls MCP Server's `interactive_feedback` tool via stdio
213
+ 2. MCP Server creates feedback request, exposes via HTTP API
214
+ 3. Cursor extension polls for requests, displays in sidebar WebView
215
+ 4. User inputs feedback (text/images/files), submits via HTTP
216
+ 5. MCP Server returns feedback result to AI Agent
198
217
 
199
- ## 📊 mcp-feedback-enhanced 对比
218
+ ## 📊 Comparison with mcp-feedback-enhanced
200
219
 
201
- | 功能 | mcp-feedback-enhanced | cursor-feedback |
202
- |------|:--------------------:|:---------------:|
203
- | MCP 工具 | ✅ | ✅ |
204
- | 文字反馈 | ✅ | ✅ |
205
- | 图片上传 | ✅ | ✅ |
206
- | 图片粘贴 | ✅ | ✅ |
207
- | 文件/文件夹选择 | ❌ | ✅ |
208
- | Markdown 渲染 | ✅ | ✅ |
209
- | 多语言支持 | ✅ | ✅ |
210
- | 超时自动重试 | ✅ | ✅ |
211
- | **IDE 侧边栏集成** | ❌ | ✅ |
212
- | **多窗口项目隔离** | ❌ | ✅ |
213
- | 命令执行 | ✅ | ⏳ |
220
+ | Feature | mcp-feedback-enhanced | cursor-feedback |
221
+ |---------|:--------------------:|:---------------:|
222
+ | MCP Tool | ✅ | ✅ |
223
+ | Text Feedback | ✅ | ✅ |
224
+ | Image Upload | ✅ | ✅ |
225
+ | Image Paste | ✅ | ✅ |
226
+ | File/Folder Selection | ❌ | ✅ |
227
+ | Markdown Rendering | ✅ | ✅ |
228
+ | Multi-language | ✅ | ✅ |
229
+ | Auto-retry on Timeout | ✅ | ✅ |
230
+ | **IDE Sidebar Integration** | ❌ | ✅ |
231
+ | **Multi-window Project Isolation** | ❌ | ✅ |
232
+ | Command Execution | ✅ | ⏳ |
214
233
 
215
- ## 🛠️ 开发
234
+ ## 🛠️ Development
216
235
 
217
236
  ```bash
218
- # 克隆项目
237
+ # Clone the project
219
238
  git clone https://github.com/jianger666/cursor-feedback-extension.git
220
239
  cd cursor-feedback-extension
221
240
 
222
- # 安装依赖
241
+ # Install dependencies
223
242
  npm install
224
243
 
225
- # 编译
244
+ # Compile
226
245
  npm run compile
227
246
 
228
- # 监听模式
247
+ # Watch mode
229
248
  npm run watch
230
249
 
231
- # 运行 lint
250
+ # Run lint
232
251
  npm run lint
233
252
 
234
- # 打包插件
253
+ # Package extension
235
254
  npx vsce package
236
255
  ```
237
256
 
238
- ## 📄 许可证
257
+ ## 📄 License
239
258
 
240
259
  MIT
241
260
 
242
- ## 🙏 致谢
261
+ ## 🙏 Acknowledgments
243
262
 
244
- - [mcp-feedback-enhanced](https://github.com/Minidoracat/mcp-feedback-enhanced) - 原始 Python 实现
245
- - [Model Context Protocol](https://modelcontextprotocol.io/) - MCP 协议
263
+ - [mcp-feedback-enhanced](https://github.com/Minidoracat/mcp-feedback-enhanced) - Original Python implementation
264
+ - [Model Context Protocol](https://modelcontextprotocol.io/) - MCP Protocol