We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c8dda commit bf817f0Copy full SHA for bf817f0
packages/mcp-server/src/http.ts
@@ -46,12 +46,12 @@ const newServer = ({
46
},
47
mcpOptions,
48
});
49
- } catch {
+ } catch (error) {
50
res.status(401).json({
51
jsonrpc: '2.0',
52
error: {
53
code: -32000,
54
- message: 'Unauthorized',
+ message: `Unauthorized: ${error instanceof Error ? error.message : error}`,
55
56
57
return null;
0 commit comments