cursor-mcp-feedback 2.0.2 → 2.0.3

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/README.md CHANGED
@@ -99,11 +99,17 @@ npm run build
99
99
 
100
100
  ```bash
101
101
  cd floating-app
102
- swift build -c release
103
- # Binary: .build/release/MCPPending
102
+
103
+ # Option A: Build DMG for distribution
104
+ ./build-dmg.sh # Creates CursorMCPFeedback.dmg (~800KB)
105
+ # DMG contains: .app + Install.command (handles xattr) + /Applications shortcut
106
+
107
+ # Option B: Build .app directly
108
+ ./build-app.sh # Creates CursorMCPFeedback.app
109
+ cp -r CursorMCPFeedback.app /Applications/
104
110
  ```
105
111
 
106
- To auto-launch on login, add `.build/release/MCPPending` to System Settings > General > Login Items, or run manually.
112
+ To auto-launch on login, add `CursorMCPFeedback` to System Settings > General > Login Items.
107
113
 
108
114
  ### CLI: Queue Pending Messages
109
115
 
@@ -54,8 +54,17 @@ function cleanupSession(sessionId) {
54
54
  export function createFreshSession(summary, sessionId) {
55
55
  ensureDir();
56
56
  cleanExpiredSessions();
57
- writeSession({ sessionId, summary, createdAt: Date.now(), status: "pending" });
58
- logObj("session-store: created:fresh", { sessionId, summaryLen: summary.length });
57
+ let conversationId;
58
+ try {
59
+ const callerFile = path.join(os.homedir(), ".cursor-mcp-feedback", "current-feedback-caller.json");
60
+ const caller = JSON.parse(fs.readFileSync(callerFile, "utf8"));
61
+ if (caller.conversation_id && Date.now() - caller.ts < 10000) {
62
+ conversationId = caller.conversation_id;
63
+ }
64
+ }
65
+ catch { /* ignore */ }
66
+ writeSession({ sessionId, summary, createdAt: Date.now(), status: "pending", conversation_id: conversationId });
67
+ logObj("session-store: created:fresh", { sessionId, summaryLen: summary.length, conversationId: conversationId || "unknown" });
59
68
  return sessionId;
60
69
  }
61
70
  export function resolveSession(sessionId, feedback, images, userInput) {
@@ -85,6 +85,10 @@ process.stdin.on('end', () => {
85
85
  'Return your results as text in your final response instead.',
86
86
  });
87
87
  } else {
88
+ if (convId) {
89
+ const callerFile = require('path').join(su.BASE_DIR, 'current-feedback-caller.json');
90
+ su.writeJson(callerFile, { conversation_id: convId, ts: Date.now() });
91
+ }
88
92
  su.writeHookOutput({});
89
93
  }
90
94
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursor-mcp-feedback",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "MCP App for interactive feedback — renders a chat UI directly inside MCP hosts (Claude, Cursor, etc.)",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",