Add VPN warning
This commit is contained in:
parent
cb4ad62adf
commit
b217e08007
3 changed files with 53 additions and 0 deletions
30
README.md
30
README.md
|
@ -20,3 +20,33 @@ E.g: Claude Desktop or Windsurf
|
|||
Cursor:
|
||||
|
||||

|
||||
|
||||
|
||||
## 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "tsup --watch",
|
||||
"build": "tsup",
|
||||
"check": "prettier --check . && tsc"
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue