---
name: mcp-apps-sync-docs
description: >-
  Syncs MCP Apps documentation with the @apollo/client-ai-apps changelog. Always use this skill whenever: (1) the user wants to update or sync the mcp-apps-*.mdx docs based on a new release or version range, (2) phrases like "sync docs from version X", "update docs from changelog", "what changed since v0.x.x", "docs are out of date", or "check the changelog" appear in context of MCP Apps documentation, (3) checking whether mcp-apps-*.mdx files reflect recent releases. The changelog URL and doc file paths are pre-configured — the user only needs to provide the minimum version to sync from.
allowed-tools: Bash(gh api *) Bash(base64 *)
argument-hint: "<minimum-version>"
title: mcp-apps-sync-docs
canonical_url: https://skilld.dev/gh/apollographql/apollo-mcp-server/mcp-apps-sync-docs
last_updated: 2026-10-30T06:52:53.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install apollographql/apollo-mcp-server/mcp-apps-sync-docs`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/mcp-apps-sync-docs`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/apollographql/apollo-mcp-server/mcp-apps-sync-docs) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/mcp-apps-sync-docs`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/mcp-apps-sync-docs --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/mcp-apps-sync-docs --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

## Overview

This skill updates the MCP Apps documentation based on changes in the `@apollo/client-ai-apps` CHANGELOG from a specified version onward. It reads the changelog, compares it against the current docs, and makes targeted edits — without committing.

## What you need from the user

One thing: **a minimum version** (e.g., `0.6.0` or `v0.6.2`). All changelog entries from that version to the latest will be analyzed.

## Step 1: Fetch the changelog

Use the GitHub CLI to fetch the full changelog:

```bash
gh api repos/apollographql/apollo-client-ai-apps/contents/CHANGELOG.md --jq '.content' | base64 -d
```

## Step 2: Parse relevant versions

The changelog uses this structure:

```
## 0.6.5 (2026-03-23)

### Features

#### Feature title

Description and code examples...

### Fixes

#### Fix title

Description...
```

Collect all version sections where the version number is **greater than or equal to** the user's minimum version. Ignore everything below that version. Parse each section into: version number, date, list of features, list of fixes, and any breaking changes or deprecations called out explicitly.

## Step 3: Read the docs

Read all six documentation files. Understand what each one covers before analyzing the changelog:

- `docs/source/mcp-apps.mdx` — MCP Apps overview: what are MCP apps, high-level overview, architecture diagram
- `docs/source/mcp-apps-architecture.mdx` — How MCP Apps work: the discovery and tool execution phases, architecture diagrams
- `docs/source/mcp-apps-quickstart.mdx` — Step-by-step setup guide using the Apollo AI Apps Template; Vite plugin behavior; project structure
- `docs/source/mcp-apps-development.mdx` — Day-to-day development patterns, directives, hooks, and client usage
- `docs/source/mcp-apps-prerequisites.mdx` — System and account prerequisites before building
- `docs/source/mcp-apps-reference.mdx` — API reference: directives (`@tool`, `@prefetch`, `@private`), hooks (`useToolInfo`, etc.), manifest, configuration

## Step 4: Analyze the changes

For each changelog entry, decide whether a doc change is needed:

**Features** — Is this already documented? If not, which file is the right home?

- New hooks, directives, or client APIs belong in `mcp-apps-reference.mdx`
- Changes to how Vite plugin builds or generates files belong in `mcp-apps-quickstart.mdx` or `mcp-apps-development.mdx`
- Changes to how the architecture works belong in `mcp-apps-architecture.mdx`
- New system requirements belong in `mcp-apps-prerequisites.mdx`

**Deprecations** — Are the deprecated APIs mentioned positively in the docs? Add a deprecation notice near the relevant section and point to the replacement.

**Breaking changes / behavior changes** — Do the docs describe the old behavior as correct? Update them to reflect the new behavior.

**Bug fixes** — Generally skip these unless the docs explicitly described the buggy behavior as correct (e.g., documented a workaround that is no longer needed).

## Step 5: Make the edits

Edit the affected files directly using available tools. As you do:

- Match the existing tone, MDX component usage (e.g., `<Note>`, code fences with language tags), and heading levels
- Insert new content in the section that makes the most sense contextually, not just at the end of the file
- For deprecations, add a notice near the existing mention — don't remove the old API from docs until it's actually gone
- For breaking changes, update the description in place so readers see the current behavior
- Keep each change minimal and traceable to its changelog entry
- Write as if the behavior or code was always that way. DO NOT write in past tense (avoid language such as "previously it was x, now it is y")

**Do not commit.** Leave all edits as unstaged file changes for the user to review.

## Step 6: Summarize what you did

Give the user a concise report:

- Which files were modified
- For each change: what was updated and which changelog entry it corresponds to
- Which changelog entries were skipped and why (e.g., "internal fix, no user-facing behavior change")
