feat: add proxy IP whitelist management tools#35
Open
jrejaud wants to merge 2 commits intoDecodo:mainfrom
Open
feat: add proxy IP whitelist management tools#35jrejaud wants to merge 2 commits intoDecodo:mainfrom
jrejaud wants to merge 2 commits intoDecodo:mainfrom
Conversation
Add three new MCP tools for managing Decodo proxy IP whitelists via the v2 API: list_whitelisted_ips, add_whitelisted_ips, remove_whitelisted_ip. These tools are conditionally registered when the DECODO_API_KEY env var is set, keeping backwards compatibility for existing scraping-only users. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Auth header uses raw API key, not Token prefix - POST /whitelisted-ips returns empty body, so re-fetch list after add - Tested all 3 tools against live Decodo API Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
|
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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 IDThese tools enable AI agents to programmatically manage proxy authentication whitelists without manual dashboard access — useful for automated server provisioning workflows.
Implementation details
ProxyApiClientclass for the Decodo v2 API (uses API key auth viaAuthorization: Token <key>header)DECODO_API_KEYenv var is set, so existing scraping-only setups are unaffectedstatic register()method)Configuration
Users opt in by setting the
DECODO_API_KEYenvironment variable (generated at dashboard.decodo.com > Account Settings > API Keys).Test plan
npm test)npm run build)