Skip to content

Bake CPU torch and MCP allowlist into Cloud Agent snapshots - #17

Merged
alex-16moro merged 2 commits into
mainfrom
cursor/env-torch-mcp-start-3eed
Sep 20, 2026
Merged

alex-16moro merged 2 commits into
mainfrom
cursor/env-torch-mcp-start-3eed

Conversation

@alex-16moro

@alex-16moro alex-16moro commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

The Configuration tab on snapshot bld-20260919-df62bfdd-806d-4125-8bb0-448a5615a04b is install-only (pip install -r requirements.txt && bash .cursor/install-docs-mcp.sh). That snapshot is what this Cloud environment still boots (gitSetup: reuse). start already landed on main via PR #15, but install still does not bake CPU torch/diffusers, does not self-test the docs MCP server, and does not allowlist the Cloud stdio command diffusers-docs-mcp.

This change:

  • Adds .cursor/cloud-install.sh (pyyaml, CPU torch, diffusers, MCP PATH shim, docs_mcp_server.py --selftest)
  • Points kit .cursor/environment.json install at that script; keeps start as the shim-only refresh
  • Mirrors the same install/start/allowlist on overlay/environment.json for fork launches
  • Allowlists stdio command diffusers-docs-mcp (does not register Hub HTTP)

Convention gate

N/A — no scheduler/model source changes.

Tests run

Local:

bash -n .cursor/cloud-install.sh
schema field check vs https://cursor.com/schemas/environment.schema.json
bash .cursor/cloud-install.sh  # torch 2.14.0+cpu, diffusers 0.40.0, MCP self-test OK

Draft builds of environment 69ccaac6-b427-11f1-bb68-864e54d14197:

Fresh-agent verify on that successful snapshot (cloud_requested_environment_build_id=bld-20260920-fa15e62f-77a9-4d4c-a333-e0e294ab6de6, branch cursor/env-torch-mcp-start-3eed): torch/diffusers import without pip, start script exit 0, MCP self-test OK.

Human judgment (not the gate)

  • Merging this is required before new Cloud Agents pick it up; draft builds never become the default snapshot
  • After merge, launch a new agent with dashboard stdio diffusers-docs-mcp (this running agent cannot reconnect MCP mid-run)
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 20, 2026 11:30
The Sept 19 snapshot this environment boots from only ran pip + the docs MCP shim.
New agents still had to install torch at runtime, and Cloud stdio had no allowlisted
PATH command. Snapshot install now runs cloud-install.sh; start only refreshes the shim.

Co-authored-by: ale93.moro <ale93.moro@gmail.com>
command -v missed the MCP shim because install shells do not have
$HOME/.local/bin on PATH. Export it and test the shim by absolute path.

Co-authored-by: ale93.moro <ale93.moro@gmail.com>
@alex-16moro
alex-16moro marked this pull request as ready for review September 20, 2026 11:35
@alex-16moro
alex-16moro merged commit a66ae31 into main Sep 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants