Skip to content

Commit ad8f61d

Browse files
feat: add getTool method to retrieve a specific registered tool by name
1 parent 39b009e commit ad8f61d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/server-factory.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,8 @@ export class BrowserStackMcpServer {
8080
public getTools(): Record<string, RegisteredTool> {
8181
return this.tools;
8282
}
83+
84+
public getTool(name: string): RegisteredTool | undefined {
85+
return this.tools[name];
86+
}
8387
}

0 commit comments

Comments
 (0)