CursorInvestigationConfig
ts
type CursorInvestigationConfig = object;Cursor Cloud Agents: starts a cloud agent and polls its run until it finishes. Supports mcpServers but not investigationTools.
Properties
provider
ts
provider: "cursor";apiKey
ts
apiKey: string;Sent with Basic auth, or as is if it starts with Bearer .
baseURL?
ts
optional baseURL?: string;Default Value
'https://api.cursor.com'
model?
ts
optional model?:
| string
| {
id: string;
params?: object[];
};Model id, or an id with model parameters; Cursor's default model when omitted.
Union Members
string
Type Literal
ts
{
id: string;
params?: object[];
}id
ts
id: string;Model id.
params?
ts
optional params?: object[];Passed to Cursor's Create Agent request as model.params.
repository?
ts
optional repository?: object;Repository the agent checks out; without one, it only sees the prompt and its MCP servers.
url
ts
url: string;Repository URL, e.g. 'https://github.com/acme/payments'.
startingRef?
ts
optional startingRef?: string;Branch, tag or commit to check out instead of the default branch.
prUrl?
ts
optional prUrl?: string;Pull request to work from.
pollIntervalMs?
ts
optional pollIntervalMs?: number;How often the run's status is checked.
Default Value
2000
fetch?
ts
optional fetch?: typeof fetch;Custom fetch implementation, used instead of the global one (proxying, custom auth, logging, retries, ...).