Skip to content

Commit 0473997

Browse files
committed
feat: make duplication API base URL configurable via PIPEBOARD_API_BASE_URL
Allows overriding the production URL for local e2e testing. Defaults to https://mcp.pipeboard.co for production use.
1 parent f3e3f60 commit 0473997

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

meta_ads_mcp/core/duplication.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,9 @@ async def _forward_duplication_request(resource_type: str, resource_id: str, acc
227227
}
228228
}, indent=2)
229229

230-
# Construct the API endpoint
231-
base_url = "https://mcp.pipeboard.co"
230+
# Construct the API endpoint.
231+
# PIPEBOARD_API_BASE_URL allows overriding for local e2e testing.
232+
base_url = os.environ.get("PIPEBOARD_API_BASE_URL", "https://mcp.pipeboard.co")
232233
endpoint = f"{base_url}/api/meta/duplicate/{resource_type}/{resource_id}"
233234

234235
# Prepare the dual-header authentication as per API documentation

0 commit comments

Comments
 (0)