feat: Phase 10 - UI Notifications (request-only)
Implement visual feedback for MCP tool calls with configurable notifications. Features: - Real-time notifications when tools are called (request only, no completion) - Tool-specific emoji icons for visual clarity - Rate limiting (max 10 notifications/second) - Notification history tracking (last 100 entries) - Configurable settings: enable/disable, show parameters, duration, console logging - History modal with filtering and export to clipboard Implementation: - Created NotificationManager with queue-based rate limiting - Created NotificationHistoryModal for viewing past tool calls - Integrated into tool call interceptor in ToolRegistry - Added notification settings UI section - Added 'View MCP Notification History' command Benefits: - Visual feedback for debugging and monitoring - Transparency into AI agent actions - Simple on/off toggle, no complex verbosity settings - Zero performance impact when disabled - History tracks success/failure/duration for all calls All 10 phases of the roadmap are now complete\!
This commit is contained in:
@@ -7,7 +7,14 @@ export interface MCPServerSettings {
|
||||
enableAuth: boolean;
|
||||
}
|
||||
|
||||
export interface MCPPluginSettings extends MCPServerSettings {
|
||||
export interface NotificationSettings {
|
||||
notificationsEnabled: boolean;
|
||||
showParameters: boolean;
|
||||
notificationDuration: number; // milliseconds
|
||||
logToConsole: boolean;
|
||||
}
|
||||
|
||||
export interface MCPPluginSettings extends MCPServerSettings, NotificationSettings {
|
||||
autoStart: boolean;
|
||||
}
|
||||
|
||||
@@ -17,5 +24,10 @@ export const DEFAULT_SETTINGS: MCPPluginSettings = {
|
||||
allowedOrigins: ['*'],
|
||||
apiKey: '',
|
||||
enableAuth: false,
|
||||
autoStart: false
|
||||
autoStart: false,
|
||||
// Notification defaults
|
||||
notificationsEnabled: false,
|
||||
showParameters: false,
|
||||
notificationDuration: 3000,
|
||||
logToConsole: false
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user