fix: bind AgentToolRegistry as singleton for in-process tool execution
Some checks failed
CI / PHP 8.3 (push) Failing after 2s
CI / PHP 8.4 (push) Failing after 2s

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 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-03-04 07:38:23 +00:00
parent bad718da8d
commit 8bc6e62f13

View file

@ -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');