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 03494e0 commit 63e29feCopy full SHA for 63e29fe
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