Replaced hyphen with underscore in the sentry server..

This commit is contained in:
Rakesh Goyal 2024-12-09 19:57:28 +05:30 • committed by GitHub
commit 50ab31a760
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,7 +223,7 @@ async def serve(auth_token: str) -> Server:
async def handle_list_tools() -> list[types.Tool]: async def handle_list_tools() -> list[types.Tool]:
return [ return [
types.Tool( types.Tool(
name="get-sentry-issue", name="get_sentry_issue",
description="""Retrieve and analyze a Sentry issue by ID or URL. Use this tool when you need to: description="""Retrieve and analyze a Sentry issue by ID or URL. Use this tool when you need to:
- Investigate production errors and crashes - Investigate production errors and crashes
- Access detailed stacktraces from Sentry - Access detailed stacktraces from Sentry
@ -247,7 +247,7 @@ async def serve(auth_token: str) -> Server:
async def handle_call_tool( async def handle_call_tool(
name: str, arguments: dict | None name: str, arguments: dict | None
) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]: ) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]:
if name != "get-sentry-issue": if name != "get_sentry_issue":
raise ValueError(f"Unknown tool: {name}") raise ValueError(f"Unknown tool: {name}")
if not arguments or "issue_id_or_url" not in arguments: if not arguments or "issue_id_or_url" not in arguments: