Add Cloud Agent dev environment config - #3165
Draft
fahreddinozcan wants to merge 1 commit into
Draft
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 port3000(node packages/mcp/dist/index.js --transport http --port 3000) so it's available and inspectable when an agent starts.ports: exposes port3000.Also adds a targeted
.gitignoreexception so.cursor/environment.jsonis tracked while the rest of.cursorstays 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 builtpnpm typecheck— cleanpnpm lint:check— cleanpnpm test— 447 tests pass (368 CLI, 74 MCP, 4 pi, 11 tools-ai-sdk unit). The 5 failingtools-ai-sdktests are integration tests that call a live AWS Bedrock model and requireAWS_REGION+ AWS credentials; they are unrelated to environment setup.GET /pingreturns{"status":"ok","message":"pong"}and theinitializehandshake returnsserverInfofor Context7 v4.0.6.ctx7 --version→0.5.11, help/commands render correctly.