@xevrion/gsc-mcp 0.0.0-stage → 0.1.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.
@@ -0,0 +1,17 @@
1
+ const cache = new WeakMap();
2
+ /** Confirmed ranking updates from Google's Search Status Dashboard. */
3
+ export async function googleUpdates(fetchImpl = fetch) {
4
+ const hit = cache.get(fetchImpl);
5
+ if (hit && Date.now() - hit.at < 6 * 3_600_000)
6
+ return hit.data;
7
+ const res = await fetchImpl("https://status.search.google.com/incidents.json", { signal: AbortSignal.timeout(5000) });
8
+ if (!res.ok)
9
+ throw new Error(`status dashboard returned ${res.status}`);
10
+ const raw = (await res.json());
11
+ const data = raw
12
+ .filter((i) => !i.service_name || i.service_name === "Ranking")
13
+ .map((i) => ({ name: i.external_desc, begin: i.begin.slice(0, 10), end: i.end?.slice(0, 10) }))
14
+ .sort((a, b) => b.begin.localeCompare(a.begin));
15
+ cache.set(fetchImpl, { at: Date.now(), data });
16
+ return data;
17
+ }
package/package.json CHANGED
@@ -1,6 +1,56 @@
1
1
  {
2
2
  "name": "@xevrion/gsc-mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Free, open source MCP server for Google Search Console. Search analytics, SEO opportunity finders, URL inspection and sitemaps for Claude, Cursor and any MCP client.",
5
+ "keywords": [
6
+ "mcp",
7
+ "model-context-protocol",
8
+ "google-search-console",
9
+ "search-console",
10
+ "gsc",
11
+ "seo",
12
+ "claude",
13
+ "cursor"
14
+ ],
15
+ "license": "MIT",
16
+ "author": "xevrion",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/xevrion/gsc-mcp.git"
20
+ },
21
+ "homepage": "https://github.com/xevrion/gsc-mcp#readme",
22
+ "bugs": "https://github.com/xevrion/gsc-mcp/issues",
23
+ "type": "module",
24
+ "bin": {
25
+ "gsc-mcp": "dist/index.js"
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "README.md",
30
+ "LICENSE"
31
+ ],
32
+ "engines": {
33
+ "node": ">=20"
34
+ },
35
+ "scripts": {
36
+ "build": "tsc -p tsconfig.json && chmod +x dist/index.js",
37
+ "dev": "tsc -p tsconfig.json --watch",
38
+ "test": "vitest run",
39
+ "typecheck": "tsc -p tsconfig.json --noEmit",
40
+ "inspect": "npx @modelcontextprotocol/inspector node dist/index.js",
41
+ "prepublishOnly": "npm run build && npm test",
42
+ "smoke": "node scripts/smoke.mjs",
43
+ "pack:mcpb": "bash scripts/pack-mcpb.sh"
44
+ },
45
+ "dependencies": {
46
+ "@modelcontextprotocol/sdk": "^1.32.2",
47
+ "google-auth-library": "^11.3.4",
48
+ "zod": "^4.6.7"
49
+ },
50
+ "devDependencies": {
51
+ "@types/node": "^22.20.7",
52
+ "typescript": "^5.9.3",
53
+ "vitest": "^5.1.2"
54
+ },
55
+ "mcpName": "io.github.xevrion/gsc-mcp"
56
+ }