Skip to content

Commit 63e29fe

Browse files
chore(mcp): clarify http auth error
1 parent 03494e0 commit 63e29fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mcp-server/src/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ const newServer = ({
4646
},
4747
mcpOptions,
4848
});
49-
} catch {
49+
} catch (error) {
5050
res.status(401).json({
5151
jsonrpc: '2.0',
5252
error: {
5353
code: -32000,
54-
message: 'Unauthorized',
54+
message: `Unauthorized: ${error instanceof Error ? error.message : error}`,
5555
},
5656
});
5757
return null;

0 commit comments

Comments
 (0)