smart-terminal-mcp 1.2.26 → 1.2.27
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/.smithery/shttp/manifest.json +3 -3
- package/.smithery/shttp/module.js +7 -7
- package/.smithery/shttp/module.js.map +3 -3
- package/README.md +1 -2
- package/package.json +7 -3
- package/scripts/http-scan-server.js +124 -0
- package/scripts/publish.js +535 -59
- package/server.json +2 -2
- package/smithery.json +1 -1
- package/src/index.js +7 -13
- package/src/pty-session.js +24 -3
- package/src/tools.js +9 -2
- package/test/http-scan-server.test.js +82 -0
- package/test/index.test.js +20 -0
- package/test/pty-session.test.js +1 -1
- package/test/publish.test.js +91 -0
- package/test/tools.test.js +23 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"serverCard": {
|
|
7
7
|
"serverInfo": {
|
|
8
8
|
"name": "smart-terminal-mcp",
|
|
9
|
-
"version": "1.2.
|
|
9
|
+
"version": "1.2.27"
|
|
10
10
|
},
|
|
11
11
|
"tools": [
|
|
12
12
|
{
|
|
@@ -284,14 +284,14 @@
|
|
|
284
284
|
"minimum": 500,
|
|
285
285
|
"maximum": 300000,
|
|
286
286
|
"default": 30000,
|
|
287
|
-
"description": "Hard timeout in ms"
|
|
287
|
+
"description": "Hard timeout in ms; timeout must be greater than idleTimeout"
|
|
288
288
|
},
|
|
289
289
|
"idleTimeout": {
|
|
290
290
|
"type": "integer",
|
|
291
291
|
"minimum": 100,
|
|
292
292
|
"maximum": 10000,
|
|
293
293
|
"default": 500,
|
|
294
|
-
"description": "Idle timeout in ms"
|
|
294
|
+
"description": "Idle timeout in ms; must be less than timeout"
|
|
295
295
|
},
|
|
296
296
|
"maxLines": {
|
|
297
297
|
"type": "integer",
|
|
@@ -7217,8 +7217,8 @@ var require_windowsConoutConnection = __commonJS({
|
|
|
7217
7217
|
var workerData = {
|
|
7218
7218
|
conoutPipeName: _conoutPipeName
|
|
7219
7219
|
};
|
|
7220
|
-
var
|
|
7221
|
-
this._worker = new worker_threads_1.Worker(path_1.join(
|
|
7220
|
+
var scriptPath2 = __dirname.replace("node_modules.asar", "node_modules.asar.unpacked");
|
|
7221
|
+
this._worker = new worker_threads_1.Worker(path_1.join(scriptPath2, "worker/conoutSocketWorker.js"), { workerData });
|
|
7222
7222
|
this._worker.on("message", function(message) {
|
|
7223
7223
|
switch (message) {
|
|
7224
7224
|
case 1:
|
|
@@ -24417,13 +24417,12 @@ function registerTools(server, manager) {
|
|
|
24417
24417
|
}
|
|
24418
24418
|
|
|
24419
24419
|
// src/index.js
|
|
24420
|
-
import { fileURLToPath } from "url";
|
|
24421
24420
|
var log2 = (msg) => process.stderr.write(`[smart-terminal-mcp] ${msg}
|
|
24422
24421
|
`);
|
|
24423
24422
|
function createSandboxServer() {
|
|
24424
24423
|
const server = new McpServer({
|
|
24425
24424
|
name: "smart-terminal-mcp",
|
|
24426
|
-
version: "1.2.
|
|
24425
|
+
version: "1.2.27"
|
|
24427
24426
|
});
|
|
24428
24427
|
const manager = new SessionManager();
|
|
24429
24428
|
registerTools(server, manager);
|
|
@@ -24434,7 +24433,7 @@ async function main() {
|
|
|
24434
24433
|
const manager = new SessionManager();
|
|
24435
24434
|
const server = new McpServer({
|
|
24436
24435
|
name: "smart-terminal-mcp",
|
|
24437
|
-
version: "1.2.
|
|
24436
|
+
version: "1.2.27"
|
|
24438
24437
|
});
|
|
24439
24438
|
registerTools(server, manager);
|
|
24440
24439
|
const shutdown = () => {
|
|
@@ -24449,8 +24448,9 @@ async function main() {
|
|
|
24449
24448
|
await server.connect(transport);
|
|
24450
24449
|
log2("Server started on stdio transport");
|
|
24451
24450
|
}
|
|
24452
|
-
var
|
|
24453
|
-
|
|
24451
|
+
var scriptPath = (process.argv[1] || "").replace(/\\/g, "/");
|
|
24452
|
+
var isScanning = scriptPath.includes(".smithery") || scriptPath.includes("/scan-");
|
|
24453
|
+
if (!isScanning) {
|
|
24454
24454
|
main().catch((err) => {
|
|
24455
24455
|
process.stderr.write(`[smart-terminal-mcp] Fatal: ${err.message}
|
|
24456
24456
|
${err.stack}
|