it-tools-mcp 3.0.23 → 3.0.24
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.dockerhub.md +8 -1
- package/README.md +8 -1
- package/build/tools/network.js +8 -0
- package/package.json +1 -1
package/README.dockerhub.md
CHANGED
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://hub.docker.com/r/wrenchpilot/it-tools-mcp)
|
|
4
4
|
[](https://hub.docker.com/r/wrenchpilot/it-tools-mcp)
|
|
5
|
-
[](https://www.npmjs.com/package/it-tools-mcp)
|
|
6
|
+
[](https://www.npmjs.com/package/it-tools-mcp)
|
|
7
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/releases)
|
|
8
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/blob/main/LICENSE)
|
|
9
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/issues)
|
|
10
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/commits/main)
|
|
11
|
+
[](https://hub.docker.com/r/wrenchpilot/it-tools-mcp)
|
|
12
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/stargazers)
|
|
6
13
|
|
|
7
14
|
A comprehensive Model Context Protocol (MCP) server that provides access to **88 IT tools and utilities** commonly used by developers, system administrators, and IT professionals. This server exposes a complete set of tools for encoding/decoding, text manipulation, hashing, network utilities, and many other common development and IT tasks.
|
|
8
15
|
|
package/README.md
CHANGED
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://hub.docker.com/r/wrenchpilot/it-tools-mcp)
|
|
4
4
|
[](https://hub.docker.com/r/wrenchpilot/it-tools-mcp)
|
|
5
|
-
[](https://www.npmjs.com/package/it-tools-mcp)
|
|
6
|
+
[](https://www.npmjs.com/package/it-tools-mcp)
|
|
7
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/releases)
|
|
8
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/blob/main/LICENSE)
|
|
9
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/issues)
|
|
10
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/commits/main)
|
|
11
|
+
[](https://hub.docker.com/r/wrenchpilot/it-tools-mcp)
|
|
12
|
+
[](https://github.com/wrenchpilot/it-tools-mcp/stargazers)
|
|
6
13
|
|
|
7
14
|
> **📝 Note**: A condensed version of this README is automatically synced to [Docker Hub](https://hub.docker.com/r/wrenchpilot/it-tools-mcp) due to character limits.
|
|
8
15
|
|
package/build/tools/network.js
CHANGED
|
@@ -903,7 +903,12 @@ Common issues:
|
|
|
903
903
|
if (body && ["POST", "PUT", "PATCH"].includes(method)) {
|
|
904
904
|
options.body = body;
|
|
905
905
|
}
|
|
906
|
+
// Add timeout to prevent hanging in test environments
|
|
907
|
+
const controller = new AbortController();
|
|
908
|
+
const timeoutId = setTimeout(() => controller.abort(), 10000); // 10 second timeout
|
|
909
|
+
options.signal = controller.signal;
|
|
906
910
|
const response = await fetchImpl(url, options);
|
|
911
|
+
clearTimeout(timeoutId);
|
|
907
912
|
let contentType = '';
|
|
908
913
|
if (response.headers && typeof response.headers.get === 'function') {
|
|
909
914
|
contentType = response.headers.get('content-type') || '';
|
|
@@ -925,6 +930,9 @@ Common issues:
|
|
|
925
930
|
};
|
|
926
931
|
}
|
|
927
932
|
catch (error) {
|
|
933
|
+
if (error instanceof Error && error.name === 'AbortError') {
|
|
934
|
+
return { content: [{ type: "text", text: `curl failed: Request timeout (10s)` }] };
|
|
935
|
+
}
|
|
928
936
|
return { content: [{ type: "text", text: `curl failed: ${error instanceof Error ? error.message : error}` }] };
|
|
929
937
|
}
|
|
930
938
|
});
|