perf: mcp server status checking logic

This commit is contained in:
Junyan Qin
2025-11-04 17:32:05 +08:00
parent 3ee7736361
commit 1afecf01e4
11 changed files with 182 additions and 90 deletions
+7 -1
View File
@@ -325,8 +325,14 @@ export interface MCPServerExtraArgsSSE {
ssereadtimeout: number;
}
export enum MCPSessionStatus {
CONNECTING = 'connecting',
CONNECTED = 'connected',
ERROR = 'error',
}
export interface MCPServerRuntimeInfo {
connected: boolean;
status: MCPSessionStatus;
error_message: string;
tool_count: number;
tools: MCPTool[];