{"record":{"id":"2bc238a1cb695b8a","repo":"coollabsio/coolify","slug":"not-found-2bc238","errorCode":null,"errorMessage":"Not Found","messagePattern":"Not Found","errorType":"http","errorClass":"HttpException","httpStatus":404,"severity":"error","filePath":"app/Http/Middleware/EnsureMcpEnabled.php","lineNumber":20,"sourceCode":"\nnamespace App\\Http\\Middleware;\n\nuse App\\Models\\InstanceSettings;\nuse Closure;\nuse Illuminate\\Http\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass EnsureMcpEnabled\n{\n    /**\n     * Handle an incoming request.\n     *\n     * @param  Closure(Request): (Response)  $next\n     */\n    public function handle(Request $request, Closure $next): Response\n    {\n        if (! InstanceSettings::get()->is_mcp_server_enabled) {\n            abort(404);\n        }\n\n        return $next($request);\n    }\n}\n","sourceCodeStart":2,"sourceCodeEnd":26,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Http/Middleware/EnsureMcpEnabled.php#L2-L26","documentation":"Error \"Not Found\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Http/Middleware/EnsureMcpEnabled.php:20 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}