Remote MCP: OAuth fails with Perplexity (trailing slash in resource parameter)
Author: itechnoera-hubCreated Sep 25, 2026Updated Sep 28, 2026
Problem
Remote MCP can't be connected to Perplexity as a custom connector (https://mcp.desktopcommander.app/mcp, OAuth, Streamable HTTP).
Perplexity sends resource=https://mcp.desktopcommander.app/ with a trailing slash, and /authorize rejects it:
{"error":"invalid_request","error_description":"Invalid resource parameter. Expected one of: https://mcp.desktopcommander.app, https://mcp.desktopcommander.app/mcp, ..."}With the slash removed manually, authorization succeeds and a code is issued, but the token exchange fails, because Perplexity sends the same value to /token.
Suggested fix
Normalize a trailing slash in the resource parameter on both /authorize and /token (https://host and https://host/ are the same URL).
Device agent: v0.2.51 on Windows. It works fine with ChatGPT. I also emailed [email protected] and I'm happy to test a fix.
Source: wonderwhy-er/DesktopCommanderMCP