Skip to content

Add Cloud Agent dev environment config - #3165

Draft
fahreddinozcan wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-5b21
Draft

Add Cloud Agent dev environment config#3165
fahreddinozcan wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-5b21

Conversation

@fahreddinozcan

Copy link
Copy Markdown
Collaborator

Summary

Sets up the Cursor Cloud Agent development environment for the Context7 monorepo by adding .cursor/environment.json.

The default Cursor image already provides Node 22 and pnpm 10, so no custom Dockerfile is needed. The config:

  • install: pnpm install --frozen-lockfile && pnpm build — installs workspace dependencies and builds all packages (sdk, mcp, cli, opencode, pi, tools-ai-sdk).
  • terminals: runs the Context7 MCP server over HTTP on port 3000 (node packages/mcp/dist/index.js --transport http --port 3000) so it's available and inspectable when an agent starts.
  • ports: exposes port 3000.

Also adds a targeted .gitignore exception so .cursor/environment.json is tracked while the rest of .cursor stays ignored.

Verification

Ran end-to-end in the environment:

  • pnpm install --frozen-lockfile — success (Node v22.14.0, pnpm 10.33.3)
  • pnpm build — all 6 packages built
  • pnpm typecheck — clean
  • pnpm lint:check — clean
  • pnpm test — 447 tests pass (368 CLI, 74 MCP, 4 pi, 11 tools-ai-sdk unit). The 5 failing tools-ai-sdk tests are integration tests that call a live AWS Bedrock model and require AWS_REGION + AWS credentials; they are unrelated to environment setup.
  • MCP server: GET /ping returns {"status":"ok","message":"pong"} and the initialize handshake returns serverInfo for Context7 v4.0.6.
  • CLI: ctx7 --version0.5.11, help/commands render correctly.
Open in Web Open in Cursor 

Add .cursor/environment.json defining install (pnpm install + build) and a
terminal that runs the Context7 MCP server over HTTP on port 3000. Adjust
.gitignore to track the environment config while keeping the rest of .cursor
ignored.

Co-authored-by: Fahreddin Özcan <fahreddinozcan@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