Skip to content

Commit 50ab31a

Browse files
author
Rakesh Goyal
authored
Replaced hyphen with underscore in the sentry server..
1 parent acc3ba2 commit 50ab31a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sentry/src/mcp_server_sentry/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ async def handle_get_prompt(
223223
async def handle_list_tools() -> list[types.Tool]:
224224
return [
225225
types.Tool(
226-
name="get-sentry-issue",
226+
name="get_sentry_issue",
227227
description="""Retrieve and analyze a Sentry issue by ID or URL. Use this tool when you need to:
228228
- Investigate production errors and crashes
229229
- Access detailed stacktraces from Sentry
@@ -247,7 +247,7 @@ async def handle_list_tools() -> list[types.Tool]:
247247
async def handle_call_tool(
248248
name: str, arguments: dict | None
249249
) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]:
250-
if name != "get-sentry-issue":
250+
if name != "get_sentry_issue":
251251
raise ValueError(f"Unknown tool: {name}")
252252

253253
if not arguments or "issue_id_or_url" not in arguments:

0 commit comments

Comments
 (0)