MCP Server AI extension
Provides AI extension capabilities via the Model Context Protocol.
š MCP Server AI extension
Modern AI extension tool with advanced UI and powerful features for Model Context Protocol (MCP)
⨠Features
- šØ Modern Dark Theme UI - Beautiful, responsive interface with PyQt5
- š Advanced File Management - Browse, select, and attach files/folders with workspace support
- š¼ļø Image Support - Drag & drop images, paste from clipboard, with preview functionality
- š Multi-language Support - English and Vietnamese translations
- š¾ Smart Persistence - Remember your preferences, workspace, and attached files
- š Continue Conversations - Seamless chat continuation with smart state management
- šÆ Workspace-Aware - Intelligent relative path handling for better code context
- ā” Fast & Responsive - Optimized performance with async operations
š Quick Start
Installation
# Install dependencies
pip install -r requirements.txt
# Run the tool directly
python -m AI_EXTENSION_tool
Usage with MCP
Add to your MCP client configuration:
{
"mcpServers": {
"ai-extension": {
"command": "python",
"args": ["-m", "AI_EXTENSION_tool"],
"cwd": "/path/to/mcp-ai-extension"
}
}
}
š How It Works
Basic Workflow
- Launch Tool: Call the MCP tool or run directly
- Enter Message: Type your message in the text area
- Attach Files (Optional): Use the file browser to select files/folders
- Attach Images (Optional): Drag & drop or select images
- Configure Options: Set continue conversation and other preferences
- Send: Submit your message with all attachments
Advanced Features
Workspace Management
- Set a workspace root directory for consistent relative paths
- All file attachments are relative to your workspace
- Workspace state is remembered between sessions
File Attachments
- Browse and select multiple files and folders
- Supports all file types with intelligent type detection
- Workspace-relative paths for better code context
- Multi-select with Ctrl+Click and Shift+Click
Image Attachments
- Drag & drop images directly into the interface
- Paste images from clipboard (Ctrl+V in text area)
- Support for PNG, JPG, GIF, BMP, WebP formats
- Image previews with click-to-enlarge functionality
- Smart duplicate detection
Continue Conversations
- Enable "Continue conversation" to keep the chat active
- Tool automatically reopens after AI responds
- Perfect for multi-step tasks and iterative development
š§ Configuration
The tool automatically saves your preferences:
- Window size and position
- Language preference
- Workspace directory
- Attached files state
- Continue conversation setting
- Image save preferences
š Output Format
AI extension Tool
The tool outputs structured data for AI processing:
# Call "AI_EXTENSION" to launch the UI
With File Attachments
Your message content
<AI_EXTENSION_ATTACHED_FILES>
FOLDERS:
- src/components
FILES:
- src/utils/helper.js
- config/settings.json
</AI_EXTENSION_ATTACHED_FILES>
<AI_EXTENSION_WORKSPACE>my-project</AI_EXTENSION_WORKSPACE>
<AI_EXTENSION_CONTINUE_CHAT>true/false</AI_EXTENSION_CONTINUE_CHAT>
With Images
When images are attached, they're included as base64 data in the response for AI processing.
šļø Project Structure
mcp-ai-extension/
āāā AI_EXTENSION_tool/ # Main package
ā āāā core/ # Core functionality
ā ā āāā dialog.py # Main UI dialog
ā ā āāā config.py # Configuration management
ā ā āāā mcp_handler.py # MCP integration
ā āāā ui/ # UI components
ā ā āāā file_dialog.py # File selection dialog
ā ā āāā image_attachment.py # Image handling
ā ā āāā styles.py # UI styling
ā āāā utils/ # Utilities
ā āāā translations.py # Multi-language support
ā āāā file_utils.py # File operations
āāā user_images/ # Stored images
āāā pyproject.toml # Package configuration
āāā README.md # This file
š Troubleshooting
Common Issues
-
Import Errors: Make sure all dependencies are installed
pip install -r requirements.txt -
PyQt5 Issues: Install PyQt5 system dependencies
- Try
python -m AI_EXTENSION_toolinstead
- Try
-
Permission Errors: Ensure write access to the project directory
-
Image Issues: Check that image files are in supported formats (PNG, JPG, GIF, BMP, WebP)
Debug Mode
Run with debug output:
python -m AI_EXTENSION_tool --debug
š¤ Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
š License
This project is licensed under the MIT License.
š Acknowledgments
- Built with PyQt5 for the modern UI
- Uses Model Context Protocol (MCP) for AI integration
- Inspired by the need for better AI-developer extension tools
š§ Support
For issues and questions:
- Create an issue on GitHub
- Check the troubleshooting section above
Happy coding with AI extension Tool! š
Copyright (c) 2025 DemonVN - AI extension Tool
Related Servers
YApi
Interact with the YApi platform using natural language for automated interface management.
D2 MCP Server
Generate, render, and manipulate D2 diagrams with incremental editing capabilities.
Chromium Helper
Access Chromium and PDFium source code repositories using Google's official CodeSearch APIs, supporting advanced search, Gerrit integration, and issue tracking.
MCP Base Server
A base template for creating new MCP servers, designed for easy containerized deployment with Docker.
MCP Sourcify Server
Verify and retrieve smart contract source code using the Sourcify API.
LLM API Benchmark MCP Server
Benchmark LLM APIs for throughput and Time To First Token (TTFT) under various concurrency levels.
shadcn/ui MCP
Provides context about shadcn/ui components, including structure, usage, and installation for React, Svelte, and Vue.
Maven Tools
Access real-time Maven Central intelligence for fast and accurate dependency information.
Unity MCP Template
A template project demonstrating interaction between a TypeScript-based MCP server and a Unity client.
AI Agent with MCP
An AI agent using the Model Context Protocol (MCP) with a Node.js server providing REST resources for users and messages.