Skip to content

docs: cloud agent dev environment bootstrap notes#83

Draft
DealPatrol wants to merge 1 commit into
mainfrom
cursor/dev-environment-setup-0a36
Draft

docs: cloud agent dev environment bootstrap notes#83
DealPatrol wants to merge 1 commit into
mainfrom
cursor/dev-environment-setup-0a36

Conversation

@DealPatrol

Copy link
Copy Markdown
Owner

Adds a short "Cloud agent secrets and local bootstrap" section to AGENTS.md documenting:

  • Required Cursor secrets for local .env.local (DATABASE_URL, GITHUB_CLIENT_SECRET, AI credentials)
  • One-time schema init via /api/setup/init-db
  • MCP structural smoke test command
  • Cookie auth bypass limitations (user-scoped analyses)
  • AI provider requirement for running analyses

Part of development environment setup for Cloud Agents.

Open in Web Open in Cursor 

Co-authored-by: Cole Collins <DealPatrol@users.noreply.github.com>
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
repo-app-architect Ready Ready Preview, Comment Jun 8, 2026 3:03am
repofuse Ready Ready Preview, Comment, Open in v0 Jun 8, 2026 3:03am
v0-repo-app-architect Ready Ready Preview, Comment, Open in v0 Jun 8, 2026 3:03am

@supabase

supabase Bot commented Jun 8, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project bpjftwoiosftvjvxpovz because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

Copilot AI left a comment

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.

Pull request overview

This PR updates AGENTS.md with a new “Cloud agent secrets and local bootstrap” section to help developers boot the app locally in a Cloud Agent environment by documenting required secrets, DB initialization, MCP smoke testing, and key auth/analysis constraints.

Changes:

  • Documented required .env.local secrets and how to request them via Cursor secrets.
  • Added a one-time (idempotent) database schema initialization step via /api/setup/init-db.
  • Documented MCP structural smoke test usage and clarified limitations around auth/analysis execution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md
- Copy `.env.example` to `.env.local` and fill in secrets — `.env.local` is gitignored and is **not** injected automatically by the VM; request `DATABASE_URL`, `GITHUB_CLIENT_SECRET`, and an AI credential (`AI_GATEWAY_API_KEY` or `ANTHROPIC_API_KEY`) via Cursor secrets if missing.
- One-time schema init: `curl http://localhost:3000/api/setup/init-db` (idempotent; safe to re-run).
- `pnpm mcp:test` runs a structural MCP smoke test (no live GitHub/AI credentials required).
- Cookie auth bypass gets you past `/dashboard/*` middleware, but API routes still validate the token against GitHub or a matching `user_auth` row. Analysis detail pages return 404 when the analysis is not owned by the signed-in user.
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