Commit f1154a6
committed
fix(mcp): recover from panics in get_profile tool
Adds a defer-recover block to catch and log panics within the
`get_profile` tool function. This prevents server crashes and
improves the overall stability of the application.1 parent 2bf959b commit f1154a6
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
| |||
0 commit comments