Who this is for
Developers who use Tencent CodeBuddy (腾讯云代码助手) in the IDE or the CodeBuddy CLI.
What you need
- An IPMusk account with a verified email address.
- An IPMusk API key. Create it in Settings → API keys (/app/settings/api-keys). For typical use tick read and connect. Add support only if the assistant should open tickets, and order only if it should create orders that end in a payment link.
- This client takes the key itself rather than reading the IPMUSK_API_KEY environment variable the other guides use. Keep the original in a password manager.
- CodeBuddy installed.
- IPMusk applies the same source-country rules to the API and MCP as to the website, so connect from a region where ipmusk.com is available.
Set it up
Put this in .mcp.json at the project root (recommended), or in ~/.codebuddy.json for all projects.
- Replace ipm_live_YOUR_KEY with your key. Add .mcp.json to .gitignore so the key is never committed.
- Restart CodeBuddy after editing the file.
- CODEBUDDY_CUSTOM_HEADERS sets headers for model requests, not for MCP servers. Put the key in this file instead.
{
"mcpServers": {
"ipmusk": {
"type": "http",
"url": "https://ipmusk.com/mcp",
"headers": {
"Authorization": "Bearer ipm_live_YOUR_KEY"
}
}
}
}In the IDE
- 1Open MCP settings
In the CodeBuddy panel, open 配置MCP (Configure MCP).
- 2Add it manually
Choose 手动配置 (manual configuration). Paste the same ipmusk block into the file that opens and save.
Menu names change between CodeBuddy releases. If a step does not match, check CodeBuddy's current documentation.
Check it works
Restart CodeBuddy. In the CLI, run /mcp; in the IDE, open the MCP settings. ipmusk should show as connected.
Ask the assistant: Which IPMusk account am I connected as? It should call get_account and answer with your email address.
Try these prompts
- How much IPMusk residential traffic do I have left?
- Get a sticky US proxy URL for 10 minutes and use it in this script.
- List my IPMusk Static ISP proxies and when they expire.
If it fails
- 401 authentication_required: the key in the file is wrong, revoked or expired. Paste it again without extra spaces.
- The server does not appear: restart CodeBuddy, then check the JSON is valid and type is http.
- 401 although you set CODEBUDDY_CUSTOM_HEADERS: that variable does not reach MCP servers. Put the header in the config file.
- 403 forbidden on one tool: the key lacks that tool's scope, or your email is not verified. Scopes cannot be added to a key, so create a new key with the scope and swap it in.
- 429 rate_limited: too many calls in one minute (read 60, connect 20, support 30, order 10). Wait a minute and try again.
Remove access
- Revoke the key in Settings → API keys (/app/settings/api-keys). It stops working at once.
- Then delete the ipmusk entry from .mcp.json or ~/.codebuddy.json and restart CodeBuddy.