@cite42/mcp 0.1.8 → 0.1.10

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 Cite42
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/dist/stdio.cjs CHANGED
@@ -4,10 +4,6 @@
4
4
  // src/stdio.ts
5
5
  var import_mcp = require("@mastra/mcp");
6
6
 
7
- // src/tools.ts
8
- var import_tools = require("@mastra/core/tools");
9
- var import_zod = require("zod");
10
-
11
7
  // src/client.ts
12
8
  var DEFAULT_BASE_URL = "https://api.cite42.dev/v1";
13
9
  function readFlag(name) {
@@ -20,8 +16,11 @@ function readFlag(name) {
20
16
  }
21
17
  return void 0;
22
18
  }
19
+ function resolveApiKey() {
20
+ return readFlag("api-key") ?? process.env.CITE42_API_KEY;
21
+ }
23
22
  function getApiKey() {
24
- const key = readFlag("api-key") ?? process.env.CITE42_API_KEY;
23
+ const key = resolveApiKey();
25
24
  if (!key) {
26
25
  throw new Error(
27
26
  "No Cite42 API key found. Pass --api-key=cite42_live_... in the server args, or set the CITE42_API_KEY environment variable in your MCP client config."
@@ -50,6 +49,8 @@ async function aivPost(path, body) {
50
49
  }
51
50
 
52
51
  // src/tools.ts
52
+ var import_tools = require("@mastra/core/tools");
53
+ var import_zod = require("zod");
53
54
  var modelEnum = import_zod.z.enum(["chatgpt", "claude", "perplexity", "gemini", "google_ai_overview"]);
54
55
  var QUERY_MAX_CHARS = 2e3;
55
56
  var SHORT_TEXT_MAX_CHARS = 200;
@@ -233,10 +234,16 @@ var aivGenerateContentBrief = (0, import_tools.createTool)({
233
234
  });
234
235
 
235
236
  // src/stdio.ts
237
+ if (!resolveApiKey()) {
238
+ console.error(
239
+ "[@cite42/mcp] Missing API key. Set CITE42_API_KEY in your MCP client config (or pass --api-key=cite42_live_...). Get a key at https://cite42.dev/app/keys. Setup guide: https://www.npmjs.com/package/@cite42/mcp"
240
+ );
241
+ process.exit(1);
242
+ }
236
243
  var server = new import_mcp.MCPServer({
237
244
  id: "cite42",
238
245
  name: "Cite42",
239
- version: "0.1.0",
246
+ version: "0.1.10",
240
247
  description: "AI market data API: AI search, citations, SEO keywords, trends, and workflows.",
241
248
  tools: {
242
249
  cite42_search: aivSearch,
package/dist/stdio.mjs CHANGED
@@ -3,10 +3,6 @@
3
3
  // src/stdio.ts
4
4
  import { MCPServer } from "@mastra/mcp";
5
5
 
6
- // src/tools.ts
7
- import { createTool } from "@mastra/core/tools";
8
- import { z } from "zod";
9
-
10
6
  // src/client.ts
11
7
  var DEFAULT_BASE_URL = "https://api.cite42.dev/v1";
12
8
  function readFlag(name) {
@@ -19,8 +15,11 @@ function readFlag(name) {
19
15
  }
20
16
  return void 0;
21
17
  }
18
+ function resolveApiKey() {
19
+ return readFlag("api-key") ?? process.env.CITE42_API_KEY;
20
+ }
22
21
  function getApiKey() {
23
- const key = readFlag("api-key") ?? process.env.CITE42_API_KEY;
22
+ const key = resolveApiKey();
24
23
  if (!key) {
25
24
  throw new Error(
26
25
  "No Cite42 API key found. Pass --api-key=cite42_live_... in the server args, or set the CITE42_API_KEY environment variable in your MCP client config."
@@ -49,6 +48,8 @@ async function aivPost(path, body) {
49
48
  }
50
49
 
51
50
  // src/tools.ts
51
+ import { createTool } from "@mastra/core/tools";
52
+ import { z } from "zod";
52
53
  var modelEnum = z.enum(["chatgpt", "claude", "perplexity", "gemini", "google_ai_overview"]);
53
54
  var QUERY_MAX_CHARS = 2e3;
54
55
  var SHORT_TEXT_MAX_CHARS = 200;
@@ -232,10 +233,16 @@ var aivGenerateContentBrief = createTool({
232
233
  });
233
234
 
234
235
  // src/stdio.ts
236
+ if (!resolveApiKey()) {
237
+ console.error(
238
+ "[@cite42/mcp] Missing API key. Set CITE42_API_KEY in your MCP client config (or pass --api-key=cite42_live_...). Get a key at https://cite42.dev/app/keys. Setup guide: https://www.npmjs.com/package/@cite42/mcp"
239
+ );
240
+ process.exit(1);
241
+ }
235
242
  var server = new MCPServer({
236
243
  id: "cite42",
237
244
  name: "Cite42",
238
- version: "0.1.0",
245
+ version: "0.1.10",
239
246
  description: "AI market data API: AI search, citations, SEO keywords, trends, and workflows.",
240
247
  tools: {
241
248
  cite42_search: aivSearch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cite42/mcp",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Cite42 MCP server: query ChatGPT, Claude, Perplexity, Gemini & Google AI Overviews for brand rankings, AI citations, SEO keyword data, and Reddit/YouTube trends. Works with Claude Code, Claude Desktop, Codex CLI, Cursor, and any MCP client.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,7 +9,8 @@
9
9
  },
10
10
  "files": [
11
11
  "dist",
12
- "README.md"
12
+ "README.md",
13
+ "LICENSE"
13
14
  ],
14
15
  "scripts": {
15
16
  "build": "tsup && chmod +x dist/stdio.mjs",
@@ -29,8 +30,40 @@
29
30
  "publishConfig": {
30
31
  "access": "public"
31
32
  },
32
- "keywords": ["mcp", "model-context-protocol", "cite42", "ai-search", "seo", "keywords", "trends", "claude"],
33
+ "keywords": [
34
+ "mcp",
35
+ "mcp-server",
36
+ "model-context-protocol",
37
+ "modelcontextprotocol",
38
+ "cite42",
39
+ "ai-search",
40
+ "ai-seo",
41
+ "geo",
42
+ "generative-engine-optimization",
43
+ "ai-visibility",
44
+ "ai-citations",
45
+ "brand-monitoring",
46
+ "seo",
47
+ "keywords",
48
+ "keyword-research",
49
+ "trends",
50
+ "google-trends",
51
+ "chatgpt",
52
+ "claude",
53
+ "perplexity",
54
+ "gemini",
55
+ "claude-code",
56
+ "cursor",
57
+ "reddit",
58
+ "youtube"
59
+ ],
33
60
  "engines": {
34
61
  "node": ">=18"
62
+ },
63
+ "author": "Cite42 <support@cite42.dev> (https://cite42.dev)",
64
+ "homepage": "https://cite42.dev",
65
+ "bugs": {
66
+ "email": "support@cite42.dev",
67
+ "url": "https://cite42.dev/app/support"
35
68
  }
36
69
  }