mcp-ssh-server-tool 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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -327,7 +327,7 @@ let buffer = '';
|
|
|
327
327
|
|
|
328
328
|
process.stdin.setEncoding('utf8');
|
|
329
329
|
|
|
330
|
-
process.stdin.on('data', (chunk) => {
|
|
330
|
+
process.stdin.on('data', async (chunk) => {
|
|
331
331
|
buffer += chunk;
|
|
332
332
|
let newlineIndex;
|
|
333
333
|
|
|
@@ -338,7 +338,7 @@ process.stdin.on('data', (chunk) => {
|
|
|
338
338
|
if (line.trim()) {
|
|
339
339
|
try {
|
|
340
340
|
const request = JSON.parse(line);
|
|
341
|
-
handleRequest(request);
|
|
341
|
+
await handleRequest(request);
|
|
342
342
|
} catch (err) {
|
|
343
343
|
console.error('Parse error:', err);
|
|
344
344
|
}
|
|
@@ -346,7 +346,7 @@ process.stdin.on('data', (chunk) => {
|
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
348
|
|
|
349
|
-
function handleRequest(request) {
|
|
349
|
+
async function handleRequest(request) {
|
|
350
350
|
const { id, method, params } = request;
|
|
351
351
|
|
|
352
352
|
if (method === 'initialize') {
|