# 🎯 Cursor AI Configuration Guide

## Step-by-Step Setup

### 1. Open Cursor Settings
- Press `Cmd + ,` (Mac) or `Ctrl + ,` (Windows/Linux)
- Navigate to **MCP** section in the left sidebar

### 2. Add Enhanced Thinking Server

Click **"+ Add New MCP Server"** and fill in:

**Name:** `Enhanced Thinking`
**Command:** `npx`
**Args:** `-y enhanced-thinking-mcp`

Or manually add to your `mcp.json`:

```json
{
  "mcpServers": {
    "enhanced-thinking": {
      "command": "npx",
      "args": ["-y", "enhanced-thinking-mcp"]
    }
  }
}
```

### 3. Restart Cursor
- **Important:** Completely quit and restart Cursor for MCP changes to take effect
- Don't just reload - fully quit the application

### 4. Verify Installation
- Go to Cursor Settings → MCP
- You should see "Enhanced Thinking" listed as active
- Status should show "Connected" or "Running"

## 🎨 Using Enhanced Thinking in Cursor

### Basic Usage
Ask Cursor:
> "Use enhanced thinking to help me design a database schema for an e-commerce platform"

### Advanced Features
> "Use enhanced thinking with confidence tracking to analyze this business problem"

> "Use enhanced thinking to explore alternative solutions, and branch when you find interesting paths"

> "Start an enhanced thinking session to plan my software architecture"

### Session Management
> "Show me thinking analytics for this session"

> "Reset the thinking session and start fresh"

## 🔍 Troubleshooting

### Server Not Starting
1. Check Node.js version: `node --version` (needs 18+)
2. Try manual test: `npx -y enhanced-thinking-mcp`
3. Look at Cursor's output panel for error messages

### Tools Not Available
1. Verify server status in MCP settings shows "Connected"
2. Try asking explicitly: "Use the enhancedthinking tool"
3. Restart Cursor completely

### Permission Issues
- On Mac/Linux: Ensure npx is in your PATH
- On Windows: Use full paths if needed
- Try running as administrator if necessary

## 💡 Pro Tips

1. **Be Explicit:** Ask Cursor to "use enhanced thinking" rather than hoping it discovers the tool

2. **Use Confidence:** Include confidence levels in your thinking requests

3. **Explore Branches:** Ask for alternative approaches when stuck

4. **Check Analytics:** Review session analytics to understand your thinking patterns

5. **Reset When Needed:** Start fresh sessions for unrelated problems

## 📱 Cursor Settings Location

**macOS:** `~/Library/Application Support/Cursor/User/mcp.json`
**Windows:** `%APPDATA%\Cursor\User\mcp.json`
**Linux:** `~/.config/Cursor/User/mcp.json`

## ⚙️ Advanced Configuration

### Environment Variables
```json
{
  "mcpServers": {
    "enhanced-thinking": {
      "command": "npx",
      "args": ["-y", "enhanced-thinking-mcp"],
      "env": {
        "DISABLE_THOUGHT_LOGGING": "false"
      }
    }
  }
}
```

### Multiple Servers
```json
{
  "mcpServers": {
    "enhanced-thinking": {
      "command": "npx",
      "args": ["-y", "enhanced-thinking-mcp"]
    },
    "enhanced-thinking-dev": {
      "command": "node",
      "args": ["/path/to/local/enhanced-thinking-mcp/dist/index.js"]
    }
  }
}
```

Happy thinking! 🧠✨ 