Skip to content

Commit d0439d6

Browse files
authored
Merge branch 'main' into add_hooks_for_third_party_ide
2 parents 9e4beaf + a40a5a4 commit d0439d6

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

CHANGELOG.md

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

3-
## [Unreleased](https://github.com/laravel/boost/compare/v1.3.0...main)
3+
## [Unreleased](https://github.com/laravel/boost/compare/v1.3.2...main)
4+
5+
## [v1.3.2](https://github.com/laravel/boost/compare/v1.3.1...v1.3.2) - 2025-10-13
6+
7+
### What's Changed
8+
9+
* [1.x] Update token limit default to 3000 tokens in SearchDocs by [@pushpak1300](https://github.com/pushpak1300) in https://github.com/laravel/boost/pull/293
10+
11+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.3.1...v1.3.2
12+
13+
## [v1.3.1](https://github.com/laravel/boost/compare/v1.3.0...v1.3.1) - 2025-10-13
14+
15+
### What's Changed
16+
17+
* [1.x] Update laravel/mcp dependency to support 0.3.0 version by [@pushpak1300](https://github.com/pushpak1300) in https://github.com/laravel/boost/pull/297
18+
19+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.3.0...v1.3.1
420

521
## [v1.3.0](https://github.com/laravel/boost/compare/v1.2.1...v1.3.0) - 2025-09-30
622

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"illuminate/contracts": "^10.49.0|^11.45.3|^12.28.1",
2020
"illuminate/routing": "^10.49.0|^11.45.3|^12.28.1",
2121
"illuminate/support": "^10.49.0|^11.45.3|^12.28.1",
22-
"laravel/mcp": "^0.2.0",
22+
"laravel/mcp": "^0.2.0|^0.3.0",
2323
"laravel/prompts": "0.1.25|^0.3.6",
2424
"laravel/roster": "^0.2.8"
2525
},

src/Mcp/Tools/SearchDocs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function schema(JsonSchema $schema): array
4141
->items($schema->string()->description("The composer package name (e.g., 'symfony/console')"))
4242
->description('Package names to limit searching to from application-info. Useful if you know the package(s) you need. i.e. laravel/framework, inertiajs/inertia-laravel, @inertiajs/react'),
4343
'token_limit' => $schema->integer()
44-
->description('Maximum number of tokens to return in the response. Defaults to 10,000 tokens, maximum 1,000,000 tokens.'),
44+
->description('Maximum number of tokens to return in the response. Defaults to 3,000 tokens, maximum 1,000,000 tokens. If results are truncated, or you need more complete documentation, increase this value (e.g.5000, 10000)'),
4545
];
4646
}
4747

@@ -81,7 +81,7 @@ public function handle(Request $request): Response|Generator
8181
return Response::error('Failed to get packages: '.$throwable->getMessage());
8282
}
8383

84-
$tokenLimit = $request->get('token_limit') ?? 10000;
84+
$tokenLimit = $request->get('token_limit') ?? 3000;
8585
$tokenLimit = min($tokenLimit, 1000000); // Cap at 1M tokens
8686

8787
$payload = [

tests/Feature/Mcp/Tools/SearchDocsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
['name' => 'laravel/framework', 'version' => '11.x'],
3737
['name' => 'pestphp/pest', 'version' => '2.x'],
3838
] &&
39-
$request->data()['token_limit'] === 10000 &&
39+
$request->data()['token_limit'] === 3000 &&
4040
$request->data()['format'] === 'markdown');
4141
});
4242

@@ -79,7 +79,7 @@
7979
Http::assertSent(fn ($request): bool => $request->url() === 'https://boost.laravel.com/api/docs' &&
8080
$request->data()['queries'] === ['test'] &&
8181
empty($request->data()['packages']) &&
82-
$request->data()['token_limit'] === 10000);
82+
$request->data()['token_limit'] === 3000);
8383
});
8484

8585
test('it formats package data correctly', function (): void {
@@ -104,7 +104,7 @@
104104
Http::assertSent(fn ($request): bool => $request->data()['packages'] === [
105105
['name' => 'laravel/framework', 'version' => '11.x'],
106106
['name' => 'livewire/livewire', 'version' => '3.x'],
107-
] && $request->data()['token_limit'] === 10000);
107+
] && $request->data()['token_limit'] === 3000);
108108
});
109109

110110
test('it handles empty results', function (): void {

tests/Feature/Mcp/Tools/TinkerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@
136136

137137
app()->detectEnvironment(fn (): string => 'local');
138138

139-
expect($tool->eligibleForRegistration(Mockery::mock(Request::class)))->toBeTrue();
139+
expect($tool->eligibleForRegistration())->toBeTrue();
140140
});

tests/Unit/Support/ComposerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Laravel\Boost\Support\Config;
44

55
afterEach(function (): void {
6-
(new Config)->flush();
6+
(new Config(__DIR__))->flush();
77
});
88

99
it('may store and retrieve guidelines', function (): void {

0 commit comments

Comments
 (0)