All posts
·7 min read

From AI Chat to Published Post: An AI Markdown Workflow

aimarkdownmcpworkflowchatgpt

Updated

Most of my writing now starts inside an AI chat. I draft an outline with Claude, ask ChatGPT to expand a section, paste the result somewhere, clean it up, and eventually push it to a site. The messy part was always the middle: copying markdown out of a chat window, pasting it into an editor, losing track of which version was current. An AI markdown workflow built on MCP removes that copy-paste step entirely. The AI writes markdown, and the markdown lands in a real workspace without me touching the clipboard.

This post follows a document from an AI chat to a saved workspace file and a public page. The assistant handles the requested file operations; you review the text and decide when to publish it.

Revise the file you already have

Example tool arguments

read_file
{ "path": "release-notes/launch.md" }

Document state

Launch

Search is ready for review.

Use list_files and read_file to confirm the exact path and current content before editing.

Why MCP Changes the Chat-to-File Loop

MCP (Model Context Protocol) is the piece that lets an AI assistant call tools on a server it trusts. edtr.md runs a remote MCP server at https://edtr.md/api/mcp. Once you connect it as a custom connector in claude.ai, ChatGPT, Claude Code, or Cursor, the assistant gets a save_document tool. From then on, when the model produces markdown, it can write that markdown straight into your workspace.

Your client needs remote MCP support and authorization to your EDTR.md account. Client subscription and administrator requirements vary. For a step-by-step walkthrough of each client (Claude Desktop config, ChatGPT connector, Gemini CLI, Codex), see the dedicated guide on connecting ChatGPT, Claude, Gemini, and Codex over MCP.

Here is the shape of the connector setup in Claude Code, for reference:

claude mcp add --transport http edtrmd https://edtr.md/api/mcp

After that, a prompt like “save this draft to my Blog folder” writes a real .md file.

How save_document Decides What to Write

The behavior that makes this usable day to day is how save_document handles repeat saves. It does not spray a new file every time the AI touches the text. The rules are simple and predictable:

What the AI does What happens on disk
Saves under the same title again Updates the existing file in place
Makes a small edit and re-saves Overwrites in place, no new file
Rewrites an explicitly targeted file Updates the same file, regardless of how much changed
Uses an unknown title in a non-empty folder Nothing is saved until the target or a separate new document is confirmed

Updates record the previous text in history; identical content is a no-op. Viewing and restoring history in the editor follows the workspace owner’s plan. Use the same-file MCP guide for exact paths and needs_target handling. In practice this means I can iterate on the same draft across a dozen messages and end up with one clean file, not twelve near-duplicates cluttering the sidebar.

The End-to-End Run

Here is a full pass from idea to live page.

1. Draft in the chat. Ask the connected assistant for a document, review the result, then ask it to save the finished draft. Check the tool response and open the editor to verify the file. A connected client can call save_document; a chat reply alone does not prove it saved anything.

2. Refine by talking. I ask for a tighter intro and a comparison table. The AI edits and re-saves. Same title, so it updates in place. The version history quietly stacks snapshots in case I want to roll back.

3. Review the document. Open the saved file and check the rendered headings, tables, code, and links. If the document also needs frontmatter for an external site, verify the required field names against that site’s configuration. A rendered preview is not schema validation.

---
title: "From AI Chat to Published Post"
description: "An AI Markdown workflow from saved draft to public page."
pubDate: "2026-07-14"
tags: ["ai", "markdown", "mcp"]
draft: false
---

4. Publish a reviewed copy. Open the Publish dialog and choose Publish. Publishing requires a paid workspace owner plan and write access. It copies the current title and content to a public page.

5. Verify and update. Open the returned URL. Later edits stay in your workspace until you choose Update, which refreshes the existing publication. See publishing for the full workflow.

What Stays Manual, and Why That Is Fine

The assistant can draft and invoke file tools, but the finished text still needs review. Check factual claims, examples, links, and private information before making a document public. Ask for a save when you need one and inspect the tool result. Brainstorms and intermediate replies should not become a folder full of files.

A public snapshot stays unchanged while you revise the source. That gives you a clear point to check the work before readers see it.

Setting It Up Yourself

The whole loop rests on three things you configure once:

  • Connect an AI over MCP. Add https://edtr.md/api/mcp as a custom connector. The AI integrations overview lists every supported client and what each one can do.
  • Choose a workspace and file. Use workspaces to organize the draft, and keep its exact path for later revisions.
  • Review before publishing. Check the source and preview, then use Publish or Update when the document is ready.

Saving a file and publishing a page are separate operations. The snapshot guide explains what stays private in the draft and when the public copy changes.

The Payoff

The reason I kept this setup is boring in a good way. Nothing surprising happens. The AI writes markdown, it appears in my workspace, I review it, and I publish the version I checked. No clipboard, no “which tab had the latest version,” no manual file creation. The chat is where the words come from, and the workspace is where they become a real, versioned, publishable document.

If you write with AI and publish to a static site or a docs repo, this closes the gap between the two. Connect an assistant, open the editor, and ask it to save your next finished draft.

Try it yourself

Open EDTR.md and start writing Markdown with live preview, diagrams, math, and PDF export. Free, no sign-up.

Open editor