a1-yandex-kit
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseA1 Yandex KIT Skills
A1 Yandex KIT技能
Communication
沟通规范
Before producing any user-facing message, read and apply
completely.
references/merchant-communication.mdYandex KIT (kit.yandex.ru, beta) is Yandex's e-commerce store builder — effectively a
Russian Shopify. Its REST API is a server-to-server layer for syncing catalog, stocks and
prices and for managing orders between a merchant's backend and the platform. The official
docs are in Russian; the full OpenAPI spec (162 operations) is bundled with this skill in
and searchable offline with the scripts below.
data/kit_v1.json.gz在生成任何面向用户的消息之前,请完整阅读并遵循
中的内容。
references/merchant-communication.mdYandex KIT(kit.yandex.ru,测试版)是Yandex推出的电商店铺构建工具——相当于俄罗斯版的Shopify。其REST API是一个服务器到服务器的层,用于在商家后端与平台之间同步商品目录、库存和价格,以及管理订单。官方文档为俄语;完整的OpenAPI规范(包含162个操作)已随本技能打包在中,可通过下方脚本进行离线搜索。
data/kit_v1.json.gzAPI essentials
API基础要点
- Base URL: , every path is prefixed with
https://api.kit.yandex.net./v1/ - Auth: (plain HTTP Bearer, not OAuth). The token is generated in the merchant cabinet: Settings → API → Generate token — it is shown only once, store it securely and generate a new one if lost.
Authorization: Bearer <token> - Rate limit: 3 requests per second per store, no quota headers. Exceeding it returns
code with HTTP 400 (not 429) — throttle client-side and detect the error by its
LIMIT_EXCEEDED, not by the status.code - Error contract: every error is JSON . Codes:
{"code", "message", "trace_id"}(401),AUTHENTICATION_ERROR(403),FORBIDDEN_ERROR(400),VALIDATION_ERROR(400),LIMIT_EXCEEDED(415),UNSUPPORTED_MEDIA_TYPE(404),NOT_FOUND(409),CONFLICT(500). QuoteUNKNOWN_ERRORwhen contacting support.trace_id - Datetimes: everything is UTC.
- No sandbox: production only — prefer read-only calls while exploring and double-check every write.
- Pagination: list endpoints take +
page(max 100) query parameters.per_page - Content types: request bodies are , except the 5 operations that use JSON Merge Patch (
application/json):application/merge-patch+json,UpdateCategory,UpdateCharacteristic,UpdateVariant,UpdateVariantAttachment— send only the fields to change.UpdateWarehouseclears a field only where the schema marks it nullable — of these, that is justnullandparent_idoffile_id; elsewhereUpdateCategoryfails validation (nullbelow will catch it).validate.mjs(POST /v1/files) andUploadFile(POST /v1/videos) areUploadVideo.multipart/form-data - Bulk writes: and
BulkUpdatePricestake up to 5000 items per request and are atomic — a single invalid item rejects the whole batch (400) and applies nothing. Prefer them over per-variant updates for catalog syncs.BulkUpdateStocks
- 基础URL:,所有路径均以
https://api.kit.yandex.net为前缀。/v1/ - 认证方式:(纯HTTP Bearer认证,非OAuth)。令牌在商家后台生成:设置 → API → 生成令牌——令牌仅显示一次,请安全存储,若丢失需重新生成。
Authorization: Bearer <token> - 速率限制:每个店铺每秒最多3次请求,无配额响应头。超出限制会返回错误码,对应HTTP 400状态码(而非429)——需在客户端进行限流,并通过错误
LIMIT_EXCEEDED而非状态码检测该错误。code - 错误约定:所有错误均为JSON格式。错误码包括:
{"code", "message", "trace_id"}(401)、AUTHENTICATION_ERROR(403)、FORBIDDEN_ERROR(400)、VALIDATION_ERROR(400)、LIMIT_EXCEEDED(415)、UNSUPPORTED_MEDIA_TYPE(404)、NOT_FOUND(409)、CONFLICT(500)。联系技术支持时请提供UNKNOWN_ERROR。trace_id - 日期时间:所有时间均采用UTC时区。
- 无沙箱环境:仅支持生产环境——探索阶段优先使用只读接口,执行写入操作前务必仔细检查。
- 分页机制:列表接口接受和
page(最大值100)查询参数。per_page - 内容类型:请求体默认使用,除了5个使用JSON Merge Patch的操作(
application/json):application/merge-patch+json、UpdateCategory、UpdateCharacteristic、UpdateVariant、UpdateVariantAttachment——仅发送需要修改的字段。仅当架构标记字段可为空时,UpdateWarehouse才会清除字段值,目前只有null的UpdateCategory和parent_id支持此操作;其他场景下file_id会触发验证失败(下方的null脚本可检测此类问题)。validate.mjs(POST /v1/files)和UploadFile(POST /v1/videos)接口使用UploadVideo类型。multipart/form-data - 批量写入:和
BulkUpdatePrices接口每次请求最多支持5000条数据,且操作具有原子性——只要有一条数据无效,整个批次都会被拒绝(返回400),且不会应用任何修改。同步商品目录时,优先使用这些批量接口而非逐个变体更新。BulkUpdateStocks
Workflow
工作流程
Run the bundled scripts from this skill's directory — they are self-contained
(Node.js >= 20, builtins + a vendored validator, no , no network).
npm install-
Search for the operation you need:bash
node scripts/search_docs.mjs "<query>" [--tag "<Тег>"] [--limit N]Matches operation ids, paths, tags and the Russian summaries/descriptions, e.g..node scripts/search_docs.mjs "создать товар" -
Inspect the full contract of one operation — path/query parameters plus the fully dereferenced request/response schemas:bash
node scripts/search_docs.mjs --operation CreateProduct -
Validate a drafted request body offline before sending anything:bash
node scripts/validate.mjs --operation CreateProduct --body '<json>' # or: node scripts/validate.mjs --operation CreateProduct --body-file body.jsonPrints(exit 0) or the list of schema violations (exit 1).VALID -
Execute the operation:
- prefer the bundled MCP server: a curated tool when one exists (see the domain skills), otherwise the meta trio below;
mcp-yandex-kit - any operation without a dedicated tool: the MCP tool — it validates the body against the same schema before sending;
kit_request - or plain HTTP:
(mind the 3 rps limit).
curl -H "Authorization: Bearer $YANDEX_KIT_TOKEN" https://api.kit.yandex.net/v1/...
- prefer the bundled
从本技能的目录中运行附带的脚本——这些脚本是独立的(要求Node.js >=20,仅使用内置模块和内置验证器,无需,无需网络)。
npm install-
搜索所需操作:bash
node scripts/search_docs.mjs "<query>" [--tag "<Тег>"] [--limit N]匹配操作ID、路径、标签以及俄语摘要/描述,例如。node scripts/search_docs.mjs "создать товар" -
查看单个操作的完整约定——包括路径/查询参数以及完全解引用的请求/响应架构:bash
node scripts/search_docs.mjs --operation CreateProduct -
离线验证拟发送的请求体:bash
node scripts/validate.mjs --operation CreateProduct --body '<json>' # 或:node scripts/validate.mjs --operation CreateProduct --body-file body.json验证通过会输出(退出码0),否则输出架构违规列表(退出码1)。VALID -
执行操作:
- 优先使用附带的MCP服务器:若有专用工具则使用该工具(详见各领域技能),否则使用下方的三个通用工具;
mcp-yandex-kit - 对于无专用工具的操作:使用MCP工具——它会在发送前根据相同架构验证请求体;
kit_request - 或使用普通HTTP请求:
(注意每秒3次请求的限制)。
curl -H "Authorization: Bearer $YANDEX_KIT_TOKEN" https://api.kit.yandex.net/v1/...
- 优先使用附带的
Domain skills
领域技能
Prefer the focused skill when the task clearly belongs to one domain — each bundles the
same scripts and data, plus the endpoint tables of its tags:
- — products, variants (SKUs, prices, stocks, bulk price/stock sync), categories, characteristics (groups, colors), videos, collections, context collections, badges.
a1-yandex-kit-catalog - — orders, customers, gift cards, additional services (addons).
a1-yandex-kit-orders - — discounts, promo codes, promocode groups, gifts.
a1-yandex-kit-promotions - — store profile, warehouses, users, geo, files, redirects, blog/news, alerts.
a1-yandex-kit-store - — webhooks: order events, HTTPS callbacks, signing secret.
a1-yandex-kit-webhooks
当任务明确属于某一领域时,优先使用针对性的技能——每个领域技能都包含相同的脚本和数据,以及对应标签的端点表格:
- —— 商品、变体(SKU、价格、库存、批量价格/库存同步)、分类、属性(组、颜色)、视频、集合、上下文集合、徽章。
a1-yandex-kit-catalog - —— 订单、客户、礼品卡、附加服务(插件)。
a1-yandex-kit-orders - —— 折扣、促销码、促销码组、赠品。
a1-yandex-kit-promotions - —— 店铺资料、仓库、用户、地理位置、文件、重定向、博客/新闻、通知。
a1-yandex-kit-store - —— Webhooks:订单事件、HTTPS回调、签名密钥。
a1-yandex-kit-webhooks
Related MCP tools
相关MCP工具
The bundled MCP server exposes 84 tools. Curated tools
cover the everyday catalog/orders/promotions/store/webhooks workflows (they are listed
in the domain skills); the meta trio below reaches all 162 operations:
mcp-yandex-kit- — Search the full catalog of all 162 Yandex KIT API operations by keyword.
search_operations - — Get full metadata for one KIT API operation by operationId: HTTP method, path, path/query parameters, request content type, pagination info, and the fully dereferenced JSON schemas of the request body and response.
get_operation_schema - — Escape hatch that executes ANY of the 162 Yandex KIT API operations by operationId, including operations without a dedicated tool.
kit_request
附带的 MCP服务器提供84个工具。精选工具覆盖日常的商品目录/订单/促销/店铺/Webhooks工作流(详见各领域技能);以下三个通用工具可覆盖全部162个操作:
mcp-yandex-kit- —— 通过关键词搜索Yandex KIT API的全部162个操作。
search_operations - —— 通过operationId获取单个KIT API操作的完整元数据:HTTP方法、路径、路径/查询参数、请求内容类型、分页信息,以及完全解引用的请求体和响应JSON架构。
get_operation_schema - —— 通用工具,可通过operationId执行Yandex KIT API的任意162个操作,包括无专用工具的操作。
kit_request