mcp-google-ads 1.0.10 → 1.0.12
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 +13 -0
- package/dist/build-info.json +1 -1
- package/dist/index.js +5 -0
- package/dist/tools.js +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -91,6 +91,17 @@ Edit `config.json` with your credentials:
|
|
|
91
91
|
}
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
+
### Environment Variables
|
|
95
|
+
|
|
96
|
+
Alternatively, set credentials via environment variables (these override `config.json`):
|
|
97
|
+
|
|
98
|
+
| Variable | Required | Description |
|
|
99
|
+
|---|---|---|
|
|
100
|
+
| `GOOGLE_ADS_DEVELOPER_TOKEN` | Yes | Google Ads API developer token |
|
|
101
|
+
| `GOOGLE_ADS_CLIENT_ID` | Yes | OAuth 2.0 client ID |
|
|
102
|
+
| `GOOGLE_ADS_CLIENT_SECRET` | Yes | OAuth 2.0 client secret |
|
|
103
|
+
| `GOOGLE_ADS_REFRESH_TOKEN` | Yes | OAuth 2.0 refresh token |
|
|
104
|
+
|
|
94
105
|
### 4. Add to Claude Code
|
|
95
106
|
|
|
96
107
|
Add to your Claude Code MCP settings (`~/.claude/settings.json` or project settings):
|
|
@@ -121,6 +132,8 @@ Or if installed from source:
|
|
|
121
132
|
|
|
122
133
|
Restart Claude Code.
|
|
123
134
|
|
|
135
|
+
**Claude Desktop:** Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows).
|
|
136
|
+
|
|
124
137
|
## Usage
|
|
125
138
|
|
|
126
139
|
### Workflow
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sha":"
|
|
1
|
+
{"sha":"9ce7045","builtAt":"2026-04-09T22:09:13.575Z"}
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,11 @@ try {
|
|
|
19
19
|
catch {
|
|
20
20
|
console.error(`[build] ${__cliPkg.name}@${__cliPkg.version} (dev mode)`);
|
|
21
21
|
}
|
|
22
|
+
// Version safety: warn if running a deprecated or dangerously old version
|
|
23
|
+
const __minimumSafeVersion = "1.0.5"; // minimum version with GAQL sanitization
|
|
24
|
+
if (__cliPkg.version < __minimumSafeVersion) {
|
|
25
|
+
console.error(`[WARNING] Running deprecated version ${__cliPkg.version}. Minimum safe version is ${__minimumSafeVersion}. Please upgrade.`);
|
|
26
|
+
}
|
|
22
27
|
// CLI flags
|
|
23
28
|
if (process.argv.includes("--help") || process.argv.includes("-h")) {
|
|
24
29
|
console.error(`${__cliPkg.name} v${__cliPkg.version}\n`);
|
package/dist/tools.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const tools = [
|
|
2
2
|
{
|
|
3
3
|
name: "google_ads_get_client_context",
|
|
4
|
-
description: "Get the current client context based on working directory. Call this first to confirm which Google Ads account you're working with.",
|
|
4
|
+
description: "Get the current client context and health status based on working directory. Call this first to confirm which Google Ads account you're working with.",
|
|
5
5
|
inputSchema: {
|
|
6
6
|
type: "object",
|
|
7
7
|
properties: {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-google-ads",
|
|
3
3
|
"mcpName": "io.github.mharnett/google-ads",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"description": "MCP server for Google Ads API with MCC support,
|
|
4
|
+
"version": "1.0.12",
|
|
5
|
+
"description": "MCP server for Google Ads API with MCC support, 34 tools for campaign management, reporting, and optimization. Safe by default -- all changes created PAUSED.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"mcp-google-ads": "dist/index.js"
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"node": ">=18.18.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@anthropic-ai/sdk": "^0.24.0",
|
|
60
59
|
"@modelcontextprotocol/sdk": "^0.5.0",
|
|
61
60
|
"cockatiel": "^3.2.1",
|
|
62
61
|
"dotenv": "^17.3.1",
|