mcp-content-ops
mcp-content-ops
エージェントがCMSコンテンツを操作できるようにするMCPサーバーです。ツール自体は退屈な部分です — 検索、読み取り、下書き作成、フィールド設定、公開。考える必要があったのは、それらのいずれかを実行する前に起こることです。
私たちが調べたほとんどのコンテンツMCPサーバーは、モデルにAPIクライアントと、統合アカウントがたまたま持っている権限(CMSでは通常すべて)を渡します。デモは機能します。その後、誰かがエージェントに「商品ページを整理して」と頼むと、エージェントは40件の下書きを公開します。なぜなら、システム内のどこにもそれができないとは書かれていないからです。
スコープ設定
4つのゲートがあり、順番に適用されます。それらのいずれもツールスキーマには存在しません。
引数検証 — 公開されたスキーマに照らして行われます。不明なプロパティは破棄されるのではなく拒否されます — 引数をでっち上げたモデルはツールを誤解しており、それを静かに破棄するとその誤解が隠れてしまいます。
デフォルトで拒否。 設定で有効にしない限り、書き込みはオフです。
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のインメモリスタブです — 4つのメソッドがあり、コンテンツAPIに置き換えてください。
これが行わないこと
削除ツールは意図的にありません。リソースやプロンプトはなく、ツールのみです。認証はありません。これはstdioサーバーであり、信頼境界はそれを起動したプロセスです。スキーマバリデーターは、独自のツールスキーマが使用するサブセットをカバーしており、JSON Schema全体ではありません。
なぜSDKを使わないのか
MCP Python SDKは問題なく、より大きなサーバーではそれが正しい選択です。これはstdio上で3つのメソッドを実装しており、ワイヤーフォーマットは十分に小さいため、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