From 52568d9398b73fc45c582c88c5f95dbfeab6be21 Mon Sep 17 00:00:00 2001 From: Kavan Pancholi Date: Mon, 25 Aug 2025 12:38:49 +0530 Subject: [PATCH 1/2] feat: add MCP configuration settings to Boost --- config/boost.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/boost.php b/config/boost.php index d99e4c65..7a572603 100644 --- a/config/boost.php +++ b/config/boost.php @@ -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'), + ], + ] ]; From 5275e4cdd24793b30c2c887a7e82963e3384b855 Mon Sep 17 00:00:00 2001 From: Kavan Pancholi Date: Mon, 25 Aug 2025 12:39:04 +0530 Subject: [PATCH 2/2] refactor: update memory limit configuration in Tinker tool --- src/Mcp/Tools/Tinker.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mcp/Tools/Tinker.php b/src/Mcp/Tools/Tinker.php index 73a4fa51..739ba0bb 100644 --- a/src/Mcp/Tools/Tinker.php +++ b/src/Mcp/Tools/Tinker.php @@ -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')) {