Skip to content

docs: add Cursor Cloud specific instructions to AGENTS.md - #36

Merged
ulissesferreira merged 1 commit into
mainfrom
ulissesferreira/cloud-env-setup-be7b
Jul 21, 2026
Merged

docs: add Cursor Cloud specific instructions to AGENTS.md#36
ulissesferreira merged 1 commit into
mainfrom
ulissesferreira/cloud-env-setup-be7b

Conversation

@ulissesferreira

Copy link
Copy Markdown
Contributor

Summary

Sets up the Cloud Agent development environment for this MetaMask Snaps monorepo and documents non-obvious startup/run caveats for future agents.

The registered startup update script is:

corepack enable
yarn install

This adds a ## Cursor Cloud specific instructions section to AGENTS.md capturing durable, non-obvious notes (build-before-test, yarn lint deleting dist/, port 8080 shared by both snaps, no headless end-to-end, optional .env). No application code was changed.

Verification

All commands run against the current tree:

Package Lint Test Build Run (serve)
@metamask/sample-snap yarn lint (monorepo) ✅ yarn workspace @metamask/sample-snap run test — 2 passed ✅ yarn build mm-snap serve on :8080, snap.manifest.json + dist/bundle.js → HTTP 200 ✅
@metamask/bitcoin-wallet-snap yarn lint (monorepo) ✅ yarn build + yarn test yarn build mm-snap serve on :8080, snap.manifest.json + dist/bundle.js → HTTP 200 ✅

Hello-world: the sample-snap Jest suite (via @metamask/snaps-jest) installs the snap and invokes its hello JSON-RPC method, showing a confirmation dialog — exercising the snap's core functionality end-to-end without a browser.

Open in Web Open in Cursor 

Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
@ulissesferreira
ulissesferreira marked this pull request as ready for review July 21, 2026 09:12
@ulissesferreira
ulissesferreira requested review from a team as code owners July 21, 2026 09:12
Comment thread AGENTS.md

## Cursor Cloud specific instructions

This repo is a Yarn 4 monorepo of MetaMask Snaps. The two products live in `packages/`: `@metamask/bitcoin-wallet-snap` and `@metamask/sample-snap`. Dependencies are already installed by the startup update script (`corepack enable` + `yarn install`), so no install step is needed at session start. Yarn is pinned via `packageManager` (`yarn@4.17.1`) and provisioned by corepack; use `yarn ...`, not the classic global yarn.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The two products live in packages/: @metamask/bitcoin-wallet-snap and @metamask/sample-snap.

maybe worth mentioning that later this repo will include other snaps or this doc would require modifications later anyway ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can update them once they are added in. It all happens automatically by dispatching a Cursor Agent (funnily enough xD)

@ulissesferreira
ulissesferreira added this pull request to the merge queue Jul 21, 2026
Merged via the queue into main with commit 2dfad7f Jul 21, 2026
53 checks passed
@ulissesferreira
ulissesferreira deleted the ulissesferreira/cloud-env-setup-be7b branch July 21, 2026 09:55
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.

3 participants