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.
package/dist/composition.json
CHANGED
|
@@ -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
|
-
|
|
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)));
|