// 1. Get the content type schema
const contentType = await mcp.call("get_content_type", {
contentTypeId: "ct_story_001"
});
// 2. Find assets to use
const assets = await mcp.call("search_assets", {
query: "hero image",
type: "image/*"
});
// 3. Create the content
const result = await mcp.call("create_content", {
typeId: "ct_story_001",
name: "My New Story",
content: {
title: "My New Story",
asset: { id: assets.items[0].id },
components: [
{
type: "StoryParagraph",
text: "Opening paragraph..."
}
]
}
});
// 4. Update if needed
await mcp.call("update_content", {
contentId: result.id,
content: {
// Updated content...
}
});