We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bc4dd2 commit 561d00aCopy full SHA for 561d00a
1 file changed
workspaces/lightspeed/plugins/lightspeed-backend/__fixtures__/mcpHandlers.ts
@@ -28,7 +28,10 @@ const MOCK_TOOLS = [
28
export const mcpHandlers: HttpHandler[] = [
29
http.post(MOCK_MCP_ADDR, async ({ request }) => {
30
const auth = request.headers.get('Authorization');
31
- if (auth !== `${MOCK_MCP_VALID_TOKEN}`) {
+ if (
32
+ auth !== MOCK_MCP_VALID_TOKEN &&
33
+ auth !== `Bearer ${MOCK_MCP_VALID_TOKEN}`
34
+ ) {
35
return HttpResponse.json({ error: 'Unauthorized' }, { status: 401 });
36
}
37
0 commit comments