storelift-mcp 1.0.1 → 1.0.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vomcore
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.
package/README.md CHANGED
@@ -4,7 +4,7 @@ App Store & Google Play ranking data as an MCP server. Ask your assistant which
4
4
  keywords you dropped on, who outranks you, and whether AI assistants mention
5
5
  your app at all — without opening a dashboard.
6
6
 
7
- Backed by [Storelift](https://storelift.vomcore.com), which measures keyword
7
+ Backed by [Storelift](https://storelift.net), which measures keyword
8
8
  ranks, rivals and AI visibility nightly. **No store credentials required** —
9
9
  ranks are read from the public storefront.
10
10
 
@@ -65,7 +65,7 @@ single measurement.
65
65
  | Variable | Default | Purpose |
66
66
  |---|---|---|
67
67
  | `STORELIFT_API_KEY` | — | required; the server exits with a message if unset |
68
- | `STORELIFT_API` | `https://storelift.vomcore.com` | override the API base |
68
+ | `STORELIFT_API` | `https://storelift.net` | override the API base |
69
69
 
70
70
  No dependencies — a single file speaking JSON-RPC over stdio. Runs with
71
71
  `node index.mjs` just as well as through `npx`.
package/index.mjs CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  import { createRequire } from "node:module";
24
24
 
25
- const BASE = process.env.STORELIFT_API || "https://storelift.vomcore.com";
25
+ const BASE = process.env.STORELIFT_API || "https://storelift.net";
26
26
  const KEY = process.env.STORELIFT_API_KEY;
27
27
  // Sürüm TEK YERDEN: elle yazılan serverInfo.version, package.json 1.0.1'e
28
28
  // çıkınca 1.0.0'da kalıp istemciye yanlış sürüm bildiriyordu.
@@ -32,14 +32,34 @@ const { version: VERSION } = createRequire(import.meta.url)("./package.json");
32
32
  // açıklamaları ve hata metinleri MCP dizinlerinde ve yabancı bir kullanıcının
33
33
  // araç panelinde görünüyor — orada Türkçe, ürünü küçültür.
34
34
  if (!KEY) {
35
- console.error("STORELIFT_API_KEY is not set. Generate one at Storelift → Settings → API keys.");
35
+ // ⚠️ PLAN DA YAZILIYOR. Eski metin yalnız "Settings → API keys" diyordu;
36
+ // Public API STUDIO'ya açık (api/index.mjs › PLANS: free/pro `api: false`).
37
+ // Ücretsiz plandaki biri o yönergeyi izleyip anahtar üretemeyince paketi
38
+ // bozuk sanıyordu — README plan şartını söylüyordu ama çalışan program
39
+ // söylemiyordu, ve kullanıcı README'yi değil hata metnini okuyor.
40
+ console.error(
41
+ "STORELIFT_API_KEY is not set.\n" +
42
+ "Generate one at Storelift → Settings → API keys (requires the Studio plan).\n" +
43
+ "https://storelift.net/pricing"
44
+ );
36
45
  process.exit(1);
37
46
  }
38
47
 
48
+ /* Sunucunun hata KODLARI kısa ve makine için ("plan_required"). Model onu
49
+ olduğu gibi kullanıcıya anlatınca ortaya "ERROR: plan_required" çıkıyor ve
50
+ kimse ne yapacağını bilmiyor. En sık karşılaşılacak üç durum burada insan
51
+ cümlesine çevriliyor; çevrilmeyen kod olduğu gibi geçiyor (uydurma bir
52
+ açıklama, hiç açıklama olmamasından kötüdür). */
53
+ const HATA_METNI = {
54
+ plan_required: "The Public API is available on the Studio plan. Upgrade at https://storelift.net/pricing",
55
+ invalid_api_key: "This API key is not valid. Generate a new one at Storelift → Settings → API keys.",
56
+ missing_api_key: "No API key was sent. Set STORELIFT_API_KEY in your MCP server config.",
57
+ };
58
+
39
59
  async function api(path) {
40
60
  const res = await fetch(BASE + path, { headers: { "x-api-key": KEY } });
41
61
  const body = await res.json().catch(() => ({}));
42
- if (!res.ok) throw new Error(body.error || `HTTP ${res.status}`);
62
+ if (!res.ok) throw new Error(HATA_METNI[body.error] || body.error || `HTTP ${res.status}`);
43
63
  return body;
44
64
  }
45
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storelift-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "App Store & Google Play keyword ranks, rivals and AI visibility as an MCP server",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,7 +8,8 @@
8
8
  },
9
9
  "files": [
10
10
  "index.mjs",
11
- "README.md"
11
+ "README.md",
12
+ "LICENSE"
12
13
  ],
13
14
  "keywords": [
14
15
  "mcp",
@@ -22,7 +23,7 @@
22
23
  "keyword-rank",
23
24
  "ai-visibility"
24
25
  ],
25
- "homepage": "https://storelift.vomcore.com",
26
+ "homepage": "https://storelift.net",
26
27
  "bugs": {
27
28
  "email": "hello@vomcore.com"
28
29
  },