This guide is for users who want ChatGPT to work in local projects through DevSpace. Other MCP hosts are not supported.
- Node
>=22.19 <27 - npm
- Git
- Bash, including Git Bash or WSL on Windows
- a public HTTPS URL that forwards to the local DevSpace server
- a tunnel client such as cloudflared
DevSpace does not create the public tunnel for you. Use Cloudflare Tunnel, ngrok, Pinggy, Tailscale Funnel, or your own HTTPS reverse proxy.
git clone https://github.com/keepkeen/devspace.git
cd devspace
npm ci
npm run buildAll commands below run from this checkout. You may use devspace instead of
node dist/cli.js after running npm link.
Run:
node dist/cli.js 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 ChatGPT Connector with the full MCP endpoint:
https://your-tunnel-host.example.com/mcp
Run:
node dist/cli.js serveIf your tunnel URL changes for one run, override it without rewriting config:
DEVSPACE_PUBLIC_BASE_URL="https://new-tunnel.example.com" node dist/cli.js serveFor a stable public URL, persist it:
node dist/cli.js config set publicBaseUrl https://devspace.example.com
node dist/cli.js serveWhen ChatGPT 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:
node dist/cli.js 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.