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
Refactor logging in AuthInjectionMiddleware for improved debugging
Yves Junqueira614dc9edb58c
diff --git a/meta_ads_mcp/core/http_auth_integration.py b/meta_ads_mcp/core/http_auth_integration.pyindex 7e8ce86..c64f0bd 100644--- a/meta_ads_mcp/core/http_auth_integration.py+++ b/meta_ads_mcp/core/http_auth_integration.py@@ -198,14 +198,13 @@ import json # Ensure json is imported if not already at the topclass AuthInjectionMiddleware(BaseHTTPMiddleware):async def dispatch(self, request: Request, call_next):- logger.info(f"HTTP Auth Middleware: Processing request to {request.url.path}")- logger.info(f"HTTP Auth Middleware: Request headers: {list(request.headers.keys())}")- logger.info(f"HTTP Auth Middleware: Full headers: {json.dumps(dict(request.headers), indent=2)}")+ logger.debug(f"HTTP Auth Middleware: Processing request to {request.url.path}")+ logger.debug(f"HTTP Auth Middleware: Request headers: {list(request.headers.keys())}")token = FastMCPAuthIntegration.extract_token_from_headers(dict(request.headers))if token:- logger.info(f"HTTP Auth Middleware: Extracted token: {token[:10]}...")+ logger.debug(f"HTTP Auth Middleware: Extracted token: {token[:10]}...")logger.debug("Injecting auth token into request context")FastMCPAuthIntegration.set_auth_token(token)else: