Meta Ads (Facebook/Instagram) MCP server for Claude, ChatGPT, Perplexity & Cursor — the Meta node of Pipeboard’s 5-platform family (+ Google, TikTok, Snap, Reddit). Hosted remote MCP, badged Meta Business Partner, free plan — no self-hosting required.
Python advertisingai-agentschatgptclaudefacebook-adsinstagram-adsmcpmeta-adsmodel-context-protocolpipeboard
feat(duplicate_creative): add new_creative_features_spec override param (#102)
Yves Junqueira358884c609e2
diff --git a/meta_ads_mcp/core/duplication.py b/meta_ads_mcp/core/duplication.pyindex b1ecd09..712defa 100644--- a/meta_ads_mcp/core/duplication.py+++ b/meta_ads_mcp/core/duplication.py@@ -185,6 +185,7 @@ if ENABLE_DUPLICATION:new_description: Optional[str] = None,new_cta_type: Optional[str] = None,new_destination_url: Optional[str] = None,+ new_creative_features_spec: Optional[Dict[str, Any]] = None,pb_token: Optional[str] = None) -> str:"""@@ -200,7 +201,25 @@ if ENABLE_DUPLICATION:new_description: Override the description for the new creativenew_cta_type: Override the call-to-action type for the new creativenew_destination_url: Override the destination URL for the new creative+ new_creative_features_spec: Override / merge into the duplicate's+ degrees_of_freedom_spec.creative_features_spec. Use individual+ feature keys (e.g. image_touchups, image_uncrop, text_optimizations,+ video_auto_crop) with {"enroll_status": "OPT_IN" | "OPT_OUT"} values.+ Merged on top of the source creative's surviving creative_features_spec+ entries. NOTE: the legacy "standard_enhancements" key is rejected by+ Meta on POST (error_subcode 3858504); pass individual feature keys+ instead. The duplication response surfaces a warning when the source+ had standard_enhancements so callers know what to set here."""+ # JSON-string fallback for clients that pass dicts as strings+ if isinstance(new_creative_features_spec, str):+ try:+ _parsed_cfs = json.loads(new_creative_features_spec)+ if isinstance(_parsed_cfs, dict):+ new_creative_features_spec = _parsed_cfs+ except (json.JSONDecodeError, TypeError):+ pass+return await _forward_duplication_request("creative",creative_id,@@ -212,6 +231,7 @@ if ENABLE_DUPLICATION:"new_description": new_description,"new_cta_type": new_cta_type,"new_destination_url": new_destination_url,+ "new_creative_features_spec": new_creative_features_spec,"pb_token": pb_token})diff --git a/pyproject.toml b/pyproject.tomlindex 479dc77..41f5b64 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "hatchling.build"[project]name = "meta-ads-mcp"-version = "1.0.92"+version = "1.0.93"description = "Model Context Protocol (MCP) server for Meta Ads - Use Remote MCP at pipeboard.co for easiest setup"readme = "README.md"requires-python = ">=3.10"diff --git a/server.json b/server.jsonindex 2217287..c0384b7 100644--- a/server.json+++ b/server.json@@ -2,7 +2,7 @@"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json","name": "co.pipeboard/meta-ads-mcp","description": "Facebook / Meta Ads automation with AI: analyze performance, test creatives, optimize spend.",- "version": "1.0.92",+ "version": "1.0.93","remotes": [{"type": "streamable-http",