Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions config/boost.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,17 @@

'browser_logs_watcher' => env('BOOST_BROWSER_LOGS_WATCHER', true),

/*
|--------------------------------------------------------------------------
| MCP
|--------------------------------------------------------------------------
|
| This option may be used to configure the MCP settings for Boost.
|
*/
'mcp' => [
'tinker' => [
'memory_limit' => env('BOOST_TINKER_MEMORY_LIMIT', '128M'),
],
]
];
3 changes: 2 additions & 1 deletion src/Mcp/Tools/Tinker.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public function handle(array $arguments): ToolResult

$timeout = min(180, (int) (Arr::get($arguments, 'timeout', 30)));
set_time_limit($timeout);
ini_set('memory_limit', '128M');
$memoryLimit = config('boost.mcp.tinker.memory_limit', '128M');
ini_set('memory_limit', $memoryLimit);

// Use PCNTL alarm for additional timeout control if available (Unix only)
if (function_exists('pcntl_async_signals') && function_exists('pcntl_signal')) {
Expand Down