Skip to content

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.

Enhance Meta Ads MCP with new entry point and version display

Yves Junqueira152c8ecf314f
diff --git a/meta-ads-mcp b/meta-ads-mcp
index 0b11a42..5db8eca 100755
--- a/meta-ads-mcp
+++ b/meta-ads-mcp
@@ -10,4 +10,5 @@ This script provides the command-line entry point for the Meta Ads MCP package.
from meta_ads_mcp import main
if __name__ == "__main__":
+ print("RUNNING LOCAL SCRIPT VERSION OF META ADS MCP")
main()
\ No newline at end of file
diff --git a/meta_ads_mcp/__init__.py b/meta_ads_mcp/__init__.py
index 8c2b329..2eca9c1 100644
--- a/meta_ads_mcp/__init__.py
+++ b/meta_ads_mcp/__init__.py
@@ -7,7 +7,7 @@ with the Claude LLM.
from meta_ads_mcp.core.server import main
-__version__ = "0.2.2"
+__version__ = "0.2.3"
__all__ = ["main"]
diff --git a/meta_ads_mcp/__main__.py b/meta_ads_mcp/__main__.py
new file mode 100644
index 0000000..e63a22a
--- /dev/null
+++ b/meta_ads_mcp/__main__.py
@@ -0,0 +1,10 @@
+"""
+Meta Ads MCP - Main Entry Point
+
+This module allows the package to be executed directly via `python -m meta_ads_mcp`
+"""
+
+from meta_ads_mcp.core.server import main
+
+if __name__ == "__main__":
+ main()
\ No newline at end of file
diff --git a/meta_ads_mcp/core/server.py b/meta_ads_mcp/core/server.py
index 6d1e517..c5c7bb7 100644
--- a/meta_ads_mcp/core/server.py
+++ b/meta_ads_mcp/core/server.py
@@ -26,9 +26,12 @@ def login_cli():
def main():
"""Main entry point for the package"""
+ print("RUNNING LOCAL VERSION OF META ADS MCP")
+
parser = argparse.ArgumentParser(description="Meta Ads MCP Server")
parser.add_argument("--login", action="store_true", help="Authenticate with Meta and store the token")
parser.add_argument("--app-id", type=str, help="Meta App ID (Client ID) for authentication")
+ parser.add_argument("--version", action="store_true", help="Show the version of the package")
args = parser.parse_args()
@@ -39,6 +42,12 @@ def main():
elif os.environ.get("META_APP_ID"):
auth_manager.app_id = os.environ.get("META_APP_ID")
+ # Show version if requested
+ if args.version:
+ from meta_ads_mcp import __version__
+ print(f"Meta Ads MCP v{__version__} - LOCAL VERSION")
+ return 0
+
# Handle login command
if args.login:
login_cli()