Skip to content

Commit 403c336

Browse files
authored
Extend Codex functionality with MCP config (#364)
* Extend Codex functionality with MCP config Signed-off-by: Pushpak Chhajed <pushpak1300@gmail.com> * Remove env key from codex as it's a global config Signed-off-by: Pushpak Chhajed <pushpak1300@gmail.com> * Fix code styling --------- Signed-off-by: Pushpak Chhajed <pushpak1300@gmail.com>
1 parent 4611017 commit 403c336

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Install/CodeEnvironment/Codex.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
namespace Laravel\Boost\Install\CodeEnvironment;
66

77
use Laravel\Boost\Contracts\Agent;
8+
use Laravel\Boost\Contracts\McpClient;
9+
use Laravel\Boost\Install\Enums\McpInstallationStrategy;
810
use Laravel\Boost\Install\Enums\Platform;
911

10-
class Codex extends CodeEnvironment implements Agent
12+
class Codex extends CodeEnvironment implements Agent, McpClient
1113
{
1214
public function name(): string
1315
{
@@ -43,4 +45,14 @@ public function guidelinesPath(): string
4345
{
4446
return 'AGENTS.md';
4547
}
48+
49+
public function mcpInstallationStrategy(): McpInstallationStrategy
50+
{
51+
return McpInstallationStrategy::SHELL;
52+
}
53+
54+
public function shellMcpCommand(): string
55+
{
56+
return 'codex mcp add {key} -- {command} {args}';
57+
}
4658
}

0 commit comments

Comments
 (0)