@apify/docs-theme 1.0.226 → 1.0.227
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/package.json
CHANGED
|
@@ -39,7 +39,7 @@ const DROPDOWN_OPTIONS = [
|
|
|
39
39
|
description: 'Copy MCP Server URL to clipboard',
|
|
40
40
|
showExternalIcon: false,
|
|
41
41
|
Icon: McpIcon,
|
|
42
|
-
value: '
|
|
42
|
+
value: 'copyMcpServerUrl',
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
label: 'Connect to Cursor',
|
|
@@ -82,14 +82,6 @@ const DROPDOWN_OPTIONS = [
|
|
|
82
82
|
|
|
83
83
|
const MCP_SERVER_URL = 'https://mcp.apify.com/?tools=docs';
|
|
84
84
|
|
|
85
|
-
const MCP_CONFIG_JSON = `{
|
|
86
|
-
"mcpServers": {
|
|
87
|
-
"apify": {
|
|
88
|
-
"url": "${MCP_SERVER_URL}"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}`;
|
|
92
|
-
|
|
93
85
|
const getPrompt = (currentUrl) => `Read from ${currentUrl} so I can ask questions about it.`;
|
|
94
86
|
const getMarkdownUrl = (currentUrl) => {
|
|
95
87
|
const url = new URL(currentUrl);
|
|
@@ -197,7 +189,7 @@ const onCopyAsMarkdownClick = async ({ setCopyingStatus }) => {
|
|
|
197
189
|
}
|
|
198
190
|
};
|
|
199
191
|
|
|
200
|
-
const
|
|
192
|
+
const onCopyMcpServerUrlClick = async () => {
|
|
201
193
|
if (window.analytics) {
|
|
202
194
|
window.analytics.track('Clicked', {
|
|
203
195
|
app: 'docs',
|
|
@@ -207,7 +199,7 @@ const onCopyMcpServerClick = async () => {
|
|
|
207
199
|
}
|
|
208
200
|
|
|
209
201
|
try {
|
|
210
|
-
await navigator.clipboard.writeText(
|
|
202
|
+
await navigator.clipboard.writeText(MCP_SERVER_URL);
|
|
211
203
|
} catch (error) {
|
|
212
204
|
console.error('Failed to copy MCP configuration:', error);
|
|
213
205
|
}
|
|
@@ -374,8 +366,8 @@ export default function LLMButtons({ isApiReferencePage = false }) {
|
|
|
374
366
|
case 'viewAsMarkdown':
|
|
375
367
|
onViewAsMarkdownClick();
|
|
376
368
|
break;
|
|
377
|
-
case '
|
|
378
|
-
|
|
369
|
+
case 'copyMcpServerUrl':
|
|
370
|
+
onCopyMcpServerUrlClick();
|
|
379
371
|
break;
|
|
380
372
|
case 'connectCursor':
|
|
381
373
|
onConnectCursorClick();
|