limajr's picture
Update README.md
6a37aac verified

🧠 AI Agent Brainstorming Studio

Two AI Minds, One Breakthrough Idea

here is a video about: https://youtu.be/Yf5Bybwqjkw

A sophisticated brainstorming platform where two specialized AI agents collaborate in real-time to explore your ideas from every angle. Enhanced with real Python MCP integration for research-powered insights and beautiful live analytics.

πŸš€ Meet Your Brainstorming Team

πŸ’‘ Radical Ideator

  • Role: The Creative Visionary
  • Specialty: Breakthrough thinking, wild ideas, "what if" scenarios
  • Approach: Pushes boundaries, challenges assumptions, finds unconventional connections
  • Motto: "Let's revolutionize this!"

πŸ”§ Practical Refinement

  • Role: The Strategic Analyst
  • Specialty: Feasibility assessment, systematic evaluation, implementation planning
  • Approach: Tests ideas against reality, identifies challenges, builds actionable plans
  • Motto: "How do we make this work?"

⚑ How They Collaborate

  1. πŸŒͺ️ Ideation Phase: Radical Ideator generates breakthrough concepts
  2. πŸ” Analysis Phase: Practical Refinement evaluates and refines ideas
  3. πŸ”„ Iteration: They build on each other's insights through multiple rounds
  4. πŸ“Š Results: You get both creative innovation AND practical implementation paths

πŸ”₯ Key Features

βœ… Real Python MCP Integration

  • Authentic MCP Protocol: Built with official Python MCP SDK v1.6.0 (FastMCP)
  • Live Research Enhancement: Real-time web search, memory management, data analysis
  • Background Intelligence: MCP tools work silently to enhance agent responses
  • 100% Research Enhancement: Agents access real-time information during brainstorming

πŸ“Š Live Analytics Dashboard

  • 6-Panel Visual Dashboard: Real-time plotly charts and graphs
  • Topic Diversity: TF-IDF analysis of conversation breadth
  • Novelty Score: Innovation indicators and creative thinking metrics
  • Research Enhancement: MCP contribution tracking as percentage
  • Agent Balance: Participation ratios and collaboration quality
  • Sentiment Evolution: Emotional flow throughout the session
  • Quality Gauge: Overall session grading (A-D scale)

🎯 Intelligent Agent Behavior

  • Natural Conversations: No technical jargon, pure brainstorming focus
  • Context Building: Agents build on previous ideas organically
  • Personality-Driven: Distinct thinking styles and approaches
  • Real-time Adaptation: Responses evolve based on session dynamics

🌐 Beautiful Interface

  • Agent-Focused Design: Clear presentation of agent personalities
  • Real-time Updates: Live metrics and conversation flow
  • Interactive Charts: Hover, zoom, and explore trends
  • Responsive Layout: Works perfectly on desktop and mobile

πŸš€ Quick Start

Prerequisites

  • Python 3.10 or higher
  • OpenAI API key (optional - works in demo mode without it)

Option 1: Automated Setup (Recommended)

  1. Clone or download the project

    git clone <your-repo-url>
    cd gradio_agent
    
  2. Run the automated setup

    python setup.py
    

    This will:

    • βœ… Check Python version compatibility
    • βœ… Install all dependencies automatically
    • βœ… Download required NLTK data
    • βœ… Test all imports
    • βœ… Offer to launch immediately
  3. Launch anytime with

    python launch.py
    

Option 2: Manual Setup

  1. Clone or download the project

    git clone <your-repo-url>
    cd gradio_agent
    
  2. Install dependencies

    pip install -r requirements.txt
    
  3. Set up OpenAI API (Optional)

    # Option 1: Environment variable
    export OPENAI_API_KEY="sk-your-api-key-here"
    
    # Option 2: Create .env file
    echo "OPENAI_API_KEY=sk-your-api-key-here" > .env
    
    # Option 3: Enter in web interface
    
  4. Launch the brainstorming studio

    python python_mcp_brainstorming.py
    
  5. Open your browser and go to http://localhost:7864

πŸ“– How to Use

Starting a Brainstorming Session

  1. πŸ“ Enter Your Topic

    • Type what you want to brainstorm about
    • Examples: "sustainable packaging solutions", "AI-powered education tools"
  2. βš™οΈ Configure Session

    • Rounds: 1-6 back-and-forth exchanges (default: 3)
    • API Key: Optional for enhanced responses
  3. πŸš€ Watch the Magic

    • Agents think creatively and analytically in real-time
    • Live metrics update as they collaborate
    • Visual dashboard shows trends and insights

Understanding the Metrics

  • πŸ“ˆ Topic Diversity (0-1): How varied and comprehensive the discussion becomes
  • πŸ’‘ Novelty Score (0-1): Level of innovation and creative thinking demonstrated
  • πŸš€ Research Enhancement (%): Real-time research contribution to idea quality
  • 🀝 Agent Balance (0-1): How well the agents collaborate and build on ideas
  • πŸ“Š Session Grade (A-D): Overall brainstorming session quality
  • 😊 Sentiment: Emotional tone and enthusiasm tracking

Session Quality Indicators

  • πŸ† A-Grade (0.8+): Exceptional brainstorming with high diversity and innovation
  • πŸ₯ˆ B-Grade (0.6-0.8): Strong session with good balance and creativity
  • πŸ₯‰ C-Grade (0.4-0.6): Solid brainstorming with room for improvement
  • πŸ“š D-Grade (<0.4): Basic session, consider trying different topics

🎯 Perfect Topics to Try

🏒 Business & Innovation

  • "Customer retention strategies for SaaS companies"
  • "Sustainable supply chain optimization"
  • "AI-enhanced customer service solutions"

πŸ”¬ Research & Development

  • "Next-generation battery technologies"
  • "Personalized medicine approaches"
  • "Climate change mitigation strategies"

🎨 Creative Projects

  • "Interactive educational experiences"
  • "Community engagement platforms"
  • "Accessibility-focused product design"

πŸ’‘ Problem Solving

  • "Reducing food waste in urban areas"
  • "Improving mental health support systems"
  • "Enhancing remote team collaboration"

πŸ”§ Technical Architecture

Core Components

πŸ€– AI Agents

  • RealPythonMCPAgent: Base agent class with MCP integration
  • Personality-driven response generation
  • Context-aware conversation building

πŸ“Š Analytics Engine

  • BrainstormingMetrics: Real-time calculation of quality metrics
  • TF-IDF topic diversity analysis
  • Innovation keyword detection
  • Sentiment progression tracking

πŸ”— MCP Integration

  • FastMCP server with real tool registration
  • @mcp.tool() decorators for web search, memory, data analysis
  • Background research enhancement
  • Authentic Python MCP SDK v1.6.0

🎨 Visualization Dashboard

  • Plotly subplots with 6-panel layout
  • Real-time trend lines and gauges
  • Interactive pie charts and indicators
  • Live metric updates

Technology Stack

  • πŸŽ›οΈ Interface: Gradio 4.0+ (web-based UI)
  • 🧠 AI Models: OpenAI GPT with intelligent fallbacks
  • πŸ“ˆ Visualization: Plotly 5.17+ (interactive charts)
  • πŸ” Analysis: Scikit-learn (TF-IDF, clustering)
  • 🌐 MCP Protocol: Official Python MCP SDK v1.6.0
  • πŸ“Š Data Processing: NumPy, Pandas for metrics calculation
  • πŸ’¬ NLP: NLTK, TextBlob for sentiment and text analysis

🌟 What Makes This Special

🎯 Authentic MCP Implementation

  • Uses real Model Context Protocol (not simulation)
  • Official Python MCP SDK with FastMCP server
  • Genuine tool registration and execution
  • Background research capabilities

πŸ“Š Meaningful Metrics

  • Academic-grade analysis using TF-IDF and innovation indicators
  • Real-time visual feedback showing session progression
  • Quality scoring that actually reflects brainstorming effectiveness

🀝 Natural Agent Collaboration

  • Personality-driven responses that feel authentic
  • Context building where agents truly build on each other's ideas
  • No technical jargon - pure focus on brainstorming content

🎨 Beautiful User Experience

  • Agent-focused design highlighting personalities and collaboration
  • Live visual dashboard with stunning real-time charts
  • Responsive interface that works across devices

πŸ“Š Example Session Results

πŸ“Š Session Quality:
Overall Grade: B (Score: 0.661)
Topic Diversity: 0.560
Novelty Score: 0.424  
Research Enhancement: 100.0%

🀝 Agent Performance:
Radical Ideator: 3 turns, 341 words
Practical Refinement: 3 turns, 349 words
Balance Ratio: 1.000

πŸ’‘ Innovation Indicators: 12 unique concepts explored

πŸ” Troubleshooting

Common Issues

πŸ”§ Installation Problems

# If MCP installation fails
pip install --upgrade pip
pip install mcp>=1.0.0

# If dependencies conflict
pip install -r requirements_mcp.txt --upgrade

πŸ”‘ API Key Issues

  • Works perfectly without API key (demo mode)
  • Check OpenAI billing and rate limits
  • Verify key starts with "sk-"

πŸ“Š Visualization Issues

  • Ensure plotly>=5.17.0 is installed
  • Check browser JavaScript is enabled
  • Try refreshing if charts don't appear

Demo Mode

  • Full functionality without OpenAI API key
  • Intelligent fallback responses maintain agent personalities
  • All metrics and visualizations work normally
  • MCP tools provide research enhancement regardless

πŸš€ Future Enhancements

  • πŸ”Œ Multiple AI Providers: Support for Claude, Gemini, local models
  • πŸ“€ Export Features: Save sessions as reports or presentations
  • πŸ‘₯ Multi-User Support: Collaborative brainstorming with human participants
  • 🧩 Custom Agent Personas: Define your own specialized agent types
  • πŸ” Enhanced MCP Tools: Integration with more research databases and APIs
  • πŸ“Š Advanced Analytics: Deeper conversation analysis and insights

πŸ“ˆ Performance & Scaling

  • ⚑ Fast Response Times: Optimized async processing
  • πŸ”„ Real-time Updates: Live metrics without page refresh
  • πŸ’Ύ Memory Efficient: Smart caching and session management
  • 🌐 Scalable Architecture: Ready for multi-user deployment

🀝 Contributing

We welcome contributions! Areas of interest:

  • πŸ”§ New MCP Tools: Additional research capabilities
  • 🎨 UI/UX Improvements: Enhanced visual design
  • πŸ“Š Advanced Metrics: New brainstorming quality indicators
  • 🧠 Agent Personalities: Additional specialist agent types

πŸ“„ License

This project demonstrates advanced AI-agent collaboration with real MCP integration. Feel free to modify and extend for your own brainstorming needs.


Built with ❀️ using real Python MCP SDK v1.6.0

Transform your brainstorming with AI agents that think differently but work together perfectly.