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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. 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: -32603,
131
+ code: -32000, // Server error code
132
132
  message: `Request failed: ${error.message}`
133
133
  }
134
134
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "workfullcircle-mcp-local",
4
- "version": "1.4.1",
4
+ "version": "1.4.2",
5
5
  "description": "Local STDIO MCP server for WorkFullCircle API with connection leak fixes",
6
6
  "main": "index.js",
7
7
  "bin": {