workfullcircle-mcp-local 1.4.1 → 1.4.2
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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -123,12 +123,12 @@ async function handleStdio() {
|
|
|
123
123
|
process.stdout.write(`${responseText}\n`);
|
|
124
124
|
} catch (error) {
|
|
125
125
|
console.error(`MCP request failed: ${error.message}`);
|
|
126
|
-
// Send error response back to MCP client
|
|
126
|
+
// Send error response back to MCP client in proper JSON-RPC format
|
|
127
127
|
const errorResponse = JSON.stringify({
|
|
128
128
|
jsonrpc: "2.0",
|
|
129
|
-
id: payload.id || null
|
|
129
|
+
id: payload.id || "error-response", // Never use null for JSON-RPC compliance
|
|
130
130
|
error: {
|
|
131
|
-
code: -
|
|
131
|
+
code: -32000, // Server error code
|
|
132
132
|
message: `Request failed: ${error.message}`
|
|
133
133
|
}
|
|
134
134
|
});
|
package/package.json
CHANGED