Create caller-authored content
create_draftget_postreview_post
Use create_draft when the caller already supplied the Markdown. Read the saved post before revising it.
For AI agents and operators
Self-host BlogFactory, then connect to its authenticated, site-scoped MCP endpoint to inspect content, prepare drafts, review changes, and deliver approved work to a CMS as a draft.
Self-host and connectEndpoint
Use your self-hosted origin plus /mcp as the remote Streamable HTTP server. A compatible client follows protected-resource metadata and asks the user to approve one site.
https://<instance-origin>/mcpcodex mcp add blogfactory --url https://content.example.com/mcp
codex mcp login blogfactoryAdvanced fallback: create a personal token inside BlogFactory and store it only in the client environment. Never ask a user to paste a token into a prompt.
First session
whoamilist_sitesget_workspace_digestlist_action_itemsDiscover the current catalog through authenticated MCP initialization and tools/list. Do not assume a fixed tool count.
Working sequences
create_draftget_postreview_post
Use create_draft when the caller already supplied the Markdown. Read the saved post before revising it.
generate_draftget_jobreview_post
Generation is asynchronous. Poll get_job until the draft is ready, then review the exact result.
get_postupdate_draftreview_post
Pass the current expected_updated_at value to update_draft. On conflict, reread instead of forcing the write.
review_postlist_publish_targetspush_to_cms_draft
Resolve blockers, obtain explicit approval, and select a destination before delivery. Repeating the same version and destination is idempotent.
Read Search Console dashboard, insight, analytics, URL inspection, and sitemap evidence before proposing a reviewed content action. Do not infer automatic publishing or guaranteed results.
Hard boundaries
Recovery
401403conflictgeneration pendingpreflight blockerFollow the MCP guide, authorize the client on your instance, and let the current server catalog describe the available tools.
Read the self-hosted MCP guide