@sentry/mcp-server 0.7.1 → 0.9.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.
Files changed (192) hide show
  1. package/README.md +13 -5
  2. package/dist/api-client/client.cjs +2 -2
  3. package/dist/api-client/client.d.cts +3 -3
  4. package/dist/api-client/client.d.ts +3 -3
  5. package/dist/api-client/client.js +2 -2
  6. package/dist/api-client/client.test.cjs +3 -3
  7. package/dist/api-client/client.test.js +3 -3
  8. package/dist/api-client/index.cjs +3 -2
  9. package/dist/api-client/index.d.cts +4 -4
  10. package/dist/api-client/index.d.ts +4 -4
  11. package/dist/api-client/index.js +3 -3
  12. package/dist/api-client/schema.cjs +2 -1
  13. package/dist/api-client/schema.d.cts +2 -2
  14. package/dist/api-client/schema.d.ts +2 -2
  15. package/dist/api-client/schema.js +2 -2
  16. package/dist/api-client/types.d.cts +2 -2
  17. package/dist/api-client/types.d.ts +2 -2
  18. package/dist/{client-7aaWrjcF.d.ts → client-1dRfG57H.d.ts} +2 -2
  19. package/dist/{client-7aaWrjcF.d.ts.map → client-1dRfG57H.d.ts.map} +1 -1
  20. package/dist/{client-Ch0w22UE.d.cts → client-BsYOQsEI.d.cts} +6 -6
  21. package/dist/{client-Ch0w22UE.d.cts.map → client-BsYOQsEI.d.cts.map} +1 -1
  22. package/dist/{client-D9mOWh6s.js → client-CTm4cvI7.js} +2 -3
  23. package/dist/client-CTm4cvI7.js.map +1 -0
  24. package/dist/{client-CLuQEpjg.cjs → client-DQ837FXP.cjs} +2 -3
  25. package/dist/client-DQ837FXP.cjs.map +1 -0
  26. package/dist/{formatting-C6Py2iOz.js → formatting-BQRAzO5v.js} +25 -11
  27. package/dist/formatting-BQRAzO5v.js.map +1 -0
  28. package/dist/{formatting-BmbJ5-Uh.cjs → formatting-C-0bHtbh.cjs} +25 -11
  29. package/dist/formatting-C-0bHtbh.cjs.map +1 -0
  30. package/dist/index.cjs +15 -14
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.js +15 -14
  33. package/dist/index.js.map +1 -1
  34. package/dist/internal/formatting.cjs +1 -1
  35. package/dist/internal/formatting.d.cts +3 -3
  36. package/dist/internal/formatting.d.cts.map +1 -1
  37. package/dist/internal/formatting.d.ts +3 -3
  38. package/dist/internal/formatting.d.ts.map +1 -1
  39. package/dist/internal/formatting.js +1 -1
  40. package/dist/internal/issue-helpers.cjs +1 -1
  41. package/dist/internal/issue-helpers.d.cts.map +1 -1
  42. package/dist/internal/issue-helpers.d.ts.map +1 -1
  43. package/dist/internal/issue-helpers.js +1 -1
  44. package/dist/internal/issue-helpers.test.cjs +2 -2
  45. package/dist/internal/issue-helpers.test.js +2 -2
  46. package/dist/{issue-helpers-Cx6bFCUv.js → issue-helpers-CyoHu5j4.js} +3 -1
  47. package/dist/issue-helpers-CyoHu5j4.js.map +1 -0
  48. package/dist/{issue-helpers-CdWMhVWJ.cjs → issue-helpers-DbsECZFq.cjs} +3 -1
  49. package/dist/issue-helpers-DbsECZFq.cjs.map +1 -0
  50. package/dist/{promptDefinitions-OnJHLqrZ.cjs → promptDefinitions-5jiZMBg5.cjs} +10 -2
  51. package/dist/promptDefinitions-5jiZMBg5.cjs.map +1 -0
  52. package/dist/promptDefinitions-CPTadtuI.js +24 -0
  53. package/dist/promptDefinitions-CPTadtuI.js.map +1 -0
  54. package/dist/promptDefinitions-Dcz3d9wL.d.cts +26 -0
  55. package/dist/promptDefinitions-Dcz3d9wL.d.cts.map +1 -0
  56. package/dist/promptDefinitions-DrGK-v8n.d.ts +26 -0
  57. package/dist/promptDefinitions-DrGK-v8n.d.ts.map +1 -0
  58. package/dist/promptDefinitions.cjs +2 -2
  59. package/dist/promptDefinitions.d.cts +1 -1
  60. package/dist/promptDefinitions.d.ts +1 -1
  61. package/dist/promptDefinitions.js +2 -2
  62. package/dist/prompts-DgWOD2rU.js +32 -0
  63. package/dist/prompts-DgWOD2rU.js.map +1 -0
  64. package/dist/prompts-nfFU-zY-.cjs +39 -0
  65. package/dist/prompts-nfFU-zY-.cjs.map +1 -0
  66. package/dist/prompts.cjs +1 -1
  67. package/dist/prompts.d.cts +21 -11
  68. package/dist/prompts.d.cts.map +1 -1
  69. package/dist/prompts.d.ts +21 -11
  70. package/dist/prompts.d.ts.map +1 -1
  71. package/dist/prompts.js +1 -1
  72. package/dist/{schema-_xqdSRLo.cjs → schema-BCkBPgjj.cjs} +6 -6
  73. package/dist/schema-BCkBPgjj.cjs.map +1 -0
  74. package/dist/schema-CJrk_GUH.js +15 -0
  75. package/dist/schema-CJrk_GUH.js.map +1 -0
  76. package/dist/{schema-BbqVXLZS.d.cts → schema-CaJV2aIO.d.cts} +572 -562
  77. package/dist/schema-CaJV2aIO.d.cts.map +1 -0
  78. package/dist/{schema-BnIwkBRb.d.ts → schema-DwPOkoSP.d.ts} +520 -510
  79. package/dist/{schema-BnIwkBRb.d.ts.map → schema-DwPOkoSP.d.ts.map} +1 -1
  80. package/dist/{schema-BnXdl41H.cjs → schema-KEMqYaQn.cjs} +15 -2
  81. package/dist/schema-KEMqYaQn.cjs.map +1 -0
  82. package/dist/{schema-BzPfPMq7.js → schema-nyYqVk4Y.js} +10 -3
  83. package/dist/schema-nyYqVk4Y.js.map +1 -0
  84. package/dist/schema.cjs +1 -1
  85. package/dist/schema.d.cts.map +1 -1
  86. package/dist/schema.d.ts.map +1 -1
  87. package/dist/schema.js +1 -1
  88. package/dist/{server-D35uvgO3.cjs → server-BWoJZj5B.cjs} +40 -10
  89. package/dist/server-BWoJZj5B.cjs.map +1 -0
  90. package/dist/{server-zkB6OPEz.js → server-DtNbD1c-.js} +40 -10
  91. package/dist/server-DtNbD1c-.js.map +1 -0
  92. package/dist/server.cjs +10 -10
  93. package/dist/server.d.cts +3 -3
  94. package/dist/server.d.cts.map +1 -1
  95. package/dist/server.d.ts +3 -3
  96. package/dist/server.d.ts.map +1 -1
  97. package/dist/server.js +10 -10
  98. package/dist/{stdio-Be17vc2M.cjs → stdio-BLzMxGqU.cjs} +2 -2
  99. package/dist/{stdio-Be17vc2M.cjs.map → stdio-BLzMxGqU.cjs.map} +1 -1
  100. package/dist/{stdio-DQcBQF6y.js → stdio-D4oW-qT6.js} +2 -2
  101. package/dist/{stdio-DQcBQF6y.js.map → stdio-D4oW-qT6.js.map} +1 -1
  102. package/dist/test-setup.cjs +2 -2
  103. package/dist/test-setup.cjs.map +1 -1
  104. package/dist/test-setup.js +2 -2
  105. package/dist/test-setup.js.map +1 -1
  106. package/dist/{toolDefinitions-CfNXEIaX.js → toolDefinitions-BF-D81bS.js} +12 -34
  107. package/dist/toolDefinitions-BF-D81bS.js.map +1 -0
  108. package/dist/{toolDefinitions-abNbVXb5.d.ts → toolDefinitions-CCscRQoM.d.ts} +14 -32
  109. package/dist/toolDefinitions-CCscRQoM.d.ts.map +1 -0
  110. package/dist/{toolDefinitions-CRtHauHJ.cjs → toolDefinitions-CO65cU86.cjs} +12 -34
  111. package/dist/toolDefinitions-CO65cU86.cjs.map +1 -0
  112. package/dist/{toolDefinitions-DPePAe0y.d.cts → toolDefinitions-K_TVqaLU.d.cts} +14 -32
  113. package/dist/toolDefinitions-K_TVqaLU.d.cts.map +1 -0
  114. package/dist/toolDefinitions.cjs +2 -2
  115. package/dist/toolDefinitions.d.cts +1 -1
  116. package/dist/toolDefinitions.d.ts +1 -1
  117. package/dist/toolDefinitions.js +2 -2
  118. package/dist/toolDefinitions.test.cjs +2 -2
  119. package/dist/toolDefinitions.test.js +2 -2
  120. package/dist/{tools-DtHRkHKh.js → tools-B8ufMRZx.js} +11 -36
  121. package/dist/tools-B8ufMRZx.js.map +1 -0
  122. package/dist/{tools-LuDiLnAX.cjs → tools-BYt-G6p2.cjs} +11 -36
  123. package/dist/tools-BYt-G6p2.cjs.map +1 -0
  124. package/dist/tools.cjs +5 -5
  125. package/dist/tools.d.cts +16 -31
  126. package/dist/tools.d.cts.map +1 -1
  127. package/dist/tools.d.ts +16 -31
  128. package/dist/tools.d.ts.map +1 -1
  129. package/dist/tools.js +5 -5
  130. package/dist/tools.test.cjs +33 -70
  131. package/dist/tools.test.cjs.map +1 -1
  132. package/dist/tools.test.js +33 -70
  133. package/dist/tools.test.js.map +1 -1
  134. package/dist/transports/stdio.cjs +11 -11
  135. package/dist/transports/stdio.d.cts +3 -3
  136. package/dist/transports/stdio.d.ts +3 -3
  137. package/dist/transports/stdio.js +11 -11
  138. package/dist/{types-BqMKv2m7.d.cts → types-CPuN4Qmi.d.cts} +2 -2
  139. package/dist/{types-BqMKv2m7.d.cts.map → types-CPuN4Qmi.d.cts.map} +1 -1
  140. package/dist/{types-RxedZjnY.d.ts → types-Ds7qzCBB.d.ts} +2 -2
  141. package/dist/{types-RxedZjnY.d.ts.map → types-Ds7qzCBB.d.ts.map} +1 -1
  142. package/dist/{types-X3ot7x0d.d.ts → types-DyM4kaGZ.d.ts} +7 -6
  143. package/dist/types-DyM4kaGZ.d.ts.map +1 -0
  144. package/dist/{types-DFKY4nvR.d.cts → types-TaJcaAVg.d.cts} +7 -6
  145. package/dist/types-TaJcaAVg.d.cts.map +1 -0
  146. package/dist/types.d.cts +4 -4
  147. package/dist/types.d.ts +4 -4
  148. package/dist/{version-BkjSM_wB.cjs → version-B0O4KvZ9.cjs} +2 -2
  149. package/dist/{version-BkjSM_wB.cjs.map → version-B0O4KvZ9.cjs.map} +1 -1
  150. package/dist/version-dTEKpaGt.js +6 -0
  151. package/dist/{version-BMRCgO0F.js.map → version-dTEKpaGt.js.map} +1 -1
  152. package/dist/version.cjs +1 -1
  153. package/dist/version.js +1 -1
  154. package/dist/{vi.ClIskdbk-TqmAThAO.cjs → vi.ClIskdbk-Bs263gvI.cjs} +5 -5
  155. package/dist/{vi.ClIskdbk-TqmAThAO.cjs.map → vi.ClIskdbk-Bs263gvI.cjs.map} +1 -1
  156. package/dist/{vi.ClIskdbk-BbUmO3mx.js → vi.ClIskdbk-De9q3829.js} +5 -5
  157. package/dist/{vi.ClIskdbk-BbUmO3mx.js.map → vi.ClIskdbk-De9q3829.js.map} +1 -1
  158. package/package.json +6 -6
  159. package/dist/client-CLuQEpjg.cjs.map +0 -1
  160. package/dist/client-D9mOWh6s.js.map +0 -1
  161. package/dist/formatting-BmbJ5-Uh.cjs.map +0 -1
  162. package/dist/formatting-C6Py2iOz.js.map +0 -1
  163. package/dist/issue-helpers-CdWMhVWJ.cjs.map +0 -1
  164. package/dist/issue-helpers-Cx6bFCUv.js.map +0 -1
  165. package/dist/promptDefinitions-C85r2wAk.d.ts +0 -15
  166. package/dist/promptDefinitions-C85r2wAk.d.ts.map +0 -1
  167. package/dist/promptDefinitions-C9aGYWZ6.js +0 -16
  168. package/dist/promptDefinitions-C9aGYWZ6.js.map +0 -1
  169. package/dist/promptDefinitions-CkGJr3c4.d.cts +0 -15
  170. package/dist/promptDefinitions-CkGJr3c4.d.cts.map +0 -1
  171. package/dist/promptDefinitions-OnJHLqrZ.cjs.map +0 -1
  172. package/dist/prompts--QCiXmR2.cjs +0 -26
  173. package/dist/prompts--QCiXmR2.cjs.map +0 -1
  174. package/dist/prompts-Tz-qECa0.js +0 -19
  175. package/dist/prompts-Tz-qECa0.js.map +0 -1
  176. package/dist/schema-BbqVXLZS.d.cts.map +0 -1
  177. package/dist/schema-BnXdl41H.cjs.map +0 -1
  178. package/dist/schema-BzPfPMq7.js.map +0 -1
  179. package/dist/schema-_xqdSRLo.cjs.map +0 -1
  180. package/dist/schema-pZrPEvtp.js +0 -15
  181. package/dist/schema-pZrPEvtp.js.map +0 -1
  182. package/dist/server-D35uvgO3.cjs.map +0 -1
  183. package/dist/server-zkB6OPEz.js.map +0 -1
  184. package/dist/toolDefinitions-CRtHauHJ.cjs.map +0 -1
  185. package/dist/toolDefinitions-CfNXEIaX.js.map +0 -1
  186. package/dist/toolDefinitions-DPePAe0y.d.cts.map +0 -1
  187. package/dist/toolDefinitions-abNbVXb5.d.ts.map +0 -1
  188. package/dist/tools-DtHRkHKh.js.map +0 -1
  189. package/dist/tools-LuDiLnAX.cjs.map +0 -1
  190. package/dist/types-DFKY4nvR.d.cts.map +0 -1
  191. package/dist/types-X3ot7x0d.d.ts.map +0 -1
  192. package/dist/version-BMRCgO0F.js +0 -6
@@ -1,4 +1,4 @@
1
- import { ParamIssueShortId, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamQuery, ParamRegionUrl, ParamTransaction } from "./schema-pZrPEvtp.js";
1
+ import { ParamIssueShortId, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamQuery, ParamRegionUrl, ParamTransaction } from "./schema-CJrk_GUH.js";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/toolDefinitions.ts
@@ -130,28 +130,6 @@ const TOOL_DEFINITIONS = [
130
130
  regionUrl: ParamRegionUrl.optional()
131
131
  }
132
132
  },
133
- {
134
- name: "get_issue_summary",
135
- description: [
136
- "Retrieve a summary of an issue in Sentry.",
137
- "",
138
- "Use this tool when you need to:",
139
- "- View a summary of an issue in Sentry",
140
- "",
141
- "If the issue is an error, or you want additional information like the stacktrace, you should use `get_issue_details()` tool instead.",
142
- "",
143
- "<hints>",
144
- "- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
145
- "- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
146
- "</hints>"
147
- ].join("\n"),
148
- paramsSchema: {
149
- organizationSlug: ParamOrganizationSlug.optional(),
150
- regionUrl: ParamRegionUrl.optional(),
151
- issueId: ParamIssueShortId.optional(),
152
- issueUrl: z.string().url().describe("The URL of the issue to retrieve details for.").optional()
153
- }
154
- },
155
133
  {
156
134
  name: "get_issue_details",
157
135
  description: [
@@ -313,7 +291,7 @@ const TOOL_DEFINITIONS = [
313
291
  paramsSchema: {
314
292
  organizationSlug: ParamOrganizationSlug.optional(),
315
293
  regionUrl: ParamRegionUrl.optional(),
316
- teamSlug: z.string().describe("The team's slug."),
294
+ teamSlug: z.string().toLowerCase().describe("The team's slug."),
317
295
  name: z.string().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
318
296
  platform: ParamPlatform.optional()
319
297
  }
@@ -343,7 +321,7 @@ const TOOL_DEFINITIONS = [
343
321
  paramsSchema: {
344
322
  organizationSlug: ParamOrganizationSlug.optional(),
345
323
  regionUrl: ParamRegionUrl.optional(),
346
- projectSlug: z.string().describe("The project's slug."),
324
+ projectSlug: z.string().toLowerCase().describe("The project's slug."),
347
325
  name: z.string().describe("The name of the DSN to create.")
348
326
  }
349
327
  },
@@ -363,31 +341,31 @@ const TOOL_DEFINITIONS = [
363
341
  paramsSchema: {
364
342
  organizationSlug: ParamOrganizationSlug.optional(),
365
343
  regionUrl: ParamRegionUrl.optional(),
366
- projectSlug: z.string().describe("The project's slug.")
344
+ projectSlug: z.string().toLowerCase().describe("The project's slug.")
367
345
  }
368
346
  },
369
347
  {
370
- name: "begin_autofix",
348
+ name: "begin_seer_issue_fix",
371
349
  description: [
372
- "Analyze an issue in Sentry, identify a root cause, and suggest a fix for it.",
350
+ "Use Seer to analyze an issue in Sentry, identify a root cause, and suggest a fix for it.",
373
351
  "",
374
352
  "Use this tool when you need to:",
375
353
  "- Determine the root cause of an issue.",
376
354
  "- Generate a plan for fixing an issue.",
377
355
  "- Implement a fix for an issue.",
378
356
  "",
379
- "This operation may take some time, so you should call `get_autofix_status()` to check the status of the analysis after you begin it.",
357
+ "This operation may take some time, so you should call `get_seer_issue_fix_status()` to check the status of the analysis after you begin it.",
380
358
  "",
381
359
  "<examples>",
382
360
  "### Analyze and propose a fix for 'ISSUE-123' in Sentry",
383
361
  "",
384
362
  "```",
385
- "begin_autofix(organizationSlug='my-organization', issueId='ISSUE-123')",
363
+ "begin_seer_issue_fix(organizationSlug='my-organization', issueId='ISSUE-123')",
386
364
  "```",
387
365
  "</examples>",
388
366
  "",
389
367
  "<hints>",
390
- "- Always check to see if an autofix is in progress for before calling this tool by using `get_autofix_status()`.",
368
+ "- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.",
391
369
  "- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
392
370
  "- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
393
371
  "</hints>"
@@ -400,7 +378,7 @@ const TOOL_DEFINITIONS = [
400
378
  }
401
379
  },
402
380
  {
403
- name: "get_autofix_status",
381
+ name: "get_seer_issue_fix_status",
404
382
  description: [
405
383
  "Get the status of a root cause analysis for an issue in Sentry.",
406
384
  "",
@@ -412,7 +390,7 @@ const TOOL_DEFINITIONS = [
412
390
  "### Get the status of a fix for the 'ISSUE-123' issue",
413
391
  "",
414
392
  "```",
415
- "get_autofix_status(organizationSlug='my-organization', issueId='ISSUE-123')",
393
+ "get_seer_issue_fix_status(organizationSlug='my-organization', issueId='ISSUE-123')",
416
394
  "```",
417
395
  "",
418
396
  "</examples>",
@@ -433,4 +411,4 @@ const TOOL_DEFINITIONS = [
433
411
 
434
412
  //#endregion
435
413
  export { TOOL_DEFINITIONS };
436
- //# sourceMappingURL=toolDefinitions-CfNXEIaX.js.map
414
+ //# sourceMappingURL=toolDefinitions-BF-D81bS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolDefinitions-BF-D81bS.js","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["// TODO: this gets imported by the client code and thus is separated from server code\n// to avoid bundling issues. We'd like to find a better solution that isnt so brittle and keeps this code co-located w/ its tool calls.\nimport {\n ParamOrganizationSlug,\n ParamIssueShortId,\n ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n ParamRegionUrl,\n} from \"./schema\";\nimport { z } from \"zod\";\n\nexport const TOOL_DEFINITIONS = [\n {\n name: \"list_organizations\" as const,\n description: [\n \"List all organizations that the user has access to in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all organizations in Sentry\",\n \"- Find an organization's slug to aid other tool requests\",\n ].join(\"\\n\"),\n },\n {\n name: \"list_teams\" as const,\n description: [\n \"List all teams in an organization in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all teams in a Sentry organization\",\n \"- Find an team's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"list_projects\" as const,\n description: [\n \"Retrieve a list of projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find an project's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"list_issues\" as const,\n description: [\n \"List all issues in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all issues in a Sentry organization\",\n \"\",\n \"If you're looking for more granular data beyond a summary of identified problems, you should use the `search_errors()` or `search_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"list_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"### Find the most frequently occurring crashes in the 'my-project' project\",\n \"\",\n \"```\",\n \"list_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"first_seen\", \"count\", \"userCount\"])\n .describe(\n \"Sort the results either by the last time they occurred, the first time they occurred, the count of occurrences, or the number of users affected.\",\n )\n .optional(),\n },\n },\n {\n name: \"list_releases\" as const,\n description: [\n \"List all releases in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find recent releases in a Sentry organization\",\n \"- Find the most recent version released of a specific project\",\n \"- Determine when a release was deployed to an environment\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n },\n },\n {\n name: \"list_tags\" as const,\n description: [\n \"List all tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in searches\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"get_issue_details\" as const,\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 \"- Investigate a specific production error\",\n \"- Access detailed error information and stacktraces from Sentry\",\n \"\",\n \"<examples>\",\n \"### Get details for issue ID 'CLOUDFLARE-MCP-41'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'\",\n \"\",\n \"```\",\n \"get_event_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 \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().describe(\"The ID of the event.\").optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"search_errors\" as const,\n description: [\n \"Query Sentry for errors using advanced search syntax.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production errors in a specific file.\",\n \"- Analyze error patterns and frequencies.\",\n \"- Find recent or frequently occurring errors.\",\n \"\",\n \"<examples>\",\n \"### Find common errors within a file\",\n \"\",\n \"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.\",\n \"\",\n \"```\",\n \"search_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"search_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `list_issues()` tool\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n filename: z\n .string()\n .describe(\"The filename to search for errors in.\")\n .optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"count\"])\n .optional()\n .default(\"last_seen\")\n .describe(\n \"Sort the results either by the last time they occurred or the count of occurrences.\",\n ),\n },\n },\n {\n name: \"search_transactions\" as const,\n description: [\n \"Query Sentry for transactions using advanced search syntax.\",\n \"\",\n \"Transactions are segments of traces that are associated with a specific route or endpoint.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production transaction data to understand performance.\",\n \"- Analyze traces and latency patterns.\",\n \"- Find examples of recent requests to endpoints.\",\n \"\",\n \"<examples>\",\n \"### Find slow requests to a route\",\n \"\",\n \"...\",\n \"\",\n \"```\",\n \"search_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"timestamp\", \"duration\"])\n .optional()\n .default(\"timestamp\")\n .describe(\n \"Sort the results either by the timestamp of the request (most recent first) or the duration of the request (longest first).\",\n ),\n },\n },\n {\n name: \"create_team\" as const,\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().describe(\"The name of the team to create.\"),\n },\n },\n {\n name: \"create_project\" as const,\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new project in a Sentry organization\",\n \"\",\n \"<examples>\",\n \"### Create a new javascript project in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: z.string().toLowerCase().describe(\"The team's slug.\"),\n name: z\n .string()\n .describe(\n \"The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry.\",\n ),\n platform: ParamPlatform.optional(),\n },\n },\n {\n name: \"create_dsn\" as const,\n description: [\n \"Create a new Sentry DSN for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new DSN for a specific project\",\n \"\",\n \"<examples>\",\n \"### Create a new DSN for the 'my-project' project\",\n \"\",\n \"```\",\n \"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Default')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().toLowerCase().describe(\"The project's slug.\"),\n name: z.string().describe(\"The name of the DSN to create.\"),\n },\n },\n {\n name: \"list_dsns\" as const,\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().toLowerCase().describe(\"The project's slug.\"),\n },\n },\n {\n name: \"begin_seer_issue_fix\" as const,\n description: [\n \"Use Seer to analyze an issue in Sentry, identify a root cause, and suggest a fix for it.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Determine the root cause of an issue.\",\n \"- Generate a plan for fixing an issue.\",\n \"- Implement a fix for an issue.\",\n \"\",\n \"This operation may take some time, so you should call `get_seer_issue_fix_status()` to check the status of the analysis after you begin it.\",\n \"\",\n \"<examples>\",\n \"### Analyze and propose a fix for 'ISSUE-123' in Sentry\",\n \"\",\n \"```\",\n \"begin_seer_issue_fix(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"get_seer_issue_fix_status\" as const,\n description: [\n \"Get the status of a root cause analysis for an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the root cause analysis for an issue.\",\n \"- Get the status of a fix for an issue.\",\n \"\",\n \"<examples>\",\n \"### Get the status of a fix for the 'ISSUE-123' issue\",\n \"\",\n \"```\",\n \"get_seer_issue_fix_status(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n];\n"],"mappings":";;;;AAaA,MAAa,mBAAmB;CAC9B;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK;IAAC;IAAa;IAAc;IAAS;GAAY,EAAC,CACvD,SACC,mJACD,CACA,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;EACzC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GAEA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,SAAS,EAAE,QAAQ,CAAC,SAAS,uBAAuB,CAAC,UAAU;GAC/D,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;GACxC,UAAU,EACP,QAAQ,CACR,SAAS,wCAAwC,CACjD,UAAU;GACb,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,OAAQ,EAAC,CAC5B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,sFACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;GACxC,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,UAAW,EAAC,CAC/B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,8HACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,MAAM,EAAE,QAAQ,CAAC,SAAS,kCAAkC;EAC7D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,UAAU,EAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,mBAAmB;GAC/D,MAAM,EACH,QAAQ,CACR,SACC,oJACD;GACH,UAAU,cAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,sBAAsB;GACrE,MAAM,EAAE,QAAQ,CAAC,SAAS,iCAAiC;EAC5D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,sBAAsB;EACtE;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;AACF"}
@@ -15,8 +15,8 @@ declare const TOOL_DEFINITIONS: ({
15
15
  query?: undefined;
16
16
  sortBy?: undefined;
17
17
  issueId?: undefined;
18
- issueUrl?: undefined;
19
18
  eventId?: undefined;
19
+ issueUrl?: undefined;
20
20
  filename?: undefined;
21
21
  transaction?: undefined;
22
22
  name?: undefined;
@@ -33,8 +33,8 @@ declare const TOOL_DEFINITIONS: ({
33
33
  query?: undefined;
34
34
  sortBy?: undefined;
35
35
  issueId?: undefined;
36
- issueUrl?: undefined;
37
36
  eventId?: undefined;
37
+ issueUrl?: undefined;
38
38
  filename?: undefined;
39
39
  transaction?: undefined;
40
40
  name?: undefined;
@@ -51,8 +51,8 @@ declare const TOOL_DEFINITIONS: ({
51
51
  query: z.ZodOptional<z.ZodString>;
52
52
  sortBy: z.ZodOptional<z.ZodEnum<["last_seen", "first_seen", "count", "userCount"]>>;
53
53
  issueId?: undefined;
54
- issueUrl?: undefined;
55
54
  eventId?: undefined;
55
+ issueUrl?: undefined;
56
56
  filename?: undefined;
57
57
  transaction?: undefined;
58
58
  name?: undefined;
@@ -69,8 +69,8 @@ declare const TOOL_DEFINITIONS: ({
69
69
  query?: undefined;
70
70
  sortBy?: undefined;
71
71
  issueId?: undefined;
72
- issueUrl?: undefined;
73
72
  eventId?: undefined;
73
+ issueUrl?: undefined;
74
74
  filename?: undefined;
75
75
  transaction?: undefined;
76
76
  name?: undefined;
@@ -87,26 +87,8 @@ declare const TOOL_DEFINITIONS: ({
87
87
  query?: undefined;
88
88
  sortBy?: undefined;
89
89
  issueId?: undefined;
90
- issueUrl?: undefined;
91
- eventId?: undefined;
92
- filename?: undefined;
93
- transaction?: undefined;
94
- name?: undefined;
95
- teamSlug?: undefined;
96
- platform?: undefined;
97
- };
98
- } | {
99
- name: "get_issue_summary";
100
- description: string;
101
- paramsSchema: {
102
- organizationSlug: z.ZodOptional<z.ZodString>;
103
- regionUrl: z.ZodOptional<z.ZodString>;
104
- issueId: z.ZodOptional<z.ZodString>;
105
- issueUrl: z.ZodOptional<z.ZodString>;
106
- projectSlug?: undefined;
107
- query?: undefined;
108
- sortBy?: undefined;
109
90
  eventId?: undefined;
91
+ issueUrl?: undefined;
110
92
  filename?: undefined;
111
93
  transaction?: undefined;
112
94
  name?: undefined;
@@ -143,8 +125,8 @@ declare const TOOL_DEFINITIONS: ({
143
125
  query: z.ZodOptional<z.ZodString>;
144
126
  sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["last_seen", "count"]>>>;
145
127
  issueId?: undefined;
146
- issueUrl?: undefined;
147
128
  eventId?: undefined;
129
+ issueUrl?: undefined;
148
130
  name?: undefined;
149
131
  teamSlug?: undefined;
150
132
  platform?: undefined;
@@ -160,8 +142,8 @@ declare const TOOL_DEFINITIONS: ({
160
142
  query: z.ZodOptional<z.ZodString>;
161
143
  sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["timestamp", "duration"]>>>;
162
144
  issueId?: undefined;
163
- issueUrl?: undefined;
164
145
  eventId?: undefined;
146
+ issueUrl?: undefined;
165
147
  filename?: undefined;
166
148
  name?: undefined;
167
149
  teamSlug?: undefined;
@@ -178,8 +160,8 @@ declare const TOOL_DEFINITIONS: ({
178
160
  query?: undefined;
179
161
  sortBy?: undefined;
180
162
  issueId?: undefined;
181
- issueUrl?: undefined;
182
163
  eventId?: undefined;
164
+ issueUrl?: undefined;
183
165
  filename?: undefined;
184
166
  transaction?: undefined;
185
167
  teamSlug?: undefined;
@@ -198,8 +180,8 @@ declare const TOOL_DEFINITIONS: ({
198
180
  query?: undefined;
199
181
  sortBy?: undefined;
200
182
  issueId?: undefined;
201
- issueUrl?: undefined;
202
183
  eventId?: undefined;
184
+ issueUrl?: undefined;
203
185
  filename?: undefined;
204
186
  transaction?: undefined;
205
187
  };
@@ -214,8 +196,8 @@ declare const TOOL_DEFINITIONS: ({
214
196
  query?: undefined;
215
197
  sortBy?: undefined;
216
198
  issueId?: undefined;
217
- issueUrl?: undefined;
218
199
  eventId?: undefined;
200
+ issueUrl?: undefined;
219
201
  filename?: undefined;
220
202
  transaction?: undefined;
221
203
  teamSlug?: undefined;
@@ -231,8 +213,8 @@ declare const TOOL_DEFINITIONS: ({
231
213
  query?: undefined;
232
214
  sortBy?: undefined;
233
215
  issueId?: undefined;
234
- issueUrl?: undefined;
235
216
  eventId?: undefined;
217
+ issueUrl?: undefined;
236
218
  filename?: undefined;
237
219
  transaction?: undefined;
238
220
  name?: undefined;
@@ -240,7 +222,7 @@ declare const TOOL_DEFINITIONS: ({
240
222
  platform?: undefined;
241
223
  };
242
224
  } | {
243
- name: "begin_autofix";
225
+ name: "begin_seer_issue_fix";
244
226
  description: string;
245
227
  paramsSchema: {
246
228
  organizationSlug: z.ZodOptional<z.ZodString>;
@@ -258,7 +240,7 @@ declare const TOOL_DEFINITIONS: ({
258
240
  platform?: undefined;
259
241
  };
260
242
  } | {
261
- name: "get_autofix_status";
243
+ name: "get_seer_issue_fix_status";
262
244
  description: string;
263
245
  paramsSchema: {
264
246
  organizationSlug: z.ZodOptional<z.ZodString>;
@@ -279,4 +261,4 @@ declare const TOOL_DEFINITIONS: ({
279
261
 
280
262
  //# sourceMappingURL=toolDefinitions.d.ts.map
281
263
  export { TOOL_DEFINITIONS as TOOL_DEFINITIONS$1 };
282
- //# sourceMappingURL=toolDefinitions-abNbVXb5.d.ts.map
264
+ //# sourceMappingURL=toolDefinitions-CCscRQoM.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolDefinitions-CCscRQoM.d.ts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAaa;;EAAA,WAAA,EAAA,MAqbZ;EAAA,YAAA,CAAA,EAAA,SAAA;CAAA,GAAA;;;;oCAAA,CAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./chunk-BtT13l48.cjs');
3
- const require_schema = require('./schema-_xqdSRLo.cjs');
3
+ const require_schema = require('./schema-BCkBPgjj.cjs');
4
4
  const zod = require_chunk.__toESM(require("zod"));
5
5
 
6
6
  //#region src/toolDefinitions.ts
@@ -132,28 +132,6 @@ const TOOL_DEFINITIONS = [
132
132
  regionUrl: require_schema.ParamRegionUrl.optional()
133
133
  }
134
134
  },
135
- {
136
- name: "get_issue_summary",
137
- description: [
138
- "Retrieve a summary of an issue in Sentry.",
139
- "",
140
- "Use this tool when you need to:",
141
- "- View a summary of an issue in Sentry",
142
- "",
143
- "If the issue is an error, or you want additional information like the stacktrace, you should use `get_issue_details()` tool instead.",
144
- "",
145
- "<hints>",
146
- "- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
147
- "- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
148
- "</hints>"
149
- ].join("\n"),
150
- paramsSchema: {
151
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
152
- regionUrl: require_schema.ParamRegionUrl.optional(),
153
- issueId: require_schema.ParamIssueShortId.optional(),
154
- issueUrl: zod.z.string().url().describe("The URL of the issue to retrieve details for.").optional()
155
- }
156
- },
157
135
  {
158
136
  name: "get_issue_details",
159
137
  description: [
@@ -315,7 +293,7 @@ const TOOL_DEFINITIONS = [
315
293
  paramsSchema: {
316
294
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
317
295
  regionUrl: require_schema.ParamRegionUrl.optional(),
318
- teamSlug: zod.z.string().describe("The team's slug."),
296
+ teamSlug: zod.z.string().toLowerCase().describe("The team's slug."),
319
297
  name: zod.z.string().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
320
298
  platform: require_schema.ParamPlatform.optional()
321
299
  }
@@ -345,7 +323,7 @@ const TOOL_DEFINITIONS = [
345
323
  paramsSchema: {
346
324
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
347
325
  regionUrl: require_schema.ParamRegionUrl.optional(),
348
- projectSlug: zod.z.string().describe("The project's slug."),
326
+ projectSlug: zod.z.string().toLowerCase().describe("The project's slug."),
349
327
  name: zod.z.string().describe("The name of the DSN to create.")
350
328
  }
351
329
  },
@@ -365,31 +343,31 @@ const TOOL_DEFINITIONS = [
365
343
  paramsSchema: {
366
344
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
367
345
  regionUrl: require_schema.ParamRegionUrl.optional(),
368
- projectSlug: zod.z.string().describe("The project's slug.")
346
+ projectSlug: zod.z.string().toLowerCase().describe("The project's slug.")
369
347
  }
370
348
  },
371
349
  {
372
- name: "begin_autofix",
350
+ name: "begin_seer_issue_fix",
373
351
  description: [
374
- "Analyze an issue in Sentry, identify a root cause, and suggest a fix for it.",
352
+ "Use Seer to analyze an issue in Sentry, identify a root cause, and suggest a fix for it.",
375
353
  "",
376
354
  "Use this tool when you need to:",
377
355
  "- Determine the root cause of an issue.",
378
356
  "- Generate a plan for fixing an issue.",
379
357
  "- Implement a fix for an issue.",
380
358
  "",
381
- "This operation may take some time, so you should call `get_autofix_status()` to check the status of the analysis after you begin it.",
359
+ "This operation may take some time, so you should call `get_seer_issue_fix_status()` to check the status of the analysis after you begin it.",
382
360
  "",
383
361
  "<examples>",
384
362
  "### Analyze and propose a fix for 'ISSUE-123' in Sentry",
385
363
  "",
386
364
  "```",
387
- "begin_autofix(organizationSlug='my-organization', issueId='ISSUE-123')",
365
+ "begin_seer_issue_fix(organizationSlug='my-organization', issueId='ISSUE-123')",
388
366
  "```",
389
367
  "</examples>",
390
368
  "",
391
369
  "<hints>",
392
- "- Always check to see if an autofix is in progress for before calling this tool by using `get_autofix_status()`.",
370
+ "- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.",
393
371
  "- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
394
372
  "- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
395
373
  "</hints>"
@@ -402,7 +380,7 @@ const TOOL_DEFINITIONS = [
402
380
  }
403
381
  },
404
382
  {
405
- name: "get_autofix_status",
383
+ name: "get_seer_issue_fix_status",
406
384
  description: [
407
385
  "Get the status of a root cause analysis for an issue in Sentry.",
408
386
  "",
@@ -414,7 +392,7 @@ const TOOL_DEFINITIONS = [
414
392
  "### Get the status of a fix for the 'ISSUE-123' issue",
415
393
  "",
416
394
  "```",
417
- "get_autofix_status(organizationSlug='my-organization', issueId='ISSUE-123')",
395
+ "get_seer_issue_fix_status(organizationSlug='my-organization', issueId='ISSUE-123')",
418
396
  "```",
419
397
  "",
420
398
  "</examples>",
@@ -440,4 +418,4 @@ Object.defineProperty(exports, 'TOOL_DEFINITIONS', {
440
418
  return TOOL_DEFINITIONS;
441
419
  }
442
420
  });
443
- //# sourceMappingURL=toolDefinitions-CRtHauHJ.cjs.map
421
+ //# sourceMappingURL=toolDefinitions-CO65cU86.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolDefinitions-CO65cU86.cjs","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["// TODO: this gets imported by the client code and thus is separated from server code\n// to avoid bundling issues. We'd like to find a better solution that isnt so brittle and keeps this code co-located w/ its tool calls.\nimport {\n ParamOrganizationSlug,\n ParamIssueShortId,\n ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n ParamRegionUrl,\n} from \"./schema\";\nimport { z } from \"zod\";\n\nexport const TOOL_DEFINITIONS = [\n {\n name: \"list_organizations\" as const,\n description: [\n \"List all organizations that the user has access to in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all organizations in Sentry\",\n \"- Find an organization's slug to aid other tool requests\",\n ].join(\"\\n\"),\n },\n {\n name: \"list_teams\" as const,\n description: [\n \"List all teams in an organization in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all teams in a Sentry organization\",\n \"- Find an team's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"list_projects\" as const,\n description: [\n \"Retrieve a list of projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find an project's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"list_issues\" as const,\n description: [\n \"List all issues in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all issues in a Sentry organization\",\n \"\",\n \"If you're looking for more granular data beyond a summary of identified problems, you should use the `search_errors()` or `search_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"list_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"### Find the most frequently occurring crashes in the 'my-project' project\",\n \"\",\n \"```\",\n \"list_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"first_seen\", \"count\", \"userCount\"])\n .describe(\n \"Sort the results either by the last time they occurred, the first time they occurred, the count of occurrences, or the number of users affected.\",\n )\n .optional(),\n },\n },\n {\n name: \"list_releases\" as const,\n description: [\n \"List all releases in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find recent releases in a Sentry organization\",\n \"- Find the most recent version released of a specific project\",\n \"- Determine when a release was deployed to an environment\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n },\n },\n {\n name: \"list_tags\" as const,\n description: [\n \"List all tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in searches\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"get_issue_details\" as const,\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 \"- Investigate a specific production error\",\n \"- Access detailed error information and stacktraces from Sentry\",\n \"\",\n \"<examples>\",\n \"### Get details for issue ID 'CLOUDFLARE-MCP-41'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'\",\n \"\",\n \"```\",\n \"get_event_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 \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().describe(\"The ID of the event.\").optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"search_errors\" as const,\n description: [\n \"Query Sentry for errors using advanced search syntax.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production errors in a specific file.\",\n \"- Analyze error patterns and frequencies.\",\n \"- Find recent or frequently occurring errors.\",\n \"\",\n \"<examples>\",\n \"### Find common errors within a file\",\n \"\",\n \"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.\",\n \"\",\n \"```\",\n \"search_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"search_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.\",\n \"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `list_issues()` tool\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n filename: z\n .string()\n .describe(\"The filename to search for errors in.\")\n .optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"count\"])\n .optional()\n .default(\"last_seen\")\n .describe(\n \"Sort the results either by the last time they occurred or the count of occurrences.\",\n ),\n },\n },\n {\n name: \"search_transactions\" as const,\n description: [\n \"Query Sentry for transactions using advanced search syntax.\",\n \"\",\n \"Transactions are segments of traces that are associated with a specific route or endpoint.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production transaction data to understand performance.\",\n \"- Analyze traces and latency patterns.\",\n \"- Find examples of recent requests to endpoints.\",\n \"\",\n \"<examples>\",\n \"### Find slow requests to a route\",\n \"\",\n \"...\",\n \"\",\n \"```\",\n \"search_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"timestamp\", \"duration\"])\n .optional()\n .default(\"timestamp\")\n .describe(\n \"Sort the results either by the timestamp of the request (most recent first) or the duration of the request (longest first).\",\n ),\n },\n },\n {\n name: \"create_team\" as const,\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().describe(\"The name of the team to create.\"),\n },\n },\n {\n name: \"create_project\" as const,\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new project in a Sentry organization\",\n \"\",\n \"<examples>\",\n \"### Create a new javascript project in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: z.string().toLowerCase().describe(\"The team's slug.\"),\n name: z\n .string()\n .describe(\n \"The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry.\",\n ),\n platform: ParamPlatform.optional(),\n },\n },\n {\n name: \"create_dsn\" as const,\n description: [\n \"Create a new Sentry DSN for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new DSN for a specific project\",\n \"\",\n \"<examples>\",\n \"### Create a new DSN for the 'my-project' project\",\n \"\",\n \"```\",\n \"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Default')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().toLowerCase().describe(\"The project's slug.\"),\n name: z.string().describe(\"The name of the DSN to create.\"),\n },\n },\n {\n name: \"list_dsns\" as const,\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().toLowerCase().describe(\"The project's slug.\"),\n },\n },\n {\n name: \"begin_seer_issue_fix\" as const,\n description: [\n \"Use Seer to analyze an issue in Sentry, identify a root cause, and suggest a fix for it.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Determine the root cause of an issue.\",\n \"- Generate a plan for fixing an issue.\",\n \"- Implement a fix for an issue.\",\n \"\",\n \"This operation may take some time, so you should call `get_seer_issue_fix_status()` to check the status of the analysis after you begin it.\",\n \"\",\n \"<examples>\",\n \"### Analyze and propose a fix for 'ISSUE-123' in Sentry\",\n \"\",\n \"```\",\n \"begin_seer_issue_fix(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"get_seer_issue_fix_status\" as const,\n description: [\n \"Get the status of a root cause analysis for an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the root cause analysis for an issue.\",\n \"- Get the status of a fix for an issue.\",\n \"\",\n \"<examples>\",\n \"### Get the status of a fix for the 'ISSUE-123' issue\",\n \"\",\n \"```\",\n \"get_seer_issue_fix_status(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n];\n"],"mappings":";;;;;;AAaA,MAAa,mBAAmB;CAC9B;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,KAAK;IAAC;IAAa;IAAc;IAAS;GAAY,EAAC,CACvD,SACC,mJACD,CACA,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;EACzC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GAEA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,SAAS,MAAE,QAAQ,CAAC,SAAS,uBAAuB,CAAC,UAAU;GAC/D,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;GACxC,UAAU,MACP,QAAQ,CACR,SAAS,wCAAwC,CACjD,UAAU;GACb,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,KAAK,CAAC,aAAa,OAAQ,EAAC,CAC5B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,sFACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;GACxC,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,KAAK,CAAC,aAAa,UAAW,EAAC,CAC/B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,8HACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,MAAM,MAAE,QAAQ,CAAC,SAAS,kCAAkC;EAC7D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,UAAU,MAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,mBAAmB;GAC/D,MAAM,MACH,QAAQ,CACR,SACC,oJACD;GACH,UAAU,6BAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,MAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,sBAAsB;GACrE,MAAM,MAAE,QAAQ,CAAC,SAAS,iCAAiC;EAC5D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,MAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,sBAAsB;EACtE;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;AACF"}
@@ -15,8 +15,8 @@ declare const TOOL_DEFINITIONS: ({
15
15
  query?: undefined;
16
16
  sortBy?: undefined;
17
17
  issueId?: undefined;
18
- issueUrl?: undefined;
19
18
  eventId?: undefined;
19
+ issueUrl?: undefined;
20
20
  filename?: undefined;
21
21
  transaction?: undefined;
22
22
  name?: undefined;
@@ -33,8 +33,8 @@ declare const TOOL_DEFINITIONS: ({
33
33
  query?: undefined;
34
34
  sortBy?: undefined;
35
35
  issueId?: undefined;
36
- issueUrl?: undefined;
37
36
  eventId?: undefined;
37
+ issueUrl?: undefined;
38
38
  filename?: undefined;
39
39
  transaction?: undefined;
40
40
  name?: undefined;
@@ -51,8 +51,8 @@ declare const TOOL_DEFINITIONS: ({
51
51
  query: z.ZodOptional<z.ZodString>;
52
52
  sortBy: z.ZodOptional<z.ZodEnum<["last_seen", "first_seen", "count", "userCount"]>>;
53
53
  issueId?: undefined;
54
- issueUrl?: undefined;
55
54
  eventId?: undefined;
55
+ issueUrl?: undefined;
56
56
  filename?: undefined;
57
57
  transaction?: undefined;
58
58
  name?: undefined;
@@ -69,8 +69,8 @@ declare const TOOL_DEFINITIONS: ({
69
69
  query?: undefined;
70
70
  sortBy?: undefined;
71
71
  issueId?: undefined;
72
- issueUrl?: undefined;
73
72
  eventId?: undefined;
73
+ issueUrl?: undefined;
74
74
  filename?: undefined;
75
75
  transaction?: undefined;
76
76
  name?: undefined;
@@ -87,26 +87,8 @@ declare const TOOL_DEFINITIONS: ({
87
87
  query?: undefined;
88
88
  sortBy?: undefined;
89
89
  issueId?: undefined;
90
- issueUrl?: undefined;
91
- eventId?: undefined;
92
- filename?: undefined;
93
- transaction?: undefined;
94
- name?: undefined;
95
- teamSlug?: undefined;
96
- platform?: undefined;
97
- };
98
- } | {
99
- name: "get_issue_summary";
100
- description: string;
101
- paramsSchema: {
102
- organizationSlug: z.ZodOptional<z.ZodString>;
103
- regionUrl: z.ZodOptional<z.ZodString>;
104
- issueId: z.ZodOptional<z.ZodString>;
105
- issueUrl: z.ZodOptional<z.ZodString>;
106
- projectSlug?: undefined;
107
- query?: undefined;
108
- sortBy?: undefined;
109
90
  eventId?: undefined;
91
+ issueUrl?: undefined;
110
92
  filename?: undefined;
111
93
  transaction?: undefined;
112
94
  name?: undefined;
@@ -143,8 +125,8 @@ declare const TOOL_DEFINITIONS: ({
143
125
  query: z.ZodOptional<z.ZodString>;
144
126
  sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["last_seen", "count"]>>>;
145
127
  issueId?: undefined;
146
- issueUrl?: undefined;
147
128
  eventId?: undefined;
129
+ issueUrl?: undefined;
148
130
  name?: undefined;
149
131
  teamSlug?: undefined;
150
132
  platform?: undefined;
@@ -160,8 +142,8 @@ declare const TOOL_DEFINITIONS: ({
160
142
  query: z.ZodOptional<z.ZodString>;
161
143
  sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["timestamp", "duration"]>>>;
162
144
  issueId?: undefined;
163
- issueUrl?: undefined;
164
145
  eventId?: undefined;
146
+ issueUrl?: undefined;
165
147
  filename?: undefined;
166
148
  name?: undefined;
167
149
  teamSlug?: undefined;
@@ -178,8 +160,8 @@ declare const TOOL_DEFINITIONS: ({
178
160
  query?: undefined;
179
161
  sortBy?: undefined;
180
162
  issueId?: undefined;
181
- issueUrl?: undefined;
182
163
  eventId?: undefined;
164
+ issueUrl?: undefined;
183
165
  filename?: undefined;
184
166
  transaction?: undefined;
185
167
  teamSlug?: undefined;
@@ -198,8 +180,8 @@ declare const TOOL_DEFINITIONS: ({
198
180
  query?: undefined;
199
181
  sortBy?: undefined;
200
182
  issueId?: undefined;
201
- issueUrl?: undefined;
202
183
  eventId?: undefined;
184
+ issueUrl?: undefined;
203
185
  filename?: undefined;
204
186
  transaction?: undefined;
205
187
  };
@@ -214,8 +196,8 @@ declare const TOOL_DEFINITIONS: ({
214
196
  query?: undefined;
215
197
  sortBy?: undefined;
216
198
  issueId?: undefined;
217
- issueUrl?: undefined;
218
199
  eventId?: undefined;
200
+ issueUrl?: undefined;
219
201
  filename?: undefined;
220
202
  transaction?: undefined;
221
203
  teamSlug?: undefined;
@@ -231,8 +213,8 @@ declare const TOOL_DEFINITIONS: ({
231
213
  query?: undefined;
232
214
  sortBy?: undefined;
233
215
  issueId?: undefined;
234
- issueUrl?: undefined;
235
216
  eventId?: undefined;
217
+ issueUrl?: undefined;
236
218
  filename?: undefined;
237
219
  transaction?: undefined;
238
220
  name?: undefined;
@@ -240,7 +222,7 @@ declare const TOOL_DEFINITIONS: ({
240
222
  platform?: undefined;
241
223
  };
242
224
  } | {
243
- name: "begin_autofix";
225
+ name: "begin_seer_issue_fix";
244
226
  description: string;
245
227
  paramsSchema: {
246
228
  organizationSlug: z.ZodOptional<z.ZodString>;
@@ -258,7 +240,7 @@ declare const TOOL_DEFINITIONS: ({
258
240
  platform?: undefined;
259
241
  };
260
242
  } | {
261
- name: "get_autofix_status";
243
+ name: "get_seer_issue_fix_status";
262
244
  description: string;
263
245
  paramsSchema: {
264
246
  organizationSlug: z.ZodOptional<z.ZodString>;
@@ -279,4 +261,4 @@ declare const TOOL_DEFINITIONS: ({
279
261
 
280
262
  //# sourceMappingURL=toolDefinitions.d.ts.map
281
263
  export { TOOL_DEFINITIONS };
282
- //# sourceMappingURL=toolDefinitions-DPePAe0y.d.cts.map
264
+ //# sourceMappingURL=toolDefinitions-K_TVqaLU.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolDefinitions-K_TVqaLU.d.cts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAaa;;EAAA,WAAA,EAAA,MAqbZ;EAAA,YAAA,CAAA,EAAA,SAAA;CAAA,GAAA;;;;oCAAA,CAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- require('./schema-_xqdSRLo.cjs');
2
- const require_toolDefinitions = require('./toolDefinitions-CRtHauHJ.cjs');
1
+ require('./schema-BCkBPgjj.cjs');
2
+ const require_toolDefinitions = require('./toolDefinitions-CO65cU86.cjs');
3
3
 
4
4
  exports.TOOL_DEFINITIONS = require_toolDefinitions.TOOL_DEFINITIONS