mcp-server
mcp-server copied to clipboard
feat: add proxy IP whitelist management tools
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 accountadd_whitelisted_ips— Add one or more IPv4 addresses to the whitelistremove_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
ProxyApiClientclass for the Decodo v2 API (uses API key auth viaAuthorization: Token <key>header) - Tools are conditionally registered only when
DECODO_API_KEYenv 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
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!