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.
- package/.github/workflows/release-please.yml +19 -0
- package/CHANGELOG.md +59 -0
- package/README.md +121 -102
- package/README_CN.md +268 -0
- package/demo.gif +0 -0
- package/dist/extension.js +62 -9
- package/dist/extension.js.map +1 -1
- package/dist/i18n/en.json +34 -0
- package/dist/i18n/index.js +127 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/zh-CN.json +34 -0
- package/dist/webview/index.html +14 -11
- package/dist/webview/script.js +24 -9
- package/dist/webview/styles.css +17 -1
- package/icon.png +0 -0
- package/package.json +34 -4
- package/src/extension.ts +77 -9
- package/src/i18n/en.json +34 -0
- package/src/i18n/index.ts +131 -0
- package/src/i18n/zh-CN.json +34 -0
- package/src/webview/index.html +14 -11
- package/src/webview/script.js +24 -9
- package/src/webview/styles.css +17 -1
|
@@ -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
|
-
|
|
3
|
+
[中文文档](./README_CN.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://marketplace.visualstudio.com/items?itemName=jianger666.cursor-feedback)
|
|
6
|
+
[](https://marketplace.visualstudio.com/items?itemName=jianger666.cursor-feedback)
|
|
7
|
+
[](https://www.npmjs.com/package/cursor-feedback)
|
|
6
8
|
|
|
7
|
-
|
|
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
|
+

|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
## 💡 Why Cursor Feedback?
|
|
19
14
|
|
|
20
|
-
|
|
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.
|
|
43
|
+
### 2. Configure MCP Server
|
|
28
44
|
|
|
29
|
-
####
|
|
45
|
+
#### Option A: One-click Install (Recommended)
|
|
30
46
|
|
|
31
|
-
|
|
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
|
-
####
|
|
53
|
+
#### Option B: Manual Configuration
|
|
38
54
|
|
|
39
|
-
|
|
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
|
-
####
|
|
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.
|
|
73
|
-
2.
|
|
74
|
-
3.
|
|
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.
|
|
93
|
+
### 4. Configure User Rules (Recommended)
|
|
78
94
|
|
|
79
|
-
|
|
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.
|
|
85
|
-
2.
|
|
86
|
-
3.
|
|
87
|
-
4.
|
|
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
|
-
|
|
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
|
-
|
|
103
|
-
|
|
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
|
-
|
|
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
|
-
|
|
139
|
+
Click the globe icon in the Cursor Feedback sidebar to switch languages.
|
|
120
140
|
|
|
121
|
-
|
|
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
|
-
|
|
129
|
-
|
|
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
|
-
|
|
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` |
|
|
166
|
-
| `MCP_AUTO_RETRY` | `true` |
|
|
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
|
|
194
|
-
2. MCP Server
|
|
195
|
-
3. Cursor
|
|
196
|
-
4.
|
|
197
|
-
5. MCP Server
|
|
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
|
-
## 📊
|
|
218
|
+
## 📊 Comparison with mcp-feedback-enhanced
|
|
200
219
|
|
|
201
|
-
|
|
|
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
|
-
#
|
|
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) -
|
|
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
|