Skip to content

Commit 2b38a3f

Browse files
chore: dump only enabled tools
1 parent 483799e commit 2b38a3f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/transports/dryModeRunner.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ export class DryRunModeRunner extends TransportRunnerBase {
3939
}
4040

4141
private dumpTools(): void {
42-
const tools = this.server?.tools.map((tool) => ({
43-
name: tool.name,
44-
category: tool.category,
45-
}));
42+
const tools = this.server?.tools
43+
.filter((tool) => tool.isEnabled())
44+
.map((tool) => ({
45+
name: tool.name,
46+
category: tool.category,
47+
}));
4648
this.consoleLogger.log("Enabled tools:");
4749
this.consoleLogger.log(JSON.stringify(tools, null, 2));
4850
}

0 commit comments

Comments
 (0)