This commit is contained in:
gr
2026-09-24 16:18:52 +08:00
parent b7e91f5fe3
commit 8e2b4fc763
7 changed files with 421 additions and 2 deletions
+12
View File
@@ -115,6 +115,18 @@ class McpConfig
return self::int('max_file_bytes', 5242880, 1024, 20971520);
}
/** AI 后台浏览器总开关(还需要账号有 ai.mcp/console 权限点);紧急停用时设为 false */
public static function consoleEnabled(): bool
{
return self::bool('console_enabled', true);
}
/** AI 浏览器后台会话的有效期(分钟);行知空闲或关闭浏览器时会提前注销 */
public static function consoleTtlMinutes(): int
{
return self::int('console_ttl_minutes', 120, 10, 480);
}
private static function raw(string $key)
{
return env('ai_mcp.' . $key);