tiny-http-mcp-server 0.1.53 → 0.1.54

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.
@@ -18,7 +18,7 @@
18
18
  },
19
19
  {
20
20
  "name": "tiny-http-mcp-server",
21
- "version": "0.1.53",
21
+ "version": "0.1.54",
22
22
  "license": "MIT"
23
23
  },
24
24
  {
@@ -7746,7 +7746,11 @@ var HttpTransport = class {
7746
7746
  const parsed = parseJsonRpcMessage(line);
7747
7747
  const post = this.sendPost(line);
7748
7748
  if (parsed.type === "request" && parsed.message.method === "initialize" || parsed.type === "notification" && parsed.message.method === "notifications/initialized") {
7749
- await post;
7749
+ try {
7750
+ await post;
7751
+ } catch (error) {
7752
+ this.dispose(error instanceof Error ? error : new Error(String(error)));
7753
+ }
7750
7754
  } else {
7751
7755
  void post.catch((error) => {
7752
7756
  this.dispose(error instanceof Error ? error : new Error(String(error)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiny-http-mcp-server",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "description": "Minimal MCP server over HTTP built on tiny-stdio-mcp-server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",