@sentry/mcp-server 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{analyze-issue-with-seer-DbAWpyTC.cjs → analyze-issue-with-seer-BkVrrh28.cjs} +9 -16
- package/dist/analyze-issue-with-seer-BkVrrh28.cjs.map +1 -0
- package/dist/{analyze-issue-with-seer-BsNarzJN.js → analyze-issue-with-seer-CoqsTklL.js} +9 -16
- package/dist/analyze-issue-with-seer-CoqsTklL.js.map +1 -0
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +3 -3
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{client-CILwfx6G.d.cts → client-CQ9Xe1aN.d.cts} +7 -7
- package/dist/{client-CILwfx6G.d.cts.map → client-CQ9Xe1aN.d.cts.map} +1 -1
- package/dist/{client-BCN17Wbp.d.ts → client-VCJp6Kcu.d.ts} +6 -6
- package/dist/{client-BCN17Wbp.d.ts.map → client-VCJp6Kcu.d.ts.map} +1 -1
- package/dist/{create-dsn-CDcL2DLD.js → create-dsn-D530I7Lr.js} +1 -1
- package/dist/{create-dsn-CDcL2DLD.js.map → create-dsn-D530I7Lr.js.map} +1 -1
- package/dist/{create-dsn-fESUtX3R.cjs → create-dsn-Dz8nyTFw.cjs} +1 -1
- package/dist/{create-dsn-fESUtX3R.cjs.map → create-dsn-Dz8nyTFw.cjs.map} +1 -1
- package/dist/{create-project-Bg5uDkc4.cjs → create-project-BxzRiryg.cjs} +2 -2
- package/dist/{create-project-Bg5uDkc4.cjs.map → create-project-BxzRiryg.cjs.map} +1 -1
- package/dist/{create-project-DY5mFznV.js → create-project-K1od5Rhx.js} +2 -2
- package/dist/{create-project-DY5mFznV.js.map → create-project-K1od5Rhx.js.map} +1 -1
- package/dist/{create-team-5purh64V.cjs → create-team-CJhrccc1.cjs} +1 -1
- package/dist/{create-team-5purh64V.cjs.map → create-team-CJhrccc1.cjs.map} +1 -1
- package/dist/{create-team-C2R7EUC3.js → create-team-zHz00C6Q.js} +1 -1
- package/dist/{create-team-C2R7EUC3.js.map → create-team-zHz00C6Q.js.map} +1 -1
- package/dist/{find-dsns-CvfcLB9Z.js → find-dsns-BoEP0N7B.js} +1 -1
- package/dist/{find-dsns-CvfcLB9Z.js.map → find-dsns-BoEP0N7B.js.map} +1 -1
- package/dist/{find-dsns-ZZ-thiNk.cjs → find-dsns-CK59RaUJ.cjs} +1 -1
- package/dist/{find-dsns-ZZ-thiNk.cjs.map → find-dsns-CK59RaUJ.cjs.map} +1 -1
- package/dist/{find-errors-CuRm4PzL.js → find-errors-C3oUMeRi.js} +1 -1
- package/dist/{find-errors-CuRm4PzL.js.map → find-errors-C3oUMeRi.js.map} +1 -1
- package/dist/{find-errors-Drzv7hzM.cjs → find-errors-CB9NpSxG.cjs} +1 -1
- package/dist/{find-errors-Drzv7hzM.cjs.map → find-errors-CB9NpSxG.cjs.map} +1 -1
- package/dist/{find-transactions-DZCj81jP.js → find-transactions-BiBgg-AE.js} +1 -1
- package/dist/{find-transactions-DZCj81jP.js.map → find-transactions-BiBgg-AE.js.map} +1 -1
- package/dist/{find-transactions-DIJ80wkd.cjs → find-transactions-DuZyqjhF.cjs} +1 -1
- package/dist/{find-transactions-DIJ80wkd.cjs.map → find-transactions-DuZyqjhF.cjs.map} +1 -1
- package/dist/{formatting-pUm38KOj.js → formatting-Bvyded57.js} +34 -2
- package/dist/formatting-Bvyded57.js.map +1 -0
- package/dist/{formatting-kdIeURER.d.ts → formatting-CcTK2X8V.d.cts} +7 -5
- package/dist/formatting-CcTK2X8V.d.cts.map +1 -0
- package/dist/{formatting-BlMiQa9i.cjs → formatting-D0Aki7rK.cjs} +33 -2
- package/dist/formatting-D0Aki7rK.cjs.map +1 -0
- package/dist/{formatting-utils-C3sej5ER.js → formatting-utils-DgOyTl-m.js} +1 -1
- package/dist/{formatting-utils-C3sej5ER.js.map → formatting-utils-DgOyTl-m.js.map} +1 -1
- package/dist/{formatting-utils-DDz14xeB.cjs → formatting-utils-m9R5bsRU.cjs} +1 -1
- package/dist/{formatting-utils-DDz14xeB.cjs.map → formatting-utils-m9R5bsRU.cjs.map} +1 -1
- package/dist/{formatting-CHh9Q_OW.d.cts → formatting-vtXxusbn.d.ts} +7 -5
- package/dist/formatting-vtXxusbn.d.ts.map +1 -0
- package/dist/{get-event-attachment-ChRw3jlQ.cjs → get-event-attachment-C-ig2-3F.cjs} +1 -1
- package/dist/{get-event-attachment-ChRw3jlQ.cjs.map → get-event-attachment-C-ig2-3F.cjs.map} +1 -1
- package/dist/{get-event-attachment-CuU-_5T6.js → get-event-attachment-DVCPpUMj.js} +1 -1
- package/dist/{get-event-attachment-CuU-_5T6.js.map → get-event-attachment-DVCPpUMj.js.map} +1 -1
- package/dist/{get-issue-details-CxChU4U9.js → get-issue-details-Dcmzxknx.js} +23 -10
- package/dist/get-issue-details-Dcmzxknx.js.map +1 -0
- package/dist/{get-issue-details-DFwZRbmU.cjs → get-issue-details-lBrYR9yx.cjs} +23 -10
- package/dist/get-issue-details-lBrYR9yx.cjs.map +1 -0
- package/dist/index.cjs +21 -21
- package/dist/index.js +21 -21
- package/dist/internal/formatting.cjs +2 -1
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +4 -4
- package/dist/internal/formatting.js +2 -1
- package/dist/internal/test-fixtures.d.cts +44 -44
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +170 -170
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/{logging-oIouXrcb.cjs → logging-CX2buXiG.cjs} +1 -1
- package/dist/{logging-oIouXrcb.cjs.map → logging-CX2buXiG.cjs.map} +1 -1
- package/dist/{logging-LnQMFw-_.js → logging-DzxYBMrn.js} +1 -1
- package/dist/{logging-LnQMFw-_.js.map → logging-DzxYBMrn.js.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/{schema--5m4KI84.d.ts → schema-3NeMWRAm.d.cts} +452 -452
- package/dist/{schema-ya35hkEL.d.cts.map → schema-3NeMWRAm.d.cts.map} +1 -1
- package/dist/{schema-ya35hkEL.d.cts → schema-B3CzDGJk.d.ts} +401 -401
- package/dist/{schema--5m4KI84.d.ts.map → schema-B3CzDGJk.d.ts.map} +1 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/{seer-utils-CzYEEZb2.cjs → seer-utils-CDm5J8ur.cjs} +2 -2
- package/dist/{seer-utils-CzYEEZb2.cjs.map → seer-utils-CDm5J8ur.cjs.map} +1 -1
- package/dist/{seer-utils-Ckr8nYlz.js → seer-utils-Cj9DXrow.js} +2 -2
- package/dist/{seer-utils-Ckr8nYlz.js.map → seer-utils-Cj9DXrow.js.map} +1 -1
- package/dist/{server-DOy-M9Ko.js → server-BSRxzYFd.js} +3 -3
- package/dist/{server-DOy-M9Ko.js.map → server-BSRxzYFd.js.map} +1 -1
- package/dist/{server-BpEIZVaZ.cjs → server-Dgkqz8bA.cjs} +3 -3
- package/dist/{server-BpEIZVaZ.cjs.map → server-Dgkqz8bA.cjs.map} +1 -1
- package/dist/server.cjs +18 -18
- package/dist/server.js +18 -18
- package/dist/{stdio-DMEgJ_fG.cjs → stdio-BQAm0Liz.cjs} +3 -3
- package/dist/{stdio-DMEgJ_fG.cjs.map → stdio-BQAm0Liz.cjs.map} +1 -1
- package/dist/{stdio-B2NDq7Ax.js → stdio-BcihaDjO.js} +3 -3
- package/dist/{stdio-B2NDq7Ax.js.map → stdio-BcihaDjO.js.map} +1 -1
- package/dist/test-setup.cjs +1 -16
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1 -16
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/tools/analyze-issue-with-seer.cjs +4 -4
- package/dist/tools/analyze-issue-with-seer.js +4 -4
- package/dist/tools/create-dsn.cjs +1 -1
- package/dist/tools/create-dsn.js +1 -1
- package/dist/tools/create-project.cjs +2 -2
- package/dist/tools/create-project.js +2 -2
- package/dist/tools/create-team.cjs +1 -1
- package/dist/tools/create-team.js +1 -1
- package/dist/tools/find-dsns.cjs +1 -1
- package/dist/tools/find-dsns.js +1 -1
- package/dist/tools/find-errors.cjs +1 -1
- package/dist/tools/find-errors.js +1 -1
- package/dist/tools/find-transactions.cjs +1 -1
- package/dist/tools/find-transactions.js +1 -1
- package/dist/tools/get-event-attachment.cjs +1 -1
- package/dist/tools/get-event-attachment.js +1 -1
- package/dist/tools/get-issue-details.cjs +4 -3
- package/dist/tools/get-issue-details.js +4 -3
- package/dist/tools/index.cjs +17 -17
- package/dist/tools/index.d.cts +76 -76
- package/dist/tools/index.d.ts +76 -76
- package/dist/tools/index.js +17 -17
- package/dist/tools/update-issue.cjs +5 -4
- package/dist/tools/update-issue.js +5 -4
- package/dist/tools/update-project.cjs +2 -2
- package/dist/tools/update-project.js +2 -2
- package/dist/tools/utils/api-utils.d.cts +3 -3
- package/dist/tools/utils/api-utils.d.ts +3 -3
- package/dist/tools/utils/formatting-utils.cjs +1 -1
- package/dist/tools/utils/formatting-utils.d.cts +3 -3
- package/dist/tools/utils/formatting-utils.d.ts +3 -3
- package/dist/tools/utils/formatting-utils.js +1 -1
- package/dist/tools/utils/issue-utils.cjs +3 -2
- package/dist/tools/utils/issue-utils.d.cts +4 -4
- package/dist/tools/utils/issue-utils.d.ts +4 -4
- package/dist/tools/utils/issue-utils.js +3 -2
- package/dist/tools/utils/seer-utils.cjs +1 -1
- package/dist/tools/utils/seer-utils.d.cts +3 -3
- package/dist/tools/utils/seer-utils.d.ts +3 -3
- package/dist/tools/utils/seer-utils.js +1 -1
- package/dist/{tools-19Ms1kck.cjs → tools-CHnZvVEN.cjs} +12 -12
- package/dist/{tools-19Ms1kck.cjs.map → tools-CHnZvVEN.cjs.map} +1 -1
- package/dist/{tools-mThAUo_3.js → tools-CdXGgq1W.js} +12 -12
- package/dist/{tools-mThAUo_3.js.map → tools-CdXGgq1W.js.map} +1 -1
- package/dist/transports/stdio.cjs +20 -20
- package/dist/transports/stdio.js +20 -20
- package/dist/{types-Bg17IGWJ.d.cts → types-BoMP-Ro6.d.cts} +2 -2
- package/dist/{types-Bg17IGWJ.d.cts.map → types-BoMP-Ro6.d.cts.map} +1 -1
- package/dist/{types-CtTBwGbw.d.ts → types-DpV1JAZj.d.ts} +2 -2
- package/dist/{types-CtTBwGbw.d.ts.map → types-DpV1JAZj.d.ts.map} +1 -1
- package/dist/{update-issue-DmLElHPS.js → update-issue-DRTQvy6p.js} +2 -2
- package/dist/{update-issue-DmLElHPS.js.map → update-issue-DRTQvy6p.js.map} +1 -1
- package/dist/{update-issue-B6eZhAPJ.cjs → update-issue-DpkxxiNk.cjs} +2 -2
- package/dist/{update-issue-B6eZhAPJ.cjs.map → update-issue-DpkxxiNk.cjs.map} +1 -1
- package/dist/{update-project-CijYCtG1.cjs → update-project-DLDDbcGY.cjs} +2 -2
- package/dist/{update-project-CijYCtG1.cjs.map → update-project-DLDDbcGY.cjs.map} +1 -1
- package/dist/{update-project-BNPev7W8.js → update-project-YLxt2ry2.js} +2 -2
- package/dist/{update-project-BNPev7W8.js.map → update-project-YLxt2ry2.js.map} +1 -1
- package/dist/version-CcTnFB56.js +6 -0
- package/dist/{version-C4uvMmw0.js.map → version-CcTnFB56.js.map} +1 -1
- package/dist/{version-Ddz4xg_q.cjs → version-rDjaSkPw.cjs} +2 -2
- package/dist/{version-Ddz4xg_q.cjs.map → version-rDjaSkPw.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/analyze-issue-with-seer-BsNarzJN.js.map +0 -1
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +0 -1
- package/dist/formatting-BlMiQa9i.cjs.map +0 -1
- package/dist/formatting-CHh9Q_OW.d.cts.map +0 -1
- package/dist/formatting-kdIeURER.d.ts.map +0 -1
- package/dist/formatting-pUm38KOj.js.map +0 -1
- package/dist/get-issue-details-CxChU4U9.js.map +0 -1
- package/dist/get-issue-details-DFwZRbmU.cjs.map +0 -1
- package/dist/version-C4uvMmw0.js +0 -6
- /package/dist/{issue-utils-BVAB6I-Z.js → issue-utils-BbCfbiY8.js} +0 -0
- /package/dist/{issue-utils-pdbo-5LW.cjs → issue-utils-DMKiif6C.cjs} +0 -0
package/dist/{get-event-attachment-ChRw3jlQ.cjs.map → get-event-attachment-C-ig2-3F.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-attachment-
|
|
1
|
+
{"version":3,"file":"get-event-attachment-C-ig2-3F.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","ParamEventId","context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":";;;;;;;AAkBA,mCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,aAAaC;EACb,SAASC;EACT,cAAc,iCAAkB,UAAU;EAC1C,WAAW,8BAAe,UAAU;CACrC;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,4BAAO,qBAAqB,OAAO,iBAAiB;AAGpD,MAAI,OAAO,cAAc;GACvB,MAAM,aAAa,MAAM,WAAW,mBAAmB;IACrD,kBAAkB,OAAO;IACzB,aAAa,OAAO;IACpB,SAAS,OAAO;IAChB,cAAc,OAAO;GACtB,EAAC;GAEF,MAAMC,eACJ,CAAE;GACJ,MAAM,YAAY,WAAW,WAAW,UAAU,WAAW,QAAQ;AAErE,OAAI,UAAU;IACZ,MAAM,UAAU,WAAW,WAAW,UAAU,WAAW,SAAS;IAGpE,MAAM,aAAa,IAAI,WAAW,MAAM,WAAW,KAAK,aAAa;IACrE,IAAI,SAAS;AACb,SAAK,IAAI,IAAI,GAAG,IAAI,WAAW,YAAY,IACzC,WAAU,OAAO,aAAa,WAAW,GAAG;AAE9C,QAAI,SAAS;KACX,MAAMC,QAAsB;MAC1B,MAAM;MACN,UAAU,WAAW,WAAW;MAChC,MAAM,KAAK,OAAO;KACnB;AACD,kBAAa,KAAK,MAAM;IACzB,OAAM;KACL,MAAMC,WAA6B;MAC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,SAAS;AAChD,cAAW,eAAe,WAAW,YAAY;AACjD,cAAW,YAAY,WAAW,KAAK;AACvC,cAAW;AACX,cAAW,2CAA2C,OAAO,iBAAiB,kBAAkB,OAAO,YAAY,cAAc,OAAO,QAAQ,mBAAmB,WAAW,GAAG;EAClL,EAAC;AAEF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-attachment-
|
|
1
|
+
{"version":3,"file":"get-event-attachment-DVCPpUMj.js","names":["context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":";;;;;;AAkBA,mCAAe,WAAW;CACxB,MAAM;CACN,aA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+3,7 @@ import { defineTool } from "./defineTool-77H4nSna.js";
|
|
|
3
3
|
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
4
4
|
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
5
5
|
import { parseIssueParams } from "./issue-helpers-CqqYnwYE.js";
|
|
6
|
-
import { formatIssueOutput } from "./formatting-
|
|
6
|
+
import { formatIssueOutput } from "./formatting-Bvyded57.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { setTag } from "@sentry/core";
|
|
9
9
|
|
|
@@ -13,23 +13,20 @@ var get_issue_details_default = defineTool({
|
|
|
13
13
|
description: [
|
|
14
14
|
"Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.",
|
|
15
15
|
"",
|
|
16
|
-
"**NOTE: If the user asks HOW TO FIX an issue, use `analyze_issue_with_seer` instead!**",
|
|
17
|
-
"",
|
|
18
16
|
"Use this tool when you need to:",
|
|
19
17
|
"- View error details, stacktraces, and metadata",
|
|
20
18
|
"- Investigate when/where an error occurred",
|
|
21
19
|
"- Access raw error information from Sentry",
|
|
20
|
+
"- Get comprehensive issue information including any available Seer analysis",
|
|
22
21
|
"",
|
|
23
22
|
"Do NOT use this tool when:",
|
|
24
|
-
"- User asks \"how do I fix this?\" → Use `analyze_issue_with_seer`",
|
|
25
23
|
"- User wants root cause analysis → Use `analyze_issue_with_seer`",
|
|
26
|
-
"- User needs code fixes → Use `analyze_issue_with_seer`",
|
|
27
24
|
"",
|
|
28
25
|
"<examples>",
|
|
29
|
-
"###
|
|
26
|
+
"### User: \"How do I fix ISSUE-123?\"",
|
|
30
27
|
"",
|
|
31
28
|
"```",
|
|
32
|
-
"get_issue_details(organizationSlug='my-organization', issueId='
|
|
29
|
+
"get_issue_details(organizationSlug='my-organization', issueId='ISSUE-123')",
|
|
33
30
|
"```",
|
|
34
31
|
"",
|
|
35
32
|
"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'",
|
|
@@ -67,11 +64,19 @@ var get_issue_details_default = defineTool({
|
|
|
67
64
|
issueId: issue$1.shortId,
|
|
68
65
|
eventId: params.eventId
|
|
69
66
|
});
|
|
67
|
+
let autofixState$1;
|
|
68
|
+
try {
|
|
69
|
+
autofixState$1 = await apiService.getAutofixState({
|
|
70
|
+
organizationSlug: orgSlug$1,
|
|
71
|
+
issueId: issue$1.shortId
|
|
72
|
+
});
|
|
73
|
+
} catch (error) {}
|
|
70
74
|
return formatIssueOutput({
|
|
71
75
|
organizationSlug: orgSlug$1,
|
|
72
76
|
issue: issue$1,
|
|
73
77
|
event: event$1,
|
|
74
|
-
apiService
|
|
78
|
+
apiService,
|
|
79
|
+
autofixState: autofixState$1
|
|
75
80
|
});
|
|
76
81
|
}
|
|
77
82
|
if (!params.issueUrl && !params.issueId) throw new UserInputError("Either `issueId` or `issueUrl` must be provided");
|
|
@@ -90,15 +95,23 @@ var get_issue_details_default = defineTool({
|
|
|
90
95
|
organizationSlug: orgSlug,
|
|
91
96
|
issueId: issue.shortId
|
|
92
97
|
});
|
|
98
|
+
let autofixState;
|
|
99
|
+
try {
|
|
100
|
+
autofixState = await apiService.getAutofixState({
|
|
101
|
+
organizationSlug: orgSlug,
|
|
102
|
+
issueId: issue.shortId
|
|
103
|
+
});
|
|
104
|
+
} catch (error) {}
|
|
93
105
|
return formatIssueOutput({
|
|
94
106
|
organizationSlug: orgSlug,
|
|
95
107
|
issue,
|
|
96
108
|
event,
|
|
97
|
-
apiService
|
|
109
|
+
apiService,
|
|
110
|
+
autofixState
|
|
98
111
|
});
|
|
99
112
|
}
|
|
100
113
|
});
|
|
101
114
|
|
|
102
115
|
//#endregion
|
|
103
116
|
export { get_issue_details_default };
|
|
104
|
-
//# sourceMappingURL=get-issue-details-
|
|
117
|
+
//# sourceMappingURL=get-issue-details-Dcmzxknx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue-details-Dcmzxknx.js","names":["context: ServerContext","orgSlug","issue","event","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined"],"sources":["../src/tools/get-issue-details.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams, formatIssueOutput } from \"./utils/issue-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"get_issue_details\",\n description: [\n \"Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View error details, stacktraces, and metadata\",\n \"- Investigate when/where an error occurred\",\n \"- Access raw error information from Sentry\",\n \"- Get comprehensive issue information including any available Seer analysis\",\n \"\",\n \"Do NOT use this tool when:\",\n \"- User wants root cause analysis → Use `analyze_issue_with_seer`\",\n \"\",\n \"<examples>\",\n '### User: \"How do I fix ISSUE-123?\"',\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n \"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().trim().describe(\"The ID of the event.\").optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n if (params.eventId) {\n const orgSlug = params.organizationSlug;\n if (!orgSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `eventId`\",\n );\n }\n\n setTag(\"organization.slug\", orgSlug);\n const [issue] = await apiService.listIssues({\n organizationSlug: orgSlug,\n query: params.eventId,\n });\n if (!issue) {\n return `# Event Not Found\\n\\nNo issue found for Event ID: ${params.eventId}`;\n }\n const event = await apiService.getEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId: params.eventId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n }\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n const issue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n const event = await apiService.getLatestEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n },\n});\n"],"mappings":";;;;;;;;;;AAcA,gCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;EACtE,UAAU,cAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,MAAI,OAAO,SAAS;GAClB,MAAMC,YAAU,OAAO;AACvB,QAAKA,UACH,OAAM,IAAI,eACR;AAIJ,UAAO,qBAAqBA,UAAQ;GACpC,MAAM,CAACC,QAAM,GAAG,MAAM,WAAW,WAAW;IAC1C,kBAAkBD;IAClB,OAAO,OAAO;GACf,EAAC;AACF,QAAKC,QACH,SAAQ,oDAAoD,OAAO;GAErE,MAAMC,UAAQ,MAAM,WAAW,iBAAiB;IAC9C,kBAAkBF;IAClB,SAASC,QAAM;IACf,SAAS,OAAO;GACjB,EAAC;GAGF,IAAIE;AAGJ,OAAI;AACF,qBAAe,MAAM,WAAW,gBAAgB;KAC9C,kBAAkBH;KAClB,SAASC,QAAM;IAChB,EAAC;GACH,SAAQ,OAAO,CAGf;AAED,UAAO,kBAAkB;IACvB,kBAAkBD;IAClB;IACA;IACA;IACA;GACD,EAAC;EACH;AAGD,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAI,eACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAI,eACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,iBAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,SAAO,qBAAqB,QAAQ;EAEpC,MAAM,QAAQ,MAAM,WAAW,SAAS;GACtC,kBAAkB;GAClB,SAAS;EACV,EAAC;EACF,MAAM,QAAQ,MAAM,WAAW,uBAAuB;GACpD,kBAAkB;GAClB,SAAS,MAAM;EAChB,EAAC;EAGF,IAAII;AAGJ,MAAI;AACF,kBAAe,MAAM,WAAW,gBAAgB;IAC9C,kBAAkB;IAClB,SAAS,MAAM;GAChB,EAAC;EACH,SAAQ,OAAO,CAGf;AAED,SAAO,kBAAkB;GACvB,kBAAkB;GAClB;GACA;GACA;GACA;EACD,EAAC;CACH;AACF,EAAC"}
|
|
@@ -4,7 +4,7 @@ const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
|
4
4
|
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
5
5
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
6
6
|
const require_issue_helpers = require('./issue-helpers-DyAIO0w6.cjs');
|
|
7
|
-
const require_formatting = require('./formatting-
|
|
7
|
+
const require_formatting = require('./formatting-D0Aki7rK.cjs');
|
|
8
8
|
const zod = require_chunk.__toESM(require("zod"));
|
|
9
9
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
10
10
|
|
|
@@ -14,23 +14,20 @@ var get_issue_details_default = require_defineTool.defineTool({
|
|
|
14
14
|
description: [
|
|
15
15
|
"Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.",
|
|
16
16
|
"",
|
|
17
|
-
"**NOTE: If the user asks HOW TO FIX an issue, use `analyze_issue_with_seer` instead!**",
|
|
18
|
-
"",
|
|
19
17
|
"Use this tool when you need to:",
|
|
20
18
|
"- View error details, stacktraces, and metadata",
|
|
21
19
|
"- Investigate when/where an error occurred",
|
|
22
20
|
"- Access raw error information from Sentry",
|
|
21
|
+
"- Get comprehensive issue information including any available Seer analysis",
|
|
23
22
|
"",
|
|
24
23
|
"Do NOT use this tool when:",
|
|
25
|
-
"- User asks \"how do I fix this?\" → Use `analyze_issue_with_seer`",
|
|
26
24
|
"- User wants root cause analysis → Use `analyze_issue_with_seer`",
|
|
27
|
-
"- User needs code fixes → Use `analyze_issue_with_seer`",
|
|
28
25
|
"",
|
|
29
26
|
"<examples>",
|
|
30
|
-
"###
|
|
27
|
+
"### User: \"How do I fix ISSUE-123?\"",
|
|
31
28
|
"",
|
|
32
29
|
"```",
|
|
33
|
-
"get_issue_details(organizationSlug='my-organization', issueId='
|
|
30
|
+
"get_issue_details(organizationSlug='my-organization', issueId='ISSUE-123')",
|
|
34
31
|
"```",
|
|
35
32
|
"",
|
|
36
33
|
"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'",
|
|
@@ -68,11 +65,19 @@ var get_issue_details_default = require_defineTool.defineTool({
|
|
|
68
65
|
issueId: issue$1.shortId,
|
|
69
66
|
eventId: params.eventId
|
|
70
67
|
});
|
|
68
|
+
let autofixState$1;
|
|
69
|
+
try {
|
|
70
|
+
autofixState$1 = await apiService.getAutofixState({
|
|
71
|
+
organizationSlug: orgSlug$1,
|
|
72
|
+
issueId: issue$1.shortId
|
|
73
|
+
});
|
|
74
|
+
} catch (error) {}
|
|
71
75
|
return require_formatting.formatIssueOutput({
|
|
72
76
|
organizationSlug: orgSlug$1,
|
|
73
77
|
issue: issue$1,
|
|
74
78
|
event: event$1,
|
|
75
|
-
apiService
|
|
79
|
+
apiService,
|
|
80
|
+
autofixState: autofixState$1
|
|
76
81
|
});
|
|
77
82
|
}
|
|
78
83
|
if (!params.issueUrl && !params.issueId) throw new require_errors.UserInputError("Either `issueId` or `issueUrl` must be provided");
|
|
@@ -91,11 +96,19 @@ var get_issue_details_default = require_defineTool.defineTool({
|
|
|
91
96
|
organizationSlug: orgSlug,
|
|
92
97
|
issueId: issue.shortId
|
|
93
98
|
});
|
|
99
|
+
let autofixState;
|
|
100
|
+
try {
|
|
101
|
+
autofixState = await apiService.getAutofixState({
|
|
102
|
+
organizationSlug: orgSlug,
|
|
103
|
+
issueId: issue.shortId
|
|
104
|
+
});
|
|
105
|
+
} catch (error) {}
|
|
94
106
|
return require_formatting.formatIssueOutput({
|
|
95
107
|
organizationSlug: orgSlug,
|
|
96
108
|
issue,
|
|
97
109
|
event,
|
|
98
|
-
apiService
|
|
110
|
+
apiService,
|
|
111
|
+
autofixState
|
|
99
112
|
});
|
|
100
113
|
}
|
|
101
114
|
});
|
|
@@ -107,4 +120,4 @@ Object.defineProperty(exports, 'get_issue_details_default', {
|
|
|
107
120
|
return get_issue_details_default;
|
|
108
121
|
}
|
|
109
122
|
});
|
|
110
|
-
//# sourceMappingURL=get-issue-details-
|
|
123
|
+
//# sourceMappingURL=get-issue-details-lBrYR9yx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-issue-details-lBrYR9yx.cjs","names":["context: ServerContext","orgSlug","UserInputError","issue","event","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined"],"sources":["../src/tools/get-issue-details.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams, formatIssueOutput } from \"./utils/issue-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"get_issue_details\",\n description: [\n \"Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View error details, stacktraces, and metadata\",\n \"- Investigate when/where an error occurred\",\n \"- Access raw error information from Sentry\",\n \"- Get comprehensive issue information including any available Seer analysis\",\n \"\",\n \"Do NOT use this tool when:\",\n \"- User wants root cause analysis → Use `analyze_issue_with_seer`\",\n \"\",\n \"<examples>\",\n '### User: \"How do I fix ISSUE-123?\"',\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n \"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().trim().describe(\"The ID of the event.\").optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n if (params.eventId) {\n const orgSlug = params.organizationSlug;\n if (!orgSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `eventId`\",\n );\n }\n\n setTag(\"organization.slug\", orgSlug);\n const [issue] = await apiService.listIssues({\n organizationSlug: orgSlug,\n query: params.eventId,\n });\n if (!issue) {\n return `# Event Not Found\\n\\nNo issue found for Event ID: ${params.eventId}`;\n }\n const event = await apiService.getEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId: params.eventId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n }\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n const issue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n const event = await apiService.getLatestEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n },\n});\n"],"mappings":";;;;;;;;;;;AAcA,gCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;E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,kBAAkB;GAClB,SAAS;EACV,EAAC;EACF,MAAM,QAAQ,MAAM,WAAW,uBAAuB;GACpD,kBAAkB;GAClB,SAAS,MAAM;EAChB,EAAC;EAGF,IAAII;AAGJ,MAAI;AACF,kBAAe,MAAM,WAAW,gBAAgB;IAC9C,kBAAkB;IAClB,SAAS,MAAM;GAChB,EAAC;EACH,SAAQ,OAAO,CAGf;AAED,SAAO,qCAAkB;GACvB,kBAAkB;GAClB;GACA;GACA;GACA;EACD,EAAC;CACH;AACF,EAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -17,33 +17,33 @@ require('./find-issues-C3uk59rn.cjs');
|
|
|
17
17
|
require('./find-releases-CZCVEOHZ.cjs');
|
|
18
18
|
require('./find-tags-Byk4d3oZ.cjs');
|
|
19
19
|
require('./issue-helpers-DyAIO0w6.cjs');
|
|
20
|
-
require('./
|
|
21
|
-
require('./
|
|
22
|
-
require('./
|
|
23
|
-
require('./get-
|
|
24
|
-
require('./
|
|
25
|
-
require('./
|
|
26
|
-
require('./
|
|
27
|
-
require('./find-
|
|
28
|
-
require('./
|
|
29
|
-
require('./
|
|
30
|
-
require('./
|
|
31
|
-
require('./
|
|
32
|
-
require('./
|
|
33
|
-
require('./
|
|
34
|
-
require('./
|
|
35
|
-
require('./analyze-issue-with-seer-
|
|
20
|
+
require('./seer-utils-CDm5J8ur.cjs');
|
|
21
|
+
require('./formatting-D0Aki7rK.cjs');
|
|
22
|
+
require('./issue-utils-DMKiif6C.cjs');
|
|
23
|
+
require('./get-issue-details-lBrYR9yx.cjs');
|
|
24
|
+
require('./get-event-attachment-C-ig2-3F.cjs');
|
|
25
|
+
require('./formatting-utils-m9R5bsRU.cjs');
|
|
26
|
+
require('./update-issue-DpkxxiNk.cjs');
|
|
27
|
+
require('./find-errors-CB9NpSxG.cjs');
|
|
28
|
+
require('./find-transactions-DuZyqjhF.cjs');
|
|
29
|
+
require('./create-team-CJhrccc1.cjs');
|
|
30
|
+
require('./logging-CX2buXiG.cjs');
|
|
31
|
+
require('./create-project-BxzRiryg.cjs');
|
|
32
|
+
require('./update-project-DLDDbcGY.cjs');
|
|
33
|
+
require('./create-dsn-Dz8nyTFw.cjs');
|
|
34
|
+
require('./find-dsns-CK59RaUJ.cjs');
|
|
35
|
+
require('./analyze-issue-with-seer-BkVrrh28.cjs');
|
|
36
36
|
require('./fetch-utils-oab6uNp3.cjs');
|
|
37
37
|
require('./fetch-utils-C0F4eH6S.cjs');
|
|
38
38
|
require('./search-docs-D5Foht_0.cjs');
|
|
39
39
|
require('./get-doc-DaTCenOE.cjs');
|
|
40
|
-
require('./tools-
|
|
40
|
+
require('./tools-CHnZvVEN.cjs');
|
|
41
41
|
require('./resources-BM_YQGcb.cjs');
|
|
42
42
|
require('./promptDefinitions-C29BWGYg.cjs');
|
|
43
43
|
require('./prompts-Df3i1XSB.cjs');
|
|
44
|
-
require('./server-
|
|
45
|
-
const require_version = require('./version-
|
|
46
|
-
const require_stdio = require('./stdio-
|
|
44
|
+
require('./server-Dgkqz8bA.cjs');
|
|
45
|
+
const require_version = require('./version-rDjaSkPw.cjs');
|
|
46
|
+
const require_stdio = require('./stdio-BQAm0Liz.cjs');
|
|
47
47
|
const require_url_utils = require('./url-utils-C9hykWmk.cjs');
|
|
48
48
|
const __modelcontextprotocol_sdk_server_mcp_js = require_chunk.__toESM(require("@modelcontextprotocol/sdk/server/mcp.js"));
|
|
49
49
|
const __sentry_node = require_chunk.__toESM(require("@sentry/node"));
|
|
@@ -97,7 +97,7 @@ __sentry_node.init({
|
|
|
97
97
|
"sentry.host": sentryHost,
|
|
98
98
|
"mcp.mcp-url": mcpUrl
|
|
99
99
|
} },
|
|
100
|
-
release: "0.
|
|
100
|
+
release: "0.15.0",
|
|
101
101
|
integrations: [
|
|
102
102
|
__sentry_node.consoleLoggingIntegration(),
|
|
103
103
|
__sentry_node.zodErrorsIntegration(),
|
package/dist/index.js
CHANGED
|
@@ -16,33 +16,33 @@ import "./find-issues-CAtNGBly.js";
|
|
|
16
16
|
import "./find-releases-BUozr0Z-.js";
|
|
17
17
|
import "./find-tags-d-wF1Se8.js";
|
|
18
18
|
import "./issue-helpers-CqqYnwYE.js";
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./get-
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./find-
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./analyze-issue-with-seer-
|
|
19
|
+
import "./seer-utils-Cj9DXrow.js";
|
|
20
|
+
import "./formatting-Bvyded57.js";
|
|
21
|
+
import "./issue-utils-BbCfbiY8.js";
|
|
22
|
+
import "./get-issue-details-Dcmzxknx.js";
|
|
23
|
+
import "./get-event-attachment-DVCPpUMj.js";
|
|
24
|
+
import "./formatting-utils-DgOyTl-m.js";
|
|
25
|
+
import "./update-issue-DRTQvy6p.js";
|
|
26
|
+
import "./find-errors-C3oUMeRi.js";
|
|
27
|
+
import "./find-transactions-BiBgg-AE.js";
|
|
28
|
+
import "./create-team-zHz00C6Q.js";
|
|
29
|
+
import "./logging-DzxYBMrn.js";
|
|
30
|
+
import "./create-project-K1od5Rhx.js";
|
|
31
|
+
import "./update-project-YLxt2ry2.js";
|
|
32
|
+
import "./create-dsn-D530I7Lr.js";
|
|
33
|
+
import "./find-dsns-BoEP0N7B.js";
|
|
34
|
+
import "./analyze-issue-with-seer-CoqsTklL.js";
|
|
35
35
|
import "./fetch-utils-BMKjO-cc.js";
|
|
36
36
|
import "./fetch-utils-DlPjrSk2.js";
|
|
37
37
|
import "./search-docs-BLbB_GV2.js";
|
|
38
38
|
import "./get-doc-YTiQznr1.js";
|
|
39
|
-
import "./tools-
|
|
39
|
+
import "./tools-CdXGgq1W.js";
|
|
40
40
|
import "./resources-BHF8a1ZB.js";
|
|
41
41
|
import "./promptDefinitions-CSKE8T0a.js";
|
|
42
42
|
import "./prompts-C8Y9w5c4.js";
|
|
43
|
-
import "./server-
|
|
44
|
-
import { LIB_VERSION } from "./version-
|
|
45
|
-
import { startStdio } from "./stdio-
|
|
43
|
+
import "./server-BSRxzYFd.js";
|
|
44
|
+
import { LIB_VERSION } from "./version-CcTnFB56.js";
|
|
45
|
+
import { startStdio } from "./stdio-BcihaDjO.js";
|
|
46
46
|
import { validateAndParseSentryUrl, validateSentryHost } from "./url-utils-DvZYfzPM.js";
|
|
47
47
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
48
48
|
import * as Sentry from "@sentry/node";
|
|
@@ -96,7 +96,7 @@ Sentry.init({
|
|
|
96
96
|
"sentry.host": sentryHost,
|
|
97
97
|
"mcp.mcp-url": mcpUrl
|
|
98
98
|
} },
|
|
99
|
-
release: "0.
|
|
99
|
+
release: "0.15.0",
|
|
100
100
|
integrations: [
|
|
101
101
|
Sentry.consoleLoggingIntegration(),
|
|
102
102
|
Sentry.zodErrorsIntegration(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
require('../seer-utils-CDm5J8ur.cjs');
|
|
2
|
+
const require_formatting = require('../formatting-D0Aki7rK.cjs');
|
|
2
3
|
|
|
3
4
|
exports.formatEventOutput = require_formatting.formatEventOutput;
|
|
4
5
|
exports.formatFrameHeader = require_formatting.formatFrameHeader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../schema-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../client-
|
|
1
|
+
import "../schema-3NeMWRAm.cjs";
|
|
2
|
+
import "../types-BoMP-Ro6.cjs";
|
|
3
|
+
import "../client-CQ9Xe1aN.cjs";
|
|
4
4
|
import "../index-BPSCxsMC.cjs";
|
|
5
|
-
import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-
|
|
5
|
+
import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-CcTK2X8V.cjs";
|
|
6
6
|
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../schema
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../client-
|
|
1
|
+
import "../schema-B3CzDGJk.js";
|
|
2
|
+
import "../types-DpV1JAZj.js";
|
|
3
|
+
import "../client-VCJp6Kcu.js";
|
|
4
4
|
import "../index-DVGDAddE.js";
|
|
5
|
-
import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-
|
|
5
|
+
import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-vtXxusbn.js";
|
|
6
6
|
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../seer-utils-Cj9DXrow.js";
|
|
2
|
+
import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-Bvyded57.js";
|
|
2
3
|
|
|
3
4
|
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|