Skip to content

Commit 0ac2586

Browse files
evalstatejulien-c
andauthored
Update packages/mcp-client/src/utils.ts
Co-authored-by: Julien Chaumond <[email protected]>
1 parent bb352be commit 0ac2586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mcp-client/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function urlToServerConfig(urlStr: string, token?: string): ServerConfig
3434
}
3535

3636
// Check if we should include the token
37-
const authToken = token || process.env.HF_TOKEN;
37+
const authToken = token ?? process.env.HF_TOKEN;
3838
const shouldIncludeToken =
3939
!!authToken &&
4040
(hostname.endsWith(".hf.space") ||

0 commit comments

Comments
 (0)