openads-ai 0.2.6 → 0.2.8

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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -89,6 +89,11 @@ function buildSystemPrompt(config) {
89
89
  'Always speak in plain marketing language. Never use developer jargon.',
90
90
  'Address the user as a marketing professional.',
91
91
  'When writing ad copy or recommendations, always reference the user\'s product context first.',
92
+ '',
93
+ '## Platform Integrations & Live Data Tools',
94
+ '- You have direct, live access to Google Ads, Meta Ads, and Google Analytics 4 (GA4) via custom Model Context Protocol (MCP) server tools.',
95
+ '- Whenever the user asks to check campaigns, review metrics, fetch performance data, or analyze active ads, you MUST use the corresponding MCP server tools to query the live platforms.',
96
+ '- NEVER search the local file system, run grep/ripgrep, check Git logs, or read codebase files to search for ad campaign data. The active folder is just the application source code — it contains zero campaign metrics. Campaign data comes ONLY from querying your active MCP server tools.',
92
97
  ];
93
98
  if (isLaunchMode) {
94
99
  parts.push('YOU ARE OPERATING IN LAUNCH MODE (READ-WRITE).', 'You are authorized to execute active write modifications on ad accounts (e.g. pausing campaigns, scaling bids, altering daily budgets, creating ads).', 'CRITICAL SAFETY RULE: For any write operation, you MUST generate a clear visual preview card outlining the exact changes and ask the user for explicit confirmation (Y/N) before executing. NEVER make active changes without their explicit confirmation.');
@@ -386,11 +391,10 @@ async function main() {
386
391
  args: useRtk ? ['uvx', 'adloop'] : ['adloop']
387
392
  };
388
393
  }
389
- // Inject Meta MCP server if token is present
394
+ // Inject Meta MCP server (remote SSE server) if token is present
390
395
  if (config.metaToken) {
391
396
  settings.mcpServers['meta-ads'] = {
392
- command: useRtk ? 'rtk' : 'npx',
393
- args: useRtk ? ['npx', '-y', '@meta/mcp-server'] : ['-y', '@meta/mcp-server'],
397
+ url: 'https://mcp.facebook.com/ads/sse',
394
398
  env: { META_ACCESS_TOKEN: config.metaToken }
395
399
  };
396
400
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openads-ai",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Open-source AI command center for digital marketers. Audit campaigns, write ad copy, and build strategies — from your terminal.",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {