Skip to content

Commit 01b2f80

Browse files
feat(cursor): add cursor block and tools (#2245)
* fix(autolayout): reduce horizontal spacing in autolayout * feat(cursor): add cursor cloud agents tools * address greptile prompt
1 parent d200f66 commit 01b2f80

File tree

18 files changed

+1378
-88
lines changed

18 files changed

+1378
-88
lines changed

apps/docs/components/icons.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4121,3 +4121,11 @@ export function GoogleGroupsIcon(props: SVGProps<SVGSVGElement>) {
41214121
</svg>
41224122
)
41234123
}
4124+
4125+
export function CursorIcon(props: SVGProps<SVGSVGElement>) {
4126+
return (
4127+
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='0 0 546 546' fill='currentColor'>
4128+
<path d='m466.383 137.073-206.469-119.2034c-6.63-3.8287-14.811-3.8287-21.441 0l-206.4586 119.2034c-5.5734 3.218-9.0144 9.169-9.0144 15.615v240.375c0 6.436 3.441 12.397 9.0144 15.615l206.4686 119.203c6.63 3.829 14.811 3.829 21.441 0l206.468-119.203c5.574-3.218 9.015-9.17 9.015-15.615v-240.375c0-6.436-3.441-12.397-9.015-15.615zm-12.969 25.25-199.316 345.223c-1.347 2.326-4.904 1.376-4.904-1.319v-226.048c0-4.517-2.414-8.695-6.33-10.963l-195.7577-113.019c-2.3263-1.347-1.3764-4.905 1.3182-4.905h398.6305c5.661 0 9.199 6.136 6.368 11.041h-.009z' />
4129+
</svg>
4130+
)
4131+
}

apps/docs/components/ui/icon-mapping.ts

Lines changed: 90 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
CalendlyIcon,
1616
ClayIcon,
1717
ConfluenceIcon,
18+
CursorIcon,
1819
DatadogIcon,
1920
DiscordIcon,
2021
DocumentIcon,
@@ -115,113 +116,114 @@ import {
115116
type IconComponent = ComponentType<SVGProps<SVGSVGElement>>
116117

117118
export const blockTypeToIconMap: Record<string, IconComponent> = {
118-
zoom: ZoomIcon,
119-
zep: ZepIcon,
120-
zendesk: ZendeskIcon,
121-
youtube: YouTubeIcon,
122-
x: xIcon,
123-
wordpress: WordpressIcon,
124-
wikipedia: WikipediaIcon,
125-
whatsapp: WhatsAppIcon,
126-
webflow: WebflowIcon,
127-
wealthbox: WealthboxIcon,
128-
vision: EyeIcon,
129-
video_generator: VideoIcon,
130-
typeform: TypeformIcon,
119+
calendly: CalendlyIcon,
120+
mailchimp: MailchimpIcon,
121+
postgresql: PostgresIcon,
131122
twilio_voice: TwilioIcon,
132-
twilio_sms: TwilioIcon,
133-
tts: TTSIcon,
134-
trello: TrelloIcon,
123+
elasticsearch: ElasticsearchIcon,
124+
rds: RDSIcon,
135125
translate: TranslateIcon,
136-
thinking: BrainIcon,
137-
telegram: TelegramIcon,
126+
dynamodb: DynamoDBIcon,
127+
wordpress: WordpressIcon,
138128
tavily: TavilyIcon,
139-
supabase: SupabaseIcon,
140-
stt: STTIcon,
141-
stripe: StripeIcon,
129+
zendesk: ZendeskIcon,
142130
stagehand_agent: StagehandIcon,
143-
stagehand: StagehandIcon,
144-
ssh: SshIcon,
145-
smtp: SmtpIcon,
146-
slack: SlackIcon,
131+
youtube: YouTubeIcon,
132+
supabase: SupabaseIcon,
133+
vision: EyeIcon,
134+
zoom: ZoomIcon,
135+
confluence: ConfluenceIcon,
136+
arxiv: ArxivIcon,
137+
webflow: WebflowIcon,
138+
pinecone: PineconeIcon,
139+
apollo: ApolloIcon,
140+
whatsapp: WhatsAppIcon,
141+
typeform: TypeformIcon,
142+
qdrant: QdrantIcon,
147143
shopify: ShopifyIcon,
148-
sharepoint: MicrosoftSharepointIcon,
144+
asana: AsanaIcon,
145+
apify: ApifyIcon,
146+
memory: BrainIcon,
147+
gitlab: GitLabIcon,
148+
polymarket: PolymarketIcon,
149149
serper: SerperIcon,
150-
sentry: SentryIcon,
151-
sendgrid: SendgridIcon,
152-
search: SearchIcon,
150+
linear: LinearIcon,
151+
exa: ExaAIIcon,
152+
telegram: TelegramIcon,
153153
salesforce: SalesforceIcon,
154-
s3: S3Icon,
155-
resend: ResendIcon,
156-
reddit: RedditIcon,
157-
rds: RDSIcon,
158-
qdrant: QdrantIcon,
154+
hubspot: HubspotIcon,
155+
hunter: HunterIOIcon,
156+
linkup: LinkupIcon,
157+
mongodb: MongoDBIcon,
159158
pylon: PylonIcon,
159+
airtable: AirtableIcon,
160+
discord: DiscordIcon,
161+
ahrefs: AhrefsIcon,
162+
neo4j: Neo4jIcon,
163+
tts: TTSIcon,
164+
jina: JinaAIIcon,
165+
google_docs: GoogleDocsIcon,
166+
perplexity: PerplexityIcon,
167+
google_search: GoogleIcon,
168+
x: xIcon,
169+
kalshi: KalshiIcon,
170+
google_calendar: GoogleCalendarIcon,
171+
zep: ZepIcon,
160172
posthog: PosthogIcon,
161-
postgresql: PostgresIcon,
162-
polymarket: PolymarketIcon,
173+
grafana: GrafanaIcon,
174+
google_slides: GoogleSlidesIcon,
175+
microsoft_planner: MicrosoftPlannerIcon,
176+
thinking: BrainIcon,
163177
pipedrive: PipedriveIcon,
164-
pinecone: PineconeIcon,
165-
perplexity: PerplexityIcon,
166-
parallel_ai: ParallelIcon,
167-
outlook: OutlookIcon,
178+
dropbox: DropboxIcon,
179+
stagehand: StagehandIcon,
180+
google_forms: GoogleFormsIcon,
181+
file: DocumentIcon,
182+
mistral_parse: MistralIcon,
183+
gmail: GmailIcon,
168184
openai: OpenAIIcon,
185+
outlook: OutlookIcon,
186+
incidentio: IncidentioIcon,
169187
onedrive: MicrosoftOneDriveIcon,
188+
resend: ResendIcon,
189+
google_vault: GoogleVaultIcon,
190+
sharepoint: MicrosoftSharepointIcon,
191+
huggingface: HuggingFaceIcon,
192+
sendgrid: SendgridIcon,
193+
video_generator: VideoIcon,
194+
smtp: SmtpIcon,
195+
google_groups: GoogleGroupsIcon,
196+
mailgun: MailgunIcon,
197+
clay: ClayIcon,
198+
jira: JiraIcon,
199+
search: SearchIcon,
200+
linkedin: LinkedInIcon,
201+
wealthbox: WealthboxIcon,
170202
notion: NotionIcon,
171-
neo4j: Neo4jIcon,
172-
mysql: MySQLIcon,
173-
mongodb: MongoDBIcon,
174-
mistral_parse: MistralIcon,
203+
elevenlabs: ElevenLabsIcon,
175204
microsoft_teams: MicrosoftTeamsIcon,
176-
microsoft_planner: MicrosoftPlannerIcon,
177-
microsoft_excel: MicrosoftExcelIcon,
178-
memory: BrainIcon,
205+
github: GithubIcon,
206+
ssh: SshIcon,
207+
google_drive: GoogleDriveIcon,
208+
sentry: SentryIcon,
209+
reddit: RedditIcon,
210+
parallel_ai: ParallelIcon,
211+
stripe: StripeIcon,
212+
s3: S3Icon,
213+
trello: TrelloIcon,
179214
mem0: Mem0Icon,
180-
mailgun: MailgunIcon,
181-
mailchimp: MailchimpIcon,
182-
linkup: LinkupIcon,
183-
linkedin: LinkedInIcon,
184-
linear: LinearIcon,
185215
knowledge: PackageSearchIcon,
186-
kalshi: KalshiIcon,
187-
jira: JiraIcon,
188-
jina: JinaAIIcon,
189216
intercom: IntercomIcon,
190-
incidentio: IncidentioIcon,
217+
twilio_sms: TwilioIcon,
218+
slack: SlackIcon,
219+
datadog: DatadogIcon,
220+
microsoft_excel: MicrosoftExcelIcon,
191221
image_generator: ImageIcon,
192-
hunter: HunterIOIcon,
193-
huggingface: HuggingFaceIcon,
194-
hubspot: HubspotIcon,
195-
grafana: GrafanaIcon,
196-
google_vault: GoogleVaultIcon,
197-
google_slides: GoogleSlidesIcon,
198222
google_sheets: GoogleSheetsIcon,
199-
google_groups: GoogleGroupsIcon,
200-
google_forms: GoogleFormsIcon,
201-
google_drive: GoogleDriveIcon,
202-
google_docs: GoogleDocsIcon,
203-
google_calendar: GoogleCalendarIcon,
204-
google_search: GoogleIcon,
205-
gmail: GmailIcon,
206-
gitlab: GitLabIcon,
207-
github: GithubIcon,
223+
wikipedia: WikipediaIcon,
224+
cursor: CursorIcon,
208225
firecrawl: FirecrawlIcon,
209-
file: DocumentIcon,
210-
exa: ExaAIIcon,
211-
elevenlabs: ElevenLabsIcon,
212-
elasticsearch: ElasticsearchIcon,
213-
dynamodb: DynamoDBIcon,
214-
dropbox: DropboxIcon,
215-
discord: DiscordIcon,
216-
datadog: DatadogIcon,
217-
confluence: ConfluenceIcon,
218-
clay: ClayIcon,
219-
calendly: CalendlyIcon,
226+
mysql: MySQLIcon,
220227
browser_use: BrowserUseIcon,
221-
asana: AsanaIcon,
222-
arxiv: ArxivIcon,
223-
apollo: ApolloIcon,
224-
apify: ApifyIcon,
225-
airtable: AirtableIcon,
226-
ahrefs: AhrefsIcon,
228+
stt: STTIcon,
227229
}
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
---
2+
title: Cursor
3+
description: Launch and manage Cursor cloud agents to work on GitHub repositories
4+
---
5+
6+
import { BlockInfoCard } from "@/components/ui/block-info-card"
7+
8+
<BlockInfoCard
9+
type="cursor"
10+
color="#1E1E1E"
11+
/>
12+
13+
## Usage Instructions
14+
15+
Interact with Cursor Cloud Agents API to launch AI agents that can work on your GitHub repositories. Supports launching agents, adding follow-up instructions, checking status, viewing conversations, and managing agent lifecycle.
16+
17+
18+
19+
## Tools
20+
21+
### `cursor_list_agents`
22+
23+
List all cloud agents for the authenticated user with optional pagination.
24+
25+
#### Input
26+
27+
| Parameter | Type | Required | Description |
28+
| --------- | ---- | -------- | ----------- |
29+
| `apiKey` | string | Yes | Cursor API key |
30+
| `limit` | number | No | Number of agents to return \(default: 20, max: 100\) |
31+
| `cursor` | string | No | Pagination cursor from previous response |
32+
33+
#### Output
34+
35+
| Parameter | Type | Description |
36+
| --------- | ---- | ----------- |
37+
| `content` | string | Human-readable list of agents |
38+
| `metadata` | object | Agent list metadata |
39+
40+
### `cursor_get_agent`
41+
42+
Retrieve the current status and results of a cloud agent.
43+
44+
#### Input
45+
46+
| Parameter | Type | Required | Description |
47+
| --------- | ---- | -------- | ----------- |
48+
| `apiKey` | string | Yes | Cursor API key |
49+
| `agentId` | string | Yes | Unique identifier for the cloud agent \(e.g., bc_abc123\) |
50+
51+
#### Output
52+
53+
| Parameter | Type | Description |
54+
| --------- | ---- | ----------- |
55+
| `content` | string | Human-readable agent details |
56+
| `metadata` | object | Agent metadata |
57+
58+
### `cursor_get_conversation`
59+
60+
Retrieve the conversation history of a cloud agent, including all user prompts and assistant responses.
61+
62+
#### Input
63+
64+
| Parameter | Type | Required | Description |
65+
| --------- | ---- | -------- | ----------- |
66+
| `apiKey` | string | Yes | Cursor API key |
67+
| `agentId` | string | Yes | Unique identifier for the cloud agent \(e.g., bc_abc123\) |
68+
69+
#### Output
70+
71+
| Parameter | Type | Description |
72+
| --------- | ---- | ----------- |
73+
| `content` | string | Human-readable conversation history |
74+
| `metadata` | object | Conversation metadata |
75+
76+
### `cursor_launch_agent`
77+
78+
Start a new cloud agent to work on a GitHub repository with the given instructions.
79+
80+
#### Input
81+
82+
| Parameter | Type | Required | Description |
83+
| --------- | ---- | -------- | ----------- |
84+
| `apiKey` | string | Yes | Cursor API key |
85+
| `repository` | string | Yes | GitHub repository URL \(e.g., https://github.com/your-org/your-repo\) |
86+
| `ref` | string | No | Branch, tag, or commit to work from \(defaults to default branch\) |
87+
| `promptText` | string | Yes | The instruction text for the agent |
88+
| `promptImages` | string | No | JSON array of image objects with base64 data and dimensions |
89+
| `model` | string | No | Model to use \(leave empty for auto-selection\) |
90+
| `branchName` | string | No | Custom branch name for the agent to use |
91+
| `autoCreatePr` | boolean | No | Automatically create a PR when the agent finishes |
92+
| `openAsCursorGithubApp` | boolean | No | Open the PR as the Cursor GitHub App |
93+
| `skipReviewerRequest` | boolean | No | Skip requesting reviewers on the PR |
94+
95+
#### Output
96+
97+
| Parameter | Type | Description |
98+
| --------- | ---- | ----------- |
99+
| `content` | string | Success message with agent details |
100+
| `metadata` | object | Launch result metadata |
101+
102+
### `cursor_add_followup`
103+
104+
Add a follow-up instruction to an existing cloud agent.
105+
106+
#### Input
107+
108+
| Parameter | Type | Required | Description |
109+
| --------- | ---- | -------- | ----------- |
110+
| `apiKey` | string | Yes | Cursor API key |
111+
| `agentId` | string | Yes | Unique identifier for the cloud agent \(e.g., bc_abc123\) |
112+
| `promptText` | string | Yes | The follow-up instruction text for the agent |
113+
| `promptImages` | string | No | JSON array of image objects with base64 data and dimensions \(max 5\) |
114+
115+
#### Output
116+
117+
| Parameter | Type | Description |
118+
| --------- | ---- | ----------- |
119+
| `content` | string | Success message |
120+
| `metadata` | object | Result metadata |
121+
122+
### `cursor_stop_agent`
123+
124+
Stop a running cloud agent. This pauses the agent without deleting it.
125+
126+
#### Input
127+
128+
| Parameter | Type | Required | Description |
129+
| --------- | ---- | -------- | ----------- |
130+
| `apiKey` | string | Yes | Cursor API key |
131+
| `agentId` | string | Yes | Unique identifier for the cloud agent \(e.g., bc_abc123\) |
132+
133+
#### Output
134+
135+
| Parameter | Type | Description |
136+
| --------- | ---- | ----------- |
137+
| `content` | string | Success message |
138+
| `metadata` | object | Result metadata |
139+
140+
### `cursor_delete_agent`
141+
142+
Permanently delete a cloud agent. This action cannot be undone.
143+
144+
#### Input
145+
146+
| Parameter | Type | Required | Description |
147+
| --------- | ---- | -------- | ----------- |
148+
| `apiKey` | string | Yes | Cursor API key |
149+
| `agentId` | string | Yes | Unique identifier for the cloud agent \(e.g., bc_abc123\) |
150+
151+
#### Output
152+
153+
| Parameter | Type | Description |
154+
| --------- | ---- | ----------- |
155+
| `content` | string | Success message |
156+
| `metadata` | object | Result metadata |
157+
158+
159+
160+
## Notes
161+
162+
- Category: `tools`
163+
- Type: `cursor`

apps/docs/content/docs/en/tools/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"calendly",
1212
"clay",
1313
"confluence",
14+
"cursor",
1415
"datadog",
1516
"discord",
1617
"dropbox",

0 commit comments

Comments
 (0)