shlogg · Early preview
Web Developer Hyper @webdevhyper

How To Use MCP Under Proxy With Axios In Cline And Cursor

Use MCP under Proxy with Axios: Replace fetch with axios in code, install Axios & set mcp.json/cline_mcp_settings.json. Works in Cline & Cursor! 🎉 https://learn.microsoft.com/en-us/microsoft-cloud/dev/dev-proxy/how-to/use-dev-proxy-with-nodejs

Intro

Hello! I'm a Ninja Web Developer. Hi-Yah!🥷
By the way, I couldn't figure out whether the Ninja of the cover image is in front of the desk or back of the desk.🤣 Never mind.
Last time, I wrote how to use MCP in Cline and Cursor, but couldn't use MCP under Proxy.
🧠🥷How to use MCP in Cline and Cursor
So this time I will write about how to use MCP under Proxy.
I hope this post will be a help to someone, because I wasted much time trying to use MCP under Proxy.🤮
  
  
  What didn't work

1️⃣ Set environment variable of proxy in PC
2️⃣ Set env of proxy in mcp.json for Cursor and cline_mcp...