Cursor Integration

Connect TengineAI with Cursor for AI-powered development.

Prerequisites

  • Cursor IDE installed
  • TengineAI account and API key
  • Node.js environment

Setup

Step 1: Install MCP Support

  1. Open Cursor
  2. Go to Settings → Extensions
  3. Install the MCP (Model Context Protocol) extension

Step 2: Configure TengineAI

  1. Open Cursor Settings
  2. Navigate to MCP Configuration
  3. Add TengineAI server:
{
  "mcp.servers": {
    "tengineai": {
      "command": "npx",
      "args": ["@tengineai/mcp-server"],
      "env": {
        "TENGINE_API_KEY": "your-api-key-here",
        "TENGINE_SERVER_URL": "https://app.tengine.ai"
      }
    }
  }
}

Step 3: Restart Cursor

Restart Cursor to apply the configuration.

Features

With TengineAI integrated, you can:

  • Smart Code Analysis: Get AI-powered code insights
  • Project Management: Manage TengineAI projects directly
  • API Integration: Set up and manage API connections
  • Real-time Analytics: Monitor usage and performance

Usage

Command Palette

Access TengineAI features via Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows):

  • TengineAI: Create New Project
  • TengineAI: Generate API Key
  • TengineAI: View Project Analytics
  • TengineAI: Setup OAuth Integration

Chat Integration

Ask Cursor's AI about your TengineAI projects:

"Show me the analytics for my TengineAI project"
"Help me set up a new API integration"
"Generate a new API key with read permissions"

Advanced Configuration

Custom Settings

{
  "mcp.servers": {
    "tengineai": {
      "command": "npx",
      "args": ["@tengineai/mcp-server", "--config", "custom-config.json"],
      "env": {
        "TENGINE_API_KEY": "your-api-key-here",
        "TENGINE_DEBUG": "true",
        "TENGINE_LOG_LEVEL": "info"
      }
    }
  }
}

Troubleshooting

Debug Mode

Enable debug logging:

{
  "mcp.debug": true,
  "mcp.logLevel": "debug"
}

Common Issues

  • Extension Not Found: Ensure MCP extension is installed
  • Authentication Error: Verify API key is correct
  • Connection Failed: Check network connectivity

Next Steps