Skip to content

Add REST client and rework Meta Ads debug command - #2

Merged
nictuku merged 2 commits into
mainfrom
nictuku/rest-client-debug
Mar 25, 2026
Merged

nictuku merged 2 commits into
mainfrom
nictuku/rest-client-debug

Conversation

@nictuku

@nictuku nictuku commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a new RESTClient (internal/client/rest.go) for calling Pipeboard REST API endpoints (vs. MCP JSON-RPC)
  • Rework debug meta-ads to use the REST client, posting to /api/debug/meta-ads with --path, --method, --params, and --page-id flags
  • Add getWebAPIURL() helper in root.go for the main pipeboard.co domain (configurable via PIPEBOARD_WEB_URL env var)
  • Stub out Google Ads and TikTok Ads debug commands as not-yet-implemented server-side

Test plan

  • Run pipeboard debug meta-ads --path "me/adaccounts?fields=id,name" with a valid token
  • Verify --params JSON parsing and --page-id flag work
  • Confirm debug google-ads and debug tiktok-ads return "not yet implemented" errors
  • Verify PIPEBOARD_WEB_URL env var override works

nictuku added 2 commits March 25, 2026 20:40
- Add internal/client/rest.go with a REST API client for non-MCP endpoints
- Rework meta-ads debug to use REST POST to /api/debug/meta-ads with
  --path, --method, --params, and --page-id flags
- Add getWebAPIURL() for the main pipeboard.co domain (vs MCP subdomain)
- Stub out Google Ads and TikTok debug commands (not yet server-side)
@nictuku
nictuku merged commit cffab04 into main Mar 25, 2026
2 checks passed
@nictuku
nictuku deleted the nictuku/rest-client-debug branch March 25, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant