Skip to content

Commit 92ed21b

Browse files
PM-Labsclaude
andcommitted
Register 15 previously-orphaned tool modules with FastMCP
audiences, lookalikes, conversions, insights_advanced, rules, pixels, ab_testing, catalogs, lead_forms, reach_frequency, business, page_posts, offline_conversions, creatives_advanced, and attribution were built and merged (923f672, eadc37e, 88c7bc5) but never imported anywhere, so FastMCP never registered their tools despite the modules shipping in every deployed image since. Wires them into __init__.py (matching the existing module-import pattern) and into server.py's HTTP-transport registration block. Verified via a clean venv install + import: tool count goes from 38 to 84, no import errors. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012fUZk8PPzBSShxWTqa3ce5
1 parent b21c326 commit 92ed21b

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

‎meta_ads_mcp/core/__init__.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@
1515
from . import reports # Import module to register conditional tools
1616
from . import duplication # Import module to register conditional duplication tools
1717
from .openai_deep_research import search, fetch # OpenAI MCP Deep Research tools
18+
from . import audiences # Import module to register custom audience tools
19+
from . import lookalikes # Import module to register lookalike audience tools
20+
from . import conversions # Import module to register CAPI / custom conversion tools
21+
from . import insights_advanced # Import module to register advanced insights tools
22+
from . import rules # Import module to register automated rule tools
23+
from . import pixels # Import module to register pixel tools
24+
from . import ab_testing # Import module to register A/B testing tools
25+
from . import catalogs # Import module to register product catalog tools
26+
from . import lead_forms # Import module to register lead form tools
27+
from . import reach_frequency # Import module to register reach & frequency tools
28+
from . import business # Import module to register Business Manager tools
29+
from . import page_posts # Import module to register page post tools
30+
from . import offline_conversions # Import module to register offline conversion tools
31+
from . import creatives_advanced # Import module to register advanced creative tools
32+
from . import saved_audiences # Import module to register saved audience tools
33+
from . import attribution # Import module to register attribution tools
1834

1935
__all__ = [
2036
'mcp_server',

‎meta_ads_mcp/core/server.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ def main():
325325
logger.info("Ensuring all tools are registered for HTTP transport")
326326
from . import accounts, campaigns, adsets, ads, insights, authentication
327327
from . import ads_library, budget_schedules, reports, openai_deep_research
328+
from . import audiences, lookalikes, conversions, insights_advanced, rules, pixels
329+
from . import ab_testing, catalogs, lead_forms, reach_frequency, business
330+
from . import page_posts, offline_conversions, creatives_advanced, saved_audiences, attribution
328331

329332
# ✅ NEW: Setup HTTP authentication middleware
330333
logger.info("Setting up HTTP authentication middleware")

0 commit comments

Comments
 (0)