fix(mcp): hide managed workflows without a session

This commit is contained in:
morluto
2026-07-16 19:53:03 +08:00
parent 9c4a93d9b1
commit 412bbaf05e
3 changed files with 26 additions and 36 deletions
+3
View File
@@ -21,6 +21,9 @@ describe("beta.3 server composition", () => {
await server.connect(serverTransport);
await client.connect(clientTransport);
expect(client.getInstructions()).not.toContain("open_binary");
const names = (await client.listTools()).tools.map(({ name }) => name);
expect(names).not.toContain("compare_managed_members");
expect(names).not.toContain("plan_managed_runtime_correlation");
await client.close();
await server.close();
});