This guide is for users who want ChatGPT or another MCP host to work in local projects through DevSpace.
- Node
>=20.12 <27; Node 22 LTS is recommended - npm
- Git
- Bash, including Git Bash or WSL on Windows
- a public HTTPS URL that forwards to the local DevSpace server
DevSpace does not create the public tunnel for you. Use Cloudflare Tunnel, ngrok, Pinggy, Tailscale Funnel, or your own HTTPS reverse proxy.
Run:
npx @waishnav/devspace initThe setup flow asks one question at a time.
Choose the folders ChatGPT is allowed to open through DevSpace. Keep this narrow.
Examples:
~/personal,~/work
/Users/alice/dev,/Users/alice/work
C:\Users\alice\dev,C:\Users\alice\work
The default is 7676.
The local MCP URL is:
http://127.0.0.1:7676/mcp
Start your tunnel or reverse proxy before entering this value. Point the tunnel at:
http://127.0.0.1:7676
Enter the public origin without /mcp:
https://your-tunnel-host.example.com
Configure the MCP client with the full MCP endpoint:
https://your-tunnel-host.example.com/mcp
Run:
npx @waishnav/devspace serveIf your tunnel URL changes for one run, override it without rewriting config:
DEVSPACE_PUBLIC_BASE_URL="https://new-tunnel.example.com" npx @waishnav/devspace serveFor a stable public URL, persist it:
npx @waishnav/devspace config set publicBaseUrl https://devspace.example.com
npx @waishnav/devspace serveWhen ChatGPT, Claude, or another MCP client connects, DevSpace shows an Owner password approval page. Enter the Owner password printed during setup.
The default config files are:
~/.devspace/config.json
~/.devspace/auth.json
Keep auth.json private.
Run:
npx @waishnav/devspace doctorThe doctor command reports the resolved config, Node version, Node ABI, platform, Git, Bash, public URL, allowed hosts, and SQLite native dependency status.
If you are developing DevSpace itself instead of using the published package:
npm install --include=dev
npm run devThe same setup rules apply.