yandex-webmaster-mcp 1.2.0 → 1.2.1
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 +1 -1
- package/src/index.mjs +5 -5
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ if (command === 'auth') {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
async function runServer() {
|
|
17
|
-
const BASE_URL = 'https://api.webmaster.yandex.net/v4';
|
|
17
|
+
const BASE_URL = process.env.YANDEX_WEBMASTER_BASE_URL || 'https://api.webmaster.yandex.net/v4';
|
|
18
18
|
|
|
19
19
|
// Cache user_id for the session
|
|
20
20
|
let cachedUserId = null;
|
|
@@ -629,7 +629,7 @@ async function runServer() {
|
|
|
629
629
|
},
|
|
630
630
|
},
|
|
631
631
|
async ({ host_id, date_from, date_to }) => {
|
|
632
|
-
let endpoint = await hostEndpoint(host_id, '/
|
|
632
|
+
let endpoint = await hostEndpoint(host_id, '/search-urls/in-search/history');
|
|
633
633
|
const params = new URLSearchParams();
|
|
634
634
|
if (date_from) params.set('date_from', formatDate(date_from));
|
|
635
635
|
if (date_to) params.set('date_to', formatDate(date_to));
|
|
@@ -662,7 +662,7 @@ async function runServer() {
|
|
|
662
662
|
},
|
|
663
663
|
},
|
|
664
664
|
async ({ host_id, limit = 10, offset }) => {
|
|
665
|
-
let endpoint = await hostEndpoint(host_id, '/
|
|
665
|
+
let endpoint = await hostEndpoint(host_id, '/search-urls/in-search/samples');
|
|
666
666
|
const params = new URLSearchParams();
|
|
667
667
|
params.set('limit', limit.toString());
|
|
668
668
|
if (offset) params.set('offset', offset.toString());
|
|
@@ -825,7 +825,7 @@ async function runServer() {
|
|
|
825
825
|
},
|
|
826
826
|
},
|
|
827
827
|
async ({ host_id, limit = 10, offset }) => {
|
|
828
|
-
let endpoint = await hostEndpoint(host_id, '/links/internal/samples');
|
|
828
|
+
let endpoint = await hostEndpoint(host_id, '/links/internal/broken/samples');
|
|
829
829
|
const params = new URLSearchParams();
|
|
830
830
|
params.set('limit', limit.toString());
|
|
831
831
|
if (offset) params.set('offset', offset.toString());
|
|
@@ -857,7 +857,7 @@ async function runServer() {
|
|
|
857
857
|
},
|
|
858
858
|
},
|
|
859
859
|
async ({ host_id, date_from, date_to }) => {
|
|
860
|
-
let endpoint = await hostEndpoint(host_id, '/links/internal/history');
|
|
860
|
+
let endpoint = await hostEndpoint(host_id, '/links/internal/broken/history');
|
|
861
861
|
const params = new URLSearchParams();
|
|
862
862
|
if (date_from) params.set('date_from', formatDate(date_from));
|
|
863
863
|
if (date_to) params.set('date_to', formatDate(date_to));
|