mcp direct connect fails

avatar

Error: MCP: Failed to reconnect to psu-dev: fetch failed

"psu-dev": {

"url": "https://dev.psu.domain.com/appname/api/v1/mcp",

"headers": {

"Authorization": "Bearer ${PSU_MCP_TOKEN}"

}

}

avatar

Recommended Answer

ope, for pi.dev you have to set

[Environment]::SetEnvironmentVariable('NODE_USE_SYSTEM_CA', '1', 'User')

All Comments (4)

avatar

ope, for pi.dev you have to set

[Environment]::SetEnvironmentVariable('NODE_USE_SYSTEM_CA', '1', 'User')
avatar

Hello Matthew,

Thank you for posting the fix on this topic. It may help the next person who sees this error.

For anyone who finds this later, NODE_USE_SYSTEM_CA set to 1 makes Node.js use the trusted CA certificates in the system certificate store as well as its own bundled list. Node.js reads it from 22.19 on the 22 line, and from 24.6 onward.

https://nodejs.org/api/cli.html#node_use_system_ca1

Since your post gives the fix, I will close this case. If it fails again, reply on this topic and I will pick it up.

Best regards,

Michel

Michel Audi

avatar

you might want to add this to your doc ;)

avatar

Hello Matthew,

Good idea, thank you. The page on the built-in MCP tools does not mention this setting, and I have written up your fix as a request for our documentation team.

https://docs.devolutions.net/powershell-universal/intelligence/built-in-mcp-tools/

Best regards,

Michel

Michel Audi