---
title: "Site Onboarding Guide for AI/MCP"
description: "Documentation for AI/MCP onboarding an AI-developed, RevCent-hosted Site to the RevCent ecosystem, including commerce configuration, repository collaboration, deployment validation, and optional custom-domain setup."
type: "mcp_guide"
company: "RevCent"
canonical: "https://revcent.com/documentation/markdown/mcp/guide/BusinessOnboardingRevCentSite.md"
mcp_schema: "https://cdn.revcent.com/schemas/api-v2/openapi-mcp.json"
---

# RevCent Site Onboarding Guide for AI/MCP

## Rule

The AI/MCP must follow the steps in order.

The AI/MCP must not move to the next step until the current step is complete.

Each step defines:

- what the step is for
- what the AI/MCP should do
- what counts as complete
- when the completion note should be created

A RevCent Site is an AI-developed, RevCent-hosted ecommerce storefront, shopping cart, or lander. It is not a Shop, Third Party Shop, User Shop, or Site Shop.

Use RevCent Site operations only for a RevCent-hosted Site. Do not use Shop operations for this onboarding flow.

The intended Site name is the primary identifier for onboarding. The business name is the secondary identifier. A custom domain is optional and should not be required before Site creation.

Entities created and associated with the Project should use the Site or business name as the primary naming convention.

Examples:

- Acme Store Project
- Acme Store Gateway Group
- Acme Store Gateway
- Acme Store Payment Profile
- Acme Store Product Group
- Acme Store Shipping Profile
- Acme Store Site
- Acme Store Tracking Domain

## Authoritative Documentation

Use these documents as the primary public references for this guide:

| Topic | Documentation |
|---|---|
| RevCent Sites ecosystem | https://revcent.com/documentation/markdown/ecosystem/feature/Site.md |
| RevCent Sites AI/MCP overview | https://revcent.com/documentation/markdown/mcp/operation/OverviewSite.md |
| Create a Site | https://revcent.com/documentation/markdown/mcp/operation/CreateSite.md |
| Retrieve a Site | https://revcent.com/documentation/markdown/mcp/operation/GetSite.md |
| Edit Site configuration | https://revcent.com/documentation/markdown/mcp/operation/EditSite.md |
| Site Events | https://revcent.com/documentation/markdown/mcp/operation/GetSiteEvents.md |
| Site Logs | https://revcent.com/documentation/markdown/mcp/operation/GetSiteLogs.md |
| Add a Tracking Domain to a Site | https://revcent.com/documentation/markdown/mcp/operation/AddTrackingDomainToSite.md |
| Projects | https://revcent.com/documentation/markdown/mcp/operation/OverviewProject.md |
| Payment Profiles | https://revcent.com/documentation/markdown/mcp/operation/OverviewPaymentProfile.md |
| Product Groups | https://revcent.com/documentation/markdown/mcp/operation/OverviewProductGroup.md |
| Products | https://revcent.com/documentation/markdown/mcp/operation/OverviewProduct.md |
| Tracking Domains | https://revcent.com/documentation/markdown/mcp/operation/OverviewTrackingDomain.md |

The public Site documentation explains RevCent-facing configuration and status. The GitHub repository issued for each Site contains the authoritative development, testing, deployment, and customization instructions for that specific Site.

## Beta and Repository Responsibility Rule

RevCent Sites are currently a beta feature.

Before creating a Site, the AI/MCP must explain:

~~~text
RevCent hosts the Site.
AI and GitHub collaborators develop the Site.
The user or merchant is responsible for testing, reviewing, and approving changes.
~~~

The AI/MCP must not direct the user to a visual RevCent Site builder. Site code, design, cart behavior, checkout behavior, offer flow, and custom business logic are changed in the issued GitHub repository.

EditSite is only for supported RevCent configuration:

- Site name
- Site description
- Payment Profile
- Product Group
- optional PayPal Account
- collaborator list

The AI/MCP must not invent repository commands or deployment procedures. After the repository is cloned, read and follow the documentation inside that repository.

## Project Completion Note Rule

When a step is completed, the AI/MCP should create one concise Project Note using CreateProjectNote before moving to the next step.

Project Notes are comments that record what has been completed. Project Notes are not sources of truth and must not be used to determine whether a step is complete. Step completion must still be determined by the step-specific checks, such as GetProject, GetSite, GetPaymentProfile, GetProductGroup, GetProduct, or the relevant entity retrieval operation.

Keep Project Notes to a minimum. Do not create a note for every action, API call, retry, Secure Form, repository command, edit, commit, deployment poll, or association. Create a single completion note per step after that step's completion requirements are satisfied.

If onboarding is resumed and a step was already completed in a prior run, avoid duplicate notes when an existing Project Note already records that same completion. If no completion note exists, create one after the step is independently verified.

Recommended completion note format:

~~~text
[YYYY-MM-DD] RevCent Site onboarding Step {step_number} complete: {step_name}

Site: {site_name}
Project: {project_id}
Completion evidence: {brief step-specific verification}
Key IDs: {only important entity IDs, maximum 5 total}
Follow-up: {only include if something remains}
~~~

The completion note must not include sensitive credentials, Secure Form contents, API keys, payment card data, PayPal credentials, repository secrets, private configuration, or customer data.

For bulk Product steps, summarize totals and include no more than 5 representative IDs.

---

## Step 1: Establish the Active Business Project

### What this step is for

This step identifies the business and intended RevCent Site and confirms the correct Project.

The Project is required before continuing because all RevCent setup, Site configuration, decisions, and completion notes must stay organized under the correct business context.

### What the AI/MCP should do

1. Ask the user what the business is called.
2. Ask what the Site should be called and what it should do, such as a storefront, shopping cart, campaign lander, or focused offer.
3. Ask whether the user already has a desired custom domain. Make clear that a custom domain is optional and is not required to create the Site.
4. Use SearchProjects with search_term, business name, or known associated entity IDs to find a matching Project.
5. Use GetProjects when no useful search term or entity ID is available.
6. If exactly one Project clearly matches, use that Project.
7. If more than one Project could match, show the candidates and ask the user to choose.
8. If no Project matches, create one with CreateProject.
9. Name a new Project using the Site or business naming convention, such as Acme Store Project.
10. Retrieve the selected or created Project using GetProject.
11. Store project_id, business_name, intended_site_name, intended_site_purpose, and desired_custom_domain if one is known.

### Step complete when

Step 1 is complete only when all of the following are true:

~~~text
business_name is known
AND intended_site_name is known
AND intended_site_purpose is known
AND project_id is confirmed
AND GetProject retrieves the selected or created Project
AND the Project represents the correct business and intended RevCent Site.
~~~

### Do not continue until

The AI/MCP must not move to Step 2 until Step 1 is complete.

Do not create a duplicate Project when a suitable business-specific Project already exists.

Do not require a custom domain to complete Step 1.

---

## Step 2: Create or Confirm Gateway Group

### What this step is for

This step ensures the Site has a Gateway Group for its credit card Payment Profile and that the Gateway Group is associated with the active Project.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewGatewayGroup.md
- https://revcent.com/documentation/markdown/mcp/operation/CreateGatewayGroup.md
- https://revcent.com/documentation/markdown/mcp/operation/GetGatewayGroup.md

### What the AI/MCP should do

1. Confirm Step 1 is complete.
2. Retrieve the active Project with GetProject.
3. Check the Project's associated gateway_group entities.
4. If one Gateway Group clearly belongs to this Site, retrieve it with GetGatewayGroup and use it.
5. If more than one could be correct, ask the user to choose.
6. If none is suitable, create one with CreateGatewayGroup.
7. Use the Site naming convention, such as Acme Store Gateway Group.
8. Associate a new Gateway Group with the Project using ProjectAssociateEntity with entity_type set to gateway_group.
9. Retrieve the Gateway Group and Project again.
10. Store gateway_group_id.

### Step complete when

~~~text
GetGatewayGroup confirms the Gateway Group exists
AND the Gateway Group belongs to the intended Site
AND GetProject confirms it appears under gateway_group
AND gateway_group_id is stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 3 until Step 2 is complete.

A Gateway Group that exists but is not associated with the active Project does not make this step complete.

---

## Step 3: Add or Confirm Payment Gateways

### What this step is for

This step confirms every credit card Gateway that the Site should use, ensures each Gateway is enabled and associated with the Project, and adds each Gateway to the Step 2 Gateway Group.

Handle multiple Gateways one at a time.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewGateway.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSiteGateways.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSiteGateway.md
- https://revcent.com/documentation/markdown/mcp/operation/CreateUserGateway.md
- https://revcent.com/documentation/markdown/mcp/operation/GetUserGateway.md

### What the AI/MCP should do

1. Confirm Step 2 is complete.
2. Ask whether the Site should use one Gateway or multiple Gateways.
3. Retrieve the active Project and inspect associated gateway entities.
4. Retrieve each existing candidate with GetUserGateway.
5. Ask the user to choose when more than one Gateway could apply.
6. For each selected existing Gateway:
   1. Confirm enabled is true.
   2. If enabling is required, obtain user confirmation, call EditUserGateway, and retrieve it again.
   3. Retrieve the Step 2 Gateway Group.
   4. Add the Gateway with AddUserGatewayToGatewayGroup if it is not already included.
   5. Retrieve the Gateway Group again to verify membership.
7. For each new Gateway:
   1. Retrieve available processors with GetSiteGateways.
   2. Ask the user to select the processor.
   3. Retrieve required fields with GetSiteGateway.
   4. Create a Secure Form with form_source set to gateway and form_source_id set to the selected site_gateway_id.
   5. Display the Secure Form URL as a standalone value.
   6. Wait for the user to confirm the form was completed and submitted.
   7. Create the Gateway with CreateUserGateway.
   8. Associate it with the Project using entity_type gateway.
   9. Confirm enabled is true with GetUserGateway.
   10. Add it to the Step 2 Gateway Group.
   11. Retrieve GetGatewayGroup and GetProject to verify both relationships.
8. Repeat the full sequence before starting another new Gateway.
9. Store the confirmed user_gateway_id values.

### Step complete when

~~~text
Every requested Gateway has been handled sequentially
AND GetUserGateway confirms each Gateway exists and is enabled
AND GetProject confirms each Gateway is Project-associated
AND GetGatewayGroup confirms each Gateway belongs to the Step 2 Gateway Group
AND all required user_gateway_id values are stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 4 until Step 3 is complete.

Do not collect Gateway credentials in chat.

Do not create a Gateway until the user has selected the processor and confirmed the Secure Form was submitted.

Do not begin the next Gateway until the current Gateway completes the entire selection, Secure Form, creation, enablement, Project association, and Gateway Group association sequence.

---

## Step 4: Create or Confirm Payment Profile

### What this step is for

Every RevCent Site requires a Payment Profile for credit card sales.

This step confirms an enabled Payment Profile that uses the Step 2 Gateway Group and is associated with the Project.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewPaymentProfile.md
- https://revcent.com/documentation/markdown/mcp/operation/CreatePaymentProfile.md
- https://revcent.com/documentation/markdown/mcp/operation/GetPaymentProfile.md

### What the AI/MCP should do

1. Confirm Step 3 is complete.
2. Retrieve the Project and inspect payment_profile entities.
3. Retrieve each likely match with GetPaymentProfile.
4. If exactly one suitable Payment Profile exists, use it.
5. If more than one could apply, ask the user to choose.
6. Do not modify an existing Payment Profile's payment_flow during onboarding.
7. If an existing selected profile is disabled, ask for confirmation, enable it with EditPaymentProfile, and retrieve it again.
8. If no suitable Payment Profile exists, create one with CreatePaymentProfile.
9. Use the Site naming convention, such as Acme Store Payment Profile.
10. For a newly created profile, use this simple flow unless the user explicitly requires a separately designed flow:

~~~text
start_payment_request
  |
action_choose_gateway
  |
action_process_payment
~~~

11. Configure action_choose_gateway with:

~~~json
{
  "selection_source": "gateway_group",
  "selection_method": "evenly_distribute",
  "gateway_groups": [
    "STEP_2_GATEWAY_GROUP_ID"
  ]
}
~~~

12. Associate a new Payment Profile with the Project using entity_type payment_profile.
13. Retrieve it with GetPaymentProfile and confirm enabled is true.
14. Retrieve the Project and verify the association.
15. Store payment_profile_id.

### Step complete when

Step 4 is complete through one of these paths:

~~~text
Existing path:
The selected Payment Profile is associated with the Project
AND GetPaymentProfile confirms enabled = true
AND its existing payment_flow was not modified
AND payment_profile_id is stored.
~~~

~~~text
New path:
The new Payment Profile uses the simple required flow
AND action_choose_gateway uses the Step 2 Gateway Group
AND selection_method = evenly_distribute
AND GetPaymentProfile confirms enabled = true
AND GetProject confirms the Project association
AND payment_profile_id is stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 5 until Step 4 is complete.

The AI/MCP must not create the Site with a disabled or unverified Payment Profile.

---

## Step 5: Confirm Fulfillment Requirements

### What this step is for

This step determines whether the Site sells shippable Products and, when it does, confirms the Fulfillment Account that those Products require.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewFulfillment.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSiteFulfillmentCenters.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSiteFulfillmentCenter.md
- https://revcent.com/documentation/markdown/mcp/operation/CreateFulfillmentAccount.md

### What the AI/MCP should do

1. Confirm Step 4 is complete.
2. Ask whether the Site will sell any shippable Products.
3. If not, record that no Fulfillment Account is required.
4. If yes, retrieve the Project and inspect fulfillment_account entities.
5. Show existing candidates and require the user to confirm which one applies.
6. Retrieve the selected account with GetFulfillmentAccount.
7. If none is suitable, ask which fulfillment center or service the business uses.
8. Retrieve supported centers with GetSiteFulfillmentCenters and inspect the selected one with GetSiteFulfillmentCenter.
9. If sensitive fields are required, create a Secure Form with form_source fulfillment_center and the selected site_fulfillment_center_id.
10. Display the URL, explain its one-hour expiration, and wait for confirmed submission.
11. Create the Fulfillment Account with the confirmed non-sensitive settings and Secure Form ID when required.
12. Associate it with the Project using entity_type fulfillment_account.
13. Retrieve the Fulfillment Account and Project again.
14. Store fulfillment_account_id and the shippable_products decision.

### Step complete when

~~~text
Non-shippable path:
The user confirms the Site will not sell shippable Products.
~~~

~~~text
Shippable path:
The user confirms the Fulfillment Account
AND GetFulfillmentAccount confirms it exists
AND GetProject confirms the Project association
AND fulfillment_account_id is stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 6 until Step 5 is complete.

Do not collect fulfillment credentials in chat.

Do not create shippable Products later unless the required Fulfillment Account is available.

---

## Step 6: Create or Confirm Product Group

### What this step is for

Every RevCent Site requires a Product Group. The Product Group is the authoritative catalog source for the Site.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewProductGroup.md
- https://revcent.com/documentation/markdown/mcp/operation/CreateProductGroup.md
- https://revcent.com/documentation/markdown/mcp/operation/GetProductGroup.md

### What the AI/MCP should do

1. Confirm Step 5 is complete.
2. Retrieve the Project and inspect product_group entities.
3. Use GetProductGroup to review likely matches.
4. Use an existing Product Group only when its catalog scope matches the intended Site.
5. Ask the user to choose if multiple Product Groups could apply.
6. If none is suitable, create one with CreateProductGroup.
7. Use the Site naming convention, such as Acme Store Product Group.
8. Associate a new Product Group with the Project using entity_type product_group.
9. Retrieve the Product Group and Project to verify.
10. Store product_group_id.

### Step complete when

~~~text
GetProductGroup confirms the Product Group exists
AND the Product Group is the intended Site catalog source
AND GetProject confirms the Project association
AND product_group_id is stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 7 until Step 6 is complete.

Do not select a broad or unrelated Product Group merely because it already exists.

Do not create a duplicate when a suitable Project-associated Product Group exists.

---

## Step 7: Confirm Subscription Requirements

### What this step is for

This step determines whether the Site will sell subscription or trial Products and confirms a Subscription Profile when required.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewSubscriptionProfile.md
- https://revcent.com/documentation/markdown/mcp/operation/CreateSubscriptionProfile.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSubscriptionProfile.md

### What the AI/MCP should do

1. Confirm Step 6 is complete.
2. Ask whether the Site will sell subscription or trial Products.
3. If not, record that no Subscription Profile is required.
4. If yes, retrieve the Project and inspect subscription_profile entities.
5. Retrieve likely matches with GetSubscriptionProfile.
6. Use an existing profile only when it matches the intended billing terms.
7. Ask the user to choose when multiple profiles could apply.
8. If none is suitable, collect the non-sensitive billing requirements and create one with CreateSubscriptionProfile.
9. Use the Site naming convention, such as Acme Store Subscription Profile.
10. Associate a new profile with the Project using entity_type subscription_profile.
11. Retrieve the Subscription Profile and Project again.
12. Store subscription_profile_id and the subscription_products decision.

### Step complete when

~~~text
No-subscription path:
The user confirms the Site will not sell subscription or trial Products.
~~~

~~~text
Subscription path:
The user confirms the billing requirements
AND GetSubscriptionProfile confirms the selected or created profile exists
AND GetProject confirms the Project association
AND subscription_profile_id is stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 8 until Step 7 is complete.

Do not create a Subscription Profile unless subscription or trial Products are planned.

Do not create subscription Products later without the required Subscription Profile.

---

## Step 8: Confirm Shipping Requirements

### What this step is for

This step determines whether RevCent must calculate shipping for the Site and confirms a Shipping Profile when required.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewShippingProfile.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSiteShippingProviders.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSiteShippingProvider.md
- https://revcent.com/documentation/markdown/mcp/operation/CreateShippingProfile.md

### What the AI/MCP should do

1. Confirm Step 7 is complete.
2. Use the Step 5 shippable_products decision.
3. If there are no shippable Products, record that no Shipping Profile is required.
4. If Products are shippable, ask whether RevCent must calculate shipping for:
   - initial Site Sales
   - subscription renewals
   - trial expirations
   - other RevCent-managed payment lifecycle events
5. If the Site supplies every required shipping entry and RevCent does not need to calculate renewal, trial, or other lifecycle shipping, record that no Shipping Profile is required.
6. Otherwise, retrieve the Project and inspect shipping_profile entities.
7. Retrieve candidates with GetShippingProfile.
8. Require the user to confirm an existing profile matches the Site's requirements.
9. If none is suitable, retrieve available providers and methods.
10. Ask the user to confirm every rate, provider, method, amount, country/region, Product Group qualifier, and other qualifier.
11. Do not guess any rate or qualifier.
12. Create the Shipping Profile using only confirmed settings.
13. Associate it with the Project using entity_type shipping_profile.
14. Retrieve the profile and Project again.
15. Store shipping_profile_id and the shipping_calculation decision.

### Step complete when

~~~text
Path 1:
The user confirms the Site has no shippable Products.
~~~

~~~text
Path 2:
The user confirms RevCent does not need to calculate shipping for any Site commerce lifecycle path.
~~~

~~~text
Path 3:
The user confirms all shipping rules
AND GetShippingProfile confirms the selected or created profile exists
AND GetProject confirms the Project association
AND shipping_profile_id is stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 9 until Step 8 is complete.

Do not guess shipping settings.

Do not create a duplicate Shipping Profile.

---

## Step 9: Create or Confirm Products and Site Catalog Metadata

### What this step is for

This step confirms the Products the Site will sell, assigns them to the Step 6 Product Group, and prepares supported Site catalog metadata.

Products are authoritative RevCent records. Metadata helps the Site organize presentation but does not replace Product fields or Product Group membership.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewProduct.md
- https://revcent.com/documentation/markdown/mcp/operation/CreateProduct.md
- https://revcent.com/documentation/markdown/mcp/operation/GetProduct.md
- https://revcent.com/documentation/markdown/mcp/operation/GetProducts.md
- https://revcent.com/documentation/markdown/mcp/operation/SearchProducts.md
- https://kb.revcent.com/en/product#import-products
- https://revcent.com/user/import-products

### Site catalog metadata

Use these Product metadata names when the Site catalog needs them:

| Metadata name | Purpose |
|---|---|
| slug | A clear, URL-friendly Product slug that is unique within the Site catalog. |
| site_categories | A JSON string array of slash-delimited category paths. |

Example:

~~~json
[
  {
    "name": "slug",
    "value": "organic-coffee-beans"
  },
  {
    "name": "site_categories",
    "value": "[\"coffee/beans\",\"subscriptions\"]"
  }
]
~~~

Category paths can have at most three levels. A Product can belong to more than one category path.

### What the AI/MCP should do

1. Confirm Step 8 is complete.
2. Retrieve the Project and inspect associated product entities.
3. Retrieve the Step 6 Product Group.
4. Show a concise summary of existing Products that appear relevant.
5. Ask the user to confirm which Products should be sold on the Site.
6. If many Products must be added, recommend the signed-in Web App CSV import tool.
7. If the user chooses CSV import, show the knowledge-base and import URLs above and wait for confirmed completion.
8. After import, retrieve the Products and verify they exist.
9. For AI/MCP creation, collect and confirm each Product's relevant fields, including:
   - name
   - SKU
   - price
   - description or description_html
   - public URL when applicable
   - image URL when applicable
   - enabled state
   - shippable state
   - subscription or trial settings
   - Product Group
   - Site catalog slug
   - Site category paths
10. For a shippable Product, use the Step 5 Fulfillment Account.
11. For a subscription or trial Product, use the Step 7 Subscription Profile.
12. Create missing Products one at a time with CreateProduct.
13. Ensure every intended Site Product belongs to the Step 6 Product Group.
14. Add or update slug and site_categories metadata when the catalog design requires them.
15. Associate each intended Product with the Project using entity_type product if it is not already associated.
16. Retrieve representative Products with GetProduct.
17. Retrieve the Product Group and Project again.
18. Store Product totals and representative product_id values.

### Step complete when

~~~text
Every intended Site Product exists in RevCent
AND every intended Site Product belongs to the Step 6 Product Group
AND shippable Products use the required Fulfillment Account
AND subscription or trial Products use the required Subscription Profile
AND requested slug and site_categories metadata is present and valid
AND GetProject confirms the Products are Project-associated
AND Product totals and representative IDs are stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 10 until Step 9 is complete.

Do not create duplicate Products.

Do not create shippable Products without the required Fulfillment Account.

Do not create subscription or trial Products without the required Subscription Profile.

Do not treat metadata as a replacement for price, Product ID, Product Group, shipping, or subscription configuration.

---

## Step 10: Confirm Site Creation Inputs and Responsibility

### What this step is for

This step performs the final preflight before CreateSite.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/CreateSite.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSites.md

### What the AI/MCP should do

1. Confirm Step 9 is complete.
2. Use GetSites to ensure the intended Site name is unique.
3. Confirm the final Site name and description with the user.
4. Confirm the Step 4 payment_profile_id.
5. Confirm the Step 6 product_group_id.
6. Ask whether PayPal checkout is required.
7. If a confirmed enabled PayPal Account already exists for the intended Site context, retrieve it with GetPayPalAccount and store paypal_account_id.
8. If PayPal is required but no correct account exists, record that PayPal will be configured after Site creation using the Campaign returned by GetSite.
9. Ask for every GitHub username that should be invited to the Site repository.
10. Confirm at least one valid GitHub username is provided.
11. Explain that the collaborator list grants repository access after each invitation is accepted.
12. Explain the beta and repository responsibility rule.
13. Ask the user to confirm they understand:
    - RevCent hosts the Site
    - AI and collaborators develop it
    - the user or merchant must test and approve it
    - dev should be tested before main/live use
14. Prepare the exact CreateSite request without calling it yet.

### Step complete when

~~~text
The Site name is confirmed and unique
AND the Site description is confirmed
AND payment_profile_id is confirmed
AND product_group_id is confirmed
AND the PayPal decision is recorded
AND at least one GitHub collaborator username is confirmed
AND the user acknowledges beta and repository responsibility
AND the exact CreateSite request is ready.
~~~

### Do not continue until

The AI/MCP must not move to Step 11 until Step 10 is complete.

Do not guess IDs or GitHub usernames.

Do not create a Site with a duplicate name.

Do not include a PayPal Account unless it is already verified as correct for this Site context. A missing PayPal Account can be configured safely after Site creation in Step 13.

---

## Step 11: Create and Associate the RevCent Site

### What this step is for

This step creates the Site, stores its ID, and associates it with the active Project.

Provisioning is verified separately in Step 12.

### What the AI/MCP should do

1. Confirm Step 10 is complete.
2. Call CreateSite with:
   - the confirmed unique name
   - the confirmed description
   - Step 4 payment_profile_id
   - Step 6 product_group_id
   - the complete collaborator list
   - paypal_account_id only when an existing correct account was verified
3. Store the returned site_id.
4. Call GetSite with site_id.
5. Confirm the returned name, Payment Profile, Product Group, optional PayPal Account, and collaborator list match the request.
6. Associate the Site with the active Project using ProjectAssociateEntity:

~~~json
{
  "project_id": "ACTIVE_PROJECT_ID",
  "entity_type": "site",
  "entity_id": "CREATED_SITE_ID"
}
~~~

7. Retrieve the Project with GetProject.
8. Confirm the Site appears under associated site entities.
9. Store github_repo and any returned initial deployment, catalog, and branch status.

### Step complete when

~~~text
CreateSite returns site_id
AND GetSite retrieves that Site
AND GetSite confirms the required configuration values
AND GetProject confirms the Site is associated under entity type site
AND site_id and github_repo are stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 12 until Step 11 is complete.

A CreateSite success response without GetSite retrieval and Project association does not make Step 11 complete.

Do not describe the Site as ready, healthy, customized, or live during this step.

---

## Step 12: Confirm Provisioning, Catalog, Branches, and Campaign

### What this step is for

This step waits for the Site and its catalog to become ready, verifies both Site environments, and captures the authoritative Campaign returned by GetSite.

CreateSite does not accept campaign_id. The Campaign returned by GetSite is the authoritative Campaign used for Site Sale requests.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/GetSite.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSiteEvents.md

### What the AI/MCP should do

1. Confirm Step 11 is complete.
2. Poll GetSite at reasonable intervals.
3. Inspect deployment.status.
4. Continue waiting while the Site is provisioning or updating.
5. Stop and report the problem if deployment.status is recovery_required.
6. Inspect deployment.health.
7. Do not treat degraded, unavailable, or unknown health as completed readiness.
8. Inspect deployment.branches.dev.status and deployment.branches.main.status.
9. Wait until the expected initial deployments are deployed.
10. Inspect the current commits for both branches.
11. Inspect deployment.catalog.status and deployment.catalog.product_count.
12. Wait until deployment.catalog.status is ready.
13. Compare product_count with the intended Step 9 catalog.
14. If provisioning, deployment, or catalog status fails, use GetSiteEvents over a bounded date range to identify recent Site activity.
15. Capture the Campaign returned by GetSite.
16. Store campaign_id and campaign name.
17. Retrieve the Campaign with GetCampaign when full confirmation is needed.
18. Associate the Campaign with the active Project using entity_type campaign when it is not already associated.
19. Retrieve GetProject and verify both the Site and Campaign associations.
20. Capture the dev routing URL when returned.

### Step complete when

~~~text
GetSite confirms deployment.status = ready
AND GetSite confirms deployment.health = healthy
AND the expected dev and main branch statuses are deployed
AND deployment.catalog.status = ready
AND deployment.catalog.product_count is consistent with the intended Product Group catalog
AND the Site Campaign is confirmed and stored
AND GetProject confirms both Site and Campaign associations
AND the dev URL is stored when returned.
~~~

### Do not continue until

The AI/MCP must not move to Step 13 until Step 12 is complete.

Do not claim provisioning succeeded while status is provisioning, updating, recovery_required, degraded, unavailable, or failed.

Do not invent or substitute a Campaign. Use the Campaign returned by GetSite.

Do not treat a ready deployment with a failed or incomplete catalog as complete.

---

## Step 13: Configure or Confirm PayPal

### What this step is for

This step configures PayPal only when the user wants PayPal checkout and verifies that the Site uses an enabled PayPal Account tied to the Site's authoritative Campaign.

If the user does not want PayPal, this step completes without creating or attaching a PayPal Account.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewPayPalAccount.md
- https://revcent.com/documentation/markdown/mcp/operation/CreatePayPalAccount.md
- https://revcent.com/documentation/markdown/mcp/operation/GetPayPalAccount.md
- https://revcent.com/documentation/markdown/mcp/operation/EditSite.md

### What the AI/MCP should do

1. Confirm Step 12 is complete.
2. Use the PayPal decision recorded in Step 10.
3. If the user does not want PayPal, record that the Site will use no PayPal Account.
4. If GetSite already returns a PayPal Account:
   1. Retrieve it with GetPayPalAccount.
   2. Confirm enabled is true.
   3. Confirm its Campaign matches the Site Campaign from Step 12.
   4. Confirm it is associated with the active Project.
5. If PayPal is required and no correct PayPal Account is attached:
   1. Ask for the PayPal account email address.
   2. Do not ask for PayPal secrets in chat.
   3. Create a Secure Form with form_source paypal_account.
   4. Display the Secure Form URL as a standalone value.
   5. Explain that it expires after one hour.
   6. Wait for the user to confirm submission.
   7. Create the PayPal Account with the Site campaign_id from Step 12, confirmed email, enabled true, and completed Secure Form ID.
   8. Use transaction_confirmation false unless the user explicitly requires delayed confirmation.
   9. Use add_tracking true unless the user explicitly declines PayPal shipment tracking.
   10. Associate the PayPal Account with the Project using entity_type paypal_account.
   11. Retrieve it with GetPayPalAccount.
   12. Wait until the Site deployment.status is ready before calling EditSite.
   13. Attach the PayPal Account with EditSite.
   14. Poll GetSite until deployment.status returns to ready.
   15. Confirm GetSite returns the PayPal Account.
6. Store paypal_account_id when PayPal is enabled.

### Step complete when

~~~text
No-PayPal path:
The user confirms PayPal checkout is not required
AND GetSite does not need a PayPal Account for the intended configuration.
~~~

~~~text
PayPal path:
GetPayPalAccount confirms the account exists and enabled = true
AND the PayPal Account uses the Site Campaign
AND GetProject confirms the Project association
AND GetSite confirms the PayPal Account is attached
AND deployment.status returns to ready
AND paypal_account_id is stored.
~~~

### Do not continue until

The AI/MCP must not move to Step 14 until Step 13 is complete.

Do not collect PayPal credentials in chat.

Do not create a PayPal Account before the Secure Form is submitted.

Do not attach a PayPal Account whose Campaign conflicts with the Site Campaign.

---

## Step 14: Complete GitHub Repository Access

### What this step is for

This step confirms that the required collaborators can access the Site repository and that AI has read the repository's own documentation before code changes begin.

### What the AI/MCP should do

1. Confirm Step 13 is complete.
2. Retrieve the Site with GetSite.
3. Show the github_repo URL to the user.
4. Show the collaborator usernames returned by GetSite.
5. Tell each required collaborator to accept the GitHub repository invitation.
6. Wait for confirmation that at least one responsible collaborator accepted the invitation.
7. Ask that collaborator to access the repository URL.
8. Ask the collaborator to clone the repository using their normal GitHub workflow.
9. Wait for confirmation that the clone succeeded.
10. Have the AI or coding agent read the repository documentation completely before modifying Site source.
11. Identify the repository-specific instructions for:
    - local setup
    - required runtime and dependencies
    - dev-branch workflow
    - tests and validation
    - deployment or promotion workflow
    - secrets and environment handling
12. Store the confirmed repository URL and the collaborator responsible for development review.

### Step complete when

~~~text
GetSite confirms github_repo and the expected collaborator list
AND at least one responsible collaborator accepted the GitHub invitation
AND that collaborator can access and clone the repository
AND AI has read the repository documentation
AND the repository-specific development and validation workflow is understood.
~~~

### Do not continue until

The AI/MCP must not move to Step 15 until Step 14 is complete.

The collaborator list returned by GetSite only confirms configuration. It does not prove an invitation was accepted or a clone succeeded.

Do not invent repository commands.

Do not make Site code, design, cart, checkout, or business-logic changes before the repository documentation is read.

---

## Step 15: Customize and Validate the Dev Site

### What this step is for

This step uses the Site repository's documented workflow to customize and test the dev branch before any main/live approval.

### Relevant documentation

- Site repository documentation from Step 14
- https://revcent.com/documentation/markdown/mcp/operation/GetSite.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSiteEvents.md
- https://revcent.com/documentation/markdown/mcp/operation/GetSiteLogs.md

### What the AI/MCP should do

1. Confirm Step 14 is complete.
2. Ask the user what storefront, cart, lander, design, content, and checkout behavior they want.
3. Confirm requirements before changing code.
4. Follow the repository-specific dev-branch instructions.
5. Keep credentials, API keys, private environment values, and customer data out of chat and source control. Configure any required Site Variables using the workflow below before the dev deployment.
6. Use the repository's required local validation and test commands.
7. Deploy or update the dev branch only through the repository's documented workflow.
8. Poll GetSite after the dev update.
9. Inspect deployment.status, deployment.health, and deployment.branches.dev.
10. Confirm the expected dev commit SHA is current.
11. Confirm dev branch status is deployed.
12. Confirm dev routing status is active and capture the dev URL.
13. Confirm deployment.catalog.status is ready.
14. Open the managed hostname returned in `deployment.branches.dev.routing.url` and have the merchant review the storefront there.
15. Test the relevant experience, including:
    - Product presentation and catalog organization
    - Product prices and variants when applicable
    - cart behavior
    - sandbox checkout with test payment details
    - sandbox PayPal checkout when enabled
    - shipping expectations
    - subscription or trial behavior when applicable
    - tax expectations
    - tracking behavior
    - confirmation and error states
    - mobile and responsive behavior
    - accessibility
    - privacy, terms, refunds, contact, and other required merchant content
16. Use GetSiteEvents for deployment or catalog timelines when needed.
17. Use GetSiteLogs with one branch and a bounded date range for focused runtime troubleshooting.
18. Fix and repeat the documented workflow until the user approves the dev experience.

### Configure Site Variables Before Deploying

If the Site needs an API token, credential, or other private runtime configuration, use Site Variables. Never commit secret values, including in `.env` files, or include them in build artifacts, browser bundles, logs, or chat. Commit only code that references `process.env.MY_VARIABLE` in server-side Node.js. Values are supplied at runtime, not during installation/build or automatically in browser code; do not copy them into public configuration or client responses. If an integration needs credentials during build, do not assume Site Variables supply them.

1. Identify the required variable names after reading the repository documentation. Retrieve [GetSite](../operation/GetSite.md) to inspect existing names and choose create or edit; do not guess whether a name already exists.
2. For each value, call [CreateSecureForm](../operation/CreateSecureForm.md) with `form_source: "site_environment"` and the Site ID in `form_source_id`. Do not send a variable name, action, or version to the form, and never request the value in chat.
3. Have the user complete the form, then check [GetSecureForm](../operation/GetSecureForm.md) for `completed: true`. Completion only collects the value.
4. Save with [CreateSiteVariable](../operation/CreateSiteVariable.md) or [EditSiteVariable](../operation/EditSiteVariable.md), passing the variable name and `secure_form_id`. These operations use Edit Site permission and are separate from `CreateSite` and `EditSite`. Direct API clients may submit values directly; AI must use Secure Forms. Use [RemoveSiteVariable](../operation/RemoveSiteVariable.md) for an unneeded variable without collecting a value.
5. After saving succeeds, push a new commit to `dev` through the repository's documented workflow. Saving does not start a deployment. A deployment already queued or in progress, or a retry of an earlier commit, keeps its selected version and does not pick up later saves.
6. After deployment, inspect the `variables` metadata in [GetSite](../operation/GetSite.md) or [GetSites](../operation/GetSites.md). Verify each required variable's dev status is `applied` and its applied version matches the saved version. These reads use their existing permissions and never return values. A pending status is not confirmation that a deployment is queued.

Dev and live share one saved variable set; they are not separate stores for test and live credentials. Each branch applies the saved set independently when a new deployment becomes active. During Step 16, deploy a new main commit after the relevant saves and verify live application as well. Until a new deployment becomes active, a running Site keeps its previous values, including a variable removed from saved settings.

### Step complete when

~~~text
The intended Site changes are implemented through the repository workflow
AND repository-required tests pass
AND GetSite confirms deployment.status = ready
AND the dev branch status = deployed
AND the expected dev commit is current
AND dev routing status = active
AND deployment.catalog.status = ready
AND the user or merchant has reviewed and approved the dev experience.
~~~

### Do not continue until

The AI/MCP must not move to Step 16 until Step 15 is complete.

Do not treat a successful local build as a successful dev deployment.

Do not treat dev as approved while the branch is building, failed, unavailable, degraded, or showing an unexpected commit.

Do not use Site Logs as broad analytics or expose unnecessary sensitive log details.

---

## Step 16: Approve and Validate the Main Deployment

### What this step is for

This step promotes or deploys the approved Site experience to the main branch using the repository's documented workflow and verifies the resulting main deployment.

Main is the live customer-facing branch. A custom domain may still be absent until Step 17.

### What the AI/MCP should do

1. Confirm Step 15 is complete.
2. Summarize the approved dev behavior and the dev commit intended for main.
3. Ask the user or merchant for explicit approval to proceed with the repository's main promotion or deployment workflow.
4. Do not proceed without approval.
5. Follow the repository documentation for main promotion or deployment. If Site Variables were saved or removed, use a new main commit after those saves so the deployment applies them.
6. Poll GetSite.
7. Wait until deployment.status returns to ready.
8. Confirm deployment.health is healthy.
9. Confirm deployment.branches.main.status is deployed.
10. Compare `deployment.branches.main.commit.current.sha` with the expected main commit.
11. Confirm deployment.catalog.status is ready. Check `GetSite.variables` and verify each required variable is `applied` to live at its intended saved version; verify any intended removals are applied as well.
12. Show the merchant the verified deployment and catalog status. A healthy main deployment can have no public URL before its first domain is attached. Use the dev sandbox results from Step 15; verify the live hostname in Step 17.
13. If main fails or is degraded, use GetSiteEvents and bounded main-branch GetSiteLogs, then return to the repository workflow.

### Step complete when

~~~text
The user explicitly approved main promotion
AND the repository-specific main workflow completed
AND GetSite confirms deployment.status = ready
AND deployment.health = healthy
AND main branch status = deployed
AND the expected main commit is current
AND any required Site Variable changes are applied to live
AND deployment.catalog.status = ready
AND the managed dev storefront and sandbox checkout were approved in Step 15.
~~~

### Do not continue until

The AI/MCP must not move to Step 17 until Step 16 is complete.

Do not deploy or promote main without explicit approval.

Do not claim that a custom domain is live merely because main is deployed.

Do not treat a degraded or unavailable Site as main-ready.

---

## Step 17: Create and Attach a Custom Domain When Requested

### What this step is for

This step configures an optional Tracking Domain and attaches it to the Site's main deployment only when the user is ready to officially process live transactions.

If the user does not want a custom domain, or wants one later but is not ready to process live transactions, this step completes without creating or attaching one. The custom domain can be added in a later go-live workflow.

### Relevant documentation

- https://revcent.com/documentation/markdown/mcp/operation/OverviewTrackingDomain.md
- https://revcent.com/documentation/markdown/mcp/operation/CreateTrackingDomain.md
- https://revcent.com/documentation/markdown/mcp/operation/GetTrackingDomain.md
- https://revcent.com/documentation/markdown/mcp/operation/InitializeTrackingDomainSSL.md
- https://revcent.com/documentation/markdown/mcp/operation/InitializeTrackingDomainDNS.md
- https://revcent.com/documentation/markdown/mcp/operation/AddTrackingDomainToSite.md

### What the AI/MCP should do

1. Confirm Step 16 is complete.
2. Ask whether the user wants to officially process live transactions now.
3. If not, do not attach a Tracking Domain. Record that main is deployed without custom-domain routing and that the custom domain is declined or deferred until go-live.
4. If the user is ready for live transactions, ask whether they want a custom domain for the Site.
5. If the user does not want a custom domain, record that main is deployed without custom-domain routing.
6. If yes, confirm the exact root domain and intended hostname.
7. Retrieve the Project and inspect tracking_domain entities.
8. Retrieve likely matches with GetTrackingDomain.
9. Ask the user to choose if more than one could apply.
10. If none is suitable, create one with CreateTrackingDomain.
11. Associate a new Tracking Domain with the Project using entity_type tracking_domain.
12. Retrieve the domain with `GetTrackingDomain`. For a new domain, display its returned `rctrk` and `portal` A records. Have the merchant add or correct only missing or different records. If no address is returned, refresh the domain before proceeding.
13. Once those A records are in place, call `InitializeTrackingDomainSSL`. Publish the exact returned validation CNAME and check `GetTrackingDomain` until `ssl.status` is `ISSUED`.
14. Call `InitializeTrackingDomainDNS` after issuance and check until `dns.status` is `COMPLETE`. For an existing domain, resume at its current stage; skip completed steps. Confirm the domain is enabled and not attached to another Site.
15. Confirm that the merchant wants this domain to serve the approved main storefront, then call `AddTrackingDomainToSite`. “Connection requested.” means accepted; “Tracking domain added to site.” means completed. Refresh `GetSite` until `tracking_domain.id` matches the intended domain. If the previous association still appears, check `GetSiteEvents` for the outcome or failure guidance instead of resubmitting. No operation ID is needed.
16. Read the assigned address from the `rctrk` and `portal` entries in `GetTrackingDomain.a_records`. If the array is empty, refresh the domain before giving DNS instructions; do not guess an address. Compare existing records at the authoritative DNS provider and change only those that need updating. For a storefront on the root domain, point its A record (`@`) to the assigned address. Add a wildcard A record (`*`) at that address only if the merchant wants other subdomains to serve the storefront. Keep the exact `portal` and `rctrk` records for the customer portal and tracking. The managed dev hostname remains independent.
17. A null `deployment.branches.main.routing.a_record_ip` does not mean attachment failed. Check that main routing is active, then open the intended hostname over HTTPS and confirm it serves the approved storefront.
18. Confirm the Project association with `GetProject` and record the domain ID and verified storefront hostname.

### Step complete when

~~~text
No-domain path:
The user explicitly confirms no custom domain is required
AND the Site is described as main-deployed without custom-domain routing.
~~~

~~~text
Deferred-domain path:
The user wants a custom domain later
AND the user confirms the business is not ready to process live transactions
AND no Tracking Domain is attached
AND the Site is described as main-deployed without custom-domain routing.
~~~

~~~text
Custom-domain path:
GetTrackingDomain confirms ssl.status = ISSUED
AND dns.status = COMPLETE
AND enabled = true
AND GetProject confirms the Tracking Domain association
AND AddTrackingDomainToSite succeeds
AND GetSite confirms the Tracking Domain is attached
AND main routing status = active
AND DNS for the intended hostname matches the assigned address
AND the intended hostname serves the expected storefront over HTTPS.
~~~

### Do not continue until

The AI/MCP must not move to Step 18 until Step 17 is complete.

Do not invent, abbreviate, or alter DNS values.

Do not initialize SSL before the user confirms the required A records are in place.

Do not initialize Tracking Domain DNS before ssl.status is ISSUED.

Do not attach a Tracking Domain that is not ready or is already attached elsewhere.

Do not call AddTrackingDomainToSite until the user explicitly confirms the business is ready to officially process live transactions.

Use the returned A-record address for storefront DNS. The SSL validation CNAME serves a different purpose.

Do not claim the custom domain is live until GetSite reports active main routing and the domain is verified.

---

## Step 18: Confirm Final RevCent Site Readiness

### What this step is for

This step verifies the complete business, commerce, Site, repository, deployment, and optional routing context before onboarding is marked complete.

### What the AI/MCP should do

1. Confirm Steps 1 through 17 are complete.
2. Retrieve the active Project with GetProject.
3. Confirm the Project contains the required associations:
   - Site
   - Campaign returned by GetSite
   - Gateway Group
   - enabled Gateway or Gateways
   - enabled Payment Profile
   - Product Group
   - Products
   - Fulfillment Account when Products are shippable
   - Subscription Profile when subscription or trial Products exist
   - Shipping Profile when RevCent calculates shipping
   - PayPal Account when PayPal is enabled
   - Tracking Domain when a custom domain is configured
4. Retrieve the Site with GetSite.
5. Confirm:
   - Site ID, name, and description
   - Campaign
   - Payment Profile
   - optional PayPal Account
   - Product Group
   - optional Tracking Domain
   - collaborator list
   - GitHub repository URL
   - deployment.status
   - deployment.health
   - dev and main branch statuses and current commits
   - deployment.catalog.status and deployment.catalog.product_count
   - dev routing URL
   - main routing status when a custom domain is configured
6. Confirm merchant approval of the tested dev storefront and the main deployment. If a live hostname was configured, confirm that it serves the approved storefront over HTTPS.
7. Confirm required checkout, catalog, shipping, subscription, tax, tracking, mobile, accessibility, legal, privacy, refund, and contact testing was completed.
8. Remind the user that future Site code changes must follow the repository documentation and dev-before-main review process.
9. Offer a concise non-sensitive handoff summary containing:
   - business name
   - project_id
   - site_id
   - campaign_id
   - payment_profile_id
   - product_group_id
   - Product summary
   - paypal_account_id when applicable
   - fulfillment_account_id when applicable
   - subscription_profile_id when applicable
   - shipping_profile_id when applicable
   - tracking_domain_id and custom domain when applicable
   - GitHub repository URL
   - dev URL
   - main/custom URL when configured
10. Create the final Step 18 Project Note.

### Step complete when

~~~text
GetProject confirms all required Project associations
AND GetSite confirms the expected commerce configuration
AND deployment.status = ready
AND deployment.health = healthy
AND the expected dev and main commits are deployed
AND deployment.catalog.status = ready
AND optional PayPal and custom-domain configuration matches the user's decisions
AND repository access and repository documentation review are confirmed
AND the user or merchant approved the tested Site experience
AND the final non-sensitive handoff is complete when requested.
~~~

### Do not continue until

The AI/MCP must not mark RevCent Site onboarding complete until Step 18 is complete.

Do not treat entity creation alone as proof that the Site is ready.

Do not treat dev approval as main approval.

Do not expose credentials, payment data, repository secrets, or customer data in the final summary.

Do not claim custom-domain readiness when the user selected the no-domain path.

---

## Additional Feature Continuation

After RevCent Site onboarding is complete, the AI/MCP should recommend opening the shared additional features guide:

~~~text
https://revcent.com/documentation/markdown/mcp/guide/BusinessOnboardingAdditionalFeatures.md
~~~

Use the additional features guide for optional post-onboarding work such as SMTP setup, Email Templates, inbound AI Voice customer service agents, outbound AI Voice recovery agents, and other shared business features.

Additional features must not begin until this RevCent Site onboarding guide is complete.


---
Document Parent Directory
* [Guides](https://revcent.com/documentation/markdown/mcp/guide/index.md) - Guides for AI/MCP features and capabilities, offering step-by-step instructions and best practices for utilizing the RevCent ecosystem effectively.