specmem-hardwicksoftware 3.7.16 → 3.7.17
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/mcp-proxy.cjs +14 -2
- package/package.json +1 -1
package/mcp-proxy.cjs
CHANGED
|
@@ -106,8 +106,20 @@ function sendToClient(msg) {
|
|
|
106
106
|
// Send message to MCP server (child stdin)
|
|
107
107
|
// ============================================================================
|
|
108
108
|
function sendToServer(msg) {
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
// CRITICAL: Always forward initialize and notifications/initialized immediately
|
|
110
|
+
// even before childReady — these are what MAKE the child ready.
|
|
111
|
+
// Without this, deadlock: proxy waits for init response, bootstrap waits for init request.
|
|
112
|
+
const isInitFlow = msg.method === 'initialize' || msg.method === 'notifications/initialized';
|
|
113
|
+
|
|
114
|
+
if (!child || child.killed) {
|
|
115
|
+
if (pendingQueue.length < MAX_QUEUE_SIZE) {
|
|
116
|
+
pendingQueue.push(msg);
|
|
117
|
+
log(`Queued message (no child) (${pendingQueue.length} pending): ${msg.method || msg.id || '?'}`);
|
|
118
|
+
}
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (!childReady && !isInitFlow) {
|
|
111
123
|
if (pendingQueue.length < MAX_QUEUE_SIZE) {
|
|
112
124
|
pendingQueue.push(msg);
|
|
113
125
|
log(`Queued message (${pendingQueue.length} pending): ${msg.method || msg.id || '?'}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specmem-hardwicksoftware",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Persistent memory system for coding sessions - semantic search with pgvector, token compression, team coordination, file watching. Needs root: installs system-wide hooks, manages docker/PostgreSQL, writes global configs, handles screen sessions. justcalljon.pro",
|
|
6
6
|
"main": "dist/index.js",
|