Skip to content

Commit 03b798b

Browse files
committed
fix arg name
1 parent 0dcc393 commit 03b798b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/mcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ def _prepare_handler_data(
304304
if handler_type == "tool":
305305
if original_args:
306306
handler_name = original_args[0]
307-
elif original_kwargs.get("tool_name"):
308-
handler_name = original_kwargs["tool_name"]
307+
elif original_kwargs.get("name"):
308+
handler_name = original_kwargs["name"]
309309

310310
arguments = {}
311311
if len(original_args) > 1:

0 commit comments

Comments
 (0)