@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
30 lines (27 loc) • 739 B
text/typescript
import { McpInstallSchema } from '../types';
/**
* 协议安装相关的 Broadcast 事件(主进程 -> 渲染进程)
*/
export interface ProtocolBroadcastEvents {
/**
* MCP 插件安装请求事件
* 主进程解析协议 URL 后发送给前端
*/
mcpInstallRequest: (data: {
/** 市场来源ID */
marketId?: string;
/** 插件ID */
pluginId: string;
/** MCP Schema 对象 */
schema: McpInstallSchema;
}) => void;
}
/**
* 协议处理相关的 Dispatch 事件(渲染进程 -> 主进程)
*/
export interface ProtocolDispatchEvents {
/**
* 通知主进程协议URL已被处理
*/
protocolUrlHandled: (data: { error?: string; success: boolean; url: string }) => Promise<void>;
}