MCP Site
site_create

Создать сайт

Создаёт закрытый черновик с начальной версией и адресом сайта.

С изменениями

Примеры промптов

Запрос в чат
Создай черновик сайта «Ателье» для справочных страниц. Верни siteId, адрес и идентификатор начальной версии. На этом остановись.
Что проверить в ответе

Создаёт закрытый черновик с начальной версией и адресом сайта.

Запрос в чат
Для нового справочника создай частный черновик с системным адресом. Сохрани siteId и адрес из результата.
Что проверить в ответе

Новый сайт и его адрес.

Запрос в чат
После создания черновика проверь, готова ли учётная запись к публикации и какую версию редактировать первой.
Что проверить в ответе

Статус и начальная версия.

Как проходит вызов
Вход: name, purpose, addressKind. Результат: site, readiness, publication.
Как уточнить расплывчатый запрос
Сделай как обычно.

Укажите рабочее пространство, название сайта и что нужно получить.

Создай черновик сайта «Ателье» для справочных страниц. Верни siteId, адрес и идентификатор начальной версии. На этом остановись.

Параметры запроса
name
строка · обязательно по схеме · макс. символов 100
purpose
storefront, website · необязательно
addressKind
system, firebase, custom · обязательно по схеме · по умолчанию "system"
idempotencyKey
Ключ одной операции. При повторе с теми же данными сохраните ключ. строка · обязательно по схеме
Что вернёт инструмент
site
Карточка сайта с состоянием и ревизией. объект · обязательно по схеме
readiness
объект · обязательно по схеме
publication
объект · обязательно по схеме
Пример аргументов JSON

Учебные значения. Для вызова подставьте идентификаторы и ревизию из своего подключения.

{
  "name": "Ателье",
  "addressKind": "system",
  "purpose": "website",
  "idempotencyKey": "demo-create-001"
}
Полная схема MCP

Вход

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "purpose": {
      "type": "string",
      "enum": [
        "storefront",
        "website"
      ]
    },
    "addressKind": {
      "default": "system",
      "type": "string",
      "enum": [
        "system",
        "firebase",
        "custom"
      ]
    },
    "idempotencyKey": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$"
    }
  },
  "required": [
    "name",
    "addressKind",
    "idempotencyKey"
  ],
  "additionalProperties": false
}

Ответ

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "site": {
      "type": "object",
      "properties": {
        "shortProductUrls": {
          "type": "boolean"
        },
        "webVoiceEnabled": {
          "type": "boolean"
        },
        "contentRevision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "catalogReadSource": {
          "type": "string",
          "enum": [
            "native",
            "snapshot"
          ]
        },
        "appExperience": {
          "type": "object",
          "properties": {
            "enabled": {
              "default": false,
              "type": "boolean"
            },
            "platforms": {
              "default": [
                "ios",
                "android"
              ],
              "minItems": 1,
              "maxItems": 2,
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "ios",
                  "android"
                ]
              }
            },
            "minimumBridgeVersion": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "safeArea": {
              "default": true,
              "type": "boolean"
            },
            "languageSource": {
              "default": "native",
              "type": "string",
              "enum": [
                "native",
                "site"
              ]
            },
            "brandingSource": {
              "default": "company",
              "type": "string",
              "enum": [
                "company",
                "site"
              ]
            },
            "paymentResult": {
              "default": "custom-with-native-fallback",
              "type": "string",
              "enum": [
                "native",
                "custom-with-native-fallback"
              ]
            }
          },
          "required": [
            "enabled",
            "platforms",
            "minimumBridgeVersion",
            "safeArea",
            "languageSource",
            "brandingSource",
            "paymentResult"
          ],
          "additionalProperties": false
        },
        "displayExperiences": {
          "type": "object",
          "properties": {
            "shared": {
              "type": "object",
              "properties": {
                "themeColor": {
                  "type": "string",
                  "pattern": "^#[0-9a-fA-F]{6}$"
                },
                "navigation": {
                  "type": "string",
                  "enum": [
                    "full",
                    "compact"
                  ]
                },
                "styles": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.css$"
                  }
                },
                "scripts": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.js$"
                  }
                }
              },
              "additionalProperties": false
            },
            "web": {
              "type": "object",
              "properties": {
                "themeColor": {
                  "type": "string",
                  "pattern": "^#[0-9a-fA-F]{6}$"
                },
                "navigation": {
                  "type": "string",
                  "enum": [
                    "full",
                    "compact"
                  ]
                },
                "styles": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.css$"
                  }
                },
                "scripts": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.js$"
                  }
                }
              },
              "additionalProperties": false
            },
            "app": {
              "type": "object",
              "properties": {
                "themeColor": {
                  "type": "string",
                  "pattern": "^#[0-9a-fA-F]{6}$"
                },
                "navigation": {
                  "type": "string",
                  "enum": [
                    "full",
                    "compact"
                  ]
                },
                "styles": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.css$"
                  }
                },
                "scripts": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.js$"
                  }
                }
              },
              "additionalProperties": false
            },
            "ios": {
              "type": "object",
              "properties": {
                "themeColor": {
                  "type": "string",
                  "pattern": "^#[0-9a-fA-F]{6}$"
                },
                "navigation": {
                  "type": "string",
                  "enum": [
                    "full",
                    "compact"
                  ]
                },
                "styles": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.css$"
                  }
                },
                "scripts": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.js$"
                  }
                }
              },
              "additionalProperties": false
            },
            "android": {
              "type": "object",
              "properties": {
                "themeColor": {
                  "type": "string",
                  "pattern": "^#[0-9a-fA-F]{6}$"
                },
                "navigation": {
                  "type": "string",
                  "enum": [
                    "full",
                    "compact"
                  ]
                },
                "styles": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.css$"
                  }
                },
                "scripts": {
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^assets\\/[A-Za-z0-9_./-]+\\.js$"
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "showcaseEnabled": {
          "type": "boolean"
        },
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        "companyId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        "name": {
          "type": "string"
        },
        "tariffId": {
          "type": "string"
        },
        "systemHostname": {
          "type": "string"
        },
        "purpose": {
          "type": "string",
          "enum": [
            "storefront",
            "website"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "draft",
            "active",
            "disabled"
          ]
        },
        "draftVersionId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "publishedVersionId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "primaryDomainId": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "cacheEpoch": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "lastCachePurge": {
          "$ref": "#/$defs/__schema0"
        },
        "actionProtection": {
          "$ref": "#/$defs/__schema1"
        },
        "mediaUploadLimits": {
          "$ref": "#/$defs/__schema2"
        },
        "catalogVisibility": {
          "$ref": "#/$defs/__schema3"
        },
        "capabilities": {
          "$ref": "#/$defs/__schema4"
        },
        "business": {
          "$ref": "#/$defs/__schema5"
        },
        "siteLanguages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "publicProductFieldIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
          }
        },
        "catalogImageOverrides": {
          "type": "object",
          "propertyNames": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
          },
          "additionalProperties": {
            "type": "string",
            "format": "uri"
          }
        },
        "analytics": {
          "$ref": "#/$defs/__schema6"
        },
        "tagManager": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema7"
            },
            {
              "type": "null"
            }
          ]
        },
        "search": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            }
          },
          "required": [
            "enabled"
          ],
          "additionalProperties": false
        },
        "paymentWidget": {
          "$ref": "#/$defs/__schema8"
        },
        "redirects": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "to": {
                "type": "string"
              },
              "code": {
                "anyOf": [
                  {
                    "type": "number",
                    "const": 301
                  },
                  {
                    "type": "number",
                    "const": 308
                  }
                ]
              }
            },
            "required": [
              "to",
              "code"
            ],
            "additionalProperties": false
          }
        },
        "archivedAt": {
          "type": [
            "number",
            "null"
          ]
        },
        "archivedBy": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "formIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
          }
        },
        "createdAt": {
          "type": "number"
        },
        "createdBy": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        "updatedAt": {
          "type": "number"
        },
        "searchCrawlers": {
          "type": "boolean"
        },
        "trainingCrawlers": {
          "type": "boolean"
        },
        "testMode": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "companyId",
        "name",
        "status",
        "draftVersionId",
        "publishedVersionId",
        "primaryDomainId",
        "revision",
        "catalogVisibility",
        "capabilities",
        "formIds",
        "createdAt",
        "createdBy",
        "updatedAt",
        "searchCrawlers",
        "trainingCrawlers",
        "testMode"
      ],
      "additionalProperties": false
    },
    "readiness": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema9"
      }
    },
    "publication": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema9"
      }
    }
  },
  "required": [
    "site",
    "readiness",
    "publication"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    },
    "__schema1": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema1"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema1"
          }
        }
      ]
    },
    "__schema2": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema2"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema2"
          }
        }
      ]
    },
    "__schema3": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema3"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema3"
          }
        }
      ]
    },
    "__schema4": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema4"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema4"
          }
        }
      ]
    },
    "__schema5": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema5"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema5"
          }
        }
      ]
    },
    "__schema6": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema6"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema6"
          }
        }
      ]
    },
    "__schema7": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema7"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema7"
          }
        }
      ]
    },
    "__schema8": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema8"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema8"
          }
        }
      ]
    },
    "__schema9": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema9"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema9"
          }
        }
      ]
    }
  }
}
Открыть JSON карточки

Из этого раздела