ajbmachon
MCP Serverajbmachonpublic

qwen assistant

基于 Qwen3 的智能代理系统,集成多个工具域的子代理。

Repository Info

0
Stars
0
Forks
0
Watchers
2
Issues
Python
Language
-
License

About This Server

基于 Qwen3 的智能代理系统,集成多个工具域的子代理。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Qwen Multi-Assistant

An implementation of a Qwen3-based Agent-Army architecture that integrates multiple Model Context Protocol (MCP) servers. The system uses specialized sub-agents to handle different tool domains, coordinated by a central router agent.

Overview

Qwen Multi-Assistant provides an intelligent agent system that can handle various tasks by routing user requests to specialized agents:

  • Router Agent: Central orchestrator that analyzes user intent and selects appropriate specialized agents
  • Specialized Agents:
    • Data Agent (Airtable): Handles database operations and data management
    • Desktop Agent (DesktopCommander): Manages file system and local machine operations
    • Search Agent (Exa): Performs web search and information retrieval
    • Documentation Agent (Context7): Manages documentation and knowledge access

Architecture

The system follows a modular architecture with clear separation of concerns:

  1. Router Agent: Central orchestrator that analyzes user intent, selects appropriate specialized agents, manages context transfer, and synthesizes responses.
  2. Specialized Agents: Domain-specific agents that handle particular types of tasks.
  3. Context Management System: Maintains conversation history, tracks entities, and manages task state across agent transitions.
  4. User Interface: Provides a chat-based interaction using Gradio with file upload capabilities and tool usage visualization.

Technical Stack

  • Backend: Python 3.11+
  • LLM: Qwen3 models (primarily Qwen3-235b for router, Qwen3-32b for agents)
  • UI Framework: Gradio
  • Testing: Pytest
  • MCP Servers:
    • Airtable MCP Server
    • DesktopCommanderMCP
    • Exa MCP Server
    • Context7

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/qwen-assist-2.git
    cd qwen-assist-2
    
  2. Set up your Python environment:

    # Install using Poetry (recommended)
    poetry install
    
    # Or install using pip
    pip install -e .
    
  3. Configure your environment:

    # Copy the example environment file
    cp .env.example .env
    # Edit .env with your API keys and configuration
    

    The following environment variables are used:

    • OPENROUTER_API_KEY – Qwen model access key (required)
    • EXA_API_KEY – Search Agent API key (required)
    • AIRTABLE_API_KEY – Data Agent API key (required)
    • CONTEXT7_TOKEN – Documentation Agent token (optional)
    • QWEN_UI_PORT – Port for the Gradio UI (optional)

Authentication

The system uses a secure authentication management system for handling API keys and credentials:

Credential Storage Options

  • Environment Variables: Default method using a .env file (uses python-dotenv)
  • System Keyring: Optional more secure method for storing credentials in the system's secure credential store

Required Credentials

  • OpenRouter API Key: Required for accessing Qwen3 models
  • Airtable API Key: Required for the Data Agent
  • Exa API Key: Required for the Search Agent
  • Context7 Token: Optional for the Documentation Agent
  • DesktopCommander Token: Optional for the Desktop Agent

Configuration

Authentication settings can be configured in config/config.yaml:

auth:
  credentials_file: .env      # Path to the credentials file
  use_keyring: false          # Whether to use system keyring
  service_name: qwen_assistant # Service name for keyring

Or via environment variables:

QWEN_AUTH_USE_KEYRING=true
QWEN_AUTH_SERVICE_NAME=custom_service

Checking Credential Status

Run the main application to check credential status:

# Using Poetry
poetry run python -m qwen_assistant.main

# Using installed package
qwen-assistant

Usage

Start the application:

poetry run python -m qwen_assistant

This command launches the native Qwen-Agent Gradio interface. The application will be available at http://localhost:7860 by default.

Development

This project is structured in phases:

  1. MVP Phase: Basic router, core specialized agents, fundamental MCP integrations, and simple UI
  2. Enhancement Phase: Advanced agent coordination, enhanced context management, and user experience improvements
  3. Scaling Phase: Dynamic agent loading, performance optimization, and enterprise integration

Running Tests

# Run all tests
poetry run pytest

# Run with coverage
poetry run pytest --cov=qwen_assistant tests/

Contributing

  1. Set up the development environment as described in the Installation section
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Make your changes
  4. Run tests: poetry run pytest
  5. Submit a pull request

License

[Insert appropriate license information here]

Quick Start

1

Clone the repository

git clone https://github.com/ajbmachon/qwen-assistant
2

Install dependencies

cd qwen-assistant
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerajbmachon
Repoqwen-assistant
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation