# Connect Cursor to Aisenhour

> Connect Cursor code editor to your matrix

Add Aisenhour as an assistant server in Cursor so your editor assistant can read delegated development tasks, report progress, and check off checklist steps as you code.

*Not yet verified*

## Setup Steps

### Step 1: Connect with URL and browser sign-in (Recommended)

In your project workspace root, create or edit `.cursor/mcp.json` (or configure via Cursor Settings > Features > MCP > Add new MCP server):

After saving, click "Connect" or "Sign in" next to Aisenhour in Cursor Settings > Features > MCP. Cursor opens your browser for one-click authorization and redirects back via the secure `cursor://` callback protocol.

```json
{
  "mcpServers": {
    "aisenhour": {
      "url": "https://aisenhour.com/api/mcp"
    }
  }
}
```

### Step 2: Fallback: Connect with an API key

If you are working in a headless or containerized environment where browser sign-in is unavailable, create an agent key in Aisenhour Settings > My agents and add the Authorization header to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "aisenhour": {
      "url": "https://aisenhour.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_AH_LIVE_KEY"
      }
    }
  }
}
```

### Step 3: Test connection in Cursor composer

Open Cursor composer (Cmd+I or Ctrl+I) or chat panel. The Aisenhour tools will appear with active status.

## Your First Handoff Prompt

Paste this prompt into Cursor to complete your first handoff:

```text
Read my Aisenhour Delegate queue for active tasks, or capture a new task for me with assignTo: "me". Propose a step-by-step checklist before touching any code.
```

This prompt lets your code editor assistant read delegated tasks or capture tasks for you, and propose a checklist before touching any code.

## What Your Assistant Can See

- Tasks in your Delegate queue assigned to the assistant or marked with agent pickup
- Active board tasks across quadrants when whole-board reading is enabled
- Checklist subtasks, deadlines, and requirements on delegated tasks
- Task execution notes and progress logs

## What Stays Private

- Personal tasks in other quadrants that have not been handed off (unless whole-board reading is enabled)
- Your account credentials, billing details, or credit card info
- Tasks belonging to other workspaces or team members

## Plan Access and Pricing

Connecting an external assistant is free on both Free and Pro plans (Free includes up to 25 active tasks, Pro includes unlimited active tasks). Cursor runs on your own Cursor, Anthropic, or OpenAI subscription tokens.

## Troubleshooting

### Configuration works in another editor or terminal, but not in Cursor

Cursor expects `"url"` in `.cursor/mcp.json`, whereas Google Antigravity expects `"serverUrl"` in `~/.gemini/config/mcp_config.json` and `claude` CLI stores its own config in `~/.claude.json`. Each assistant app keeps a separate connector list.

### Browser sign-in did not finish or needs to be redone

Open Cursor Settings > Features > MCP, toggle off or disconnect `aisenhour`, and click Connect / Sign in again to restart browser authorization. In headless or remote workspaces without a browser callback, use the API key fallback in `.cursor/mcp.json`.

### Unauthorized errors after rotating or revoking access

If you revoked or rotated the assistant in Aisenhour Settings > My agents, reconnect in Cursor Settings > Features > MCP (for browser sign-in) or paste your newly generated `ah_live_...` key into `"headers"` in `.cursor/mcp.json`.

## Disconnecting or Rotating Access

You can revoke or rotate this assistant's access at any time in Aisenhour Settings > My agents. Revoking an agent immediately invalidates all OAuth tokens and denies subsequent requests from Cursor.
