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
Enhance get_ad_accounts function by adding type hints for access_token parameter, improving code clarity and type safety.
Yves Junqueira62010126141b
diff --git a/meta_ads_mcp/core/accounts.py b/meta_ads_mcp/core/accounts.pyindex e2ba9c4..e9d730b 100644--- a/meta_ads_mcp/core/accounts.py+++ b/meta_ads_mcp/core/accounts.py@@ -1,14 +1,14 @@"""Account-related functionality for Meta Ads API."""import json-from typing import Optional+from typing import Optional, Dict, Anyfrom .api import meta_api_tool, make_api_requestfrom .server import mcp_server@mcp_server.tool()@meta_api_tool-async def get_ad_accounts(access_token: str = None, user_id: str = "me", limit: int = 200) -> str:+async def get_ad_accounts(access_token: Optional[str] = None, user_id: str = "me", limit: int = 200) -> str:"""Get ad accounts accessible by a user.