taskr-mcp-client 1.0.0 → 1.0.1
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 +7 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -25,6 +25,11 @@ const url = new URL(MCP_API_URL);
|
|
|
25
25
|
const isHttps = url.protocol === 'https:';
|
|
26
26
|
const httpModule = isHttps ? https : http;
|
|
27
27
|
|
|
28
|
+
// Create HTTPS agent with disabled certificate validation for Windows SSL issues
|
|
29
|
+
const httpsAgent = isHttps ? new https.Agent({
|
|
30
|
+
rejectUnauthorized: false
|
|
31
|
+
}) : null;
|
|
32
|
+
|
|
28
33
|
// Read JSON-RPC requests from stdin, forward to HTTP endpoint, write responses to stdout
|
|
29
34
|
const rl = readline.createInterface({
|
|
30
35
|
input: process.stdin,
|
|
@@ -50,8 +55,8 @@ rl.on('line', async (line) => {
|
|
|
50
55
|
'x-user-api-key': MCP_USER_API_KEY,
|
|
51
56
|
'MCP-Protocol-Version': '2025-06-18'
|
|
52
57
|
},
|
|
53
|
-
//
|
|
54
|
-
|
|
58
|
+
// Use HTTPS agent with disabled certificate validation for Windows SSL issues
|
|
59
|
+
agent: httpsAgent
|
|
55
60
|
};
|
|
56
61
|
|
|
57
62
|
const req = httpModule.request(options, (res) => {
|