From 05961229620e7dbebdb2822837f995741cd9916d Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Wed, 16 Apr 2025 05:34:41 +0100 Subject: [PATCH] Update README.md with cursor workaround --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index c9cdfc7..6204bf3 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,23 @@ To bypass authentication, or to emit custom headers on all requests to your remo } ``` +**Note:** Cursor has a bug where spaces inside `args` aren't escaped when it invokes `npx`, which ends up mangling these values. You can work around it using: + +```jsonc +{ + // rest of config... + "args": [ + "mcp-remote", + "https://remote.mcp.server/sse", + "--header", + "Authorization:${AUTH_HEADER}" // note no spaces around ':' + ] +}, +"env": { + "AUTH_HEADER": "Bearer " // spaces OK in env vars +} +``` + ### Flags * If `npx` is producing errors, consider adding `-y` as the first argument to auto-accept the installation of the `mcp-remote` package.