@wix/mcp 1.0.14 → 1.0.15

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.
@@ -15064,9 +15064,14 @@ var runSemanticSearchAndFormat = async ({
15064
15064
  // src/docs/docs.ts
15065
15065
  import { captureException } from "@sentry/node";
15066
15066
 
15067
+ // src/constants.ts
15068
+ var RAW_DOCS_API_URL = "https://dev.wix.com/rawdocs/api";
15069
+ var GET_ARTICLE_CONTENT_URL = `${RAW_DOCS_API_URL}/get-article-content`;
15070
+ var PORTAL_INDEX_URL = `${RAW_DOCS_API_URL}/portal-index`;
15071
+
15067
15072
  // src/docs/fetch-article.ts
15068
15073
  async function fetchArticleContentFromDigor(httpClient, articleUrl, mode, stripHeader = false) {
15069
- const url = new URL(`https://dev.wix.com/digor/api/get-article-content`);
15074
+ const url = new URL(GET_ARTICLE_CONTENT_URL);
15070
15075
  url.searchParams.set("articleUrl", articleUrl);
15071
15076
  const schema = mode === "methodSchema" ? "true" : "false";
15072
15077
  url.searchParams.set("schema", schema);
@@ -16450,9 +16455,7 @@ var WixMcpServer = class extends McpServer {
16450
16455
 
16451
16456
  // src/resources/docs.ts
16452
16457
  var getPortalIndex = async (portalName) => {
16453
- const response = await fetch(
16454
- `https://dev.wix.com/digor/api/portal-index?portalName=${portalName}`
16455
- );
16458
+ const response = await fetch(`${PORTAL_INDEX_URL}?portalName=${portalName}`);
16456
16459
  const data = await response.json();
16457
16460
  return data;
16458
16461
  };
@@ -16471,7 +16474,7 @@ var addPortalResources = async (server2, portalName) => {
16471
16474
  logger.log(`fetching resource ${uri2}`);
16472
16475
  const docsURL = uri2.toString().replace("wix-docs://", "https://dev.wix.com/docs/");
16473
16476
  const response = await fetch(
16474
- `https://dev.wix.com/digor/api/get-article-content?articleUrl=${encodeURIComponent(docsURL)}`
16477
+ `${GET_ARTICLE_CONTENT_URL}?articleUrl=${encodeURIComponent(docsURL)}`
16475
16478
  );
16476
16479
  const data = await response.json();
16477
16480
  return {