Connect an agent to one site.

A site-scoped MCP endpoint. Agents research and draft. You approve.

Streamable HTTP · OAuth · Site-scoped · Draft-only

Your MCP clientIllustrative UI
https://<instance-origin>/mcp
codex mcp add blogfactory --url https://content.example.com/mcp
codex mcp login blogfactory

OAuth first.A personal token is an advanced fallback. Store it in the client environment, never in a prompt.

Start every session with these four calls

  1. whoami
  2. list_sites
  3. get_workspace_digest
  4. list_action_items

Then discover the live catalog with tools/list. Do not assume a fixed tool count.

Four workflows

Create caller-authored content

create_draft → get_post → review_post

Use create_draft when the caller already supplied the Markdown. Read the saved post before revising it.

Generate with a connected provider

generate_draft → get_job → review_post

Generation is asynchronous. Poll get_job until the draft is ready, then review the exact result.

Plan from the product, without Search Console data

list_sites → discover_topics → research_keyword → find_content_gaps → generate_draft → get_job → analyze_post → update_draft → review_post

Needs a saved product profile (a person runs Analyze product in Search Growth first). discover_topics, research_keyword, find_content_gaps and analyze_post are read-only and site-bound. Prefer topics with no overlap, then buying intent, then score. generate_draft spends the user's provider budget: say so and confirm before starting more than one. Stop before push_to_cms_draft until the user approves the exact version.

Revise without overwriting work

get_post → update_draft → review_post

Pass the current expected_updated_at value to update_draft. On conflict, reread instead of forcing the write.

Deliver an approved CMS draft

review_post → list_publish_targets → push_to_cms_draft

Resolve blockers, obtain explicit approval, and select a destination before delivery. Repeating the same version and destination is idempotent.

Research tools are read-only: discover_topics, research_keyword, find_content_gaps, analyze_post. The agent playbook chains them.

Hard boundaries

When something stops

401
Start the OAuth flow advertised by the protected-resource metadata.
403
Ask for the required approved scope; do not attempt to bypass authorization.
conflict
Reread the post and retry only with the current version.
generation pending
Poll get_job; do not start a duplicate generation run.
preflight blocker
Reread review_post and resolve the blocker before delivery.

One approved site. A fixed boundary.

Authorize the client on your instance. The draft-only limit is enforced in the MCP surface itself.