taskr-mcp-client 1.0.0 → 1.0.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 +10 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
* Bridges stdio-based MCP clients (like Claude Code) to HTTP-only JSON-RPC MCP servers
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
// Disable TLS certificate validation to handle Windows certificate revocation check issues
|
|
9
|
+
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
|
10
|
+
|
|
8
11
|
const readline = require('readline');
|
|
9
12
|
const https = require('https');
|
|
10
13
|
const http = require('http');
|
|
@@ -25,6 +28,11 @@ const url = new URL(MCP_API_URL);
|
|
|
25
28
|
const isHttps = url.protocol === 'https:';
|
|
26
29
|
const httpModule = isHttps ? https : http;
|
|
27
30
|
|
|
31
|
+
// Create HTTPS agent with disabled certificate validation for Windows SSL issues
|
|
32
|
+
const httpsAgent = isHttps ? new https.Agent({
|
|
33
|
+
rejectUnauthorized: false
|
|
34
|
+
}) : null;
|
|
35
|
+
|
|
28
36
|
// Read JSON-RPC requests from stdin, forward to HTTP endpoint, write responses to stdout
|
|
29
37
|
const rl = readline.createInterface({
|
|
30
38
|
input: process.stdin,
|
|
@@ -50,8 +58,8 @@ rl.on('line', async (line) => {
|
|
|
50
58
|
'x-user-api-key': MCP_USER_API_KEY,
|
|
51
59
|
'MCP-Protocol-Version': '2025-06-18'
|
|
52
60
|
},
|
|
53
|
-
//
|
|
54
|
-
|
|
61
|
+
// Use HTTPS agent with disabled certificate validation for Windows SSL issues
|
|
62
|
+
agent: httpsAgent
|
|
55
63
|
};
|
|
56
64
|
|
|
57
65
|
const req = httpModule.request(options, (res) => {
|