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
Add MCP Server Tool Decorators and Update Version
Yves Junqueira91445b958391
diff --git a/future_improvements.md b/future_improvements.mdindex 8bc1333..4553817 100644--- a/future_improvements.md+++ b/future_improvements.md@@ -1,8 +1,17 @@# Future Improvements for Meta Ads MCP-## Planned Improvement: Refactored meta_ads_generated.py+## Critical Improvement: Add MCP Server Tool Decorators-This file currently has too much code and it needs to be split into a small number of modules.+We recently refactored the codebase to modularize the functionality that was in meta_ads_generated.py, but we need to add the `@mcp_server.tool()` decorator to all relevant functions to ensure they're properly registered with the MCP server. We've already fixed this for the `get_ad_accounts` function, but this needs to be done for all other functions we want to expose as MCP tools.++Pattern for tool function registration:+```python+@mcp_server.tool() # Required to register with MCP server+@meta_api_tool # Handles authentication logic+async def function_name(...):+ """Documentation..."""+ # Function code+```## Planned Improvement: Ad Set Update Confirmation Flowdiff --git a/meta_ads_mcp/core/accounts.py b/meta_ads_mcp/core/accounts.pyindex 8fde2e3..45a00c3 100644--- a/meta_ads_mcp/core/accounts.py+++ b/meta_ads_mcp/core/accounts.py@@ -3,8 +3,10 @@import jsonfrom typing import Optionalfrom .api import meta_api_tool, make_api_request+from .server import mcp_server+@mcp_server.tool()@meta_api_toolasync def get_ad_accounts(access_token: str = None, user_id: str = "me", limit: int = 10) -> str:"""diff --git a/uv.lock b/uv.lockindex f16321c..a356439 100644--- a/uv.lock+++ b/uv.lock@@ -206,7 +206,7 @@ wheels = [[[package]]name = "meta-ads-mcp"-version = "0.2.2"+version = "0.2.3"source = { editable = "." }dependencies = [{ name = "httpx" },