Skip to content

Commit fb66e3e

Browse files
🔒 fix: Sanitize exception message in MCP
1 parent 41fe788 commit fb66e3e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,13 @@ async def mcp_post_handler(fastapi_request: Request):
203203
},
204204
}
205205
except Exception as e:
206+
print(f"MCP check_email_breach error: {e}")
206207
return {
207208
"jsonrpc": "2.0",
208209
"id": request_body.get("id"),
209210
"error": {
210211
"code": -32603,
211-
"message": f"Internal error: {str(e)}",
212+
"message": "Internal error: Failed to check email breach",
212213
},
213214
}
214215
else:

0 commit comments

Comments
 (0)