Skip to content

Commit 04477d7

Browse files
committed
chore: sort tools alphabetically
1 parent 32620ce commit 04477d7

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
@@ -167,9 +167,14 @@ const tools = [
167167
...Object.values(screenshotTools),
168168
...Object.values(scriptTools),
169169
...Object.values(snapshotTools),
170-
];
170+
] as ToolDefinition[];
171+
172+
tools.sort((a, b) => {
173+
return a.name.localeCompare(b.name);
174+
});
175+
171176
for (const tool of tools) {
172-
registerTool(tool as unknown as ToolDefinition);
177+
registerTool(tool);
173178
}
174179

175180
const transport = new StdioServerTransport();

0 commit comments

Comments
 (0)