thunderclient-mcp 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Thunder Client MCP
1
+ # Thunder Client MCP Server
2
2
 
3
3
  The Thunder Client MCP server leverages AI to create requests and collections. It can be used in various AI development environments, including Cline, Continue.dev, and GitHub Copilot.
4
4
 
@@ -1 +1 @@
1
- {"version":3,"file":"thunder-client.d.ts","sourceRoot":"","sources":["../src/thunder-client.ts"],"names":[],"mappings":"AAmBA,qBAAa,aAAa;IACtB,OAAO,CAAC,kBAAkB;YAUZ,WAAW;IAmBnB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAQhH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAQjH,OAAO,CAAC,EACV,SAAS,EACT,IAAI,EACJ,UAAU,EACV,MAAM,EACN,UAAU,GACb,EAAE;QACC,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACtB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CA4B1F"}
1
+ {"version":3,"file":"thunder-client.d.ts","sourceRoot":"","sources":["../src/thunder-client.ts"],"names":[],"mappings":"AAmBA,qBAAa,aAAa;IACtB,OAAO,CAAC,kBAAkB;YAUZ,WAAW;IAqBnB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAQhH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAQjH,OAAO,CAAC,EACV,SAAS,EACT,IAAI,EACJ,UAAU,EACV,MAAM,EACN,UAAU,GACb,EAAE;QACC,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACtB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CA4B1F"}
@@ -28,14 +28,16 @@ export class ThunderClient {
28
28
  let errorMessage = stderr ? stderr.trim() : undefined;
29
29
  if ((stderr && stderr.trim()) || stdout?.trim().toLowerCase().includes("error")) {
30
30
  succeeded = false;
31
- errorMessage = errorMessage || stdout?.trim();
31
+ if (stdout?.trim().toLowerCase().includes("error")) {
32
+ errorMessage = stdout?.trim();
33
+ }
32
34
  }
33
35
  return { success: succeeded, result: stdout?.trim(), error: errorMessage };
34
36
  }
35
37
  catch (error) {
36
38
  return {
37
39
  success: false,
38
- error: error?.stderr || error?.message || "Unknown error",
40
+ error: error?.message || "Unknown error",
39
41
  };
40
42
  }
41
43
  }
@@ -78,7 +80,7 @@ export class ThunderClient {
78
80
  return { ...result, projectDir, version }; // ✅ Return only success: true
79
81
  }
80
82
  else {
81
- return { success: false, error: result.error, projectDir, version };
83
+ return { ...result, projectDir, version };
82
84
  }
83
85
  }
84
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thunderclient-mcp",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Thunder Client MCP Server",
5
5
  "main": "dist/index.js`",
6
6
  "types": "dist/index.d.ts",
@@ -19,10 +19,11 @@
19
19
  "thunderclient-mcp": "dist/index.js"
20
20
  },
21
21
  "author": "Thunder Client Limited",
22
+ "homepage": "https://www.thunderclient.com",
22
23
  "license": "MIT",
23
24
  "repository": {
24
25
  "type": "git",
25
- "url": "https://github.com/thunderclient/thunder-mcp"
26
+ "url": "https://github.com/thunderclient/thunderclient-mcp"
26
27
  },
27
28
  "dependencies": {
28
29
  "@modelcontextprotocol/sdk": "^1.16.0",
@@ -35,4 +36,4 @@
35
36
  "tsx": "^4.20.3",
36
37
  "typescript": "^5.8.3"
37
38
  }
38
- }
39
+ }