@se-studio/contentful-cms 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/HOSTED.md +2 -2
- package/INSTALL.md +14 -136
- package/README.md +27 -54
- package/dist/bin/contentful-cms.js +2 -12
- package/dist/bin/contentful-cms.js.map +1 -1
- package/dist/cli/program.d.ts.map +1 -1
- package/dist/cli/program.js +11 -11
- package/dist/cli/program.js.map +1 -1
- package/dist/commands/article-tags-from-json.d.ts +4 -0
- package/dist/commands/article-tags-from-json.d.ts.map +1 -0
- package/dist/commands/article-tags-from-json.js +54 -0
- package/dist/commands/article-tags-from-json.js.map +1 -0
- package/dist/commands/{screenshot.d.ts → bulk-rtf-replace.d.ts} +2 -2
- package/dist/commands/bulk-rtf-replace.d.ts.map +1 -0
- package/dist/commands/bulk-rtf-replace.js +103 -0
- package/dist/commands/bulk-rtf-replace.js.map +1 -0
- package/dist/commands/create-person-from-json.d.ts +4 -0
- package/dist/commands/create-person-from-json.d.ts.map +1 -0
- package/dist/commands/create-person-from-json.js +85 -0
- package/dist/commands/create-person-from-json.js.map +1 -0
- package/dist/commands/create-person.d.ts +4 -0
- package/dist/commands/create-person.d.ts.map +1 -0
- package/dist/commands/create-person.js +56 -0
- package/dist/commands/create-person.js.map +1 -0
- package/dist/commands/create-taxonomy-from-json.d.ts.map +1 -1
- package/dist/commands/create-taxonomy-from-json.js +47 -31
- package/dist/commands/create-taxonomy-from-json.js.map +1 -1
- package/dist/commands/create-taxonomy.d.ts +2 -0
- package/dist/commands/create-taxonomy.d.ts.map +1 -1
- package/dist/commands/create-taxonomy.js +7 -6
- package/dist/commands/create-taxonomy.js.map +1 -1
- package/dist/commands/ensure.d.ts.map +1 -1
- package/dist/commands/ensure.js +49 -0
- package/dist/commands/ensure.js.map +1 -1
- package/dist/commands/health.d.ts.map +1 -1
- package/dist/commands/health.js +2 -22
- package/dist/commands/health.js.map +1 -1
- package/dist/commands/help.js +1 -1
- package/dist/commands/help.js.map +1 -1
- package/dist/commands/preview.d.ts.map +1 -1
- package/dist/commands/preview.js +63 -16
- package/dist/commands/preview.js.map +1 -1
- package/dist/commands/project.d.ts.map +1 -1
- package/dist/commands/project.js +35 -0
- package/dist/commands/project.js.map +1 -1
- package/dist/config/types.d.ts +3 -3
- package/dist/config/types.d.ts.map +1 -1
- package/dist/contentful/article-tags-from-json.d.ts +25 -0
- package/dist/contentful/article-tags-from-json.d.ts.map +1 -0
- package/dist/contentful/article-tags-from-json.js +121 -0
- package/dist/contentful/article-tags-from-json.js.map +1 -0
- package/dist/contentful/bulk-rtf-replace.d.ts +29 -0
- package/dist/contentful/bulk-rtf-replace.d.ts.map +1 -0
- package/dist/contentful/bulk-rtf-replace.js +119 -0
- package/dist/contentful/bulk-rtf-replace.js.map +1 -0
- package/dist/contentful/entry-fields.d.ts +1 -1
- package/dist/contentful/entry-fields.d.ts.map +1 -1
- package/dist/contentful/entry-fields.js +13 -0
- package/dist/contentful/entry-fields.js.map +1 -1
- package/dist/contentful/person-create.d.ts +31 -0
- package/dist/contentful/person-create.d.ts.map +1 -0
- package/dist/contentful/person-create.js +111 -0
- package/dist/contentful/person-create.js.map +1 -0
- package/dist/editor-pack/capabilities.d.ts +82 -0
- package/dist/editor-pack/capabilities.d.ts.map +1 -0
- package/dist/editor-pack/capabilities.js +350 -0
- package/dist/editor-pack/capabilities.js.map +1 -0
- package/dist/editor-pack/generate.d.ts.map +1 -1
- package/dist/editor-pack/generate.js +57 -15
- package/dist/editor-pack/generate.js.map +1 -1
- package/dist/generated/hosted-guide.d.ts +1 -1
- package/dist/generated/hosted-guide.d.ts.map +1 -1
- package/dist/generated/hosted-guide.js +1 -1
- package/dist/generated/hosted-guide.js.map +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/hosted/customer-playbooks.d.ts.map +1 -1
- package/dist/hosted/customer-playbooks.js +3 -16
- package/dist/hosted/customer-playbooks.js.map +1 -1
- package/dist/hosted/next/pages/CmsEditPage.d.ts.map +1 -1
- package/dist/hosted/next/pages/CmsEditPage.js +1 -1
- package/dist/hosted/next/pages/CmsEditPage.js.map +1 -1
- package/dist/hosted/next/pages/CustomerPlaybooksPage.d.ts.map +1 -1
- package/dist/hosted/next/pages/CustomerPlaybooksPage.js +12 -3
- package/dist/hosted/next/pages/CustomerPlaybooksPage.js.map +1 -1
- package/dist/hosted/next/pages/HomePage.d.ts.map +1 -1
- package/dist/hosted/next/pages/HomePage.js +1 -1
- package/dist/hosted/next/pages/HomePage.js.map +1 -1
- package/dist/mcp/guide.d.ts +2 -2
- package/dist/mcp/guide.d.ts.map +1 -1
- package/dist/mcp/guide.js +10 -5
- package/dist/mcp/guide.js.map +1 -1
- package/dist/mcp/prompts/onboarding.d.ts.map +1 -1
- package/dist/mcp/prompts/onboarding.js +116 -2
- package/dist/mcp/prompts/onboarding.js.map +1 -1
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/tools/cms-edit.d.ts +1 -1
- package/dist/mcp/tools/cms-edit.d.ts.map +1 -1
- package/dist/mcp/tools/cms-edit.js +4 -0
- package/dist/mcp/tools/cms-edit.js.map +1 -1
- package/dist/preview/capture-urls.d.ts +12 -0
- package/dist/preview/capture-urls.d.ts.map +1 -0
- package/dist/preview/capture-urls.js +41 -0
- package/dist/preview/capture-urls.js.map +1 -0
- package/dist/project/doctor.d.ts +9 -0
- package/dist/project/doctor.d.ts.map +1 -0
- package/dist/project/doctor.js +136 -0
- package/dist/project/doctor.js.map +1 -0
- package/docs/FUNCTIONAL_SPEC.md +4 -4
- package/docs/MEDIA_INDEX_PLAN.md +1 -1
- package/docs/SKILLS.md +3 -3
- package/docs/help/article-tags-from-json.md +62 -0
- package/docs/help/bulk-rtf-replace.md +80 -0
- package/docs/help/index.md +18 -2
- package/docs/help/person-from-json.md +82 -0
- package/docs/mcp/hosted-guide.md +15 -4
- package/package.json +2 -5
- package/skills/README.md +1 -1
- package/skills/core/SKILL.md +20 -79
- package/skills/editor-tasks/SKILL.md +83 -0
- package/skills/manifest.json +2 -1
- package/skills/setup/SKILL.md +21 -87
- package/dist/bin/cms-edit-mcp.d.ts +0 -3
- package/dist/bin/cms-edit-mcp.d.ts.map +0 -1
- package/dist/bin/cms-edit-mcp.js +0 -15
- package/dist/bin/cms-edit-mcp.js.map +0 -1
- package/dist/bin/cms-edit-setup.d.ts +0 -3
- package/dist/bin/cms-edit-setup.d.ts.map +0 -1
- package/dist/bin/cms-edit-setup.js +0 -7
- package/dist/bin/cms-edit-setup.js.map +0 -1
- package/dist/commands/screenshot.d.ts.map +0 -1
- package/dist/commands/screenshot.js +0 -275
- package/dist/commands/screenshot.js.map +0 -1
- package/dist/setup/wizard.d.ts +0 -4
- package/dist/setup/wizard.d.ts.map +0 -1
- package/dist/setup/wizard.js +0 -260
- package/dist/setup/wizard.js.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated by scripts/generate-embedded-assets.mjs — do not edit manually.
|
|
2
|
-
export const HOSTED_GUIDE_TEMPLATE = "# cms-edit MCP guide\n\nUse this guide when editing Contentful draft content through Claude Desktop (hosted Integrations + OAuth) or local stdio MCP.\n\n{{SITE_INTRO}}\n\n## Safety rules\n\ncms-edit **cannot and will not**:\n\n- Publish or unpublish entries\n- Archive or delete published entries\n- Upload new assets (use Contentful UI for assets)\n\nAll `save` operations create **drafts only**. A human must review and publish in Contentful.\n\n## MCP tools\n\n| Tool | Purpose |\n|------|---------|\n| `cms_edit` | Run any cms-edit command via an `args` array |\n| `cms_edit_version` | Check the installed cms-edit version (no session required) |\n| `cms_edit_help` | Read this guide by topic (`overview`, `workflow`, `commands`, `troubleshooting`, `hosted`) |\n\n## Customer editor pack (read first)\n\nWhen a site editor pack is deployed, these MCP resources provide **site-specific** context. Read them before creating or editing content:\n\n| Resource | Purpose |\n|----------|---------|\n| `cms-edit://customer/index` | List of all customer resources |\n| `cms-edit://customer/overview` | Site name, space, staging URL, handoff rules |\n| `cms-edit://customer/routing` | Article/tag URL rules for this site |\n| `cms-edit://customer/components-index` | Component types and when to use each |\n| `cms-edit://customer/collections-index` | Collection types |\n| `cms-edit://customer/brand` | Brand voice and terminology (if configured) |\n| `cms-edit://customer/articles` | Article/publication playbook (if configured) |\n| `cms-edit://customer/defaults` | Featured image rules, article types, Contentful UI scope (if configured) |\n\n**Workflow:** read `cms-edit://customer/index` → `overview` → `routing` → `defaults` (if present) → `components-index` → `articles` (if creating articles) → then use `cms_edit` commands.\n\n## MCP prompts\n\n| Prompt | Purpose |\n|--------|---------|\n| `cms_edit_verify` | Check version and connectivity |\n| `cms_edit_explore` | List site content and open a page |\n| `cms_edit_edit_page` | Edit a page through diff → save |\n| `cms_edit_edit_article` | Edit an article through diff → save |\n| `cms_edit_index_sync` | Build/refresh local index (assets, media, templates, taxonomy) |\n| `cms_edit_create_page` | Create a page with template selection |\n| `cms_edit_create_article` | Create an article (requires article type; featured image rules) |\n| `cms_edit_create_from_doc` | Create a page from a freeform document (infer → confirm → dry-run) |\n| `cms_edit_create_article_from_doc` | Create an article from a freeform document |\n| `cms_edit_taxonomy` | Import or ensure taxonomy entries |\n\nRead the full guide anytime via the `cms-edit://guide` resource or `cms_edit_help`.\n\n## Core workflow\n\nStandard editing flow: **open → snapshot → read → set/rtf → diff → save**\n\nEach step is a separate `cms_edit` call. Sessions persist in Redis between calls (hosted) or on disk (local). MCP auto-uses session `_mcp`.\n\n### 1. Open a page\n\n```\n[\"open\", \"--page-slug\", \"/\"]\n[\"open\", \"--page-slug\", \"/pricing\"]\n[\"open\", \"--id\", \"<entry-id>\"]\n```\n\n**Homepage (all SE Studio sites):** Contentful stores the marketing homepage slug as `index`. The live site URL is `/`. In cms-edit, `--page-slug /` and `--page-slug /index` are equivalent (both resolve to `index`). `sitemap` displays this page as `/index` — that is formatting, not a different slug. Read `cms-edit://customer/routing` for site-specific exceptions (e.g. Pedestal uses `home`).\n\n### 2. Snapshot — see the content tree\n\n```\n[\"snapshot\"]\n```\n\nOutput shows `@c0`, `@c1`, … refs for each component. Use these refs in `read`, `set`, and `rtf`.\n\n### 3. Read fields\n\n```\n[\"read\", \"@c1\"]\n[\"read\", \"@c1\", \"heading\"]\n```\n\n### 4. Edit fields\n\n```\n[\"set\", \"@c1\", \"heading\", \"New heading text\"]\n[\"rtf\", \"@c1\", \"body\", \"--content\", \"# Title\\n\\nParagraph text.\"]\n```\n\nFor rich text, prefer `--content` with inline markdown. Use `--base64` when special characters cause issues.\n\n### 5. Review and save\n\n```\n[\"diff\"]\n[\"save\"]\n```\n\nAlways run `diff` before `save`. To abandon changes: `[\"discard\"]`.\n\n## When to use Contentful UI\n\n| Task | Where |\n|------|-------|\n| Edit copy, add sections, create pages/articles | **Claude + cms-edit** (drafts) |\n| Publish approved drafts | **Contentful UI** |\n| Upload new images and files | **Contentful UI** asset library |\n| Edit copy directly in Contentful | **Avoid** — use Claude instead |\n\ncms-edit saves **drafts only**. A colleague must **publish in Contentful** for changes to go live.\n\n## Featured images (articles)\n\nRead `cms-edit://customer/defaults` when present. Otherwise:\n\n1. **Custom** — set `featuredImage` or `featuredImageAssetFilename` on the article when the editor provides a specific image\n2. **Article type** — if omitted, cms-edit inherits the linked **articleType** `featuredImage`\n3. **Site default** — from `editor.defaults` in the site config (also in `defaults.json` in the editor pack)\n\nRun `[\"index\", \"sync\"]` before resolving assets by filename.\n\n## Create content\n\n### Create a page\n\n```\n[\"index\", \"sync\"]\n[\"list\", \"--type\", \"template\"]\n[\"create\", \"page\", \"--slug\", \"/about-us\", \"--title\", \"About Us\", \"--template-id\", \"<id>\"]\n[\"snapshot\"]\n```\n\nOr use `create from-json` with `--dry-run --strict` for multi-section pages.\n\n### Create an article\n\nEvery article requires an **articleType**:\n\n```\n[\"index\", \"sync\"]\n[\"list\", \"--type\", \"articleType\"]\n[\"create\", \"article\", \"--slug\", \"resources/blog/my-post\", \"--title\", \"My Post\", \"--article-type-slug\", \"resources/blog\"]\n```\n\nOr `create from-json` with `\"type\": \"article\"` and `articleTypeSlug` / `articleTypeId`.\n\nUse MCP prompt `cms_edit_create_article` for guided creation.\n\n## Common sequences\n\n### List all pages\n\n```\n[\"sitemap\"]\n```\n\n### Refresh local index (assets, media, templates, taxonomy)\n\nRun before asset filename search, media-by-filename list, or fast template/taxonomy lookup:\n\n```\n[\"index\", \"sync\"]\n[\"index\", \"status\"]\n[\"list\", \"--type\", \"template\"]\n```\n\nAsset search and media-by-filename list **require** the index. Template/taxonomy list prefers the index when built.\n\n### Explore the homepage\n\n```\n[\"open\", \"--page-slug\", \"/\"]\n[\"snapshot\"]\n[\"read\", \"@c1\"]\n```\n\n### Edit copy on a page\n\n```\n[\"open\", \"--page-slug\", \"{{EXAMPLE_SLUG}}\"]\n[\"snapshot\"]\n[\"read\", \"@c1\", \"heading\"]\n[\"set\", \"@c1\", \"heading\", \"Updated heading\"]\n[\"diff\"]\n[\"save\"]\n```\n\n## Field discovery\n\n```\n[\"schema\", \"component\"]\n[\"list\", \"--type\", \"page\"]\n[\"search\", \"pricing\"]\n```\n\n## Hosted connector rules\n\n{{HOSTED_RULES}}\n\n## Session tips\n\n- After `open`, subsequent MCP commands share session `_mcp` automatically (stored in Redis on hosted).\n- Use `--session <name>` only when juggling multiple pages — pass it **before** the subcommand on every call: `[\"--session\", \"my-work\", \"open\", \"--page-slug\", \"/\"]`.\n- Snapshot JSON includes `sessionName` and `sessionKey` for debugging.\n- If you see \"No active session\", check `/api/health` (Redis must be ok), then run `open` again. Set `LOG_CMS_SESSION=1` on Vercel and search runtime logs for `[cms-edit:session]` (`redis save ok` / `redis load hit` / `requireSession miss`).\n\n### peek vs open vs read\n\n| Goal | MCP args |\n|------|----------|\n| Edit workflow (session) | `[\"open\", \"--page-slug\", \"/\"]` then `[\"read\", \"@c0\"]` |\n| Preview tree + fields, no session | `[\"peek\", \"--page-slug\", \"/pricing\"]` or `[\"peek\", \"--id\", \"<entry-id>\"]` (JSON includes `rootFields`) |\n| Read fields by entry ID, no session | `[\"read\", \"<entry-id>\", \"--id\"]` or `[\"read\", \"<entry-id>\", \"--id\", \"heading\"]` |\n| Debug session persistence | `[\"diagnose\"]` — reports store, userId, active session key |\n\n- **`peek` is one-shot** — prints tree and **root field values** (`rootFields` in JSON). No session is created; do not chain `read @ref` afterward.\n- **Use flat lookup flags** for `open` and `peek` — same as CLI (`--page-slug`, `--id`, etc.). See `help lookup`.\n- **`read @root`** only works after `open` (uses the active session). The hint in peek output is for terminal users who already ran `open`.\n- **Do not invent flags** — there is no `--read`, `--then`, or chained peek+read syntax. One command per `cms_edit` call.\n\n## Troubleshooting\n\n| Problem | What to do |\n|---------|------------|\n| **401 / connection failed** | Claude → Settings → Integrations → Connect again; complete Contentful sign-in. On Vercel, search runtime logs for `[cms-edit:oauth] auth_failure` (always logged). Set `LOG_CMS_OAUTH=1` for connect success traces. |\n| **No cms_edit tool** | Confirm the integration is connected under Settings → Integrations |\n| **No active session** | Do not pass `--space` on hosted. Check `/api/health` — `redis` must be ok. MCP uses `_mcp` session automatically. Manual session: `[\"--session\", \"name\", \"open\", \"--page-slug\", \"/\"]`. Fallback: `[\"read\", \"<entry-id>\", \"--id\"]` |\n| **Wrong space** | Your Contentful account must have access to this deployment's space |\n| **Check version** | Call `cms_edit_version` or `curl /api/health` and read `cmsEdit` |\n\n## Articles\n\n**Recent articles** (by publication `date`, not last-updated):\n\n```json\n[\"list\", \"--type\", \"article\", \"--sort\", \"date\", \"-n\", \"10\"]\n```\n\nAlternatives: `[\"search\", \"<keyword>\", \"--type\", \"article\"]` (also sorts by date), `[\"sitemap\", \"--include\", \"article\", \"--sort\", \"date\"]`.\n\n**Draft articles** — `peek` and `open` load drafts via CMA (not published-only). To discover drafts:\n\n```json\n[\"sitemap\", \"--include\", \"article\", \"--status\", \"draft\"]\n[\"search\", \"<title>\", \"--type\", \"article\"]\n[\"list\", \"--type\", \"article\", \"--slug\", \"<slug>\"]\n```\n\nThen open: `[\"peek\", \"--article-slug\", \"<slug>\"]` or `[\"open\", \"--id\", \"<entry-id>\"]`. Use `--article-slug`, not `--page-slug`.\n\n**Published-only** is opt-in: `list --published` and `resolve --published` use the Delivery API index and omit never-published drafts.\n\nAfter upgrading cms-edit, run `[\"index\", \"sync\"]` once so the local index includes article `date` values (schema v4).\n\n## Command reference (cms_edit args)\n\n**Discovery:** `sitemap`, `list --type <type>`, `search <query>`, `schema <contentType>`, `index sync`, `index status`\n\n**Reading:** `open --page-slug <slug>`, `open --id <id>`, `peek --page-slug <slug>`, `peek --id <id>`, `snapshot`, `read <ref>`, `read <ref> <field>`, `read <id> --id [field]`\n\n**Diagnostics:** `diagnose` — session store, userId, active session (after open/read issues)\n\n**Editing:** `set <ref> <field> <value>`, `rtf <ref> <field> --content \"<md>\"`, `diff`, `save`, `discard`\n\n**Creating:** `create page --slug … --title …`, `create article --slug … --title … --article-type-slug …`, `create from-json --file …`, `add <type> --content-type … --parent @c0 --target content`\n\n**Other:** `health`, `version`, `guide [topic]`\n";
|
|
2
|
+
export const HOSTED_GUIDE_TEMPLATE = "# cms-edit MCP guide\n\nUse this guide when editing Contentful draft content through Claude Desktop (hosted Integrations + OAuth).\n\n{{SITE_INTRO}}\n\n## Safety rules\n\ncms-edit **cannot and will not**:\n\n- Publish or unpublish entries\n- Archive or delete published entries\n\nAll `save` operations create **drafts only**. A human must review and publish in Contentful.\n\n**Assets:** cms-edit **can upload** draft assets (`asset upload` from file, URL, or base64). Always **search and reuse existing assets first** (`index sync`, then `asset search` or `list --type media`). Use `--if-exists-by-filename` when uploading to avoid duplicates.\n\n## MCP tools\n\n| Tool | Purpose |\n|------|---------|\n| `cms_edit` | Run any cms-edit command via an `args` array |\n| `cms_edit_version` | Check the installed cms-edit version (no session required) |\n| `cms_edit_help` | Read this guide by topic (`overview`, `workflow`, `commands`, `troubleshooting`, `hosted`) |\n\n## Customer editor pack (read first)\n\nWhen a site editor pack is deployed, these MCP resources provide **site-specific** context. Read them before creating or editing content:\n\n| Resource | Purpose |\n|----------|---------|\n| `cms-edit://customer/index` | List of all customer resources |\n| `cms-edit://customer/tasks-index` | Intent → task playbook map (filtered for this site) |\n| `cms-edit://customer/capabilities` | Machine-readable list of what this site supports |\n| `cms-edit://customer/checklist` | First-session onboarding steps |\n| `cms-edit://customer/overview` | Site name, space, staging URL, handoff rules |\n| `cms-edit://customer/routing` | Article/tag URL rules for this site |\n| `cms-edit://customer/components-index` | Component types and when to use each |\n| `cms-edit://customer/collections-index` | Collection types |\n| `cms-edit://customer/brand` | Brand voice and terminology (if configured) |\n| `cms-edit://customer/articles` | Article/publication playbook (if configured) |\n| `cms-edit://customer/defaults` | Featured image rules and article types (if configured) |\n| `cms-edit://customer/site-facts` | Optional canonical business facts (if configured) |\n| `cms-edit://customer/task-*` | Capability playbooks (e.g. `task-media-reuse-and-upload`) |\n\n**Workflow:** read `tasks-index` → `capabilities` → `checklist` → `overview` → `routing` → pick a `task-*` playbook for your goal → `components-index` → then use `cms_edit` commands.\n\n## MCP prompts\n\n| Prompt | Purpose |\n|--------|---------|\n| `cms_edit_verify` | Check version and connectivity |\n| `cms_edit_explore` | List site content and open a page |\n| `cms_edit_edit_page` | Edit a page through diff → save |\n| `cms_edit_edit_article` | Edit an article through diff → save |\n| `cms_edit_index_sync` | Build/refresh local index (assets, media, templates, taxonomy) |\n| `cms_edit_create_page` | Create a page with template selection |\n| `cms_edit_create_article` | Create an article (requires article type; featured image rules) |\n| `cms_edit_create_from_doc` | Create a page from a freeform document (infer → confirm → dry-run) |\n| `cms_edit_create_article_from_doc` | Create an article from a freeform document |\n| `cms_edit_taxonomy` | Import or ensure taxonomy entries |\n| `cms_edit_bulk_seo` | Update SEO meta descriptions (read `task-seo-descriptions`) |\n| `cms_edit_bulk_find_replace` | Bulk find-replace in rich text across entries |\n| `cms_edit_bulk_article_tags` | Update tags on one or more articles |\n| `cms_edit_import_authors` | Create person/author entries from a list or sheet |\n| `cms_edit_media` | Find existing assets or upload new ones (reuse-first) |\n\nRead the full guide anytime via the `cms-edit://guide` resource or `cms_edit_help`.\n\n## Core workflow\n\nStandard editing flow: **open → snapshot → read → set/rtf → diff → save**\n\nEach step is a separate `cms_edit` call. Sessions persist in Redis between calls (hosted) or on disk (local). MCP auto-uses session `_mcp`.\n\n### 1. Open a page\n\n```\n[\"open\", \"--page-slug\", \"/\"]\n[\"open\", \"--page-slug\", \"/pricing\"]\n[\"open\", \"--id\", \"<entry-id>\"]\n```\n\n**Homepage (all SE Studio sites):** Contentful stores the marketing homepage slug as `index`. The live site URL is `/`. In cms-edit, `--page-slug /` and `--page-slug /index` are equivalent (both resolve to `index`). `sitemap` displays this page as `/index` — that is formatting, not a different slug. Read `cms-edit://customer/routing` for site-specific exceptions (e.g. Pedestal uses `home`).\n\n### 2. Snapshot — see the content tree\n\n```\n[\"snapshot\"]\n```\n\nOutput shows `@c0`, `@c1`, … refs for each component. Use these refs in `read`, `set`, and `rtf`.\n\n### 3. Read fields\n\n```\n[\"read\", \"@c1\"]\n[\"read\", \"@c1\", \"heading\"]\n```\n\n### 4. Edit fields\n\n```\n[\"set\", \"@c1\", \"heading\", \"New heading text\"]\n[\"rtf\", \"@c1\", \"body\", \"--content\", \"# Title\\n\\nParagraph text.\"]\n```\n\nFor rich text, prefer `--content` with inline markdown. Use `--base64` when special characters cause issues.\n\n### 5. Review and save\n\n```\n[\"diff\"]\n[\"save\"]\n```\n\nAlways run `diff` before `save`. To abandon changes: `[\"discard\"]`.\n\n## When to use Contentful UI\n\n| Task | Where |\n|------|-------|\n| Edit copy, add sections, create pages/articles | **Claude + cms-edit** (drafts) |\n| Publish approved drafts | **Contentful UI** |\n| Upload new images and files | **Contentful UI** asset library |\n| Edit copy directly in Contentful | **Avoid** — use Claude instead |\n\ncms-edit saves **drafts only**. A colleague must **publish in Contentful** for changes to go live.\n\n## Featured images (articles)\n\nRead `cms-edit://customer/defaults` when present. Otherwise:\n\n1. **Custom** — set `featuredImage` or `featuredImageAssetFilename` on the article when the editor provides a specific image\n2. **Article type** — if omitted, cms-edit inherits the linked **articleType** `featuredImage`\n3. **Site default** — from `editor.defaults` in the site config (also in `defaults.json` in the editor pack)\n\nRun `[\"index\", \"sync\"]` before resolving assets by filename.\n\n## Create content\n\n### Create a page\n\n```\n[\"index\", \"sync\"]\n[\"list\", \"--type\", \"template\"]\n[\"create\", \"page\", \"--slug\", \"/about-us\", \"--title\", \"About Us\", \"--template-id\", \"<id>\"]\n[\"snapshot\"]\n```\n\nOr use `create from-json` with `--dry-run --strict` for multi-section pages.\n\n### Create an article\n\nEvery article requires an **articleType**:\n\n```\n[\"index\", \"sync\"]\n[\"list\", \"--type\", \"articleType\"]\n[\"create\", \"article\", \"--slug\", \"resources/blog/my-post\", \"--title\", \"My Post\", \"--article-type-slug\", \"resources/blog\"]\n```\n\nOr `create from-json` with `\"type\": \"article\"` and `articleTypeSlug` / `articleTypeId`.\n\nUse MCP prompt `cms_edit_create_article` for guided creation.\n\n## Common sequences\n\n### List all pages\n\n```\n[\"sitemap\"]\n```\n\n### Refresh local index (assets, media, templates, taxonomy)\n\nRun before asset filename search, media-by-filename list, or fast template/taxonomy lookup:\n\n```\n[\"index\", \"sync\"]\n[\"index\", \"status\"]\n[\"list\", \"--type\", \"template\"]\n```\n\nAsset search and media-by-filename list **require** the index. Template/taxonomy list prefers the index when built.\n\n### Explore the homepage\n\n```\n[\"open\", \"--page-slug\", \"/\"]\n[\"snapshot\"]\n[\"read\", \"@c1\"]\n```\n\n### Edit copy on a page\n\n```\n[\"open\", \"--page-slug\", \"{{EXAMPLE_SLUG}}\"]\n[\"snapshot\"]\n[\"read\", \"@c1\", \"heading\"]\n[\"set\", \"@c1\", \"heading\", \"Updated heading\"]\n[\"diff\"]\n[\"save\"]\n```\n\n## Field discovery\n\n```\n[\"schema\", \"component\"]\n[\"list\", \"--type\", \"page\"]\n[\"search\", \"pricing\"]\n```\n\n## Hosted connector rules\n\n{{HOSTED_RULES}}\n\n## Session tips\n\n- After `open`, subsequent MCP commands share session `_mcp` automatically (stored in Redis on hosted).\n- Use `--session <name>` only when juggling multiple pages — pass it **before** the subcommand on every call: `[\"--session\", \"my-work\", \"open\", \"--page-slug\", \"/\"]`.\n- Snapshot JSON includes `sessionName` and `sessionKey` for debugging.\n- If you see \"No active session\", check `/api/health` (Redis must be ok), then run `open` again. Set `LOG_CMS_SESSION=1` on Vercel and search runtime logs for `[cms-edit:session]` (`redis save ok` / `redis load hit` / `requireSession miss`).\n\n### peek vs open vs read\n\n| Goal | MCP args |\n|------|----------|\n| Edit workflow (session) | `[\"open\", \"--page-slug\", \"/\"]` then `[\"read\", \"@c0\"]` |\n| Preview tree + fields, no session | `[\"peek\", \"--page-slug\", \"/pricing\"]` or `[\"peek\", \"--id\", \"<entry-id>\"]` (JSON includes `rootFields`) |\n| Read fields by entry ID, no session | `[\"read\", \"<entry-id>\", \"--id\"]` or `[\"read\", \"<entry-id>\", \"--id\", \"heading\"]` |\n| Debug session persistence | `[\"diagnose\"]` — reports store, userId, active session key |\n\n- **`peek` is one-shot** — prints tree and **root field values** (`rootFields` in JSON). No session is created; do not chain `read @ref` afterward.\n- **Use flat lookup flags** for `open` and `peek` — same as CLI (`--page-slug`, `--id`, etc.). See `help lookup`.\n- **`read @root`** only works after `open` (uses the active session). The hint in peek output is for terminal users who already ran `open`.\n- **Do not invent flags** — there is no `--read`, `--then`, or chained peek+read syntax. One command per `cms_edit` call.\n\n## Troubleshooting\n\n| Problem | What to do |\n|---------|------------|\n| **401 / connection failed** | Claude → Settings → Integrations → Connect again; complete Contentful sign-in. On Vercel, search runtime logs for `[cms-edit:oauth] auth_failure` (always logged). Set `LOG_CMS_OAUTH=1` for connect success traces. |\n| **No cms_edit tool** | Confirm the integration is connected under Settings → Integrations |\n| **No active session** | Do not pass `--space` on hosted. Check `/api/health` — `redis` must be ok. MCP uses `_mcp` session automatically. Manual session: `[\"--session\", \"name\", \"open\", \"--page-slug\", \"/\"]`. Fallback: `[\"read\", \"<entry-id>\", \"--id\"]` |\n| **Wrong space** | Your Contentful account must have access to this deployment's space |\n| **Check version** | Call `cms_edit_version` or `curl /api/health` and read `cmsEdit` |\n\n## Articles\n\n**Recent articles** (by publication `date`, not last-updated):\n\n```json\n[\"list\", \"--type\", \"article\", \"--sort\", \"date\", \"-n\", \"10\"]\n```\n\nAlternatives: `[\"search\", \"<keyword>\", \"--type\", \"article\"]` (also sorts by date), `[\"sitemap\", \"--include\", \"article\", \"--sort\", \"date\"]`.\n\n**Draft articles** — `peek` and `open` load drafts via CMA (not published-only). To discover drafts:\n\n```json\n[\"sitemap\", \"--include\", \"article\", \"--status\", \"draft\"]\n[\"search\", \"<title>\", \"--type\", \"article\"]\n[\"list\", \"--type\", \"article\", \"--slug\", \"<slug>\"]\n```\n\nThen open: `[\"peek\", \"--article-slug\", \"<slug>\"]` or `[\"open\", \"--id\", \"<entry-id>\"]`. Use `--article-slug`, not `--page-slug`.\n\n**Published-only** is opt-in: `list --published` and `resolve --published` use the Delivery API index and omit never-published drafts.\n\nAfter upgrading cms-edit, run `[\"index\", \"sync\"]` once so the local index includes article `date` values (schema v4).\n\n## Command reference (cms_edit args)\n\n**Discovery:** `sitemap`, `list --type <type>`, `search <query>`, `schema <contentType>`, `index sync`, `index status`\n\n**Reading:** `open --page-slug <slug>`, `open --id <id>`, `peek --page-slug <slug>`, `peek --id <id>`, `snapshot`, `read <ref>`, `read <ref> <field>`, `read <id> --id [field]`\n\n**Diagnostics:** `diagnose` — session store, userId, active session (after open/read issues)\n\n**Editing:** `set <ref> <field> <value>`, `rtf <ref> <field> --content \"<md>\"`, `diff`, `save`, `discard`\n\n**Creating:** `create page --slug … --title …`, `create article --slug … --title … --article-type-slug …`, `create from-json --file …`, `add <type> --content-type … --parent @c0 --target content`\n\n**Other:** `health`, `version`, `guide [topic]`\n";
|
|
3
3
|
//# sourceMappingURL=hosted-guide.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-guide.js","sourceRoot":"","sources":["../../src/generated/hosted-guide.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,qBAAqB,GAAG
|
|
1
|
+
{"version":3,"file":"hosted-guide.js","sourceRoot":"","sources":["../../src/generated/hosted-guide.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,qBAAqB,GAAG,0/XAA0/X,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-playbooks.d.ts","sourceRoot":"","sources":["../../src/hosted/customer-playbooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer-playbooks.d.ts","sourceRoot":"","sources":["../../src/hosted/customer-playbooks.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,qBAAqB,EAAE,CAAC;IACnC,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAQD,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,EACd,cAAc,CAAC,EAAE,MAAM,GACtB,qBAAqB,GAAG,IAAI,CA0B9B;AAED,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GACtB,uBAAuB,GAAG,IAAI,CAkDhC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { buildRequiredReadingUris } from '../editor-pack/capabilities.js';
|
|
1
2
|
import { CUSTOMER_RESOURCE_URI_PREFIX, getEditorPackResource, listEditorPackResources, loadEditorPackManifest, resolveEditorPackPath, } from '../editor-pack/load.js';
|
|
2
3
|
function resolvePackPath(explicitPath) {
|
|
3
4
|
return resolveEditorPackPath(explicitPath ?? process.env['CMS_EDIT_EDITOR_PACK_PATH'] ?? undefined);
|
|
@@ -21,14 +22,7 @@ export function buildCustomerPlaybookIndex(origin, editorPackPath) {
|
|
|
21
22
|
displayName: manifest?.displayName,
|
|
22
23
|
generatedAt: manifest?.generatedAt,
|
|
23
24
|
resources: entries,
|
|
24
|
-
requiredReading:
|
|
25
|
-
`${CUSTOMER_RESOURCE_URI_PREFIX}overview`,
|
|
26
|
-
`${CUSTOMER_RESOURCE_URI_PREFIX}routing`,
|
|
27
|
-
`${CUSTOMER_RESOURCE_URI_PREFIX}components-index`,
|
|
28
|
-
...resources
|
|
29
|
-
.filter((resource) => resource.name === 'defaults' || resource.name === 'articles')
|
|
30
|
-
.map((resource) => resource.uri),
|
|
31
|
-
],
|
|
25
|
+
requiredReading: buildRequiredReadingUris(resources.map((resource) => ({ name: resource.name, uri: resource.uri }))),
|
|
32
26
|
};
|
|
33
27
|
}
|
|
34
28
|
export function readCustomerPlaybook(resourceName, editorPackPath) {
|
|
@@ -52,14 +46,7 @@ export function readCustomerPlaybook(resourceName, editorPackPath) {
|
|
|
52
46
|
name: resource.name,
|
|
53
47
|
mimeType: resource.mimeType,
|
|
54
48
|
})),
|
|
55
|
-
requiredReading:
|
|
56
|
-
`${CUSTOMER_RESOURCE_URI_PREFIX}overview`,
|
|
57
|
-
`${CUSTOMER_RESOURCE_URI_PREFIX}routing`,
|
|
58
|
-
`${CUSTOMER_RESOURCE_URI_PREFIX}components-index`,
|
|
59
|
-
...resources
|
|
60
|
-
.filter((resource) => resource.name === 'defaults' || resource.name === 'articles')
|
|
61
|
-
.map((resource) => resource.uri),
|
|
62
|
-
],
|
|
49
|
+
requiredReading: buildRequiredReadingUris(resources.map((resource) => ({ name: resource.name, uri: resource.uri }))),
|
|
63
50
|
}, null, 2);
|
|
64
51
|
return {
|
|
65
52
|
name: 'index',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-playbooks.js","sourceRoot":"","sources":["../../src/hosted/customer-playbooks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAyBhC,SAAS,eAAe,CAAC,YAAqB;IAC5C,OAAO,qBAAqB,CAC1B,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,IAAI,SAAS,CACtE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,MAAc,EACd,cAAuB;IAEvB,MAAM,QAAQ,GAAG,eAAe,CAAC,cAAc,CAAC,CAAC;IACjD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,QAAQ,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAEpD,MAAM,OAAO,GAA4B,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACpE,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,MAAM,EAAE,GAAG,MAAM,iBAAiB,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QACrE,OAAO,EAAE,GAAG,MAAM,uBAAuB,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;KAC7E,CAAC,CAAC,CAAC;IAEJ,OAAO;QACL,UAAU,EAAE,QAAQ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AC;YACH,eAAe,EAAE,wBAAwB,CACvC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,CAC1E;SACF,EACD,IAAI,EACJ,CAAC,CACF,CAAC;QACF,OAAO;YACL,IAAI,EAAE,OAAO;YACb,GAAG,EAAE,GAAG,4BAA4B,OAAO;YAC3C,QAAQ,EAAE,kBAAkB;YAC5B,IAAI;SACL,CAAC;IACJ,CAAC;IAED,MAAM,QAAQ,GAAG,qBAAqB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC7D,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO;QACL,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI;KACpB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CmsEditPage.d.ts","sourceRoot":"","sources":["../../../../src/hosted/next/pages/CmsEditPage.tsx"],"names":[],"mappings":"AAIA,wBAA8B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"CmsEditPage.d.ts","sourceRoot":"","sources":["../../../../src/hosted/next/pages/CmsEditPage.tsx"],"names":[],"mappings":"AAIA,wBAA8B,qBAAqB,yCAwJlD"}
|
|
@@ -17,6 +17,6 @@ export default async function CmsEditOnboardingPage() {
|
|
|
17
17
|
const connectorName = `cms-edit (${displayName})`;
|
|
18
18
|
const installUrl = buildClaudeConnectorInstallUrl(mcpUrl, connectorName);
|
|
19
19
|
const canUseInstallLink = isPublicHttpsMcpUrl(mcpUrl);
|
|
20
|
-
return (_jsxs("main", { style: pageStyle, children: [_jsxs("h1", { children: ["cms-edit for ", displayName] }), _jsx("p", { children: "Edit Contentful draft content from Claude. Sign in with your Contentful account \u2014 no tokens or command line required." }), _jsxs("section", { children: [_jsx("h2", { children: "Quick connect (recommended)" }), canUseInstallLink ? (_jsxs(_Fragment, { children: [_jsx("p", { children: "Click the button below. It opens Claude with the connector name and URL prefilled \u2014 you just confirm and sign in with Contentful." }), _jsx("p", { children: _jsx("a", { href: installUrl, style: buttonStyle, children: "Connect to Claude" }) }), _jsxs("p", { style: { fontSize: '0.9375rem', color: '#52525b' }, children: ["Works in Claude Desktop and claude.ai (same account). Shortcut:", ' ', _jsx("a", { href: "/connect", children: "/connect" })] })] })) : (_jsx("p", { children: "The one-click link requires a public HTTPS URL. For local dev, add the connector manually below or use Claude Code." }))] }), _jsxs("section", { children: [_jsx("h2", { children: "Manual setup" }), _jsxs("ol", { children: [_jsxs("li", { children: ["Install ", _jsx("a", { href: "https://claude.ai/download", children: "Claude Desktop" }), " if needed"] }), _jsxs("li", { children: ["Open ", _jsx("strong", { children: "Customize \u2192 Connectors" }), " (or Settings \u2192 Integrations in some versions)"] }), _jsxs("li", { children: ["Click ", _jsx("strong", { children: "Add custom connector" })] }), _jsxs("li", { children: ["Paste this URL, then ", _jsx("strong", { children: "Connect" }), " and sign in with Contentful:"] })] }), _jsx("code", { style: codeStyle, children: mcpUrl })] }), _jsxs("section", { children: [_jsx("h2", { children: "Site playbooks" }), _jsxs("p", { children: ["Site-specific rules for ", displayName, " (articles, routing, components, and more). Claude Integrations cannot read ", _jsx("code", { children: "cms-edit://customer/*" }), " MCP resources \u2014 use the", ' ', _jsx("strong", { children: "cms_edit_customer" }), " tool or the URLs below."] }), _jsxs("ul", { children: [
|
|
20
|
+
return (_jsxs("main", { style: pageStyle, children: [_jsxs("h1", { children: ["cms-edit for ", displayName] }), _jsx("p", { children: "Edit Contentful draft content from Claude. Sign in with your Contentful account \u2014 no tokens or command line required." }), _jsxs("section", { children: [_jsx("h2", { children: "Quick connect (recommended)" }), canUseInstallLink ? (_jsxs(_Fragment, { children: [_jsx("p", { children: "Click the button below. It opens Claude with the connector name and URL prefilled \u2014 you just confirm and sign in with Contentful." }), _jsx("p", { children: _jsx("a", { href: installUrl, style: buttonStyle, children: "Connect to Claude" }) }), _jsxs("p", { style: { fontSize: '0.9375rem', color: '#52525b' }, children: ["Works in Claude Desktop and claude.ai (same account). Shortcut:", ' ', _jsx("a", { href: "/connect", children: "/connect" })] })] })) : (_jsx("p", { children: "The one-click link requires a public HTTPS URL. For local dev, add the connector manually below or use Claude Code." }))] }), _jsxs("section", { children: [_jsx("h2", { children: "Manual setup" }), _jsxs("ol", { children: [_jsxs("li", { children: ["Install ", _jsx("a", { href: "https://claude.ai/download", children: "Claude Desktop" }), " if needed"] }), _jsxs("li", { children: ["Open ", _jsx("strong", { children: "Customize \u2192 Connectors" }), " (or Settings \u2192 Integrations in some versions)"] }), _jsxs("li", { children: ["Click ", _jsx("strong", { children: "Add custom connector" })] }), _jsxs("li", { children: ["Paste this URL, then ", _jsx("strong", { children: "Connect" }), " and sign in with Contentful:"] })] }), _jsx("code", { style: codeStyle, children: mcpUrl })] }), _jsxs("section", { children: [_jsx("h2", { children: "Site playbooks" }), _jsxs("p", { children: ["Site-specific rules for ", displayName, " (articles, routing, components, and more). Claude Integrations cannot read ", _jsx("code", { children: "cms-edit://customer/*" }), " MCP resources \u2014 use the", ' ', _jsx("strong", { children: "cms_edit_customer" }), " tool or the URLs below."] }), _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("strong", { children: "Start:" }), " ", _jsx("a", { href: "/cms-edit/playbooks/tasks-index", children: "tasks-index" }), " \u2014 intent \u2192 task playbooks"] }), _jsxs("li", { children: [_jsx("a", { href: "/cms-edit/playbooks/capabilities", children: "capabilities" }), " \u00B7", ' ', _jsx("a", { href: "/cms-edit/playbooks/checklist", children: "checklist" })] }), _jsxs("li", { children: [_jsx("a", { href: "/cms-edit/playbooks", children: "Browse all playbooks" }), " \u00B7", ' ', _jsx("a", { href: "/api/customer", children: "JSON index" })] }), _jsxs("li", { children: ["Examples: ", _jsx("a", { href: "/api/customer/overview", children: "overview" }), ",", ' ', _jsx("a", { href: "/api/customer/routing", children: "routing" }), ",", ' ', _jsx("a", { href: "/api/customer/articles", children: "articles" })] })] }), _jsx("blockquote", { style: { margin: '0.5rem 0', padding: '0.75rem 1rem', background: '#f4f4f5' }, children: "In Claude: read tasks-index first, then the matching task-* playbook. Use cms_edit_customer with resource \"tasks-index\" or cms_edit [\"customer\", \"tasks-index\"]." })] }), _jsxs("section", { children: [_jsx("h2", { children: "Verify" }), _jsx("p", { children: "Start a new conversation and ask:" }), _jsx("blockquote", { style: { margin: '0.5rem 0', padding: '0.75rem 1rem', background: '#f4f4f5' }, children: "Read the cms-edit guide, then tasks-index, and verify the connection." })] }), _jsxs("section", { children: [_jsx("h2", { children: "Common tasks" }), _jsx("p", { children: "Examples you can paste into Claude (or use the matching MCP prompts):" }), _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("strong", { children: "Edit a page:" }), " \u201CUpdate the hero heading on /about-us\u201D"] }), _jsxs("li", { children: [_jsx("strong", { children: "Create an article:" }), " \u201CCreate a new blog article titled \u2026\u201D (Claude will ask for the article type)"] }), _jsxs("li", { children: [_jsx("strong", { children: "Go live:" }), " After Claude saves a draft, open Contentful and publish \u2014 cms-edit does not publish for you"] })] }), _jsx("p", { style: { fontSize: '0.9375rem', color: '#52525b' }, children: "Use Contentful only to publish and upload images. Do all copy editing in Claude." })] }), _jsxs("section", { children: [_jsx("h2", { children: "Troubleshooting" }), _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("strong", { children: "Connection stopped working?" }), " Open Customize \u2192 Connectors and click", ' ', _jsx("strong", { children: "Connect" }), " again."] }), _jsxs("li", { children: [_jsx("strong", { children: "Wrong space?" }), " Your Contentful account must have access to this site's space."] }), _jsxs("li", { children: ["Health check: ", _jsx("code", { children: "/api/health" })] })] })] })] }));
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=CmsE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AAa,OAAE,GAAG,EAC5D,YAAG,IAAI,EAAC,uBAAuB,wBAAY,OAAE,GAAG,EAChD,YAAG,IAAI,EAAC,wBAAwB,yBAAa,IAC1C,IACF,EACL,qBAAY,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,uLAI5E,IACL,EAEV,8BACE,kCAAe,EACf,4DAAwC,EACxC,qBAAY,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,sFAE5E,IACL,EAEV,8BACE,wCAAqB,EACrB,gGAA4E,EAC5E,yBACE,yBACE,4CAA6B,yDAC1B,EACL,yBACE,kDAAmC,mGAEhC,EACL,yBACE,wCAAyB,yGAEtB,IACF,EACL,YAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,iGAEjD,IACI,EAEV,8BACE,2CAAwB,EACxB,yBACE,yBACE,2DAA4C,iDAAuC,GAAG,EACtF,uCAAwB,eACrB,EACL,yBACE,4CAA6B,uEAE1B,EACL,2CACgB,yCAAwB,IACnC,IACF,IACG,IACL,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerPlaybooksPage.d.ts","sourceRoot":"","sources":["../../../../src/hosted/next/pages/CustomerPlaybooksPage.tsx"],"names":[],"mappings":"AAIA,wBAA8B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"CustomerPlaybooksPage.d.ts","sourceRoot":"","sources":["../../../../src/hosted/next/pages/CustomerPlaybooksPage.tsx"],"names":[],"mappings":"AAIA,wBAA8B,qBAAqB,yCAwElD"}
|
|
@@ -8,9 +8,18 @@ export default async function CustomerPlaybooksPage() {
|
|
|
8
8
|
if (!index) {
|
|
9
9
|
return (_jsxs("main", { style: pageStyle, children: [_jsx("h1", { children: "Site playbooks" }), _jsx("p", { children: "No editor pack is configured on this deployment." })] }));
|
|
10
10
|
}
|
|
11
|
-
const highlighted = new Set([
|
|
12
|
-
|
|
11
|
+
const highlighted = new Set([
|
|
12
|
+
'tasks-index',
|
|
13
|
+
'capabilities',
|
|
14
|
+
'checklist',
|
|
15
|
+
'overview',
|
|
16
|
+
'routing',
|
|
17
|
+
'articles',
|
|
18
|
+
'blog-tag-matrix',
|
|
19
|
+
'defaults',
|
|
20
|
+
]);
|
|
21
|
+
return (_jsxs("main", { style: pageStyle, children: [_jsxs("h1", { children: ["Site playbooks \u2014 ", index.displayName ?? index.projectKey] }), _jsxs("p", { children: ["Site-specific guidance for Claude and editors. In Claude Integrations, use the", ' ', _jsx("strong", { children: "cms_edit_customer" }), " tool (recommended) or fetch the API URLs below."] }), _jsx("p", { children: _jsx("a", { href: "/cms-edit", children: "\u2190 Back to cms-edit connect" }) }), _jsxs("section", { children: [_jsx("h2", { children: "Start here" }), _jsxs("p", { children: ["Read ", _jsx("strong", { children: "tasks-index" }), " first \u2014 it maps common editing goals to step-by-step playbooks for this site."] }), _jsx("ul", { children: index.resources
|
|
13
22
|
.filter((resource) => highlighted.has(resource.name))
|
|
14
|
-
.map((resource) => (_jsxs("li", { children: [_jsx("a", { href: resource.pageUrl, children: resource.name }), " \u2014 ", _jsx("a", { href: resource.apiUrl, children: "API" })] }, resource.name))) })] }), _jsxs("section", { children: [_jsx("h2", { children: "All playbooks" }), _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("a", { href: `${origin}/api/customer`, children: "index" }), " (JSON list)"] }), index.resources.map((resource) => (_jsxs("li", { children: [_jsx("a", { href: resource.pageUrl, children: resource.name }), " \u2014 ", _jsx("a", { href: resource.apiUrl, children: "API" })] }, resource.name)))] })] })] }));
|
|
23
|
+
.map((resource) => (_jsxs("li", { children: [_jsx("a", { href: resource.pageUrl, children: resource.name }), " \u2014 ", _jsx("a", { href: resource.apiUrl, children: "API" })] }, resource.name))) }), index.requiredReading.length > 0 && (_jsxs("p", { style: { fontSize: '0.9375rem', color: '#52525b' }, children: ["Suggested order: ", index.requiredReading.map((uri) => uri.split('/').pop()).join(' → ')] }))] }), _jsxs("section", { children: [_jsx("h2", { children: "All playbooks" }), _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("a", { href: `${origin}/api/customer`, children: "index" }), " (JSON list)"] }), index.resources.map((resource) => (_jsxs("li", { children: [_jsx("a", { href: resource.pageUrl, children: resource.name }), " \u2014 ", _jsx("a", { href: resource.apiUrl, children: "API" })] }, resource.name)))] })] })] }));
|
|
15
24
|
}
|
|
16
25
|
//# sourceMappingURL=CustomerPlaybooksPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerPlaybooksPage.js","sourceRoot":"","sources":["../../../../src/hosted/next/pages/CustomerPlaybooksPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,qBAAqB;IACjD,MAAM,MAAM,GAAG,MAAM,oBAAoB,EAAE,CAAC;IAC5C,MAAM,KAAK,GAAG,0BAA0B,CAAC,MAAM,EAAE,uBAAuB,EAAE,CAAC,CAAC;IAE5E,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,CACL,gBAAM,KAAK,EAAE,SAAS,aACpB,0CAAuB,EACvB,2EAAuD,IAClD,CACR,CAAC;IACJ,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"CustomerPlaybooksPage.js","sourceRoot":"","sources":["../../../../src/hosted/next/pages/CustomerPlaybooksPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE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I,CACnC,aAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,kCACjC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IACpF,CACL,IACO,EAEV,8BACE,yCAAsB,EACtB,yBACE,yBACE,YAAG,IAAI,EAAE,GAAG,MAAM,eAAe,sBAAW,oBACzC,EACJ,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACjC,yBACE,YAAG,IAAI,EAAE,QAAQ,CAAC,OAAO,YAAG,QAAQ,CAAC,IAAI,GAAK,cAAG,YAAG,IAAI,EAAE,QAAQ,CAAC,MAAM,oBAAS,KAD3E,QAAQ,CAAC,IAAI,CAEjB,CACN,CAAC,IACC,IACG,IACL,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../../../src/hosted/next/pages/HomePage.tsx"],"names":[],"mappings":"AAIA,wBAA8B,QAAQ,
|
|
1
|
+
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../../../src/hosted/next/pages/HomePage.tsx"],"names":[],"mappings":"AAIA,wBAA8B,QAAQ,yCA8GrC"}
|
|
@@ -31,6 +31,6 @@ export default async function HomePage() {
|
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
}, null, 2);
|
|
34
|
-
return (_jsxs("main", { style: pageStyle, children: [_jsxs("h1", { children: ["cms-edit for ", displayName] }), _jsx("p", { children: "Hosted MCP server for editing Contentful draft content. Sign in with your Contentful account via OAuth \u2014 no personal access token required." }), canUseInstallLink && (_jsxs("section", { children: [_jsx("h2", { children: "Connect to Claude" }), _jsx("p", { children: "One-click setup \u2014 opens Claude with the connector prefilled. Confirm, then sign in with Contentful." }), _jsx("p", { children: _jsx("a", { href: installUrl, style: buttonStyle, children: "Connect to Claude" }) }), _jsxs("p", { style: { fontSize: '0.9375rem', color: '#52525b' }, children: ["Or use ", _jsx("a", { href: "/connect", children: "/connect" }), " \u00B7 Editor guide: ", _jsx("a", { href: "/cms-edit", children: "/cms-edit" })] })] })), _jsxs("section", { children: [_jsx("h2", { children: "Deployment" }), _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("strong", { children: "Project:" }), " ", projectKey] }), _jsxs("li", { children: [_jsx("strong", { children: "Space ID:" }), " ", spaceId] }), _jsxs("li", { children: [_jsx("strong", { children: "cms-edit version:" }), " ", version] }), _jsxs("li", { children: [_jsx("strong", { children: "MCP URL:" }), " ", _jsx("code", { children: mcpUrl })] }), _jsxs("li", { children: [_jsx("strong", { children: "Health:" }), " ", _jsx("a", { href: "/api/health", children: "/api/health" })] })] })] }), _jsxs("section", { children: [_jsx("h2", { children: "Claude Desktop (manual)" }), _jsxs("p", { children: [_jsx("strong", { children: "Customize \u2192 Connectors \u2192 Add custom connector" }), " \u2014 paste the MCP URL, then Connect and sign in with Contentful."] })] }), _jsxs("section", { children: [_jsx("h2", { children: "Claude Code" }), _jsx("p", { children: "Add the server from your terminal (local scope \u2014 this project only):" }), _jsx("code", { style: codeStyle, children: claudeCodeCommand }), _jsxs("p", { children: ["Then run ", _jsx("code", { children: "/mcp" }), " in Claude Code and complete OAuth + Contentful sign-in."] }), _jsx("code", { style: codeStyle, children: mcpJson })] }), _jsxs("section", { children: [_jsx("h2", { children: "Verify" }), _jsx("blockquote", { style: { margin: '0.5rem 0', padding: '0.75rem 1rem', background: '#f4f4f5' }, children: "Read the cms-edit guide and verify the connection." })] })] }));
|
|
34
|
+
return (_jsxs("main", { style: pageStyle, children: [_jsxs("h1", { children: ["cms-edit for ", displayName] }), _jsx("p", { children: "Hosted MCP server for editing Contentful draft content. Sign in with your Contentful account via OAuth \u2014 no personal access token required." }), canUseInstallLink && (_jsxs("section", { children: [_jsx("h2", { children: "Connect to Claude" }), _jsx("p", { children: "One-click setup \u2014 opens Claude with the connector prefilled. Confirm, then sign in with Contentful." }), _jsx("p", { children: _jsx("a", { href: installUrl, style: buttonStyle, children: "Connect to Claude" }) }), _jsxs("p", { style: { fontSize: '0.9375rem', color: '#52525b' }, children: ["Or use ", _jsx("a", { href: "/connect", children: "/connect" }), " \u00B7 Editor guide: ", _jsx("a", { href: "/cms-edit", children: "/cms-edit" }), ' ', "\u00B7 Task playbooks: ", _jsx("a", { href: "/cms-edit/playbooks/tasks-index", children: "tasks-index" })] })] })), _jsxs("section", { children: [_jsx("h2", { children: "Deployment" }), _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("strong", { children: "Project:" }), " ", projectKey] }), _jsxs("li", { children: [_jsx("strong", { children: "Space ID:" }), " ", spaceId] }), _jsxs("li", { children: [_jsx("strong", { children: "cms-edit version:" }), " ", version] }), _jsxs("li", { children: [_jsx("strong", { children: "MCP URL:" }), " ", _jsx("code", { children: mcpUrl })] }), _jsxs("li", { children: [_jsx("strong", { children: "Health:" }), " ", _jsx("a", { href: "/api/health", children: "/api/health" })] })] })] }), _jsxs("section", { children: [_jsx("h2", { children: "Claude Desktop (manual)" }), _jsxs("p", { children: [_jsx("strong", { children: "Customize \u2192 Connectors \u2192 Add custom connector" }), " \u2014 paste the MCP URL, then Connect and sign in with Contentful."] })] }), _jsxs("section", { children: [_jsx("h2", { children: "Claude Code" }), _jsx("p", { children: "Add the server from your terminal (local scope \u2014 this project only):" }), _jsx("code", { style: codeStyle, children: claudeCodeCommand }), _jsxs("p", { children: ["Then run ", _jsx("code", { children: "/mcp" }), " in Claude Code and complete OAuth + Contentful sign-in."] }), _jsx("code", { style: codeStyle, children: mcpJson })] }), _jsxs("section", { children: [_jsx("h2", { children: "Verify" }), _jsx("blockquote", { style: { margin: '0.5rem 0', padding: '0.75rem 1rem', background: '#f4f4f5' }, children: "Read the cms-edit guide and tasks-index, then verify the connection." })] })] }));
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=HomePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomePage.js","sourceRoot":"","sources":["../../../../src/hosted/next/pages/HomePage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAChG,OAAO,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE5F,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,QAAQ;IACpC,MAAM,MAAM,GAAG,MAAM,oBAAoB,EAAE,CAAC;IAC5C,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,CAAC;IAErC,IAAI,UAAU,GAAG,SAAS,CAAC;IAC3B,IAAI,OAAO,GAAG,kBAAkB,CAAC;IACjC,IAAI,WAAW,GAAG,WAAW,CAAC;IAC9B,IAAI,MAAM,GAAG,GAAG,MAAM,UAAU,CAAC;IAEjC,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,2BAA2B,EAAE,CAAC;QACjD,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACnC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;QAC7B,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC;QAC5E,MAAM,GAAG,iBAAiB,EAAE,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,kDAAkD;IACpD,CAAC;IAED,MAAM,aAAa,GAAG,aAAa,WAAW,GAAG,CAAC;IAClD,MAAM,UAAU,GAAG,8BAA8B,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACzE,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACtD,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,wCAAyB,OAAE,UAAU,IAClC,EACL,yBACE,yCAA0B,OAAE,OAAO,IAChC,EACL,yBACE,iDAAkC,OAAE,OAAO,IACxC,EACL,yBACE,wCAAyB,OAAC,yBAAO,MAAM,GAAQ,IAC5C,EACL,yBACE,uCAAwB,OAAC,YAAG,IAAI,EAAC,aAAa,4BAAgB,IAC3D,IACF,IACG,EAEV,8BACE,mDAAgC,EAChC,wBACE,uFAA8D,4EAE5D,IACI,EAEV,8BACE,uCAAoB,EACpB,oGAA2E,EAC3E,eAAM,KAAK,EAAE,SAAS,YAAG,iBAAiB,GAAQ,EAClD,qCACW,kCAAiB,gEACxB,EACJ,eAAM,KAAK,EAAE,SAAS,YAAG,OAAO,GAAQ,IAChC,EAEV,8BACE,kCAAe,EACf,qBAAY,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,qFAE5E,IACL,IACL,CACR,CAAC;AACJ,CAAC"}
|
package/dist/mcp/guide.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ export interface HostedMcpInfo {
|
|
|
6
6
|
export type GuideTopic = 'overview' | 'workflow' | 'commands' | 'troubleshooting' | 'hosted';
|
|
7
7
|
export declare const GUIDE_TOPICS: GuideTopic[];
|
|
8
8
|
export declare const GUIDE_RESOURCE_URI = "cms-edit://guide";
|
|
9
|
-
export declare const ONBOARDING_PROMPTS: readonly ["cms_edit_verify", "cms_edit_explore", "cms_edit_edit_page", "cms_edit_edit_article", "cms_edit_index_sync", "cms_edit_create_page", "cms_edit_create_article", "cms_edit_create_from_doc", "cms_edit_create_article_from_doc", "cms_edit_taxonomy"];
|
|
9
|
+
export declare const ONBOARDING_PROMPTS: readonly ["cms_edit_verify", "cms_edit_explore", "cms_edit_edit_page", "cms_edit_edit_article", "cms_edit_index_sync", "cms_edit_create_page", "cms_edit_create_article", "cms_edit_create_from_doc", "cms_edit_create_article_from_doc", "cms_edit_taxonomy", "cms_edit_bulk_seo", "cms_edit_bulk_find_replace", "cms_edit_bulk_article_tags", "cms_edit_import_authors", "cms_edit_media"];
|
|
10
10
|
export declare const GETTING_STARTED_INFO: {
|
|
11
11
|
readonly resourceUri: "cms-edit://guide";
|
|
12
|
-
readonly prompts: readonly ["cms_edit_verify", "cms_edit_explore", "cms_edit_edit_page", "cms_edit_edit_article", "cms_edit_index_sync", "cms_edit_create_page", "cms_edit_create_article", "cms_edit_create_from_doc", "cms_edit_create_article_from_doc", "cms_edit_taxonomy"];
|
|
12
|
+
readonly prompts: readonly ["cms_edit_verify", "cms_edit_explore", "cms_edit_edit_page", "cms_edit_edit_article", "cms_edit_index_sync", "cms_edit_create_page", "cms_edit_create_article", "cms_edit_create_from_doc", "cms_edit_create_article_from_doc", "cms_edit_taxonomy", "cms_edit_bulk_seo", "cms_edit_bulk_find_replace", "cms_edit_bulk_article_tags", "cms_edit_import_authors", "cms_edit_media"];
|
|
13
13
|
readonly helpTool: "cms_edit_help";
|
|
14
14
|
};
|
|
15
15
|
export declare function loadHostedGuideTemplate(): string;
|
package/dist/mcp/guide.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide.d.ts","sourceRoot":"","sources":["../../src/mcp/guide.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,iBAAiB,GAAG,QAAQ,CAAC;AAE7F,eAAO,MAAM,YAAY,EAAE,UAAU,EAMpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAErD,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"guide.d.ts","sourceRoot":"","sources":["../../src/mcp/guide.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,iBAAiB,GAAG,QAAQ,CAAC;AAE7F,eAAO,MAAM,YAAY,EAAE,UAAU,EAMpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAErD,eAAO,MAAM,kBAAkB,8XAgBrB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AAWX,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AA+BD,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,MAAM,CAMjE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,CAiB7E;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,MAAM,CAGvF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAQ1D"}
|
package/dist/mcp/guide.js
CHANGED
|
@@ -18,6 +18,11 @@ export const ONBOARDING_PROMPTS = [
|
|
|
18
18
|
'cms_edit_create_from_doc',
|
|
19
19
|
'cms_edit_create_article_from_doc',
|
|
20
20
|
'cms_edit_taxonomy',
|
|
21
|
+
'cms_edit_bulk_seo',
|
|
22
|
+
'cms_edit_bulk_find_replace',
|
|
23
|
+
'cms_edit_bulk_article_tags',
|
|
24
|
+
'cms_edit_import_authors',
|
|
25
|
+
'cms_edit_media',
|
|
21
26
|
];
|
|
22
27
|
export const GETTING_STARTED_INFO = {
|
|
23
28
|
resourceUri: GUIDE_RESOURCE_URI,
|
|
@@ -40,8 +45,8 @@ function buildSiteIntro(hosted) {
|
|
|
40
45
|
return (`This deployment is configured for **${siteName}** (project key \`${hosted.projectKey}\`). ` +
|
|
41
46
|
'You are using the hosted Claude Integrations connector — no local config files or `--space` flag needed.');
|
|
42
47
|
}
|
|
43
|
-
return (
|
|
44
|
-
'
|
|
48
|
+
return ("Connect via your site's hosted `/cms-edit` MCP URL (Claude Integrations + OAuth). " +
|
|
49
|
+
'Local stdio MCP is not supported. For terminal/IDE agents, run `cms-edit` CLI with `.contentful-cms.json`.');
|
|
45
50
|
}
|
|
46
51
|
function buildHostedRules(hosted) {
|
|
47
52
|
if (hosted) {
|
|
@@ -49,9 +54,9 @@ function buildHostedRules(hosted) {
|
|
|
49
54
|
'- You sign in with Contentful OAuth; edits appear under your name.\n' +
|
|
50
55
|
'- Redeploy the hosted server to pick up cms-edit updates; editors do not reconnect for tool changes.');
|
|
51
56
|
}
|
|
52
|
-
return ('-
|
|
53
|
-
'-
|
|
54
|
-
'-
|
|
57
|
+
return ("- Connect Claude via your site's `/cms-edit` hosted MCP URL — do not use local `mcpServers` config.\n" +
|
|
58
|
+
'- For CLI/agents in a repo: `.contentful-cms.json` and `--space <name>` when multiple spaces are configured.\n' +
|
|
59
|
+
'- Install skills: `npx skills add @se-studio/skills` or `cms-edit skill install`.');
|
|
55
60
|
}
|
|
56
61
|
export function buildGuideMarkdown(hosted) {
|
|
57
62
|
const exampleSlug = hosted?.exampleSlugs?.[1] ?? DEFAULT_EXAMPLE_SLUGS[1] ?? '/pricing';
|
package/dist/mcp/guide.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide.js","sourceRoot":"","sources":["../../src/mcp/guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAUrE,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,UAAU;IACV,UAAU;IACV,UAAU;IACV,iBAAiB;IACjB,QAAQ;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAA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,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3C,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAC1D,IAAI,gBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC;QAC5B,OAAO,YAAY,CAAC,IAAI,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAAiB,EAAE,MAAsB;IAC7E,MAAM,QAAQ,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,UAAU,EAAE,CAAC;QACnC,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,IAAK,YAAkC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACxD,OAAO,KAAmB,CAAC;IAC7B,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,wBAAwB,KAAK,oBAAoB,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../../../src/mcp/prompts/onboarding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../../../src/mcp/prompts/onboarding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAiBjD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,CA2dzF"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
const TASKS_PREAMBLE = 'Start by reading customer playbooks: cms_edit ["customer", "tasks-index"]; ' +
|
|
3
|
+
'cms_edit ["customer", "capabilities"]; cms_edit ["customer", "checklist"].\n\n';
|
|
2
4
|
function hostedNote(hosted) {
|
|
3
5
|
if (!hosted) {
|
|
4
6
|
return 'Local MCP: use --space when multiple spaces are configured.';
|
|
@@ -19,7 +21,8 @@ export function registerOnboardingPrompts(server, hosted) {
|
|
|
19
21
|
'Verify cms-edit is working:\n' +
|
|
20
22
|
'1. Call cms_edit_version\n' +
|
|
21
23
|
'2. Call cms_edit with args ["health"]\n' +
|
|
22
|
-
'3.
|
|
24
|
+
'3. cms_edit ["customer", "tasks-index"] and ["customer", "capabilities"] — confirm onboarding resources load\n' +
|
|
25
|
+
'4. Summarize version, health, and available task count for the user',
|
|
23
26
|
},
|
|
24
27
|
},
|
|
25
28
|
],
|
|
@@ -220,7 +223,8 @@ export function registerOnboardingPrompts(server, hosted) {
|
|
|
220
223
|
text: `${note}\n\n` +
|
|
221
224
|
`Create page at slug "${slug}" from a freeform document.\n` +
|
|
222
225
|
`${titleLine}${docLine}\n` +
|
|
223
|
-
|
|
226
|
+
`${TASKS_PREAMBLE}` +
|
|
227
|
+
'1. cms_edit ["customer", "task-create-from-document"]; overview, routing, components-index\n' +
|
|
224
228
|
'2. Infer page structure: map sections to component types using components-index\n' +
|
|
225
229
|
'3. Propose a plain-English page plan (slug, title, template, components) — ask user to confirm\n' +
|
|
226
230
|
'4. Build create-from-json payload; run cms_edit ["create", "from-json", "--file", "<path>", "--dry-run", "--strict"]\n' +
|
|
@@ -265,5 +269,115 @@ export function registerOnboardingPrompts(server, hosted) {
|
|
|
265
269
|
],
|
|
266
270
|
};
|
|
267
271
|
});
|
|
272
|
+
server.prompt('cms_edit_bulk_seo', 'Update SEO meta descriptions: read task playbook, inventory pages, update description field.', {
|
|
273
|
+
instructions: z
|
|
274
|
+
.string()
|
|
275
|
+
.optional()
|
|
276
|
+
.describe('Optional scope, e.g. all pages or specific slugs'),
|
|
277
|
+
}, async ({ instructions }) => {
|
|
278
|
+
const scope = instructions ? `Scope: ${instructions}\n` : '';
|
|
279
|
+
return {
|
|
280
|
+
messages: [
|
|
281
|
+
{
|
|
282
|
+
role: 'user',
|
|
283
|
+
content: {
|
|
284
|
+
type: 'text',
|
|
285
|
+
text: `${note}\n\n${TASKS_PREAMBLE}${scope}` +
|
|
286
|
+
'Update SEO meta descriptions:\n' +
|
|
287
|
+
'1. cms_edit ["customer", "task-seo-descriptions"]\n' +
|
|
288
|
+
'2. cms_edit ["sitemap"] or list target slugs from user\n' +
|
|
289
|
+
'3. Per page/article: open → set @p0 description "…" → diff → save\n' +
|
|
290
|
+
'4. Or batch set when entry IDs are known\n' +
|
|
291
|
+
'Field name is **description** (not seoDescription). Show diff before every save.',
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
};
|
|
296
|
+
});
|
|
297
|
+
server.prompt('cms_edit_bulk_find_replace', 'Bulk find-replace in rich text across pages or articles.', {
|
|
298
|
+
find: z.string().describe('Text to find'),
|
|
299
|
+
replace: z.string().describe('Replacement text'),
|
|
300
|
+
instructions: z.string().optional().describe('Optional scope or entry list'),
|
|
301
|
+
}, async ({ find, replace, instructions }) => {
|
|
302
|
+
const scope = instructions ? `Scope: ${instructions}\n` : '';
|
|
303
|
+
return {
|
|
304
|
+
messages: [
|
|
305
|
+
{
|
|
306
|
+
role: 'user',
|
|
307
|
+
content: {
|
|
308
|
+
type: 'text',
|
|
309
|
+
text: `${note}\n\n${TASKS_PREAMBLE}${scope}` +
|
|
310
|
+
`Bulk find-replace: "${find}" → "${replace}"\n` +
|
|
311
|
+
'1. cms_edit ["customer", "task-bulk-find-replace"]\n' +
|
|
312
|
+
'2. cms_edit ["search", "<find>"] or sitemap — propose affected count; wait for user approval\n' +
|
|
313
|
+
'3. cms_edit ["bulk-rtf-replace", "--find", "…", "--replace-plain", "…", "--dry-run"] — confirm match count\n' +
|
|
314
|
+
'4. cms_edit ["bulk-rtf-replace", "--find", "…", "--replace-plain", "…"] — or per-entry open/rtf/diff/save for small sets\n' +
|
|
315
|
+
'5. Summarize entries updated',
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
};
|
|
320
|
+
});
|
|
321
|
+
server.prompt('cms_edit_bulk_article_tags', 'Update tags on one or more articles.', {
|
|
322
|
+
instructions: z
|
|
323
|
+
.string()
|
|
324
|
+
.describe('Article slugs and tag slugs to apply, or description of changes'),
|
|
325
|
+
}, async ({ instructions }) => ({
|
|
326
|
+
messages: [
|
|
327
|
+
{
|
|
328
|
+
role: 'user',
|
|
329
|
+
content: {
|
|
330
|
+
type: 'text',
|
|
331
|
+
text: `${note}\n\n${TASKS_PREAMBLE}User request: ${instructions}\n` +
|
|
332
|
+
'Update article tags:\n' +
|
|
333
|
+
'1. cms_edit ["customer", "task-article-tags"]\n' +
|
|
334
|
+
'2. cms_edit ["index", "sync"] — refresh tag catalog\n' +
|
|
335
|
+
'3. Batch: article-tags-from-json --file tags.json --dry-run → user confirms → apply\n' +
|
|
336
|
+
'4. Or per article: open --article-slug → set @p0 tags id1,id2 --links (or --append) → diff → save\n' +
|
|
337
|
+
'5. Confirm tag list with user before saving',
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
}));
|
|
342
|
+
server.prompt('cms_edit_import_authors', 'Create person/author entries from a list or spreadsheet.', {
|
|
343
|
+
instructions: z
|
|
344
|
+
.string()
|
|
345
|
+
.describe('Author rows (name, slug, jobTitle, bio) or sheet description'),
|
|
346
|
+
}, async ({ instructions }) => ({
|
|
347
|
+
messages: [
|
|
348
|
+
{
|
|
349
|
+
role: 'user',
|
|
350
|
+
content: {
|
|
351
|
+
type: 'text',
|
|
352
|
+
text: `${note}\n\n${TASKS_PREAMBLE}Author data:\n${instructions}\n` +
|
|
353
|
+
'Create authors (person entries):\n' +
|
|
354
|
+
'1. cms_edit ["customer", "task-authors-import"]\n' +
|
|
355
|
+
'2. cms_edit ["customer", "routing"] — people URL base if configured\n' +
|
|
356
|
+
'3. Batch: create person-from-json --file authors.json --dry-run → user confirms → --if-not-exists\n' +
|
|
357
|
+
'4. Or single: create person --slug … --name … --job-title … --bio-markdown …\n' +
|
|
358
|
+
'5. Link to articles with set @p0 authors <ids> --links if requested',
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
}));
|
|
363
|
+
server.prompt('cms_edit_media', 'Find existing assets or upload new ones (reuse-first workflow).', {
|
|
364
|
+
description: z.string().describe('What image or file is needed, e.g. filename or subject'),
|
|
365
|
+
}, async ({ description }) => ({
|
|
366
|
+
messages: [
|
|
367
|
+
{
|
|
368
|
+
role: 'user',
|
|
369
|
+
content: {
|
|
370
|
+
type: 'text',
|
|
371
|
+
text: `${note}\n\n${TASKS_PREAMBLE}Media need: ${description}\n` +
|
|
372
|
+
'Media — reuse and upload:\n' +
|
|
373
|
+
'1. cms_edit ["customer", "task-media-reuse-and-upload"]\n' +
|
|
374
|
+
'2. cms_edit ["index", "sync"]\n' +
|
|
375
|
+
'3. asset search / list --type media — report matches to user\n' +
|
|
376
|
+
'4. Only if no match: asset upload --if-exists-by-filename\n' +
|
|
377
|
+
'5. Link asset ID or filename to target entry field',
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
}));
|
|
268
382
|
}
|
|
269
383
|
//# sourceMappingURL=onboarding.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding.js","sourceRoot":"","sources":["../../../src/mcp/prompts/onboarding.ts"],"names":[],"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AAC;AACJ,CAAC"}
|
package/dist/mcp/server.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { RunCmsEditFn } from './types.js';
|
|
|
4
4
|
export type { HostedMcpInfo } from './guide.js';
|
|
5
5
|
export type { RunCmsEditFn } from './types.js';
|
|
6
6
|
export interface CreateMcpServerOptions {
|
|
7
|
-
/** Custom runner (in-process for hosted). Defaults to child-process spawn
|
|
7
|
+
/** Custom runner (in-process for hosted). Defaults to child-process spawn of cms-edit CLI. */
|
|
8
8
|
runCmsEdit?: RunCmsEditFn;
|
|
9
9
|
/** When set, guide and prompts include hosted-specific notes (site name, no --space). */
|
|
10
10
|
hosted?: HostedMcpInfo;
|
package/dist/mcp/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAOhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK/C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACrC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAOhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK/C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACrC,8FAA8F;IAC9F,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B,yFAAyF;IACzF,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,SAAS,CAa/E;AA8BD,sDAAsD;AACtD,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAIzE"}
|