wordstat-bridge-mcp 1.0.1 → 1.0.3
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/README.md +6 -4
- package/package.json +5 -11
- package/src/bridge.js +5 -2
- package/src/check.js +2 -1
- package/src/index.js +4 -2
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -8,11 +8,13 @@ MCP-сервер, который даёт Claude данные Яндекс Во
|
|
|
8
8
|
Claude ──> этот MCP-сервер (на вашем компьютере) ──> расширение в браузере ──> wordstat.yandex.ru
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
Сайт: [tentek.pro/wordstat](https://tentek.pro/wordstat?utm_source=npm) · Расширение: [Chrome Web Store](https://chromewebstore.google.com/detail/deohadmdopjheebclbepkpiboiafjieo?utm_source=npm)
|
|
12
|
+
|
|
11
13
|
## Установка
|
|
12
14
|
|
|
13
15
|
Нужны две части: **расширение** в Chrome / Яндекс Браузере и **этот сервер** в Claude.
|
|
14
16
|
|
|
15
|
-
1. **Расширение** «Wordstat Bridge» — из Chrome Web Store. Войдите в аккаунт Яндекса
|
|
17
|
+
1. **Расширение** «Wordstat Bridge» — [из Chrome Web Store](https://chromewebstore.google.com/detail/deohadmdopjheebclbepkpiboiafjieo?utm_source=npm). Войдите в аккаунт Яндекса
|
|
16
18
|
на wordstat.yandex.ru.
|
|
17
19
|
2. **Сервер:**
|
|
18
20
|
- **Claude Desktop** — скачайте файл [`wordstat-bridge.mcpb`](https://github.com/kaicex/wordstat-bridge/releases/latest/download/wordstat-bridge.mcpb) и откройте его
|
|
@@ -53,9 +55,9 @@ npx -y wordstat-bridge-mcp check "купить велосипед"
|
|
|
53
55
|
|
|
54
56
|
## Если что-то не работает
|
|
55
57
|
|
|
56
|
-
- **«Расширение не подключено»** — браузер
|
|
58
|
+
- **«Расширение не подключено»** — браузер закрыт, расширение выключено или ещё не установлено ([установить](https://chromewebstore.google.com/detail/deohadmdopjheebclbepkpiboiafjieo?utm_source=npm)). Значок должен быть
|
|
57
59
|
зелёным «ON».
|
|
58
|
-
- **Капча** — расширение само
|
|
60
|
+
- **Капча** — расширение само откроет вкладку Вордстата (на значке красный «!»): пройдите её и
|
|
59
61
|
повторите вопрос.
|
|
60
62
|
- **Несколько окон Claude сразу** — работает: первое держит связь с расширением, остальные идут через него.
|
|
61
63
|
|
|
@@ -67,4 +69,4 @@ npx -y wordstat-bridge-mcp check "купить велосипед"
|
|
|
67
69
|
Не связан с ООО «Яндекс» и Anthropic, не официальный продукт. Вордстат и Яндекс — товарные знаки
|
|
68
70
|
ООО «Яндекс», Claude — товарный знак Anthropic.
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
© Tentek. Все права защищены.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wordstat-bridge-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Wordstat Bridge — MCP-сервер Яндекс Вордстата для Claude: сколько раз ищут запрос, что ещё ищут, сезонность, регионы, семантическое ядро. Без API-ключей и Yandex Cloud.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,11 +20,10 @@
|
|
|
20
20
|
"ws": "^8.23.0",
|
|
21
21
|
"zod": "^3.25.76"
|
|
22
22
|
},
|
|
23
|
-
"license": "
|
|
23
|
+
"license": "UNLICENSED",
|
|
24
24
|
"files": [
|
|
25
25
|
"src/",
|
|
26
|
-
"README.md"
|
|
27
|
-
"LICENSE"
|
|
26
|
+
"README.md"
|
|
28
27
|
],
|
|
29
28
|
"keywords": [
|
|
30
29
|
"mcp",
|
|
@@ -38,13 +37,8 @@
|
|
|
38
37
|
"семантическое ядро"
|
|
39
38
|
],
|
|
40
39
|
"author": "Tentek",
|
|
41
|
-
"
|
|
42
|
-
"type": "git",
|
|
43
|
-
"url": "git+https://github.com/kaicex/wordstat-bridge.git",
|
|
44
|
-
"directory": "server"
|
|
45
|
-
},
|
|
46
|
-
"homepage": "https://github.com/kaicex/wordstat-bridge#readme",
|
|
40
|
+
"homepage": "https://tentek.pro/wordstat",
|
|
47
41
|
"bugs": {
|
|
48
|
-
"
|
|
42
|
+
"email": "kayratdesign@gmail.com"
|
|
49
43
|
}
|
|
50
44
|
}
|
package/src/bridge.js
CHANGED
|
@@ -14,7 +14,7 @@ const PEER_EXTRA_MS = 15000; // a peer waits a bit longer than the hub's own tim
|
|
|
14
14
|
// IDs of the Wordstat Bridge extension:
|
|
15
15
|
// - the Chrome Web Store build (what users install);
|
|
16
16
|
// - the unpacked dev build, fixed by the "key" in extension/manifest.json
|
|
17
|
-
// (the key is stripped from the store zip by
|
|
17
|
+
// (the key is stripped from the store zip by extension/build-zip.sh).
|
|
18
18
|
export const STORE_EXTENSION_ID = "deohadmdopjheebclbepkpiboiafjieo";
|
|
19
19
|
export const EXTENSION_ID = "nlfkhnhaiecpeadgjemdpgkpoimjpijh";
|
|
20
20
|
|
|
@@ -27,6 +27,9 @@ export function allowedExtensionIds(env = process.env) {
|
|
|
27
27
|
return list.length ? list : [STORE_EXTENSION_ID, EXTENSION_ID];
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
export const EXTENSION_URL =
|
|
31
|
+
"https://chromewebstore.google.com/detail/deohadmdopjheebclbepkpiboiafjieo?utm_source=mcp";
|
|
32
|
+
|
|
30
33
|
export class ExtensionBridge {
|
|
31
34
|
constructor({
|
|
32
35
|
port = 8787,
|
|
@@ -364,7 +367,7 @@ export class ExtensionBridge {
|
|
|
364
367
|
#notConnectedError() {
|
|
365
368
|
return new Error(
|
|
366
369
|
"Расширение «Wordstat Bridge» не подключено. Откройте браузер, проверьте, что расширение включено " +
|
|
367
|
-
"(значок должен быть зелёным «ON»), и повторите запрос."
|
|
370
|
+
"(значок должен быть зелёным «ON»), и повторите запрос. Если расширения ещё нет, установите: " + EXTENSION_URL
|
|
368
371
|
);
|
|
369
372
|
}
|
|
370
373
|
}
|
package/src/check.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Self-check without Claude: node src/check.js "купить велосипед"
|
|
3
3
|
// Starts the bridge, waits for the Chrome extension, makes one real request.
|
|
4
|
-
import { ExtensionBridge } from "./bridge.js";
|
|
4
|
+
import { ExtensionBridge, EXTENSION_URL } from "./bridge.js";
|
|
5
5
|
import { commonBody, lastFullMonth, parseTop } from "./wordstat.js";
|
|
6
6
|
|
|
7
7
|
const phrase = process.argv[2] || "купить велосипед";
|
|
@@ -27,6 +27,7 @@ while (!bridge.connected && Date.now() - t0 < 40000) await new Promise((r) => se
|
|
|
27
27
|
if (!bridge.connected) {
|
|
28
28
|
say("✗ Шаг 2. Расширение не подключилось.");
|
|
29
29
|
say(" Проверьте: chrome://extensions → «Wordstat Bridge» включено, нет красной кнопки «Ошибки».");
|
|
30
|
+
say(" Ещё не установлено? " + EXTENSION_URL);
|
|
30
31
|
say(" Нажмите на значок расширения: порт там должен быть " + port + ".");
|
|
31
32
|
await bridge.stop();
|
|
32
33
|
process.exit(1);
|
package/src/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { fileURLToPath } from "node:url";
|
|
|
7
7
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
8
8
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
|
-
import { ExtensionBridge } from "./bridge.js";
|
|
10
|
+
import { ExtensionBridge, EXTENSION_URL } from "./bridge.js";
|
|
11
11
|
import { clusterPhrases, isSuspicious, mergePhrases, phraseKey, stem } from "./core.js";
|
|
12
12
|
import {
|
|
13
13
|
commonBody,
|
|
@@ -80,7 +80,9 @@ export function createServer(bridge) {
|
|
|
80
80
|
},
|
|
81
81
|
guard(async () => {
|
|
82
82
|
const s = bridge.status();
|
|
83
|
-
if (!s.extension_connected)
|
|
83
|
+
if (!s.extension_connected) {
|
|
84
|
+
return { ...s, help: "Откройте браузер с расширением. Если его ещё нет, установите: " + EXTENSION_URL };
|
|
85
|
+
}
|
|
84
86
|
const plan = await bridge.call("__plan", {}).catch(() => null);
|
|
85
87
|
return { ...s, plan: plan ? describePlan(plan) : null };
|
|
86
88
|
})
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Tentek
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|