Skip to content

Commit 87fad79

Browse files
committed
add bearer
1 parent cd1bcfb commit 87fad79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/lib/hooks/useConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export function useConnection({
296296
const token = bearerToken || (await authProvider.tokens())?.access_token;
297297
if (token) {
298298
const authHeaderName = headerName || "Authorization";
299-
headers[authHeaderName] = `${token}`;
299+
headers[authHeaderName] = `Bearer ${token}`;
300300
}
301301

302302
const clientTransport = new SSEClientTransport(mcpProxyServerUrl, {

0 commit comments

Comments
 (0)