feat: 添加MCP调试插件并优化流式超时处理
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
refactor(relay): 将Provider Key管理路由移至model_config模块 fix(saas): 修复demo_keys与provider_keys的匹配逻辑 perf(runtime): 将流式响应超时从60秒延长至180秒以适配思考型模型 docs: 新增模块化审计和上线前功能测试方案文档 chore: 添加tauri-plugin-mcp依赖及相关配置
This commit is contained in:
@@ -107,8 +107,20 @@ pub fn run() {
|
||||
let classroom_chat_state = classroom_commands::chat::create_chat_state();
|
||||
let classroom_gen_tasks = classroom_commands::create_generation_tasks();
|
||||
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
let mut builder = tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init());
|
||||
|
||||
// MCP debug plugin — only in debug builds, allows AI agents to interact with the app
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
builder = builder.plugin(tauri_plugin_mcp::init_with_config(
|
||||
tauri_plugin_mcp::PluginConfig::new("ZCLAW".to_string())
|
||||
.start_socket_server(true)
|
||||
.tcp_localhost(4000),
|
||||
));
|
||||
}
|
||||
|
||||
builder
|
||||
.manage(browser_state)
|
||||
.manage(memory_state)
|
||||
.manage(heartbeat_state)
|
||||
|
||||
Reference in New Issue
Block a user