Add MCP support

This commit is contained in:
Alex Gleason committed 2025-11-21 20:14:38 -06:00
1 parent c22332a7ce
commit e2f816b6c1
16 files changed
+1306 -29

No files matched your search

+12
View File
@@ -8,9 +8,19 @@ export interface AIProvider {
proxy?: boolean;
}
export interface MCPServer {
type: 'streamable-http';
url: string;
}
export interface MCPServers {
[key: string]: MCPServer;
}
export interface AISettings {
providers: AIProvider[];
recentlyUsedModels: string[];
mcpServers?: MCPServers;
}
export interface AISettingsContextType {
@@ -20,6 +30,8 @@ export interface AISettingsContextType {
removeProvider: (id: string) => void;
setProviders: (providers: AIProvider[]) => void;
addRecentlyUsedModel: (modelId: string) => void;
setMCPServer: (name: string, server: MCPServer) => void;
removeMCPServer: (name: string) => void;
isConfigured: boolean;
}