# Cursor integrations: cloud agents and agent runs

> Create an agent, send a follow-up prompt and create an environment in Cursor. Connect Cursor to the rest of your developer tools stack with Tray.ai.

**Canonical page:** https://tray.ai/connectors/cursor-integrations/
**Categories:** Developer tools
**Connects through:** HTTP Connector

## Overview

Cursor is an AI code editor and coding agent platform that writes, edits and reviews code, with cloud agents that work on repositories in the background. Tray.ai connects to Cursor through the HTTP Connector, so your workflows can call the Cursor API alongside the rest of your stack.

## Use cases

### Cloud agents

Read, create, and delete cloud agents in Cursor from any Tray.ai workflow. The Cursor API covers calls such as create an agent and list agents.

- Create an agent
- List agents
- Get an agent

### Agent runs

Read, create, and delete agent runs in Cursor from any Tray.ai workflow. The Cursor API covers calls such as send a follow-up prompt and list agent runs.

- Send a follow-up prompt
- List agent runs
- Get run status

### Environments

Read, create, update, and delete environments in Cursor from any Tray.ai workflow. The Cursor API covers calls such as create an environment and list environments.

- Create an environment
- List environments
- Update an environment

### Secrets

Read, create, and delete secrets in Cursor from any Tray.ai workflow. The Cursor API covers calls such as list secrets and create or update a secret.

- List secrets
- Create or update a secret
- Delete a secret

## Challenges Tray.ai solves

### Keeping Cursor credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Cursor credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Cursor API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Cursor API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Cursor?

Yes. Tray.ai connects to Cursor through the HTTP Connector, which calls the Cursor API directly. Any call the Cursor API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with Cursor?

The Cursor API uses basic authentication and a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated Cursor connector?

Cursor runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Cursor connector from the Cursor API.

## Learn more

- Intelligent Integration: https://tray.ai/platform/intelligent-ipaas/
- Merlin Agent Builder: https://tray.ai/platform/merlin-agent-builder/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
