Skip to content

Commit ac58660

Browse files
authored
Fix issue with Codex not automatically triggering the login flow (#592)
1 parent da09980 commit ac58660

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Install/Agents/Codex.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public function mcpConfigKey(): string
6666
public function httpMcpServerConfig(string $url): array
6767
{
6868
return [
69-
'url' => $url,
69+
'command' => 'npx',
70+
'args' => ['-y', 'mcp-remote', $url],
7071
];
7172
}
7273

tests/Unit/Install/Agents/CodexTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,12 @@
101101
expect($codex->skillsPath())->toBe('.agents/skills');
102102
});
103103

104-
test('httpMcpServerConfig returns url-only config', function (): void {
104+
test('httpMcpServerConfig returns npx mcp-remote config', function (): void {
105105
$codex = new Codex($this->strategyFactory);
106106

107107
expect($codex->httpMcpServerConfig('https://nightwatch.laravel.com/mcp'))->toBe([
108-
'url' => 'https://nightwatch.laravel.com/mcp',
108+
'command' => 'npx',
109+
'args' => ['-y', 'mcp-remote', 'https://nightwatch.laravel.com/mcp'],
109110
]);
110111
});
111112

0 commit comments

Comments
 (0)