Skip to content

Commit 5b74e29

Browse files
update: fix MCP MDX build
1 parent 51b38e4 commit 5b74e29

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

docs/tools/mcp.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ sidebar_label: Aiven MCP server
66
import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88
import CodeBlock from '@theme/CodeBlock';
9-
10-
<!-- vale off -->
11-
{/* Set `mcpUrl` to the MCP server URL; the samples below use this value. */}
12-
export const mcpUrl = "https://mcp.aiven.live/mcp";
13-
export const cursorDeepLink = `cursor://anysphere.cursor-deeplink/mcp/install?name=aiven-mcp&config=${typeof btoa !== "undefined" ? btoa(JSON.stringify({url: mcpUrl})) : ""}`;
14-
<!-- vale on -->
9+
import {cursorDeepLink, mcpUrl} from '@site/src/components/mcpAivenLiveConstants';
1510

1611
Use the Aiven Model Context Protocol (MCP) server to create and manage Aiven services from
1712
AI assistants, such as Cursor and Claude Code.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* MCP server URL and Cursor install deep link for `docs/tools/mcp.md`.
3+
* Change `mcpUrl` here to update every sample on that page.
4+
*/
5+
export const mcpUrl = 'https://mcp.aiven.live/mcp';
6+
7+
export const cursorDeepLink = `cursor://anysphere.cursor-deeplink/mcp/install?name=aiven-mcp&config=${
8+
typeof btoa !== 'undefined' ? btoa(JSON.stringify({url: mcpUrl})) : ''
9+
}`;

0 commit comments

Comments
 (0)