feat: support stop/start MCP servers

This commit is contained in:
Kadxy
2025-01-16 08:52:54 +08:00
parent e440ff56c8
commit 07c63497dc
7 changed files with 298 additions and 132 deletions

View File

@@ -87,11 +87,20 @@ interface McpErrorClient {
errorMsg: string;
}
// 服务器状态类型
export type ServerStatus = "undefined" | "active" | "paused" | "error";
export interface ServerStatusResponse {
status: ServerStatus;
errorMsg: string | null;
}
// MCP 服务器配置相关类型
export interface ServerConfig {
command: string;
args: string[];
env?: Record<string, string>;
status?: "active" | "paused" | "error";
}
export interface McpConfigData {