@lenso/mcp 0.2.0 → 0.2.1
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/dist/index.js +7 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -234,7 +234,13 @@ async function serveStdio(options) {
|
|
|
234
234
|
await server.connect(new StdioServerTransport(process.stdin, process.stdout, { maxBufferSize: maxFrame }));
|
|
235
235
|
return { close };
|
|
236
236
|
} catch (error) {
|
|
237
|
-
|
|
237
|
+
try {
|
|
238
|
+
await close();
|
|
239
|
+
} catch (closeError) {
|
|
240
|
+
throw new AggregateError([error, closeError], "MCP startup and close failed.", {
|
|
241
|
+
cause: closeError
|
|
242
|
+
});
|
|
243
|
+
}
|
|
238
244
|
throw error;
|
|
239
245
|
}
|
|
240
246
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenso/mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"test": "bun test"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lenso/cli": "^0.19.
|
|
28
|
-
"@lenso/engine": "^0.
|
|
27
|
+
"@lenso/cli": "^0.19.1",
|
|
28
|
+
"@lenso/engine": "^0.3.0",
|
|
29
29
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
30
30
|
"zod": "4.6.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@lenso/core": "^0.2.
|
|
33
|
+
"@lenso/core": "^0.2.1"
|
|
34
34
|
}
|
|
35
35
|
}
|