Skip to content

Set up Cursor Cloud dev environment + AGENTS.md instructions - #1

Draft
removecode wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-cf1b
Draft

removecode wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-cf1b

Conversation

@removecode

Copy link
Copy Markdown
Owner

What

Sets up the development environment for the XPipe (Ctrip Redis multi-DC) codebase in Cursor Cloud and documents it for future agents.

  • Adds AGENTS.md with a ## Cursor Cloud specific instructions section covering build, internal-artifact bootstrap, tests, and how to run each dev service.
  • Configures the startup update script (Maven install if missing + populate ~/.m2 with internal Ctrip artifacts from the mvn_repo branch). The update script lives in the Cursor environment config, not in the repo.

Note: AGENTS.md is listed in .gitignore (line 60), so it was force-added here. Please decide whether to keep it tracked — merging it lets future cloud agents reuse these notes.

Environment verified

  • JDK 21 (preinstalled), Maven 3.9.9 installed.
  • Internal Ctrip dependencies bootstrapped into ~/.m2 via the mvn_repo branch install.sh (not on Maven Central).
  • ✅ Build: mvn clean install -Plocal -DskipTests — all 13 modules BUILD SUCCESS.
  • ✅ Tests: mvn -o test -Plocal -pl redis/redis-proxy-client — 34 tests, 0 failures.
  • ✅ Ran the Console web app on :8080 via AppTest#startConsole8080 (H2, -DforkCount=0) and performed a hello-world action: created a Data Center via POST /api/dc and verified it persists in the UI (#/dc_list) and API (/api/dc).

Demo

xpipe_console_dc_demo.mp4

Console cluster list
DC list showing created cloud-demo DC

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Document how to build (mvn clean install -Plocal), populate internal
Ctrip artifacts from the mvn_repo branch, run tests, and launch dev
services (Console/MetaServer/Keeper/Proxy via their AppTest with H2 and
-DforkCount=0). Note is force-added because AGENTS.md is gitignored.

Co-authored-by: daydayup <removecode@users.noreply.github.com>
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