Skip to content

Commit a4b5cb6

Browse files
authored
refactor: sort tools alphabetically (#346)
1 parent 323a063 commit a4b5cb6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,14 @@ const tools = [
151151
...Object.values(screenshotTools),
152152
...Object.values(scriptTools),
153153
...Object.values(snapshotTools),
154-
];
154+
] as ToolDefinition[];
155+
156+
tools.sort((a, b) => {
157+
return a.name.localeCompare(b.name);
158+
});
159+
155160
for (const tool of tools) {
156-
registerTool(tool as unknown as ToolDefinition);
161+
registerTool(tool);
157162
}
158163

159164
const transport = new StdioServerTransport();

0 commit comments

Comments
 (0)