Automate headless CMS operations in Contentful -- list spaces, retrieve space metadata, and update space configurations through the Composio Contentful integrat
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-contentful-automation-dac5a4bcba44 ,按照其中的说明把「Contentful Automation」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Manage your Contentful headless CMS spaces directly from Claude Code. List spaces, retrieve metadata, and update space configurations without leaving your terminal.
Toolkit docs: composio.dev/toolkits/contentful
https://rube.app/mcp
Discover all Contentful spaces accessible to your authenticated account. This is typically the first operation since most other actions require a space_id.
Tool: CONTENTFUL_LIST_SPACES
Key parameters:
limit (1-1000) -- maximum number of spaces to return (default: 100)skip -- number of spaces to skip for paginationorder -- sort by field, e.g., sys.createdAt or -sys.createdAt for descendingExample prompt: "List all my Contentful spaces"
Retrieve detailed metadata for a specific space including its current sys.version, which is required for updates.
Tool: CONTENTFUL_GET_SPACE
Key parameters:
space_id (required) -- the ID of the space to retrieve (alphanumeric, 1-64 chars)Example prompt: "Get details for Contentful space abc123def"
Update the name of a specific space. Requires the current version number for optimistic locking to prevent concurrent modification conflicts.
Tool: CONTENTFUL_UPDATE_SPACE
Key parameters:
space_id (required) -- ID of the space to updatename (required) -- new name for the space (1-255 chars)version (required) -- current space version from sys.version (must be > 0)Example prompt: "Rename Contentful space abc123def to 'Production Content Hub'"
Combine space listing and detail retrieval to audit your organization's Contentful spaces.
Tools: CONTENTFUL_LIST_SPACES then CONTENTFUL_GET_SPACE
Workflow:
Example prompt: "Audit all Contentful spaces -- list them with their creation dates and current versions"
CONTENTFUL_UPDATE_SPACE requires the latest sys.version from CONTENTFUL_GET_SPACE. If someone else modified the space between your read and write, the update will fail with a version conflict. Always fetch the space immediately before updating.CONTENTFUL_LIST_SPACES uses limit and skip parameters. When you have many spaces, iterate by incrementing skip until no more results are returned to avoid missing spaces.CONTENTFUL_UPDATE_SPACE will fail if your token lacks space management scopes, even if reads via CONTENTFUL_GET_SPACE succeed. Verify your token has write permissions.space_id must match the pattern ^[a-zA-Z0-9-_.]{1,64}$. Invalid characters will be rejected.| Tool Slug | Description |
|---|---|
CONTENTFUL_LIST_SPACES | List all spaces accessible to your account |
CONTENTFUL_GET_SPACE | Retrieve detailed metadata for a single space |
CONTENTFUL_UPDATE_SPACE | Update the name of a space (requires version) |
Powered by Composio