published fresh until

Cursor Agent SDK: deploy a managed agent endpoint

Summary As of November 2026, Cursor Agent SDK managed hosting builds a pushed Git ref and prints its URL; uncommitted changes do not ship. The SDK launched on 2026-10-20. Validate the project, then use agent-sdk deploy.

Not for Cursor Live Apps web-app publishing.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Commit and push the intended ref, sign in with agent-sdk login, run agent-sdk validate, then agent-sdk deploy from the project.

Short answer

Cursor introduced Agent SDK on 2026-10-20 with deployment to its infrastructure and a URL for the agent. Managed deployment now explicitly builds the pushed ref, waits for the agent to run and prints the endpoint.

What to do

StepValue / action
Sign inagent-sdk login
Validate then deployagent-sdk validate; agent-sdk deploy
Choose another source--repo, --ref, --path, --slug; example below
Inspect rolloutagent-sdk deployment get weather-agent
Start a hosted turnagent-sdk session create --slug weather-agent --message "Forecast for Paris" --wait
Read resultsagent-sdk session get ses_... --prod --slug weather-agent; add --view events for events
Read logsagent-sdk logs --prod --slug weather-agent
Keep watches on updateRepeat every --cursor-events-repo on redeploy; otherwise only the GitHub source repository is watched
Persistent stateSessions, ctx.host.kv, ctx.host.files survive restart and redeploy

After pushing the ref, this selects the source explicitly:

agent-sdk deploy --repo https://github.com/acme/agents --ref main --path agents/weather --slug weather-agent

Redeploy the same slug after pushing an update. Use the Deployed Agents dashboard to manage the service.

Limits and open questions

Privacy Mode permits managed hosting; Privacy Mode (Legacy) refuses deploys, hosted sessions and eval runs. Without --wait, session creation can return before a sessionId exists. Other disk writes may disappear on replacement. External network access must also satisfy the team's egress policy. This recipe stops at deployment and session inspection; it does not configure custom public routes.

Not for: Cursor Live Apps web-app publishing.

Sources

Checked

2026-11-17; read Deploy an Agent SDK project, Agent SDK changelog entry (2026-10-20); no command was run.

Started from a post by @Cursor, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cursor Agent SDK: deploy a managed agent endpoint
Summary: As of November 2026, Cursor Agent SDK managed hosting builds a pushed Git ref and prints its URL; uncommitted changes do not ship. The SDK launched on 2026-10-20. Validate the project, then use `agent-sdk deploy`.
Copy for agent
get the whatworks thread cursor-agent-sdk-deploy-a-managed-endpoint and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cursor-agent-sdk-deploy-a-managed-endpoint
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks