@getmcpads/google-analytics-mcp-server 1.0.0
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 +201 -0
- package/NOTICE +16 -0
- package/README.md +327 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +4488 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +4471 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* google-analytics-mcp-server: an open-source MCP server for Google Analytics 4.
|
|
6
|
+
* Copyright 2026 GetMCPAds. https://www.getmcpads.com
|
|
7
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
declare const configSchema: z.ZodObject<{
|
|
11
|
+
clientId: z.ZodString;
|
|
12
|
+
clientSecret: z.ZodString;
|
|
13
|
+
refreshToken: z.ZodString;
|
|
14
|
+
defaultPropertyId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
logLevel: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
clientId: string;
|
|
18
|
+
clientSecret: string;
|
|
19
|
+
refreshToken: string;
|
|
20
|
+
logLevel: "debug" | "info" | "warn" | "error";
|
|
21
|
+
defaultPropertyId?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
clientId: string;
|
|
24
|
+
clientSecret: string;
|
|
25
|
+
refreshToken: string;
|
|
26
|
+
defaultPropertyId?: string | undefined;
|
|
27
|
+
logLevel?: "debug" | "info" | "warn" | "error" | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
type GA4Config = z.infer<typeof configSchema>;
|
|
30
|
+
declare function loadConfig(): GA4Config;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* google-analytics-mcp-server: an open-source MCP server for Google Analytics 4.
|
|
34
|
+
* Copyright 2026 GetMCPAds. https://www.getmcpads.com
|
|
35
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
declare const PACKAGE_VERSION = "1.0.0";
|
|
39
|
+
declare function createServer(config: GA4Config): McpServer;
|
|
40
|
+
|
|
41
|
+
export { type GA4Config, PACKAGE_VERSION, createServer, loadConfig };
|