Skip to content

Commit 765a5b8

Browse files
committed
easier to debug
1 parent ebea1fb commit 765a5b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/mcp-client/cli.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ async function main() {
5454
stdout.write("\n");
5555
rl.close();
5656
});
57+
process.on("uncaughtException", () => {
58+
stdout.write("\n");
59+
rl.close();
60+
});
5761

5862
await agent.loadTools();
5963

0 commit comments

Comments
 (0)