Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/adapter-next/src/hooks/slice-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const createComponentFile = async ({
<br />
<strong>You can edit this slice directly in your code editor.</strong>
{/**
* 💡 Use the Prismic MCP server with your code editor
* 📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
* 💡 Use your own AI agent with the Prismic CLI
* 📚 Docs: https://prismic.io/docs/ai#create-slices
*/}`;

if (data.componentContents) {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-nuxt/src/hooks/slice-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const createComponentFile = async ({
<br />
<strong>You can edit this slice directly in your code editor.</strong>
<!--
💡 Use the Prismic MCP server with your code editor
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
💡 Use your own AI agent with the Prismic CLI
📚 Docs: https://prismic.io/docs/ai#create-slices
-->`;

if (data.componentContents) {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-nuxt2/src/hooks/slice-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const createComponentFile = async ({
<br />
<strong>You can edit this slice directly in your code editor.</strong>
<!--
💡 Use the Prismic MCP server with your code editor
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
💡 Use your own AI agent with the Prismic CLI
📚 Docs: https://prismic.io/docs/ai#create-slices
-->
</section>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Placeholder component for {slice.slice_type} (variation: {slice.variation}) slic
<br />
<strong>You can edit this slice directly in your code editor.</strong>
<!--
💡 Use the Prismic MCP server with your code editor
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
💡 Use your own AI agent with the Prismic CLI
📚 Docs: https://prismic.io/docs/ai#create-slices
-->
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ exports[`Svelte <=4 syntax > component file has correct contents 1`] = `
<br />
<strong>You can edit this slice directly in your code editor.</strong>
<!--
💡 Use the Prismic MCP server with your code editor
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
💡 Use your own AI agent with the Prismic CLI
📚 Docs: https://prismic.io/docs/ai#create-slices
-->
</section>
"
Expand All @@ -38,8 +38,8 @@ exports[`Svelte <=4 syntax > component file is correctly typed when TypeScript i
<br />
<strong>You can edit this slice directly in your code editor.</strong>
<!--
💡 Use the Prismic MCP server with your code editor
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
💡 Use your own AI agent with the Prismic CLI
📚 Docs: https://prismic.io/docs/ai#create-slices
-->
</section>
"
Expand All @@ -63,8 +63,8 @@ exports[`component file has correct contents 1`] = `
<br />
<strong>You can edit this slice directly in your code editor.</strong>
<!--
💡 Use the Prismic MCP server with your code editor
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
💡 Use your own AI agent with the Prismic CLI
📚 Docs: https://prismic.io/docs/ai#create-slices
-->
</section>
"
Expand All @@ -89,8 +89,8 @@ exports[`component file is correctly typed when TypeScript is enabled 1`] = `
<br />
<strong>You can edit this slice directly in your code editor.</strong>
<!--
💡 Use the Prismic MCP server with your code editor
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
💡 Use your own AI agent with the Prismic CLI
📚 Docs: https://prismic.io/docs/ai#create-slices
-->
</section>
"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ export function Navigation() {
/>

<NavigationItem
title="Prismic MCP"
href="https://prismic.io/docs/ai#code-with-prismics-mcp-server"
title="Prismic with AI"
href="https://prismic.io/docs/ai"
target="_blank"
Icon={CodeIcon}
RightElement={<Badge title="New" color="indigo" />}
tooltip="Connect Prismic MCP to your editor (like Cursor) for AI-powered coding."
tooltip="Learn how to use Prismic with AI and the CLI to create content and code slices."
onClick={() => {
void telemetry.track({
event: "sidebar:link-clicked",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ export const McpPromoLink = () => {
});
}}
>
<a
href="https://prismic.io/docs/ai#code-with-prismics-mcp-server"
target="_blank"
>
Boost your workflow in Cursor with Prismic MCP
<a href="https://prismic.io/docs/ai" target="_blank">
Boost your workflow with Prismic AI modeling
</a>
</Button>
);
Expand Down
2 changes: 1 addition & 1 deletion playwright/pages/components/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class Menu {
});

this.prismicMcpLink = this.menu.getByRole("link", {
name: "Prismic MCP",
name: "Prismic with AI",
});
this.changelogLink = this.menu.getByRole("link", {
name: "Changelog",
Expand Down
4 changes: 2 additions & 2 deletions playwright/tests/common/navigation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ test('I can open Prismic documentation by clicking the "Documentation" link', as
await expect(newTab).toHaveURL("https://prismic.io/docs/nextjs");
});

test('I can open Prismic MCP documentation by clicking the "Prismic MCP" link', async ({
test('I can open Prismic AI documentation by clicking the "Prismic with AI" link', async ({
sliceMachinePage,
}) => {
await sliceMachinePage.gotoDefaultPage();
Expand All @@ -149,6 +149,6 @@ test('I can open Prismic MCP documentation by clicking the "Prismic MCP" link',
await newTab.waitForLoadState();

await expect(newTab).toHaveURL(
"https://prismic.io/docs/ai#code-with-prismics-mcp-server",
"https://prismic.io/docs/ai",
);
});
Loading