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:
@@ -11,6 +11,7 @@ import {
|
||||
} from '../types/mcp-types';
|
||||
import { MCPServerSettings } from '../types/settings-types';
|
||||
import { ToolRegistry } from '../tools';
|
||||
import { NotificationManager } from '../ui/notifications';
|
||||
import { setupMiddleware } from './middleware';
|
||||
import { setupRoutes } from './routes';
|
||||
|
||||
@@ -141,4 +142,11 @@ export class MCPServer {
|
||||
public updateSettings(settings: MCPServerSettings): void {
|
||||
this.settings = settings;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set notification manager for tool call notifications
|
||||
*/
|
||||
public setNotificationManager(manager: NotificationManager | null): void {
|
||||
this.toolRegistry.setNotificationManager(manager);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user