Skip to main content

MCP server enabling AI expert debates - Dynamic expert generation for personalized multi-round philosophical discussions on any topic

Project description

๐Ÿ“š Language Versions | ๅคš่ฏญ่จ€็‰ˆๆœฌ | ่จ€่ชžใƒใƒผใ‚ธใƒงใƒณ

๐ŸŒ English | ๐Ÿ‡จ๐Ÿ‡ณ ไธญๆ–‡ | ๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่ชž


Guru-PK MCP Intelligent Expert Debate System

An AI expert debate system based on local MCP (Model Context Protocol), featuring dynamic expert generation architecture that intelligently creates the most suitable expert combinations based on questions for multi-round intellectual confrontation.

โœจ Core Features

  • ๐Ÿญ Dynamic Expert Generation - Completely question-driven, generating dedicated expert combinations each time
  • ๐ŸŒŸ Unlimited Expert Pool - Breaking fixed expert limitations, supporting expert generation in any domain
  • ๐Ÿ”„ Multi-Round PK Process - Independent Thinking โ†’ Cross-Debate โ†’ Final Positions โ†’ Wisdom Synthesis
  • ๐ŸŽจ Tufte-Style Infographics - Transform expert debates into single-page dynamic infographics strictly following data visualization master Edward Tufte's design principles
  • ๐Ÿค– Intelligent Division Architecture - MCP Host-side LLM handles intelligent analysis, MCP Server-side provides process guidance

๐ŸŒ Online Demo

๐Ÿ‘‰ View Infographic Demo

This webpage displays Tufte-style dynamic infographics created using this MCP tool, intuitively showcasing the powerful capabilities of the expert debate system.

๐Ÿš€ Quick Installation

1. Install Dependencies

Method 1: Using Installation Script (Recommended)

macOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Method 2: Install with pip (All Platforms)

pip install uv

Method 3: Download Installation Package

Download the installation package for your platform from UV Releases

2. Configure MCP Client

Recommended Method: Install from PyPI

{
  "mcpServers": {
    "guru-pk": {
      "command": "uvx",
      "args": ["--from", "guru-pk-mcp", "guru-pk-mcp-server"],
      "env": {
        "DATA_DIR": "~/.guru-pk-data"  // macOS/Linux: ~ directory, Windows: %USERPROFILE% directory
      }
    }
  }
}

Update Instructions:

  • When you need to update guru-pk-mcp to the latest version, run:

    uvx pip install --upgrade guru-pk-mcp
    
  • This command fetches and installs the latest released version from PyPI

  • If you encounter cache issues, you can force refresh:

    uvx --refresh-package guru-pk-mcp --from guru-pk-mcp python -c "print('โœ… UVX cache refreshed')"
    

Notes:

  • macOS users might need to use the full path: /Users/{username}/.local/bin/uvx
  • Windows users: ~ automatically resolves to user home directory (e.g., C:\\Users\\{username}), no manual modification needed

Development Method: Install from Source

{
  "mcpServers": {
    "guru-pk": {
      "command": "uvx", 
      "args": ["--from", "/path/to/guru-pk-mcp", "guru-pk-mcp-server"],
      "env": {
        "DATA_DIR": "~/.guru-pk-data"  // macOS/Linux: ~ directory, Windows: %USERPROFILE% directory
      }
    }
  }
}

Local Development Instructions:

  • For local development scenarios, if you need to refresh uvx cache, use make refresh-uvx
  • This command forces UVX to reinstall the local package, ensuring the use of latest code changes

๐ŸŽฏ For Claude Code Users (Recommended)

Using Custom Slash Command (More Elegant)

If you're using Claude Code, we recommend this simpler approach:

  1. Copy .claude/commands/guru-pk.md to your global ~/.claude/commands/ directory
  2. Use directly in any project: /guru-pk your question

Advantages:

  • โœ… No MCP server configuration needed
  • โœ… Start expert debates with one command
  • โœ… Cleaner, more elegant experience

Getting Started

Restart your MCP client, enter guru_pk_help to get help, or directly ask questions to start expert debates!

// 1. Natural language questions (most recommended usage)
Are there any directions in the field of generative AI that are particularly suitable for individual entrepreneurship? Please have three experts PK

// 2. Intelligent candidate expert generation (system automatic execution)
start_pk_session: Are there any directions in the field of generative AI that are particularly suitable for individual entrepreneurship?

// 3. Intelligent candidate expert generation (user limits expected expert scope)
start_pk_session: Are there any directions in the field of generative AI that are particularly suitable for individual entrepreneurship? Find two AI field experts and one famous individual entrepreneur to debate

๐Ÿ’ก Usage Tips

Starting Debates:

  • ๐Ÿค– start_pk_session: direct question - Default high-efficiency batch processing mode (recommended)
  • ๐Ÿ”„ start_stepwise_pk_session: direct question - Traditional step-by-step dialogue mode

Tool Functions:

  • ๐Ÿ“‹ guru_pk_help - Get system introduction and detailed help
  • ๐Ÿ“„ export_session - Export session as Markdown file
  • ๐ŸŽจ export_session_as_infographic - Export session as Tufte-style single-page dynamic infographic
  • ๐Ÿ“„ export_enhanced_session - Export enhanced analysis report
  • ๐ŸŒ set_language - Set expert reply language

๐Ÿ“ฑ Compatibility

Supports all MCP-compatible applications: Claude Desktop, Cursor, TRAE, DeepChat, Cherry Studio, etc.

๐ŸŽฏ Recommended Configuration

Most Recommended MCP Hosts:

  • ๐Ÿ’ฐ Subscription-based MCP Hosts calculated by user requests - Such as Cursor and overseas TRAE
  • ๐ŸŒŸ Advantages:
    • Significant cost advantages: subscription billing calculated by user requests, not API call counts or token billing
    • Claude models have the best MCP support with excellent instruction-following capabilities

โš ๏ธ Not Recommended Configuration

  • ๐Ÿšซ TRAE Domestic Version - Built-in domestic models have sensitive word censorship issues that may interrupt expert debate processes, affecting user experience

๐Ÿ› ๏ธ Technical Architecture

Intelligent Division Principles:

  • ๐Ÿง  MCP Host-side LLM: Responsible for complex semantic analysis and intelligent generation
  • ๐Ÿ”ง MCP Server-side: Provides concise process control and data management

Dynamic Expert Generation Flow

flowchart TD
    A[๐Ÿค” Raise Question] --> B[๐Ÿง  Intelligent Analysis]
    B --> C[๐Ÿ‘ฅ Generate Candidates]
    C --> D[๐Ÿš€ Start Debate]
    
    A1[Ask system directly about any topic]
    B1[MCP Host-side LLM deeply analyzes question characteristics]
    C1[Dynamically create 3 most relevant experts]
    D1[Launch multi-round PK process]
    
    A -.-> A1
    B -.-> B1
    C -.-> C1
    D -.-> D1
    
    style A fill:#e1f5fe
    style B fill:#f3e5f5
    style C fill:#e8f5e8
    style D fill:#fff3e0

๐Ÿ”„ Debate Flow

Two Debate Modes:

๐Ÿš€ Batch Processing Mode (start_pk_session) - Default Recommended

  • โšก High Efficiency: Generate all expert answers in one round, saving about 60% time
  • ๐ŸŽฏ Use Cases: Rapidly obtain multi-perspective analysis, efficient decision support

๐Ÿ”„ Stepwise Mode (start_stepwise_pk_session) - Traditional Experience

  • ๐ŸŽญ Interactive: Experts speak sequentially, allowing real-time adjustment and deep exploration
  • ๐ŸŽฏ Use Cases: Deep contemplation, enjoying the complete debate process

4-Round Debate Flow:

flowchart TD
    A[๐Ÿค” Independent Thinking] --> B[โš”๏ธ Cross-Debate]
    B --> C[๐ŸŽฏ Final Positions]
    C --> D[๐Ÿง  Wisdom Synthesis]
    
    A1[Each expert independently analyzes the problem]
    B1[Experts mutually question and learn from each other]
    C1[Form their respective refined solutions]
    D1[Ultimate answer integrating all perspectives]
    
    A -.-> A1
    B -.-> B1
    C -.-> C1
    D -.-> D1
    
    B --> B2[Multi-round Interaction]
    B2 --> B
    
    style A fill:#e3f2fd
    style B fill:#fce4ec
    style C fill:#e8f5e8
    style D fill:#fff8e1
    style B2 fill:#f3e5f5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_guru_pk_mcp-1.2.4.tar.gz (65.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_guru_pk_mcp-1.2.4-py3-none-any.whl (73.5 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_guru_pk_mcp-1.2.4.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_guru_pk_mcp-1.2.4.tar.gz
Algorithm Hash digest
SHA256 a264673272106c4bd961bb959af27eec228251f0a50a2e27fa207398edb703de
MD5 1733ef4f67586ba80095ae8c43e43113
BLAKE2b-256 ffb8a771089603bbde90a17805f132331632b265466a17b81ce9ec5b1fff4ba1

See more details on using hashes here.

File details

Details for the file iflow_mcp_guru_pk_mcp-1.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_guru_pk_mcp-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5334954c9f2e4b7b0fcd817c455691396682aa77abefd432e831dae64591bde7
MD5 4787d4a0dc8a1582e0f75999477abe71
BLAKE2b-256 ddb260c7adbd82a25e8c3ed5e2a53c052bdaecf4d7179d65a4749f9c5dffee5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page