Contentful Automation
Automate headless CMS operations in Contentful -- list spaces, retrieve space metadata, and update space configurations through the Composio Content…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Contentful Automation
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
Setup
- Add the Composio MCP server to your configuration:
https://rube.app/mcp
- Connect your Contentful account when prompted. The agent will provide an authentication link. Ensure your access token has space management scopes.
Core Workflows
1. List All Spaces
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.createdAtor-sys.createdAtfor descending
Example prompt: "List all my Contentful spaces"
2. Get Space Details
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"
3. Update Space Name
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 fromsys.version(must be > 0)
Example prompt: "Rename Contentful space abc123def to 'Production Content Hub'"
4. Audit Space Inventory
Combine space listing and detail retrieval to audit your organization's Contentful spaces.
Tools: CONTENTFUL_LIST_SPACES then CONTENTFUL_GET_SPACE
Workflow:
- List all spaces to get IDs and names
- Fetch details for each space to get version info, creation dates, and metadata
Example prompt: "Audit all Contentful spaces -- list them with their creation dates and current versions"
Known Pitfalls
- Version conflicts on update:
CONTENTFUL_UPDATE_SPACErequires the latestsys.versionfromCONTENTFUL_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. - Pagination for many spaces:
CONTENTFUL_LIST_SPACESuseslimitandskipparameters. When you have many spaces, iterate by incrementingskipuntil no more results are returned to avoid missing spaces. - Scope limitations: These tools only manage space-level metadata (names). They cannot create or modify entries, content types, or assets within a space.
- Auth/permissions mismatch: Updates via
CONTENTFUL_UPDATE_SPACEwill fail if your token lacks space management scopes, even if reads viaCONTENTFUL_GET_SPACEsucceed. Verify your token has write permissions. - Space ID format: The
space_idmust match the pattern^[a-zA-Z0-9-_.]{1,64}$. Invalid characters will be rejected.
Quick Reference
| 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
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
composio-skills/contentful-automation/SKILL.md