Labsco
KhaiHuynhVN logo

AI Interaction Tool

โ˜… 29

from KhaiHuynhVN

An AI interaction tool with an advanced UI for the Model Context Protocol (MCP).

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeNeeds API keys

AI Interaction Tool - MCP Server

Modern AI interaction tool with advanced UI and powerful features for Model Context Protocol (MCP)

๐Ÿš€ Core Features

๐ŸŽฏ Main Capabilities

  • Interactive UI Popup for content input and conversation control
  • File/Folder Attachment from workspace with validation and preview
  • ๐Ÿ–ผ๏ธ Image Attachment System with drag & drop, multi-image support
  • Multi-language Support (English/Vietnamese)
  • Maximum Cognitive Power activation for peak AI performance
  • Tag-based Output Format integrated with system prompt rules
  • Workspace-aware Path Processing for cross-project compatibility

๐Ÿ”ง New in v2.2.0 (Latest)

  • ๐Ÿ–ผ๏ธ Image Attachment Support with drag & drop functionality
  • ๐Ÿ›ก๏ธ Security Enhanced - secure path storage in user_images directory
  • ๐Ÿ’พ Persistent Image State - checkbox state saves correctly
  • ๐ŸŽฏ Multi-image Management - attach, preview, and remove multiple images
  • ๐Ÿ”„ Database Auto-cleanup - automatic image cleanup when disabled

๐Ÿ”ง Previous v2.1.0

  • Enhanced UI/UX with modern PyQt5 interface
  • Structured Tag-based Output for perfect AI agent integration
  • Debounce Configuration with smart auto-save mechanisms
  • Cursor IDE Integration with comprehensive setup guide

๐Ÿ“ฆ Package Structure

AI-interaction/
โ”œโ”€โ”€ ai_interaction_tool/       # Main interaction tool package
โ”‚   โ”œโ”€โ”€ core/                 # Core dialog and configuration
โ”‚   โ”‚   โ”œโ”€โ”€ dialog.py         # InputDialog with PyQt5 UI
โ”‚   โ”‚   โ””โ”€โ”€ config.py         # Configuration management
โ”‚   โ”œโ”€โ”€ ui/                   # Interface and styling
โ”‚   โ”‚   โ”œโ”€โ”€ file_dialog.py    # File attachment dialogs
โ”‚   โ”‚   โ”œโ”€โ”€ file_tree.py      # File system tree view
โ”‚   โ”‚   โ”œโ”€โ”€ image_attachment.py # ๐Ÿ–ผ๏ธ Image attachment with drag & drop
โ”‚   โ”‚   โ””โ”€โ”€ styles.py         # Modern UI styling
โ”‚   โ”œโ”€โ”€ utils/                # Utilities and multi-language
โ”‚   โ”‚   โ”œโ”€โ”€ translations.py   # Multi-language support
โ”‚   โ”‚   โ””โ”€โ”€ file_utils.py     # File operation utilities
โ”‚   โ”œโ”€โ”€ engine.py             # Main entry point
โ”‚   โ”œโ”€โ”€ description.py        # Detailed tool description
โ”‚   โ””โ”€โ”€ __init__.py           # Package exports
โ”œโ”€โ”€ user_images/              # ๐Ÿ›ก๏ธ Secure image storage directory
โ”œโ”€โ”€ main.py                   # Legacy entry point
โ”œโ”€โ”€ mcp_server.py             # MCP server implementation
โ”œโ”€โ”€ requirements.txt          # Python dependencies
โ”œโ”€โ”€ pyproject.toml           # Project configuration
โ””โ”€โ”€ README.md                # This file

๐Ÿ”„ Version History

  • v2.2.0 (Latest): ๐Ÿ–ผ๏ธ Image Attachment System - Complete image support with drag & drop, multi-image management, security enhancements, and persistent state
  • v2.1.0: Enhanced UI/UX, Cursor IDE integration, Debounce config system
  • v2.0.0: Refactored architecture with modern PyQt5 UI
  • v1.x: Core functionality and basic features

๐ŸŽฏ v2.2.0 Detailed Changes:

  • โœ… Image Attachment UI: Full drag & drop interface with preview system
  • โœ… Multi-format Support: PNG, JPG, JPEG, GIF, BMP, WEBP compatibility
  • โœ… Security Hardening: Secure path storage, local-only processing
  • โœ… Database Management: Auto-cleanup, persistent storage, state management
  • โœ… UX Improvements: Click-to-enlarge, remove buttons, checkbox persistence
  • โœ… Performance: Optimized image loading with base64 conversion
  • โœ… Bug Fixes: Checkbox state persistence, config loading issues resolved

๐ŸŽฏ Integration Workflow & System Architecture

๐Ÿ”„ Complete Integration Flow:

[User Input] โ†’ [ai_interaction Tool] โ†’ [Tag-based Output] โ†’ [AI Agent Rules] โ†’ [Enhanced Response]
     โ†‘                                                                              โ†“
     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ [Auto-recall if continue_chat=true] โ†โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿง  Cognitive Enhancement System:

  • Standard Mode: High-level thinking with 1+ thinking blocks
  • Ultra-Enhancement Mode: 10 breakthrough cognitive modes simultaneously
    • Quantum Cognitive Mode
    • Meta-Cognitive Orchestration
    • Expert Persona Simulation
    • Time-Dilated Processing
    • Systems-Level Integration
    • Psychological Priming Mode
    • Maximum Cognitive Resource Allocation
    • Adversarial Self-Testing Mode
    • Obsessive Quality Standards
    • Breakthrough Innovation Mode

๐Ÿ“Š Output Tag System:

<AI_INTERACTION_CONTINUE_CHAT>true/false</AI_INTERACTION_CONTINUE_CHAT>
<AI_INTERACTION_ATTACHED_FILES>
FOLDERS:
- workspace_name/relative/path/folder
FILES:  
- workspace_name/relative/path/file.ext
</AI_INTERACTION_ATTACHED_FILES>
<AI_INTERACTION_WORKSPACE>workspace_name</AI_INTERACTION_WORKSPACE>

๐Ÿ’ก Advanced Features & Best Practices

๐ŸŽจ UI/UX Enhancements:

  • Responsive Design: Adaptive sizing with minimum 800x700 resolution
  • Multi-language Support: Seamless EN/VI switching with persistent config
  • Modern PyQt5 Styling: Semantic color system with button properties
  • File Drag-Drop: Intuitive file attachment with validation
  • Context Menu: Right-click operations for file management
  • Debounce Saving: Smart config persistence with QTimer optimization

๐Ÿ”ง Technical Specifications:

  • Python: 3.8+ required with PyQt5 dependencies
  • Memory: Minimum 512MB RAM for UI components
  • Storage: ~50MB for tool installation and config
  • Platform: Cross-platform (Windows/macOS/Linux) with native styling
  • Performance: Event-driven architecture with minimal CPU usage

๐Ÿ“ˆ Performance Optimization:

  • Lazy Loading: Components load only when needed
  • Efficient Config: JSON-based with automatic compression
  • Resource Management: Proper cleanup and memory management
  • Caching Strategy: Workspace state persistence for faster startup

๐Ÿ›ก๏ธ Security & Privacy

๐Ÿ”’ Security Features:

  • Local Processing: All file operations are local only, no uploads
  • Path Validation: Robust security checks for file access
  • Sandboxed Execution: Tool runs in controlled environment
  • No Data Collection: Zero telemetry or external data transmission

๐Ÿ” Privacy Protection:

  • Config Encryption: Local config with secure storage options
  • File Access Control: User-controlled file attachment permissions
  • Workspace Isolation: Project boundaries are enforced
  • Audit Trail: Optional logging for security monitoring

๐Ÿค Contributing

Note: This is a private repository. Only the owner has push access.

For suggestions or issues:

  1. Create detailed issue reports
  2. Provide reproduction steps
  3. Include system information
  4. Attach relevant logs or screenshots

๐Ÿ“š Documentation & Resources

๐Ÿ“– Documentation Files:

  • rule_for_ai_VI.txt - Vietnamese agent behavior rules
  • rule_for_ai_EN.txt - English agent behavior rules
  • SYSTEM_PROMPT_Claude-4-sonnet-max.txt - Full system prompt example
  • pyproject.toml - Project configuration and dependencies

๐Ÿ”— Useful Links:

๐Ÿ’ก Related Projects:

- https://github.com/KhaiHuynhVN/mcp-server-agent-comm

๐Ÿ“„ License & Legal

๐Ÿ“œ License:

MIT License

Copyright (c) 2025 DemonVN - AI Interaction Tool

โš–๏ธ Legal Notes:

  • Tool complies with local processing requirements
  • No personal data collection
  • Respects user privacy and data sovereignty
  • Compatible with enterprise security policies

๐ŸŽฏ Special Thanks:

  • Model Context Protocol team for standardized interface
  • Claude Desktop integration ecosystem
  • Cursor IDE team for AI-first development tools
  • Open source Python community
  • Beta testers and early adopters

๐Ÿ”ฅ Inspiration:

Project inspired by the need for seamless AI interaction tools with modern UX principles and professional-grade architecture.


๐Ÿš€ Happy Coding with AI Interaction Tool!

For support, issues, or feature requests, please open an issue on the GitHub repository.