Skip to main content

Yuppsy website builder

Use the website_builder_* MCP tools to build or edit a website using its selected template. Consult the website builder documentation for tool contracts and failure behavior.

Before starting​

  1. Confirm the MCP server exposes the required tools. If a necessary tool is unavailable, explain the limitation rather than inventing an operation.
  2. Establish the website ID or the details needed to create an empty website, the intended pages, navigation, content, and approved assets.
  3. Confirm authorization before changing an existing website. Ask before replacing content, deleting pages, repairing data, or deleting a website.
  4. Check success and statusCode after every call. Failed operations may leave partial changes. Inspect returned IDs, errors, and warnings before proceeding or retrying.

Read operations require the appropriate website-type Read permission; writes require Full permission. The website must belong to the authenticated company.

Inspect the website​

For an existing website, call website_builder_get_structure with siteId.

Record the selected template and version, existing pages, page content, hierarchy, and site-wide components. The page list includes hidden pages. Use each page's parent and order fields rather than assuming array order is navigation order.

Re-read the structure before a destructive replacement if the website may have changed. Reads are not an atomic snapshot.

Preview the website​

To render a website preview, open https://yuppsy.com/Admin/WebsitePreview/XXX@YYY/, replacing XXX with the website's template ID and YYY with its site ID. For example, https://yuppsy.com/Admin/WebsitePreview/383@197/ uses template 383 and site 197. The preview endpoint requires authentication and the applicable website Read permission. A preview is useful for visual verification, but does not replace checking the structured website data or integrity results.

Create an empty website​

Use website_builder_create_empty only when the user requests a new website. Supply the website type, subdomain, optional domain and public template ID, and the agent or property ID when applicable.

An empty website does not automatically contain a complete set of pages or site-wide components. Record the returned website ID, including on failure if one is returned, and inspect partial results before retrying.

Discover template components​

Call website_builder_get_template_components for the website. The catalog contains available variants, including unused components and, when present in the template, Menu and Footer variants.

For a chosen variant, call website_builder_get_template_component with its exact blockParseName. Inspect its map, defaults, and flags before using it:

  • blockName identifies the component type; blockParseName identifies the specific template variant.
  • defaultData is structured data. Serialize it as JSON text for a page component's data field, then modify only editable fields from the map.
  • Dynamic components may require application data or page references.
  • Site-wide and editor-ignored components are not ordinary page modules. Editor-ignored components have no defaults.

Do not invent component identifiers, fields, content, or unavailable assets. If required site-wide editing is not exposed by the available tools, report the limitation rather than saving Menu or Footer as a page module.

Dynamic component page composition​

A page may contain any number of components, but it may contain at most one component from this dynamic group: PropertyList, Property, DirectoryList, and DirectoryItem. Do not combine these types or add multiple instances of any one of them to the same page. Other components may be added freely. This restriction does not include PropertyListSelect or DirectoryListSelect; the example website uses multiple select components on the same page. Check the restriction before saving; the website integrity check does not verify it.

Dynamic page references​

List components use Options.PageRefId to reference a separate page on the same website containing the matching detail component:

List componentTarget page must contain
PropertyList or PropertyListSelectProperty
DirectoryList or DirectoryListSelectDirectoryItem

Create the target page and its detail component first. Use its actual page ID, not an ID copied from an example or another website. Reference pages are typically hidden from navigation: set isHidden to true when the detail page should open from a list rather than appear in the menu. Hidden pages remain accessible by URL; isHidden controls menu visibility, not access. Preserve existing visibility unless the user requests a change, and never treat hiding a page as access control or privacy protection.

Depending on the component's template map, additional cross-references may be required: AgentPageRefId points to a page containing DirectoryItem, and PropertyPageRefId points to a page containing Property. Inspect the map and run the website integrity check after saving. Preserve other option fields when editing an existing component.

Dynamic component Options examples​

Options is a JSON-encoded string. The table shows the JSON object contained inside that string. Replace example page IDs with actual IDs from this website. *PageRefIdPath fields may be null; use the ID fields for these references.

ComponentExample Options object
Property{"PropertyRefId":null,"AgentPageRefIdPath":null,"AgentPageRefId":0}
PropertyList{"PageRefIdPath":null,"PageRefId":5236,"AgentPageRefIdPath":null,"AgentPageRefId":null}
PropertyListSelect{"PageRefIdPath":null,"PageRefId":5236,"AgentPageRefIdPath":null,"AgentPageRefId":null}
DirectoryItem{"AgentRefId":null,"PropertyPageRefIdPath":null,"PropertyPageRefId":5236}
DirectoryList{"PageRefIdPath":null,"PageRefId":5238,"PropertyPageRefIdPath":null,"PropertyPageRefId":null}
DirectoryListSelect{"PageRefIdPath":null,"PageRefId":5238,"PropertyPageRefIdPath":null,"PropertyPageRefId":null}

AgentPageRefId and PropertyPageRefId are website page IDs. Do not confuse them with AgentRefId and PropertyRefId, which identify agent and property records in the company database.

Default records for visible detail pages​

For a visible page containing DirectoryItem:

  • On an agent website, the component defaults to the website's agent.
  • On a property website, it defaults to an agent associated with the property. If the property has no associated agent, set AgentRefId.
  • On a company website, set AgentRefId in the component's Options.

For a visible page containing Property, a property website defaults to its associated property. On other website types, set PropertyRefId in Options.

AgentRefId and PropertyRefId are company database record IDs, not page IDs. Obtain the actual IDs from the company data; never invent or copy them from an example. Options is a JSON-encoded string, for example:

"Options": "{\"AgentRefId\":123}"

These are defaults: a record ID supplied through the page URL can select the record displayed instead. Hidden reference pages opened from a list use that URL-supplied ID. Run the website integrity check after configuring visible detail pages.

Create and edit pages​

Create pages with website_builder_create_page, using the actual parent page ID or zero for a root. Record every returned page ID. Use website_builder_update_page for name and visibility changes.

Before saving content on an existing page, read its current content and construct the complete intended module array. website_builder_save_page_content replaces all page modules; an empty array clears them. Preserve modules the user did not ask to remove.

After creating or editing pages:

  1. Use website_builder_make_home_page when a home page must be set.
  2. Use website_builder_set_site_map_hierarchy only with the complete hierarchy: every page exactly once, valid parent IDs, and no cycles.
  3. Re-read the website and check page content, hierarchy, and home page.

Set isNonClick to true when a page exists only to organize the menu—for example, a menu item that opens a submenu but should not navigate to a page. Do not add components to a non-clickable page. Add its child pages to the hierarchy so they appear in its submenu.

isNonClick is different from isHidden: hidden pages are omitted from the menu, while non-clickable pages appear in the menu but do not open page content.

Template changes​

Do not switch an existing website to an unrelated template as a routine edit. Components and their data may not be compatible. The website builder tools do not provide a template-switch or version-upgrade operation.

A version upgrade of the same template can still be incompatible. If requested, explain that it requires a separately supported, guarded migration with compatibility checks and a backup. Do not claim that such an upgrade has been performed through these tools.

Verify and report​

Run website_builder_check_site_integrity after changes and inspect any returned integrity errors. A clean integrity result does not prove that the site renders correctly. Use an available preview or host to verify rendering and interactions; otherwise report that they were not verified.

Only run website_builder_fix_website_errors with authorization, and inspect remaining errors afterward. Do not claim the website was published: these tools do not publish it.

Report the website ID, pages and content changed, navigation and home-page status, integrity results, preview status, and any partial changes, unsupported operations, or remaining work.