mcp-content-ops
mcp-content-ops
一个让智能体处理 CMS 内容的 MCP 服务器。工具本身很无趣——搜索、读取、创建草稿、设置字段、发布。真正需要思考的是在这些操作运行之前发生的事情。
我们看过的大多数内容 MCP 服务器都是把 API 客户端和凭据交给模型,凭据拥有集成账户碰巧拥有的任何权限,而在 CMS 中这通常意味着全部权限。演示时一切正常。然后有人让智能体"整理一下产品页面",它就发布了四十个草稿,因为系统中没有任何东西说它不能这样做。
作用域控制
四道关卡,按顺序执行,而且都不在工具模式(tool schema)中:
参数验证,对照已发布的模式进行。未知属性会被拒绝而不是丢弃——模型发明了一个参数说明它误解了工具,而静默丢弃会掩盖这一点。
默认拒绝。 除非配置开启,否则写入操作被禁用。
Policy中没有任何地方存在宽松的默认值。类型和字段白名单。 一个类型可读并不意味着它可写,一个类型可写也并不意味着它上面的每个字段都可写。
结构化审计每次调用,无论允许还是拒绝,都记录原因。
调用所依据的类型来自存储的条目,而不是来自参数。让调用者断言它正在编辑的内容是什么类型,就等于让调用者选择应用哪个策略。
被拒绝的调用会作为正常的工具结果返回,并设置 isError,而不是 JSON-RPC 错误。模型应该看到被拒绝的原因并做出调整;协议错误意味着客户端出了问题,那是另一回事。
Related MCP server: Agentic CMS
运行
pip install -e ".[dev]"
python -m content_ops.server policy.example.json
pytest -q它背后的 CMS 是 cms.py 中的一个内存存根——四个方法,把它换成你的内容 API 即可。
它不做什么
没有删除工具,这是故意的。没有资源或提示词,只有工具。没有认证:这是一个 stdio 服务器,信任边界是启动它的进程。模式验证器只覆盖我们自己的工具模式所使用的子集,而不是整个 JSON Schema。
为什么不用 SDK
MCP Python SDK 很好,对于更大的服务器来说它是正确的选择。但这个只实现了 stdio 上的三个方法,而且线格式足够小,以至于依赖一个目前像 SDK 那样快速迭代的依赖才是更大的风险。
Available Tools
5 toolscreate_contentB
Create a content item as a draft.
Inputs: name (required), content_type (required).
get_contentC
Read one content item.
Inputs: id (required).
publish_contentC
Publish a draft.
Inputs: id (required).
search_contentC
Find content items by a substring of their name.
Inputs: query (required), limit, content_type.
update_content_fieldC
Set one field on one content item.
Inputs: id (required), field (required), value (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The tools are mostly distinct: search, get, create, update, publish. Minor overlap: get_content vs search_content could be confused but descriptions clarify one is for exact retrieval and the other for substring search.
All tool names follow a consistent verb_noun pattern (search_content, get_content, create_content, update_content_field, publish_content). The action verbs are clear and uniform.
5 tools is well-scoped for a content operations server. Each tool covers a distinct lifecycle step: search, read, create, update, publish. No redundancy or excess.
Covers basic search/read/create/update/publish workflow, but missing delete_content (or archive), and possibly list/summary operations. Update is limited to one field at a time, which may be restrictive, but the core workflow is covered.
Maintenance
Related MCP Connectors
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Efficient, MCP-native headless CMS. Agents draft entries and roll back revisions over OAuth.
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
An MCP server that provides access to Agility CMS. See https://mcp.agilitycms.com for more details.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA governed MCP server for integrating AI agents with customer data, featuring role-based access control, field redaction, and human-in-the-loop approval for secure support operations.1-
- AlicenseBqualityCmaintenanceOpen-source MCP server that turns any CMS backend into an AI-agent-ready content management system. It provides tools for content CRUD, idea management, and publication tracking, with safety features requiring human approval for publishing.52MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides AI agents with direct read/write access to Sitecore CMS through 100+ tools across Item Service, GraphQL, and PowerShell APIs.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceGoverned MCP server for bank-grade agent tool access with RBAC, PII redaction, rate limiting, and audit logging.MIT