Add VPN warning

This commit is contained in:
Jeremy Morrell 2025-03-24 12:08:33 -07:00
parent cb4ad62adf
commit b217e08007
3 changed files with 53 additions and 0 deletions

View file

@ -20,3 +20,33 @@ E.g: Claude Desktop or Windsurf
Cursor:
![image](https://github.com/user-attachments/assets/14338bfa-a779-4e8a-a477-71f72cc5d99d)
## Debugging
### Restart Claude
When modifying `claude_desktop_config.json` it can helpful to completely restart Claude
### VPN Certs
You may run into issues if you are behind a VPN, you can try setting the `NODE_EXTRA_CA_CERTS`
environment variable to point to the CA certificate file. If using `claude_desktop_config.json`,
this might look like:
```json
{
"mcpServers": {
"remote-example": {
"command": "npx",
"args": [
"mcp-remote",
"https://remote.mcp.server/sse"
],
"env": {
"NODE_EXTRA_CA_CERTS": "\${your CA certificate file path}.pem"
}
}
}
}
```

View file

@ -18,6 +18,7 @@
}
},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"check": "prettier --check . && tsc"
},

View file

@ -63,6 +63,28 @@ async function runProxy(serverUrl: string, callbackPort: number) {
setupSignalHandlers(cleanup)
} catch (error) {
console.error('Fatal error:', error)
if (error instanceof Error && error.message.includes('self-signed certificate in certificate chain')) {
console.error(`You may be behind a VPN!
If you are behind a VPN, you can try setting the NODE_EXTRA_CA_CERTS environment variable to point
to the CA certificate file. If using claude_desktop_config.json, this might look like:
{
"mcpServers": {
"\${mcpServerName}": {
"command": "npx",
"args": [
"mcp-remote",
"https://remote.mcp.server/sse"
],
"env": {
"NODE_EXTRA_CA_CERTS": "\${your CA certificate file path}.pem"
}
}
}
}
`)
}
server.close()
process.exit(1)
}