Skip to content

Commit f8c8468

Browse files
authored
Merge branch 'main' into fix/wildcard_issue_in_routes
2 parents c0827a9 + 0417275 commit f8c8468

20 files changed

+1475
-89
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
# Release Notes
22

3-
## [Unreleased](https://github.com/laravel/boost/compare/v1.0.19...main)
3+
## [Unreleased](https://github.com/laravel/boost/compare/v1.0.20...main)
4+
5+
## [v1.0.20](https://github.com/laravel/boost/compare/v1.0.19...v1.0.20) - 2025-08-28
6+
7+
### What's Changed
8+
9+
* fix: defer InjectBoost middleware registration until app is booted by [@Sairahcaz](https://github.com/Sairahcaz) in https://github.com/laravel/boost/pull/172
10+
* feat: add robust MCP file configuration writer by [@ashleyhindle](https://github.com/ashleyhindle) in https://github.com/laravel/boost/pull/204
11+
* Feat: Detect env changes by default, fixes 130 by [@ashleyhindle](https://github.com/ashleyhindle) in https://github.com/laravel/boost/pull/217
12+
13+
### New Contributors
14+
15+
* [@Sairahcaz](https://github.com/Sairahcaz) made their first contribution in https://github.com/laravel/boost/pull/172
16+
17+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.0.19...v1.0.20
418

519
## [v1.0.19](https://github.com/laravel/boost/compare/v1.0.18...v1.0.19) - 2025-08-27
620

src/Install/CodeEnvironment/CodeEnvironment.php

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Laravel\Boost\Install\Detection\DetectionStrategyFactory;
1313
use Laravel\Boost\Install\Enums\McpInstallationStrategy;
1414
use Laravel\Boost\Install\Enums\Platform;
15+
use Laravel\Boost\Install\Mcp\FileWriter;
1516

1617
abstract class CodeEnvironment
1718
{
@@ -185,21 +186,9 @@ protected function installFileMcp(string $key, string $command, array $args = []
185186
return false;
186187
}
187188

188-
File::ensureDirectoryExists(dirname($path));
189-
190-
$config = File::exists($path)
191-
? json_decode(File::get($path), true) ?: []
192-
: [];
193-
194-
$mcpKey = $this->mcpConfigKey();
195-
data_set($config, "{$mcpKey}.{$key}", collect([
196-
'command' => $command,
197-
'args' => $args,
198-
'env' => $env,
199-
])->filter()->toArray());
200-
201-
$json = json_encode($config, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
202-
203-
return $json && File::put($path, $json);
189+
return (new FileWriter($path))
190+
->configKey($this->mcpConfigKey())
191+
->addServer($key, $command, $args, $env)
192+
->save();
204193
}
205194
}

0 commit comments

Comments
 (0)