Help home Getting Started MCP setup Purple Red Blue Green Auth Use cases Tools Errors Pricing Troubleshooting

Help / Blue Codens

Blue Codens setup

QA automation. Generates Playwright E2E tests from natural-language requirements, runs them, and returns results (video / trace / network log). Failures can chain into Red Codens for an auto-fix.

Overview

Blue Codens' core unit is an E2E test. Generated from natural-language requirements and executed in Blue's sandboxed browser runners.

Prerequisites

  1. A Codens account and organization.
  2. codens-mcp installed and logged in.
  3. The target URL must be reachable from Blue's runners. Add Blue's outbound IPs to your allow list if needed.
  4. Optional: test-user credentials, stored in Blue's encrypted secret store.

Step 1. Create a project

From the dashboard (app.blue.codens.ai) → "New Project", or via MCP together with other products:

await tools.codens_register_project_unified({ repo_full_name: "Corevice/your-repo", products: ["blue"] });

A project can hold multiple base URLs (prod / staging / dev) and switch between them per run.

Step 2. Register a test environment

  1. Dashboard → Project → Environments → "Add environment".
  2. Set a base URL (e.g. https://staging.your-app.example.com).
  3. Optionally save test-user credentials as secrets — injected as environment variables at run time.
  4. If your service has an IP allow list, copy Blue's outbound IPs (shown in the dashboard) into it.

Be careful with destructive tests on production. Mutating flows like "sign up" should run against staging or a dedicated environment that accepts the X-E2E-Run-ID header for filtering.

Step 3. Create your first E2E test

// Generate from a natural-language requirement const t = await tools.blue_e2e_test({ action: "generate", project_id: "...", requirement: "Verify that a user can complete a checkout flow with an annual plan.", language: "playwright" }); // Execute await tools.blue_e2e_test({ action: "run", e2e_test_id: t.id }); // Fetch results (pass/fail, video URL, trace URL, network log) const result = await tools.blue_e2e_test({ action: "get_results", e2e_test_id: t.id });

The generated Playwright script is editable from the dashboard. Subsequent runs only need action: "run".

Operational notes

Next steps