Commit 81335fb
committed
fix: avoid exposing server exception details to clients
Send generic "Internal Server Error" message to clients instead of
exposing exception types, values, and tracebacks. This prevents
leaking sensitive implementation details while still logging full
exception information server-side for debugging.1 parent e713784 commit 81335fb
File tree
2 files changed
+2
-8
lines changed- src/mcp/server/lowlevel
- tests/server
2 files changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
| 616 | + | |
621 | 617 | | |
622 | 618 | | |
623 | 619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
| |||
0 commit comments