AI & MCP

Using AI with GitCMS

How GitCMS connects ChatGPT and Claude to a task-first editorial workflow through MCP.

GitCMS connects AI assistants to your content workflow through the Model Context Protocol (MCP).

Today, the documented GitCMS MCP experience is for ChatGPT and Claude. When connected, GitCMS can open the editor inside the chat, work with your site configuration, and help move content through a task-first editorial flow.

You do not need to speak in Git or CMS implementation terms to use it well. Prompts like "edit this blog post", "tighten this page", or "rewrite this live URL" are valid starting points.

The useful part is not just “AI writes content.” GitCMS gives the model:

  • your site scope
  • your collections and frontmatter schema
  • your editorial workflow
  • your CONTENT.md writing instructions
  • a visual editor and review path instead of copy-paste busywork

GitCMS visual editor inside ChatGPT

Before you start

Before using GitCMS with AI, make sure:

  • your repository is connected in GitCMS
  • .gitcms has been initialized
  • the site is licensed because MCP is not available in preview mode
  • your CONTENT.md file is in reasonable shape if you want stronger brand-voice guidance

Useful links:

Supported clients

GitCMS documents these clients today:

Other MCP-compatible clients may work, but setup and behavior can vary. If a client supports OAuth, use the ChatGPT or Claude setup pattern. If it asks for a static token, use a personal access token.

How GitCMS MCP works today

The current GitCMS writing flow is task-first.

In practice, that means:

  1. Brainstorm in chat first.
  2. Once the angle is clear, create a content task.
  3. Ask the model to draft against that task.
  4. Refine in conversation or in the editor.
  5. Submit the task for review.

This matches the underlying MCP tool surface and the editorial workflow in GitCMS.

If your site uses Review before publish, this is the recommended path. It keeps drafts scoped to a task and makes review much easier for the team.

Core MCP workflow tools

You do not need to call tools manually, but it helps to understand the flow the model is working through:

  • list_sites — find the GitCMS sites you can work with
  • get_site_config — load site structure, collections, and CONTENT.md writing instructions
  • create_content_task — create a new editorial task once the idea is approved
  • list_content_tasks / get_content_task — find or reload an existing task
  • write_content — save draft content into that task
  • list_content_entries / read_content_entry — inspect existing content and repo content
  • submit_content_for_review — move the task into review
  • suggest_content_edit — queue reviewable edit suggestions in the fullscreen editor

Because of that tool surface, prompts that say “brainstorm first, then create a content task, then draft” work better than prompts that jump straight to writing without task context.

You still do not need to name tools directly. The better pattern is to express intent in plain language and let GitCMS load the right context.

Here is the workflow we recommend in docs and examples:

  1. Brainstorm Ask the model to help with topic angles, outlines, and audience fit before it creates anything.
  2. Create a content task Turn the chosen idea into a task with notes, references, and desired outcome.
  3. Draft the first version Be explicit about collection, entry path, locale, and frontmatter values you care about.
  4. Revise Ask for structural rewrites, tighter intros, stronger CTAs, or better examples.
  5. Submit for review Use the same review path as the rest of your team.

For example:

Help me brainstorm three post ideas for our developer docs audience.
Do not create content yet.
Create a content task for the strongest idea.
Title it "Migrating from WordPress to a markdown-based docs workflow"
and include notes about target audience, angle, and CTA.
Now draft the first version for that content task in the posts collection.
Keep the tone practical and leave it ready for review.
I want to edit this blog post:
https://gitcms.dev/blog/content-is-just-code

Please read it first, then rewrite the introduction to be sharper and less repetitive.

See Task-First AI Workflows for more complete prompt patterns.

What AI is good at in GitCMS

GitCMS MCP is particularly useful for:

  • turning brainstormed ideas into first drafts
  • revising existing docs, blog posts, and changelogs
  • adding or updating frontmatter with valid field values
  • repetitive editorial tasks across many entries
  • locale-aware content work when you specify the target locale
  • reviewable fullscreen edit suggestions during rewrite sessions

CONTENT.md matters

If you want better output, keep CONTENT.md current.

That file gives the model reusable guidance like:

  • who you write for
  • your brand voice
  • what to avoid
  • preferred structure
  • terminology to keep consistent

Think of CONTENT.md as the persistent editorial brief the model can reuse across many content tasks.

You do not need to tell ChatGPT or Claude to "use CONTENT.md". GitCMS loads those instructions as part of site context during writing flows.

Safety and limits

GitCMS MCP does not mean autonomous publishing.

  • AI still works inside your GitCMS workflow
  • schema validation still applies
  • your repository remains the source of truth
  • review rules still govern what ships
  • the model should create or work from a content task, not bypass it

That is the point: faster drafting, better structure, and less manual busywork without losing editorial control.

Next steps

  1. Connect your client: ChatGPT setup or Claude setup
  2. Read Task-First AI Workflows
  3. Tighten your CONTENT.md
  4. Use the CLI onboarding prompt if your repo is not initialized yet

On this page