mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-05 02:43:32 +00:00
fix(cli): run codex mcp add via shell on Windows
This commit is contained in:
parent
984316d260
commit
2915e60630
1 changed files with 5 additions and 1 deletions
|
|
@ -268,7 +268,11 @@ async function setupCodex(result: SetupResult): Promise<void> {
|
|||
|
||||
try {
|
||||
const entry = getMcpEntry();
|
||||
await execFileAsync('codex', ['mcp', 'add', 'gitnexus', '--', entry.command, ...entry.args]);
|
||||
await execFileAsync(
|
||||
'codex',
|
||||
['mcp', 'add', 'gitnexus', '--', entry.command, ...entry.args],
|
||||
{ shell: process.platform === 'win32' }
|
||||
);
|
||||
result.configured.push('Codex');
|
||||
return;
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue