DesignersDocumentationMedium30 mins

MCP use case: Migrate documentation from Markdown to zeroheight

Turn a folder of Markdown docs into draft zeroheight pages, with real tables, callouts and do's and don'ts instead of pasted text.

What it is

A lot of design system guidance still lives in Markdown. Moving it into zeroheight has meant copying and pasting it page by page, then fixing everything the paste broke (zeroheight ignores raw Markdown on paste, so tables and headings arrive as literal pipes and hashes).

This use case hands the move to an agent. Run it in a checkout of your repo (or point it at the files) and it reads every Markdown and MDX file, works out how your old docs site grouped them, and proposes a plan: which folder becomes which category, which file becomes which page, and what to leave behind. Once you’ve said yes, it uses the zeroheight MCP to build the categories and write each page as proper zeroheight content. A :::warning becomes a callout, a list of ✅ and ❌ becomes a do’s and don’ts block, images get uploaded, code stays as code, and links between your files point at the new pages.

It writes one page first for you to check, then the rest, and every page is a draft until someone on your team publishes it. Files that really belong in the repo (a changelog, a package README) can be embedded and kept in sync instead of copied, if your repository is connected to zeroheight.

Benefits

  • No more copy, paste and fix. Every file becomes a real zeroheight page in one run, and your time goes on reviewing the pages rather than reformatting them.
  • Pages come out as zeroheight content. Callouts, tables, do’s and don’ts, toggles, code blocks and images all map onto the matching zeroheight blocks, so the migrated pages look like they were written in zeroheight in the first place.
  • Your structure survives the move. The agent reads your old site’s navigation (a sidebars.js, mkdocs.yml, _category_.json or just the folder names), so pages land in the same order and grouping. You approve the plan before anything is created.
  • Links keep working. The agent creates every page before it fills any of them in, so a link from one Markdown file to another points straight at the new zeroheight page.
  • Code-owned docs can stay in code. With your repository connected to zeroheight, changelogs and READMEs can be embedded as synced Markdown, so they keep updating from the repo instead of going stale in two places.

Pitfalls

  • Custom MDX components don’t have a zeroheight equivalent. The agent keeps the text inside them, drops the wrapper and lists every one it couldn’t convert, so someone can rebuild them by hand. Storybook embeds only convert if your Storybook is connected to zeroheight.
  • Read the plan properly. zeroheight has navigation tabs, categories and one level of subcategories. A deeply nested docs folder has to flatten somewhere, and the plan is where you decide how.
  • You need write access. Only editors and admins get the write tools, and only when they connect by login. A link URL (or the local MCP server) is read-only, so the agent can read your styleguide but can’t create pages.
  • Old docs are often out of date. The agent migrates what’s there. It has no way of knowing a page describes last year’s API, so skip anything stale in the plan rather than migrating it and fixing it later.
  • Tokens only go live when there’s a clear match. A token named in your Markdown becomes a live token mention when the agent finds it in your zeroheight token set. It won’t guess, so expect a short list of ones to check.
  • Big migrations take a while. Each page is two writes (one to create it, one to fill it) plus an upload per image, and your AI tool may ask for approval every time. Once you’re happy with the first page, allow the zeroheight write tools for the session.

What you'll need

  • A zeroheight styleguide with MCP access via login and write access switched on (an admin does this under Your organization → MCP), and an editor or admin account.
  • The Markdown files. Ideally a checkout of the repo, so the agent can read the files, images and navigation config directly.
  • An AI tool that can read those files and use the zeroheight MCP, with the markdown-to-zeroheight skill below: GitHub Copilot in VS Code, Claude Code, or Claude Cowork.
  • Optional: your repository connected in zeroheight, so changelogs and READMEs can be synced rather than copied, and your Storybook connected, so story embeds convert.
  • Optional: a zeroheight page whose structure you’d like the migrated pages to follow.

How to set this up

  1. Connect zeroheight.
    1. VS Code: in your styleguide’s settings, open MCP and click Install in VS Code (or add https://mcp.zeroheight.com/mcp as an HTTP server yourself), then sign in to zeroheight when VS Code asks.
    2. Claude Code: claude mcp add --transport http zeroheight https://mcp.zeroheight.com/mcp, then run /mcp and authenticate.
    3. Claude desktop app: Customize → Connectors → Browse connectors, search for zeroheight and click Connect. Sign in with your team’s subdomain and approve the connection.

    Check you’ve got the write tools: create-page, edit-page and update-structure should be in the zeroheight tool list.

  2. Add the skill. Download markdown-to-zeroheight below.
    1. VS Code: save the .md as .github/prompts/markdown-to-zeroheight.prompt.md in your repo. It shows up as /markdown-to-zeroheight in Copilot Chat (use Agent mode).
    2. Claude Code: save the .md as .claude/skills/markdown-to-zeroheight/SKILL.md in the repo (or in ~/.claude/skills/ to use it everywhere).
    3. Claude desktop app: Customize → Skills, then upload the .zip.
  3. Open the repo. Open the folder in VS Code, run claude in it, or give Cowork access to it.
  4. Ask for the migration. Name the docs folder, where in zeroheight it should go, and (if you have one) the page whose structure to follow. There’s a sample prompt below.
  5. Check the plan. The agent shows you every file, the category and page it’s going to, and what it plans to sync or skip. Change anything you don’t like, then tell it to go ahead.
  6. Check the first page. It writes one page and stops. Open it in zeroheight and tell the agent what to change before it does the rest.
  7. Review and publish. When it’s finished, work through its table of things that need a look, then publish the drafts in zeroheight (or ask the agent to show you the changes and publish them).

Try it

Sample prompt

Migrate the Markdown docs in docs/patterns into zeroheight. Put them under Patterns, keep the subfolders as categories, and follow the structure of our Forms page. Show me the plan before you create anything, and keep the new pages hidden until I’ve checked them.

What good looks like

Before anything is written, a plan you can actually check: every file, the category and page it’s going to, and what’s being synced or skipped. Then one draft page to look at, with the warnings as callouts, the do’s and don’ts as a do’s and don’ts block, images uploaded and code in code blocks.

Once you’re happy, the rest arrive as drafts in the same shape, followed by a table of anything that needs a look (an MDX component it couldn’t convert, an image it couldn’t find, a token it couldn’t match). You work through that list, publish, and point the old docs site at zeroheight.