fix(test): skip serialize tool's annotation if empty (#160)

* fix(test): skip serialize tool's annotation if empty

1. skip serialize tool's annotation if empty
2. close js server and client when close

* fix(test): fix test with js, don't close too early
This commit is contained in:
4t145 2025-05-07 15:22:24 +08:00 • committed by GitHub
commit 09474d4769
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,4 +32,4 @@ server.tool(
);
const transport = new StdioServerTransport();
await server.connect(transport);
await server.connect(transport);