修复了一些挂载bug,将面板技术从纯html变更成了Vue3,界面更有好些,后期扩展更方便。增加了工具配置功能,可以自行选择需要使用的工具。

This commit is contained in:
root
2025-07-25 01:41:31 +08:00
parent f395b9f1bc
commit 7e238a0581
26 changed files with 4826 additions and 655 deletions

View File

@@ -124,4 +124,33 @@ export interface MCPClient {
export interface ToolExecutor {
getTools(): ToolDefinition[];
execute(toolName: string, args: any): Promise<ToolResponse>;
}
// 工具配置管理相关接口
export interface ToolConfig {
category: string;
name: string;
enabled: boolean;
description: string;
}
export interface ToolConfiguration {
id: string;
name: string;
description?: string;
tools: ToolConfig[];
createdAt: string;
updatedAt: string;
}
export interface ToolManagerSettings {
configurations: ToolConfiguration[];
currentConfigId: string;
maxConfigSlots: number;
}
export interface ToolManagerState {
availableTools: ToolConfig[];
currentConfiguration: ToolConfiguration | null;
configurations: ToolConfiguration[];
}