From 8bc6e62f133754a30c249444340684becc361ad2 Mon Sep 17 00:00:00 2001 From: Snider Date: Wed, 4 Mar 2026 07:38:23 +0000 Subject: [PATCH] fix: bind AgentToolRegistry as singleton for in-process tool execution Without singleton binding, each app()->make() call creates a fresh instance and tools registered via McpToolsRegistering are lost. Co-Authored-By: Claude Opus 4.6 --- Boot.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Boot.php b/Boot.php index 3889da9..1679f2f 100644 --- a/Boot.php +++ b/Boot.php @@ -80,6 +80,7 @@ class Boot extends ServiceProvider } $this->app->singleton(\Core\Mod\Agentic\Services\AgenticManager::class); + $this->app->singleton(\Core\Mod\Agentic\Services\AgentToolRegistry::class); $this->app->singleton(\Core\Mod\Agentic\Services\BrainService::class, function ($app) { $ollamaUrl = config('mcp.brain.ollama_url', 'http://localhost:11434');