# Cursor

> Install the hosted dFlow MCP server in Cursor with a deeplink or the MCP URL.

Web page: /docs/mcp/cursor/

Cursor uses **remote HTTP MCP** with OAuth at runtime. No bearer token is required in the install config.

## MCP URL

```
https://k8s.dflow.sh/mcp
```

## Steps

1. **Copy the URL** (or use the dashboard deeplink below).
2. On **Dashboard → Agents → Connect MCP**, click **Add to Cursor** (the deeplink opens Cursor and registers `{ "url": "https://k8s.dflow.sh/mcp" }` with no token headers).
3. In Cursor, confirm the new MCP server. On first tool call, Cursor runs **OAuth Connect**.
4. **Sign in** to dFlow in the browser and approve scopes and a **workspace**. **Deploy is off by default** unless you tick Deploy on consent.
5. You are **done** when tools such as `whoami` succeed.

### Manual install

If the deeplink is unavailable, add a user MCP entry whose config is only the URL (no `Authorization` header). Cursor completes OAuth when it connects.

## Turn Deploy on later

Revoke the grant on **Dashboard → Agents → Connected agents**, reinstall the server in Cursor, and on consent enable **Deploy**.

## Troubleshooting

| Symptom | What to do |
| --- | --- |
| **401** | Reconnect: remove the MCP server in Cursor, add it again, and complete OAuth; or revoke and reconnect from the dashboard. |
| **Scope error** | Deploy was not granted. Reconnect with Deploy ticked on consent. |
| Deeplink does nothing | Paste the MCP URL into Cursor MCP settings manually and connect. |
