
Cmssy
io.github.cmssy-io由 GitHub 账号 cmssy-io 发布v0.135.1更新于 Nov 7, 2026
Hosted headless CMS with native commerce: pages, media, forms, products, orders, refunds, discounts.
概览
Cmssy 的 MCP 服务器:一个内置电商功能的托管式无头 CMS,让助手管理页面、记录、媒体、商品、订单和折扣。
- 可以做什么
- 读取站点内容:页面树、页面区块与区域、站点配置、工作区信息、媒体库和页面回收站
- 创建与编辑页面:新建页面、设置区块、局部修补 HTML 内容、更新 SEO、布局与区域设置,以及发布、取消发布、回滚和恢复
- 定义自定义数据模型并增删改查其记录,支持批量导入和批量更新
- 管理电商业务:订单、付款、退款、退货、发货、购物车、折扣、含库存与变体的商品、价格表和销售渠道
- 管理客户与出站 Webhook,并获取用于搭建 Next.js 前端的站点初始化文件
- 适用场景
- 适合让助手在 Cmssy 工作区中撰写或重构内容,或在不打开后台界面的情况下处理店铺运营,例如核对订单、处理退货、调整库存与价格、管理折扣码和价格表。
- 运行要求
- 可使用 api.cmssy.io/mcp 的托管端点并通过 OAuth 登录,也可通过 npx 在本地以 stdio 运行 npm 包。需要一个 Cmssy 工作区、以 cs_ 开头的 API 令牌(CMSSY_API_TOKEN 或 --token)以及工作区 ID(CMSSY_WORKSPACE_ID 或 --workspace-id);CMSSY_API_URL 为可选项。购物车与结账功能需要 Pro 套餐。
安装
在 SourceWeft 中
- 打开 控制台中的 Cmssy,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.cmssy-io%2Fcmssy-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"cmssy": {
"type": "http",
"url": "https://api.cmssy.io/mcp"
}
}
}README
@cmssy/mcp-server
MCP server for Cmssy, a hosted headless CMS with built-in commerce. Lets an AI agent work with pages, records, media, forms, products, orders, refunds and discounts in a Cmssy workspace.
Hosted server (no install)
https://api.cmssy.io/mcp serves the same tools over HTTP. Claude (web, desktop, Code) and Codex connect by signing in to cmssy. A client that asks for a server URL and an API key - v0, Lovable, Bolt or your own - sends a cs_ token instead:
A token scoped to one workspace reaches only that workspace; an unscoped token reaches every workspace you belong to. Every tool takes a workspace (<orgSlug>/<workspaceSlug>), and list_workspaces names the ones the token may use. It reads and writes with your role in each workspace. Changing your password does not revoke it - delete it under Dashboard > API Tokens. Details: cmssy.com/docs/api/mcp.
Setup
Prerequisites
- A Cmssy workspace - the free plan works; cart and checkout need Pro
- An API token (Dashboard > API Tokens, starts with
cs_) - Your workspace ID (Workspace Settings > General)
The server talks to https://api.cmssy.io by default. Pass --api-url only for another backend.
Add to Claude Code
Add to .mcp.json in your project root:
Environment Variables
Instead of CLI args, you can set:
CMSSY_API_TOKEN— API token (cs_xxx)CMSSY_WORKSPACE_ID— Workspace IDCMSSY_API_URL— API URL (optional; defaults tohttps://api.cmssy.io, so set it only for a self-hosted backend)
Checking which build is running
--version and --help need no token, so they answer even when the server is
not configured. Run the flag against the same spec your client launches,
copied out of your mcp.json:
The first two can disagree, and that disagreement is the answer: a warm npx
cache holds the build an unpinned spec resolved to earlier, while @latest
re-resolves and reports the newest one. So @latest --version cannot diagnose
a stale cache - it is the command that hides it. Ask the unpinned spec first
when a tool fails on a field the API should serve, then compare.
Clearing the cache is npx clear-npx-cache, or pin the version in your config
so nothing has to be diagnosed.
Privacy Policy
Full policy: https://www.cmssy.com/privacy. Contact: [email protected].
- What this server collects: nothing of its own. It keeps no local database, writes no files and sends nothing to any analytics service.
- What it sends, and where: each tool call becomes a GraphQL request to the Cmssy API (
https://api.cmssy.iounless you setCMSSY_API_URL), carrying your API token, your workspace ID, the tool's arguments, the client name and version, and the name of the tool being run. The Cmssy API records one usage event per tool call from those last two. - Files and URLs:
upload_mediareads only the local file path or downloads only the URL you pass it, then uploads the bytes to the Cmssy storage URL the API returns. It touches no other file. - Usage and storage: the Cmssy API stores workspace content (pages, records, media, orders, customers) as described in the policy above, in the European Union. Content is not sold and not used to train AI models.
- Third-party sharing: the server talks to the Cmssy API and the Cmssy storage URL only, plus any URL you hand to
upload_media. Third parties the Cmssy service itself uses are listed in the policy. - Data retention: the server keeps nothing after a call returns. Workspace data stays until you delete it or close your account; retention periods are in the policy.
- Your token: it acts with the permissions of the member who created it. Revoke it under Dashboard > API Tokens at any time.
Response shape (write tools)
As of 0.6.0, most write tools accept an optional response arg:
response: "minimal"(default) - returns a small ack (~200 bytes):{id, slug, hasUnpublishedChanges, updatedAt}for page tools,{pageId, blockId, hasUnpublishedChanges, updatedAt}for block tools,{id, slug, status, updatedAt}for form tools,{id, slug, updatedAt}for model tools,{id, status, updatedAt}for record tools,{id, orderNumber, status, paymentStatus, fulfillmentStatus, total, balanceDue, currency, updatedAt}for order tools,{id, code, type, value, enabled, updatedAt}for discount tools.response: "full"- returns the full mutation response (pre-0.6 behavior).
Use "full" only if you need the post-write state inline; otherwise issue a
follow-up get_page/get_form/get_model/get_record. This keeps agent
context windows from being eaten by echoed content.
Tools that accept response: create_page, update_page_blocks,
update_page_settings, publish_page, unpublish_page, revert_to_published,
update_page_layout, add_block_to_page, update_block_content,
remove_block_from_page, create_form, update_form, create_model,
update_model, create_record, update_record, create_manual_order,
edit_order, update_order_details, mark_order_paid, record_order_payment,
refund_order, cancel_order, close_order, reopen_order,
create_return, approve_return, reject_return, cancel_return,
receive_return, refund_return, complete_return, update_return_tracking,
create_shipment, update_shipment,
set_order_pipeline_stage, record_order_invoice,
record_order_invoice_correction, create_discount,
update_discount, set_discount_enabled.
patch_block_content and the various delete_* / status-only tools
(update_form_submission_status, import_records)
already returned a compact ack and don't take response.
Building a site
On connect the server sends instructions that send an agent (v0, Lovable, Bolt, Claude) to get_site_setup first. It returns the files cmssy init writes for Next.js - catch-all page, editor route, proxy, config, block registry, header/footer regions - with the workspace's env vars filled in. The agent then deploys, calls set_preview_url, creates the content.changed webhook for /api/revalidate, has the user open the editor once so the block types register, creates the pages with header and footer in their layout regions, and publishes them.
Available Tools
Read Tools
Write Tools
Block Helper Tools
update_region_settings
Region (layout position) settings are declared by the workspace's layout
manifest and validated against it on write. The tool reads the page's current
layoutRegionSettings, replaces only the named region and writes the whole
list back, so sibling regions keep their values (entries for regions the
manifest no longer declares, and keys a region's schema no longer has, are
dropped on the way - the same pruning the admin editor does). The backend's own
BAD_USER_INPUT message is returned verbatim for an unknown region, an unknown
key, or a non-empty values on a region that declares no settings (such a
region accepts values: {} only); blockWarnings are surfaced when present.
Child pages inherit a region's settings unless they set their own -
get_page shows the effective value per region in resolvedRegions
(settingsAreInherited, settingsSourcePageId).
patch_block_content
For small edits on long HTML content strings (e.g. a docs-article body),
patch_block_content is ~10x cheaper in tokens than update_block_content
and catches marker mistakes before anything writes to the DB.
Four ops: insert_before, insert_after, replace_section, replace_all.
Every marker must match exactly once - 0 or 2+ matches error out with the
actual count (no silent half-applied state). For replace_section,
startMarker is inclusive and endMarker is exclusive. replace_all sets the
whole string and takes expected, the current value - refused if it moved.
Requires @cmssy/cli-registered workspace with PAGES_EDIT permission.
Default fieldPath is "content" (the HTML body on docs-article); override
if patching a different string field. Dot segments reach a nested string, e.g.
tabs.0.label for the first tab's label.
Model Tools (Custom Data Models)
AI agents can define ModelDefinitions and CRUD their records. Schema/fields
follow PropertyField from @cmssy/types; records are validated against the
model on every write.
Requires workspace permissions MODELS_VIEW (read) / MODELS_CREATE /
MODELS_EDIT / MODELS_DELETE depending on the operation.
Commerce Tools (Orders, Carts, Discounts)
Manage the storefront's orders, carts, and discount codes. All money fields
are integer minor units (cents). Order/discount write tools accept the
response arg (see Response shape).
Products are records of a Custom Data Model; these tools add product-aware
stock/variant reads and bulk writes on top of the generic record tools. The
bulk tools target an explicit ids list or everything matching a filter
(allMatching: true). There is no per-variant stock write and no standalone
inventory mutation - stock is set/adjusted in bulk via patch.setStock /
patch.adjustStock.
Requires workspace permissions ORDERS_VIEW / ORDERS_MANAGE (orders),
CARTS_VIEW (carts), DISCOUNTS_VIEW / DISCOUNTS_MANAGE (discounts),
MODELS_VIEW / MODELS_EDIT / MODELS_DELETE (products).
Customer Tools
Customers are the accounts that sign in to the site - records of a model
with accounts enabled - not the team that manages the workspace
(list_team).
Price List Tools
A price list (Gold, Silver, dealer tiers) prices a buyer at a percent off the catalogue plus fixed prices per product or variant. Each buyer has one list: a company's members pay the company's list, a customer without a company their own.
Sales Channel Tools
A sales channel (retail, horeca, b2b) is a key a storefront sends to be priced
from the price lists published to it: per product the buyer's own or company
list wins, then the channel's dated list, then its base list, then the
catalogue. Lists are published with create_price_list / update_price_list
channels.
Webhook Tools
Manage outbound event webhooks. create_webhook and rotate_webhook_secret
return the signing secret once - it cannot be retrieved again.
Requires workspace permissions WEBHOOKS_VIEW (read) / WEBHOOKS_MANAGE
(create, update, rotate, delete).
Resources
Example Workflow
Hosting the server (library)
createHostedServer serves the same tools from a host that holds no token and no disk. Every tool takes a workspace (<orgSlug>/<workspaceSlug>); list_workspaces names the ones a connection may use. The package checks only the shape of workspace - everything below is the host's job:
resolveWorkspace(workspace)is the authorization. Check, on every call, that the caller is still a member of that workspace and that the connection was granted it. Throw the same message for "does not exist" and "not yours", so a refusal does not reveal which workspaces exist.- The executor is the scope. The
CmssyApiit returns (createCmssyApi(execute, workspaceId)) runs every document as that user in that workspace; the package sends nothing that would scope it. fetchUrlis the SSRF boundary. Refuse private, loopback and link-local addresses and re-check every redirect. The package caps the body at 50MB while reading.
Development
来源:README.md,提交 5b40247
工具
0版本历史
52- v0.135.1最新Nov 7, 2026
- v0.134.3Nov 4, 2026
- v0.134.1Nov 4, 2026
- v0.134.0Nov 3, 2026
- v0.133.1Oct 30, 2026
- v0.133.0Oct 29, 2026
- v0.130.0Oct 26, 2026
- v0.129.1Oct 25, 2026
- v0.129.0Oct 25, 2026
- v0.126.0Oct 24, 2026
- v0.125.0Oct 23, 2026
- v0.121.0Oct 23, 2026
- v0.119.0Oct 23, 2026
- v0.118.0Oct 22, 2026
- v0.117.0Oct 22, 2026
- v0.116.0Oct 22, 2026
- v0.112.0Oct 22, 2026
- v0.110.0Oct 21, 2026
- v0.107.0Oct 21, 2026
- v0.106.0Oct 21, 2026
- v0.105.0Oct 20, 2026
- v0.104.0Oct 19, 2026
- v0.103.0Oct 19, 2026
- v0.101.0Oct 19, 2026
- v0.100.0Oct 18, 2026
- v0.98.0Oct 18, 2026
- v0.97.0Oct 17, 2026
- v0.96.0Oct 13, 2026
- v0.94.0Oct 11, 2026
- v0.93.1Oct 9, 2026
- v0.93.0Oct 9, 2026
- v0.92.3Oct 8, 2026
- v0.92.2Oct 7, 2026
- v0.92.1Oct 7, 2026
- v0.92.0Oct 6, 2026
- v0.91.0Oct 5, 2026
- v0.90.0Oct 4, 2026
- v0.89.0Oct 4, 2026
- v0.88.0Oct 2, 2026
- v0.87.0Oct 1, 2026
- v0.86.0Sep 30, 2026
- v0.85.0Sep 29, 2026
- v0.84.0Sep 28, 2026
- v0.83.1Sep 27, 2026
- v0.83.0Sep 27, 2026
- v0.82.0Sep 27, 2026
- v0.81.0Sep 22, 2026
- v0.79.1Sep 21, 2026
- v0.78.0Sep 21, 2026
- v0.77.0Sep 21, 2026
- v0.75.0Sep 20, 2026
- v0.73.1Sep 20, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分