Skip to content

feat: update mentions of MCP to AI and CLI#1773

Merged
jomifepe merged 11 commits into
mainfrom
jp/cli-comment
May 14, 2026
Merged

feat: update mentions of MCP to AI and CLI#1773
jomifepe merged 11 commits into
mainfrom
jp/cli-comment

Conversation

@jomifepe
Copy link
Copy Markdown
Collaborator

@jomifepe jomifepe commented May 14, 2026

Summary

  • Update the placeholder comment generated when creating a slice across the Next, Nuxt, Nuxt 2, and SvelteKit adapters to suggest using your own AI agent with the Prismic CLI (linking to https://prismic.io/docs/ai#create-slices) instead of the Prismic MCP server. Snapshot in adapter-sveltekit updated to match.
  • Rename the user-facing "Prismic MCP" sidebar item to "Prismic with AI", rephrase its tooltip, and point the link to the https://prismic.io/docs/ai landing page.
  • Update the slice builder promo button copy to "Boost your workflow with Prismic AI" and point it to the same docs landing page.
  • Rename the promo link component (McpPromoLinkAIPromoLink) and update its import sites.
  • Rename the related telemetry surface: event id mcp:promo-link-clickedai:promo-link-clicked, human name "MCP Promo Link Clicked" → "AI Promo Link Clicked", type McpPromoLinkClickedAiPromoLinkClicked, and the sidebar link_name: "prismic_mcp""prismic_ai".
  • Update Playwright coverage (locator name + variable + test title) to match the new "Prismic with AI" wording.

Preview

Screenshot 2026-05-14 at 13 43 17 Screenshot 2026-05-14 at 13 43 20

Security fix: defu prototype-pollution vulnerability (GHSA-737v-mqg7-c878)

Problem

The @slicemachine/plugin-kit CI audit step (yarn npm audit --environment production --severity high) was failing with:

└─ defu: 6.1.4
   ├─ ID: 1116102
   ├─ Issue: defu: Prototype pollution via `__proto__` key in defaults argument
   ├─ Severity: high
   ├─ Vulnerable Versions: <=6.1.4
   └─ Patched Versions: >=6.1.5

Root cause

Yarn 3.6.0's npm audit implementation (legacy v1 API) sends all resolved package versions in the entire monorepo to the npm registry's bulk advisory endpoint — not just the workspace's own dependency tree. This means even though plugin-kit itself resolved defu@^6.1.5 → 6.1.7, the audit still flagged defu@6.1.4 (resolved via h3, c12, rc9, etc. in sibling workspaces like @slicemachine/manager).

Fix

  1. Bumped defu in packages/plugin-kit/package.json from ^6.1.2 to ^6.1.5
  2. Added "defu": "^6.1.5" to the root package.json resolutions field — this forces all defu ranges across the entire monorepo to resolve to 6.1.7 (patched)

Compatibility checks

The resolution override affects consumers that previously required defu@^5.0.0 (→ 5.0.1) and defu@^6.x (→ 6.1.2 / 6.1.4). We verified the following:

Consumer Previous version Usage pattern Compatible with 6.1.7?
@slicemachine/plugin-kit (direct) 6.1.2 import { defu } from "defu" (ESM named import) ✅ Same API since v6.0
@nuxt/loading-screen@2.0.4 (transitive via nuxt@2.16.3) 5.0.1 const defu = require('defu') (CJS default) ✅ defu 6.1.7's CJS entry (lib/defu.cjs) sets module.exports = defu for backwards compat
h3, c12, rc9, nitropack, @nuxt/kit, @nuxt/schema etc. 6.1.4 Named imports (import { defu } from "defu") ✅ Patch-level bump, no API changes
vite-plugin-sdk@0.1.1 6.1.2 Named import ✅ Same API
giget@1.1.2 6.1.2 Named import ✅ Same API

The 6.1.5 release contains only the prototype-pollution fix (unjs/defu#156) and "ignore inherited enumerable properties" — no breaking changes. Versions 6.1.6/6.1.7 add a types export fix and mixed-types build fix respectively.


Made with Cursor

jomifepe and others added 2 commits May 6, 2026 09:37
Update the placeholder comment generated when creating a new slice to
suggest using your own AI agent with the Prismic CLI instead of the
Prismic MCP server, and link to the corresponding docs section.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jomifepe jomifepe requested a review from a team as a code owner May 14, 2026 12:10
@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
slice-machine Ready Ready Preview May 14, 2026 2:51pm

Request Review

@jomifepe jomifepe self-assigned this May 14, 2026
@jomifepe jomifepe changed the title chore: point slice-create AI hint to Prismic CLI docs feat: update mentions of MCP May 14, 2026
Update the sidebar navigation link, the slice builder promo button, and
the corresponding Playwright test to link to the Prismic AI docs landing
page instead of the now-removed `code-with-prismics-mcp-server` anchor.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread packages/slice-machine/src/features/slices/sliceBuilder/McpPromoLink.tsx Outdated
Comment thread packages/slice-machine/src/features/navigation/Navigation.tsx Outdated
Update the sidebar navigation item, slice builder promo button, and the
Playwright locator/test that exercises the sidebar link to use the new
"Prismic with AI" wording. The sidebar tooltip is also rephrased to
mention the CLI alongside AI usage.

Internal identifiers (component name, telemetry event name, locator
variable) are left unchanged on purpose to preserve analytics continuity.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 22f05f5. Configure here.

Copy link
Copy Markdown
Collaborator

@xrutayisire xrutayisire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Comment thread packages/manager/src/managers/telemetry/types.ts
@jomifepe jomifepe changed the title feat: update mentions of MCP feat: update mentions of MCP to AI and CLI May 14, 2026
@jomifepe jomifepe merged commit 2f3b537 into main May 14, 2026
34 checks passed
@jomifepe jomifepe deleted the jp/cli-comment branch May 14, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants