# Task Engine AI v0.3.8 - Updated MCP Configuration Templates

## 🚀 **Latest MCP Configuration for Task Engine AI v0.3.8**

These configurations include all the latest features and optimizations for the best Task Engine AI experience.

### **For Cursor IDE (.cursor/mcp.json)**

```json
{
  "mcpServers": {
    "task-engine-ai-core": {
      "command": "npx",
      "args": ["--package=task-engine-ai-core@0.3.8", "task-master-mcp"],
      "env": {
        "TASK_ENGINE_VERSION": "0.3.8",
        "TASK_ENGINE_ENVIRONMENT": "development",
        "TASK_ENGINE_DEBUG": "true",
        "TASK_ENGINE_LOG_LEVEL": "info",
        "MODEL": "claude-3-5-sonnet-20241022",
        "MAX_TOKENS": "64000",
        "TEMPERATURE": "0.2",
        "DEFAULT_SUBTASKS": "5",
        "DEFAULT_PRIORITY": "medium",
        "ENABLE_ACTIVE_AGENT_DETECTION": "true",
        "ENABLE_DIRECT_TASK_CREATION": "true",
        "SKIP_REDUNDANT_AI_GENERATION": "true",
        "USE_MODERN_FOLDER_STRUCTURE": "true",
        "FOLDER_NAME": ".task-engine",
        "LEGACY_COMPATIBILITY": "true",
        "AUTO_PROJECT_ROOT_DETECTION": "true",
        "ENABLE_TEMPLATE_SYSTEM": "true",
        "ENABLE_INTELLIGENT_INITIALIZATION": "true"
      }
    }
  }
}
```

### **For VS Code (.vscode/mcp.json)**

```json
{
  "servers": {
    "task-engine-ai-core": {
      "command": "npx",
      "args": ["--package=task-engine-ai-core@0.3.8", "task-master-mcp"],
      "env": {
        "TASK_ENGINE_VERSION": "0.3.8",
        "TASK_ENGINE_ENVIRONMENT": "development",
        "TASK_ENGINE_DEBUG": "true",
        "TASK_ENGINE_LOG_LEVEL": "info",
        "MODEL": "claude-3-5-sonnet-20241022",
        "MAX_TOKENS": "64000",
        "TEMPERATURE": "0.2",
        "DEFAULT_SUBTASKS": "5",
        "DEFAULT_PRIORITY": "medium",
        "ENABLE_ACTIVE_AGENT_DETECTION": "true",
        "ENABLE_DIRECT_TASK_CREATION": "true",
        "SKIP_REDUNDANT_AI_GENERATION": "true",
        "USE_MODERN_FOLDER_STRUCTURE": "true",
        "FOLDER_NAME": ".task-engine",
        "LEGACY_COMPATIBILITY": "true",
        "AUTO_PROJECT_ROOT_DETECTION": "true",
        "ENABLE_TEMPLATE_SYSTEM": "true",
        "ENABLE_INTELLIGENT_INITIALIZATION": "true"
      }
    }
  }
}
```

## 🔧 **Configuration Features Explained**

### **Core Settings**
- `TASK_ENGINE_VERSION`: "0.3.8" - Latest version with all fixes
- `TASK_ENGINE_ENVIRONMENT`: "development" - Enables debug features
- `TASK_ENGINE_DEBUG`: "true" - Detailed logging for troubleshooting
- `TASK_ENGINE_LOG_LEVEL`: "info" - Balanced logging level

### **AI Model Configuration**
- `MODEL`: "claude-3-5-sonnet-20241022" - Latest Claude model
- `MAX_TOKENS`: "64000" - Maximum context window
- `TEMPERATURE`: "0.2" - Balanced creativity vs consistency
- `DEFAULT_SUBTASKS`: "5" - Default number of subtasks to generate
- `DEFAULT_PRIORITY`: "medium" - Default task priority

### **New v0.3.8 Features**
- `ENABLE_ACTIVE_AGENT_DETECTION`: "true" - Detects when AI agent is present
- `ENABLE_DIRECT_TASK_CREATION`: "true" - Bypasses redundant AI generation
- `SKIP_REDUNDANT_AI_GENERATION`: "true" - Optimizes performance
- `USE_MODERN_FOLDER_STRUCTURE`: "true" - Uses .task-engine folder
- `FOLDER_NAME`: ".task-engine" - Modern folder structure
- `LEGACY_COMPATIBILITY`: "true" - Supports old .taskmaster folders
- `AUTO_PROJECT_ROOT_DETECTION`: "true" - Smart project root detection
- `ENABLE_TEMPLATE_SYSTEM`: "true" - Project-specific templates
- `ENABLE_INTELLIGENT_INITIALIZATION`: "true" - Smart project setup

## 🚀 **Quick Setup Instructions**

### **Method 1: Automatic Setup (Recommended)**
```bash
# Install/update to latest version
npm install -g task-engine-ai-core@0.3.8

# Navigate to your project
cd your-project

# Run automatic setup
npx --package=task-engine-ai-core@0.3.8 setup-mcp
```

### **Method 2: Manual Configuration**
1. Create the appropriate directory (`.cursor` or `.vscode`)
2. Copy the configuration above into `mcp.json`
3. Restart your IDE
4. Test with: "Show me my current tasks"

## 🔍 **Troubleshooting**

### **Common Issues**
- **"Configuration file not found"**: Run `setup-mcp` in your project root
- **"Could not determine executable"**: Update to v0.3.8 with the fixed binary
- **"No valid tasks found"**: The configuration will auto-initialize your project

### **Verification**
```bash
# Check version
npm list -g task-engine-ai-core

# Test setup command
npx --package=task-engine-ai-core@0.3.8 setup-mcp --help

# Verify MCP configuration
cat .cursor/mcp.json  # or .vscode/mcp.json
```

---

**Powered by Task Engine AI Core v0.3.8** 🚀
