From d783cbe745b3785128830b09d365e1317544d883 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Wed, 3 Dec 2025 21:55:53 +0800 Subject: [PATCH] style(config): format mcpPresets code style Apply consistent formatting to createNpxCommand function and sequential-thinking server configuration. --- src/config/mcpPresets.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/config/mcpPresets.ts b/src/config/mcpPresets.ts index e7514e641..f5cfd16d2 100644 --- a/src/config/mcpPresets.ts +++ b/src/config/mcpPresets.ts @@ -6,16 +6,19 @@ export type McpPreset = Omit; // 创建跨平台 npx 命令配置 // Windows 需要使用 cmd /c wrapper 来执行 npx.cmd // Mac/Linux 可以直接执行 npx -const createNpxCommand = (packageName: string, extraArgs: string[] = []): { command: string; args: string[] } => { +const createNpxCommand = ( + packageName: string, + extraArgs: string[] = [], +): { command: string; args: string[] } => { if (isWindows()) { return { - command: 'cmd', - args: ['/c', 'npx', ...extraArgs, packageName] + command: "cmd", + args: ["/c", "npx", ...extraArgs, packageName], }; } else { return { - command: 'npx', - args: [...extraArgs, packageName] + command: "npx", + args: [...extraArgs, packageName], }; } }; @@ -66,7 +69,9 @@ export const mcpPresets: McpPreset[] = [ tags: ["stdio", "thinking", "reasoning"], server: { type: "stdio", - ...createNpxCommand("@modelcontextprotocol/server-sequential-thinking", ["-y"]), + ...createNpxCommand("@modelcontextprotocol/server-sequential-thinking", [ + "-y", + ]), } as McpServerSpec, homepage: "https://github.com/modelcontextprotocol/servers", docs: "https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking",