Skip to content

Commit 2f3b537

Browse files
feat: update mentions of MCP to AI and CLI (#1773)
fix: defu package vulnerability Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 875e77f commit 2f3b537

14 files changed

Lines changed: 46 additions & 64 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
"connected-next-router/react-redux": "8.0.7",
6969
"react-beautiful-dnd/react-redux": "8.0.7",
7070
"express": "4.20.0",
71-
"@prismicio/types-internal": "3.11.2"
71+
"@prismicio/types-internal": "3.11.2",
72+
"defu": "^6.1.5"
7273
},
7374
"workspaces": [
7475
"playwright",

packages/adapter-next/src/hooks/slice-create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const createComponentFile = async ({
4444
<br />
4545
<strong>You can edit this slice directly in your code editor.</strong>
4646
{/**
47-
* 💡 Use the Prismic MCP server with your code editor
48-
* 📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
47+
* 💡 Use your own AI agent with the Prismic CLI
48+
* 📚 Docs: https://prismic.io/docs/ai#create-slices
4949
*/}`;
5050

5151
if (data.componentContents) {

packages/adapter-nuxt/src/hooks/slice-create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const createComponentFile = async ({
4040
<br />
4141
<strong>You can edit this slice directly in your code editor.</strong>
4242
<!--
43-
💡 Use the Prismic MCP server with your code editor
44-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
43+
💡 Use your own AI agent with the Prismic CLI
44+
📚 Docs: https://prismic.io/docs/ai#create-slices
4545
-->`;
4646

4747
if (data.componentContents) {

packages/adapter-nuxt2/src/hooks/slice-create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const createComponentFile = async ({
3737
<br />
3838
<strong>You can edit this slice directly in your code editor.</strong>
3939
<!--
40-
💡 Use the Prismic MCP server with your code editor
41-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
40+
💡 Use your own AI agent with the Prismic CLI
41+
📚 Docs: https://prismic.io/docs/ai#create-slices
4242
-->
4343
</section>
4444
</template>

packages/adapter-sveltekit/src/hooks/slice-create.templates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Placeholder component for {slice.slice_type} (variation: {slice.variation}) slic
88
<br />
99
<strong>You can edit this slice directly in your code editor.</strong>
1010
<!--
11-
💡 Use the Prismic MCP server with your code editor
12-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
11+
💡 Use your own AI agent with the Prismic CLI
12+
📚 Docs: https://prismic.io/docs/ai#create-slices
1313
-->
1414
`;
1515

packages/adapter-sveltekit/test/__snapshots__/plugin-slice-create.test.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ exports[`Svelte <=4 syntax > component file has correct contents 1`] = `
1515
<br />
1616
<strong>You can edit this slice directly in your code editor.</strong>
1717
<!--
18-
💡 Use the Prismic MCP server with your code editor
19-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
18+
💡 Use your own AI agent with the Prismic CLI
19+
📚 Docs: https://prismic.io/docs/ai#create-slices
2020
-->
2121
</section>
2222
"
@@ -38,8 +38,8 @@ exports[`Svelte <=4 syntax > component file is correctly typed when TypeScript i
3838
<br />
3939
<strong>You can edit this slice directly in your code editor.</strong>
4040
<!--
41-
💡 Use the Prismic MCP server with your code editor
42-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
41+
💡 Use your own AI agent with the Prismic CLI
42+
📚 Docs: https://prismic.io/docs/ai#create-slices
4343
-->
4444
</section>
4545
"
@@ -63,8 +63,8 @@ exports[`component file has correct contents 1`] = `
6363
<br />
6464
<strong>You can edit this slice directly in your code editor.</strong>
6565
<!--
66-
💡 Use the Prismic MCP server with your code editor
67-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
66+
💡 Use your own AI agent with the Prismic CLI
67+
📚 Docs: https://prismic.io/docs/ai#create-slices
6868
-->
6969
</section>
7070
"
@@ -89,8 +89,8 @@ exports[`component file is correctly typed when TypeScript is enabled 1`] = `
8989
<br />
9090
<strong>You can edit this slice directly in your code editor.</strong>
9191
<!--
92-
💡 Use the Prismic MCP server with your code editor
93-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
92+
💡 Use your own AI agent with the Prismic CLI
93+
📚 Docs: https://prismic.io/docs/ai#create-slices
9494
-->
9595
</section>
9696
"

packages/manager/src/managers/telemetry/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const SegmentEventType = {
5252
"slice-generation:plugin-installation-clicked",
5353
navigation_documentationLinkClicked: "navigation:documentation-link-clicked",
5454
sidebar_link_clicked: "sidebar:link-clicked",
55-
mcp_promo_link_clicked: "mcp:promo-link-clicked",
55+
ai_promo_link_clicked: "ai:promo-link-clicked",
5656
info_banner_dismissed: "info-banner:dismissed",
5757
info_banner_button_clicked: "info-banner:button-clicked",
5858
slice_library_opened: "slice-library:opened",
@@ -129,7 +129,7 @@ export const HumanSegmentEventType = {
129129
[SegmentEventType.navigation_documentationLinkClicked]:
130130
"SliceMachine Documentation Link Clicked",
131131
[SegmentEventType.sidebar_link_clicked]: "Sidebar Link Clicked",
132-
[SegmentEventType.mcp_promo_link_clicked]: "MCP Promo Link Clicked",
132+
[SegmentEventType.ai_promo_link_clicked]: "AI Promo Link Clicked",
133133
[SegmentEventType.info_banner_dismissed]:
134134
"SliceMachine Info Banner Dismissed",
135135
[SegmentEventType.info_banner_button_clicked]:
@@ -506,8 +506,8 @@ type SidebarLinkClicked = SegmentEvent<
506506
}
507507
>;
508508

509-
type McpPromoLinkClicked = SegmentEvent<
510-
typeof SegmentEventType.mcp_promo_link_clicked,
509+
type AiPromoLinkClicked = SegmentEvent<
510+
typeof SegmentEventType.ai_promo_link_clicked,
511511
{
512512
source: string;
513513
target: string;
@@ -629,7 +629,7 @@ export type SegmentEvents =
629629
| SliceGenerationPluginInstallationClicked
630630
| NavigationDocumentationLinkClicked
631631
| SidebarLinkClicked
632-
| McpPromoLinkClicked
632+
| AiPromoLinkClicked
633633
| InfoBannerDismissed
634634
| InfoBannerButtonClicked
635635
| SliceLibraryOpened

packages/plugin-kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"dependencies": {
6565
"@prismicio/client": "7.17.0",
6666
"common-tags": "^1.8.2",
67-
"defu": "^6.1.2",
67+
"defu": "^6.1.5",
6868
"dotenv": "16.3.1",
6969
"fp-ts": "^2.13.1",
7070
"fs-extra": "11.1.1",

packages/slice-machine/src/features/navigation/Navigation.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,16 @@ export function Navigation() {
114114
/>
115115

116116
<NavigationItem
117-
title="Prismic MCP"
118-
href="https://prismic.io/docs/ai#code-with-prismics-mcp-server"
117+
title="Prismic with AI"
118+
href="https://prismic.io/docs/ai"
119119
target="_blank"
120120
Icon={CodeIcon}
121121
RightElement={<Badge title="New" color="indigo" />}
122-
tooltip="Connect Prismic MCP to your editor (like Cursor) for AI-powered coding."
122+
tooltip="Learn how to use Prismic with AI for modeling and coding slices."
123123
onClick={() => {
124124
void telemetry.track({
125125
event: "sidebar:link-clicked",
126-
link_name: "prismic_mcp",
126+
link_name: "prismic_ai",
127127
source: "slice_machine_sidebar",
128128
});
129129
}}

packages/slice-machine/src/features/slices/sliceBuilder/McpPromoLink.tsx renamed to packages/slice-machine/src/features/slices/sliceBuilder/AIPromoLink.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Button } from "@prismicio/editor-ui";
22

33
import { telemetry } from "@/apiClient";
44

5-
export const McpPromoLink = () => {
5+
export const AIPromoLink = () => {
66
return (
77
<Button
88
asChild
@@ -12,17 +12,14 @@ export const McpPromoLink = () => {
1212
sx={{ alignSelf: "center" }}
1313
onClick={() => {
1414
void telemetry.track({
15-
event: "mcp:promo-link-clicked",
15+
event: "ai:promo-link-clicked",
1616
source: "slice_editor",
1717
target: "docs",
1818
});
1919
}}
2020
>
21-
<a
22-
href="https://prismic.io/docs/ai#code-with-prismics-mcp-server"
23-
target="_blank"
24-
>
25-
Boost your workflow in Cursor with Prismic MCP
21+
<a href="https://prismic.io/docs/ai" target="_blank">
22+
Boost your workflow with Prismic AI modeling
2623
</a>
2724
</Button>
2825
);

0 commit comments

Comments
 (0)