u/Broad-Improvement-32

Hey,

Meta released their CLI and MCP (https://www.facebook.com/business/news/meta-ads-ai-connectors)

I have a token, it works for CLI.
But for MCP, I can not authenticate it, I keep getting 401, neither claude code nor opencode is able to connect.

My opencode.json has this config:

{
  "mcp": {
    "fb-ads": {
      "type": "remote",
      "enabled": true,
      "url": "https://mcp.facebook.com/ads",
      "headers": {
        "Authorization": "Bearer <TOKEN>"
      }
  }
}}

I you have managed to connect claude/opencode/etc. to Meta ads mcp - how did you approached authtentication/authorization? Thanks!

reddit.com
u/Broad-Improvement-32 — 14 days ago