Skillshub Contentful Automation
Automate headless CMS operations in Contentful -- list spaces, retrieve space metadata, and update space configurations through the Composio Contentful integration.
git clone https://github.com/ComeOnOliver/skillshub
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ComposioHQ/awesome-claude-skills/contentful-automation" ~/.claude/skills/comeonoliver-skillshub-contentful-automation && rm -rf "$T"
skills/ComposioHQ/awesome-claude-skills/contentful-automation/SKILL.mdContentful 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:
(1-1000) -- maximum number of spaces to return (default: 100)limit
-- number of spaces to skip for paginationskip
-- sort by field, e.g.,order
orsys.createdAt
for descending-sys.createdAt
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:
(required) -- the ID of the space to retrieve (alphanumeric, 1-64 chars)space_id
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:
(required) -- ID of the space to updatespace_id
(required) -- new name for the space (1-255 chars)name
(required) -- current space version fromversion
(must be > 0)sys.version
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:
requires the latestCONTENTFUL_UPDATE_SPACE
fromsys.version
. 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_GET_SPACE - Pagination for many spaces:
usesCONTENTFUL_LIST_SPACES
andlimit
parameters. When you have many spaces, iterate by incrementingskip
until no more results are returned to avoid missing spaces.skip - 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
will fail if your token lacks space management scopes, even if reads viaCONTENTFUL_UPDATE_SPACE
succeed. Verify your token has write permissions.CONTENTFUL_GET_SPACE - Space ID format: The
must match the patternspace_id
. Invalid characters will be rejected.^[a-zA-Z0-9-_.]{1,64}$
Quick Reference
| Tool Slug | Description |
|---|---|
| List all spaces accessible to your account |
| Retrieve detailed metadata for a single space |
| Update the name of a space (requires version) |
Powered by Composio