修复了一些挂载bug,将面板技术从纯html变更成了Vue3,界面更有好些,后期扩展更方便。增加了工具配置功能,可以自行选择需要使用的工具。
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
Reference in New Issue
Block a user