Prefer project MCP CLI over bundled fallback
This commit is contained in:
parent
bb2fdf0145
commit
26afe8b2a0
1 changed files with 6 additions and 6 deletions
|
|
@ -116,12 +116,12 @@ export function detectWorkflowMcpLaunchConfig(
|
|||
};
|
||||
}
|
||||
|
||||
const bundledCli = getBundledWorkflowMcpCliPath(env);
|
||||
if (bundledCli) {
|
||||
const distCli = resolve(resolvedWorkflowProjectRoot, "packages", "mcp-server", "dist", "cli.js");
|
||||
if (existsSync(distCli)) {
|
||||
return {
|
||||
name,
|
||||
command: process.execPath,
|
||||
args: [bundledCli],
|
||||
args: [distCli],
|
||||
cwd: resolvedWorkflowProjectRoot,
|
||||
env: {
|
||||
...(gsdCliPath ? { GSD_CLI_PATH: gsdCliPath } : {}),
|
||||
|
|
@ -131,12 +131,12 @@ export function detectWorkflowMcpLaunchConfig(
|
|||
};
|
||||
}
|
||||
|
||||
const distCli = resolve(resolvedWorkflowProjectRoot, "packages", "mcp-server", "dist", "cli.js");
|
||||
if (existsSync(distCli)) {
|
||||
const bundledCli = getBundledWorkflowMcpCliPath(env);
|
||||
if (bundledCli) {
|
||||
return {
|
||||
name,
|
||||
command: process.execPath,
|
||||
args: [distCli],
|
||||
args: [bundledCli],
|
||||
cwd: resolvedWorkflowProjectRoot,
|
||||
env: {
|
||||
...(gsdCliPath ? { GSD_CLI_PATH: gsdCliPath } : {}),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue