mcp-server icon indicating copy to clipboard operation
mcp-server copied to clipboard

feat: add proxy IP whitelist management tools

Open jrejaud opened this issue 8 months ago • 1 comments

Summary

Adds three new MCP tools for managing Decodo proxy IP whitelists via the v2 API (api.decodo.com/v2):

  • list_whitelisted_ips — List all whitelisted IPs on the account
  • add_whitelisted_ips — Add one or more IPv4 addresses to the whitelist
  • remove_whitelisted_ip — Remove a whitelisted IP by its ID

These tools enable AI agents to programmatically manage proxy authentication whitelists without manual dashboard access — useful for automated server provisioning workflows.

Implementation details

  • New ProxyApiClient class for the Decodo v2 API (uses API key auth via Authorization: Token <key> header)
  • Tools are conditionally registered only when DECODO_API_KEY env var is set, so existing scraping-only setups are unaffected
  • Follows the existing tool class pattern (static register() method)
  • IPv4 validation via Zod schema on the add tool

Configuration

Users opt in by setting the DECODO_API_KEY environment variable (generated at dashboard.decodo.com > Account Settings > API Keys).

Test plan

  • [x] Existing tests pass (npm test)
  • [x] Build succeeds (npm run build)
  • [ ] Manual testing with a Decodo account and API key

jrejaud avatar Mar 10 '26 15:03 jrejaud

Hello! Thanks for making a contribution, IP whitelist management is a good new feature suggestion. We're coming back to developing the MCP server more actively, so we'll make an effort to pick up your suggestions and roll them into our release pipeline!

domantas-jurkus-dcd avatar Apr 17 '26 07:04 domantas-jurkus-dcd