From caf41813e42a757954b2db894a07192dd6a18479 Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: Wed, 13 Aug 2025 20:48:15 +0100 Subject: [PATCH] fixes #80 - install Boost MCP into Claude via file instead of shell This also works better for people using docker, win win --- src/Install/CodeEnvironment/ClaudeCode.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Install/CodeEnvironment/ClaudeCode.php b/src/Install/CodeEnvironment/ClaudeCode.php index 3134bc5..daefbcc 100644 --- a/src/Install/CodeEnvironment/ClaudeCode.php +++ b/src/Install/CodeEnvironment/ClaudeCode.php @@ -9,7 +9,7 @@ use Laravel\Boost\Install\Enums\McpInstallationStrategy; use Laravel\Boost\Install\Enums\Platform; -class ClaudeCode extends CodeEnvironment implements McpClient, Agent +class ClaudeCode extends CodeEnvironment implements Agent, McpClient { public function name(): string { @@ -43,12 +43,12 @@ public function projectDetectionConfig(): array public function mcpInstallationStrategy(): McpInstallationStrategy { - return McpInstallationStrategy::SHELL; + return McpInstallationStrategy::FILE; } - public function shellMcpCommand(): string + public function mcpConfigPath(): string { - return 'claude mcp add -s project -t stdio {key} "{command}" {args} {env}'; + return '.mcp.json'; } public function guidelinesPath(): string