@sentry/mcp-server 0.9.0 → 0.11.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 (258) hide show
  1. package/README.md +1 -1
  2. package/dist/api-client/client.cjs +4 -4
  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 +8 -9
  7. package/dist/api-client/client.test.cjs.map +1 -1
  8. package/dist/api-client/client.test.js +4 -4
  9. package/dist/api-client/index.cjs +40 -38
  10. package/dist/api-client/index.d.cts +4 -4
  11. package/dist/api-client/index.d.ts +4 -4
  12. package/dist/api-client/index.js +5 -5
  13. package/dist/api-client/schema.cjs +35 -33
  14. package/dist/api-client/schema.d.cts +2 -2
  15. package/dist/api-client/schema.d.ts +2 -2
  16. package/dist/api-client/schema.js +2 -2
  17. package/dist/api-client/types.cjs +1 -1
  18. package/dist/api-client/types.d.cts +3 -3
  19. package/dist/api-client/types.d.ts +3 -3
  20. package/dist/api-client/types.js +1 -1
  21. package/dist/{chunk-CsIcISPO.js → chunk-BLXvPPr8.js} +1 -1
  22. package/dist/{chunk-BtT13l48.cjs → chunk-DWy1uDak.cjs} +0 -1
  23. package/dist/{client-1dRfG57H.d.ts → client-Bxf4MxOz.d.cts} +10 -6
  24. package/dist/client-Bxf4MxOz.d.cts.map +1 -0
  25. package/dist/{client-CTm4cvI7.js → client-D5xFZtxK.js} +19 -7
  26. package/dist/client-D5xFZtxK.js.map +1 -0
  27. package/dist/{client-BsYOQsEI.d.cts → client-DOhBiaMJ.d.ts} +9 -5
  28. package/dist/client-DOhBiaMJ.d.ts.map +1 -0
  29. package/dist/{client-DQ837FXP.cjs → client-GKHZSXgV.cjs} +19 -8
  30. package/dist/client-GKHZSXgV.cjs.map +1 -0
  31. package/dist/{dist-wiyJYfAH.cjs → dist-BlIWGSIM.cjs} +318 -164
  32. package/dist/dist-BlIWGSIM.cjs.map +1 -0
  33. package/dist/{dist-BKh-M1A1.js → dist-DDpQABxe.js} +318 -163
  34. package/dist/dist-DDpQABxe.js.map +1 -0
  35. package/dist/errors-B9fwS-aP.cjs +21 -0
  36. package/dist/errors-B9fwS-aP.cjs.map +1 -0
  37. package/dist/errors-BJSrT6Ou.js +15 -0
  38. package/dist/errors-BJSrT6Ou.js.map +1 -0
  39. package/dist/errors.cjs +3 -0
  40. package/dist/errors.d.cts +12 -0
  41. package/dist/errors.d.cts.map +1 -0
  42. package/dist/errors.d.ts +12 -0
  43. package/dist/errors.d.ts.map +1 -0
  44. package/dist/errors.js +3 -0
  45. package/dist/errors.test.cjs +24 -0
  46. package/dist/errors.test.cjs.map +1 -0
  47. package/dist/errors.test.d.cts +1 -0
  48. package/dist/errors.test.d.ts +1 -0
  49. package/dist/errors.test.js +24 -0
  50. package/dist/errors.test.js.map +1 -0
  51. package/dist/{formatting-BQRAzO5v.js → formatting-BaARL2gT.js} +11 -3
  52. package/dist/formatting-BaARL2gT.js.map +1 -0
  53. package/dist/{formatting-C-0bHtbh.cjs → formatting-C2kN0ok6.cjs} +11 -4
  54. package/dist/formatting-C2kN0ok6.cjs.map +1 -0
  55. package/dist/index.cjs +19 -19
  56. package/dist/index.js +18 -17
  57. package/dist/index.js.map +1 -1
  58. package/dist/internal/formatting.cjs +4 -4
  59. package/dist/internal/formatting.d.cts +4 -5
  60. package/dist/internal/formatting.d.cts.map +1 -1
  61. package/dist/internal/formatting.d.ts +4 -5
  62. package/dist/internal/formatting.d.ts.map +1 -1
  63. package/dist/internal/formatting.js +1 -1
  64. package/dist/internal/issue-helpers.cjs +4 -4
  65. package/dist/internal/issue-helpers.d.cts +2 -2
  66. package/dist/internal/issue-helpers.d.cts.map +1 -1
  67. package/dist/internal/issue-helpers.d.ts +2 -2
  68. package/dist/internal/issue-helpers.d.ts.map +1 -1
  69. package/dist/internal/issue-helpers.js +1 -1
  70. package/dist/internal/issue-helpers.test.cjs +23 -27
  71. package/dist/internal/issue-helpers.test.cjs.map +1 -1
  72. package/dist/internal/issue-helpers.test.js +7 -10
  73. package/dist/internal/issue-helpers.test.js.map +1 -1
  74. package/dist/{issue-helpers-DbsECZFq.cjs → issue-helpers-71XgJVXC.cjs} +8 -3
  75. package/dist/issue-helpers-71XgJVXC.cjs.map +1 -0
  76. package/dist/{issue-helpers-CyoHu5j4.js → issue-helpers-CSNNO03f.js} +8 -2
  77. package/dist/issue-helpers-CSNNO03f.js.map +1 -0
  78. package/dist/{logging-BEMgC5SA.cjs → logging-ByvSjT6V.cjs} +2 -3
  79. package/dist/{logging-BEMgC5SA.cjs.map → logging-ByvSjT6V.cjs.map} +1 -1
  80. package/dist/{logging-Cxm8lQvg.js → logging-CXLD0FFB.js} +1 -1
  81. package/dist/{logging-Cxm8lQvg.js.map → logging-CXLD0FFB.js.map} +1 -1
  82. package/dist/logging.cjs +2 -2
  83. package/dist/logging.d.cts +1 -2
  84. package/dist/logging.d.cts.map +1 -1
  85. package/dist/logging.d.ts +1 -2
  86. package/dist/logging.d.ts.map +1 -1
  87. package/dist/logging.js +1 -1
  88. package/dist/{magic-string.es-m-ldRjOa.cjs → magic-string.es-CybcVAw7.cjs} +2 -3
  89. package/dist/{magic-string.es-m-ldRjOa.cjs.map → magic-string.es-CybcVAw7.cjs.map} +1 -1
  90. package/dist/{promptDefinitions-5jiZMBg5.cjs → promptDefinitions-D3ll3qCd.cjs} +6 -7
  91. package/dist/promptDefinitions-D3ll3qCd.cjs.map +1 -0
  92. package/dist/{promptDefinitions-Dcz3d9wL.d.cts → promptDefinitions-DMucOchd.d.cts} +5 -5
  93. package/dist/promptDefinitions-DMucOchd.d.cts.map +1 -0
  94. package/dist/{promptDefinitions-DrGK-v8n.d.ts → promptDefinitions-H0q1_X-K.d.ts} +6 -6
  95. package/dist/promptDefinitions-H0q1_X-K.d.ts.map +1 -0
  96. package/dist/{promptDefinitions-CPTadtuI.js → promptDefinitions-aKmUZWWO.js} +5 -5
  97. package/dist/promptDefinitions-aKmUZWWO.js.map +1 -0
  98. package/dist/promptDefinitions.cjs +3 -3
  99. package/dist/promptDefinitions.d.cts +1 -1
  100. package/dist/promptDefinitions.d.ts +1 -1
  101. package/dist/promptDefinitions.js +2 -2
  102. package/dist/{prompts-DgWOD2rU.js → prompts-CzD0yl7Z.js} +1 -1
  103. package/dist/{prompts-DgWOD2rU.js.map → prompts-CzD0yl7Z.js.map} +1 -1
  104. package/dist/{prompts-nfFU-zY-.cjs → prompts-DMwoay8l.cjs} +1 -2
  105. package/dist/{prompts-nfFU-zY-.cjs.map → prompts-DMwoay8l.cjs.map} +1 -1
  106. package/dist/prompts.cjs +2 -2
  107. package/dist/prompts.d.cts +6 -7
  108. package/dist/prompts.d.cts.map +1 -1
  109. package/dist/prompts.d.ts +6 -7
  110. package/dist/prompts.d.ts.map +1 -1
  111. package/dist/prompts.js +1 -1
  112. package/dist/{resources-BAE7VVZZ.cjs → resources-D6TW2ER0.cjs} +1 -2
  113. package/dist/{resources-BAE7VVZZ.cjs.map → resources-D6TW2ER0.cjs.map} +1 -1
  114. package/dist/{resources-OM3EAnnj.js → resources-x-GaokG8.js} +1 -1
  115. package/dist/{resources-OM3EAnnj.js.map → resources-x-GaokG8.js.map} +1 -1
  116. package/dist/resources.cjs +2 -2
  117. package/dist/resources.d.cts +0 -1
  118. package/dist/resources.d.cts.map +1 -1
  119. package/dist/resources.d.ts +0 -1
  120. package/dist/resources.d.ts.map +1 -1
  121. package/dist/resources.js +1 -1
  122. package/dist/schema-B8lT632E.cjs +77 -0
  123. package/dist/schema-B8lT632E.cjs.map +1 -0
  124. package/dist/schema-BkHf97d7.js +17 -0
  125. package/dist/schema-BkHf97d7.js.map +1 -0
  126. package/dist/{schema-CaJV2aIO.d.cts → schema-C-MLkWMc.d.ts} +385 -272
  127. package/dist/schema-C-MLkWMc.d.ts.map +1 -0
  128. package/dist/{schema-nyYqVk4Y.js → schema-CewAKS9A.js} +19 -3
  129. package/dist/schema-CewAKS9A.js.map +1 -0
  130. package/dist/{schema-KEMqYaQn.cjs → schema-DkyWSqp_.cjs} +31 -4
  131. package/dist/schema-DkyWSqp_.cjs.map +1 -0
  132. package/dist/{schema-DwPOkoSP.d.ts → schema-DqxkW9Tx.d.cts} +387 -274
  133. package/dist/schema-DqxkW9Tx.d.cts.map +1 -0
  134. package/dist/schema.cjs +11 -9
  135. package/dist/schema.d.cts +4 -3
  136. package/dist/schema.d.cts.map +1 -1
  137. package/dist/schema.d.ts +4 -3
  138. package/dist/schema.d.ts.map +1 -1
  139. package/dist/schema.js +2 -2
  140. package/dist/{server-BWoJZj5B.cjs → server-pGtEIwE3.cjs} +33 -27
  141. package/dist/server-pGtEIwE3.cjs.map +1 -0
  142. package/dist/{server-DtNbD1c-.js → server-qpWdf-ST.js} +32 -25
  143. package/dist/server-qpWdf-ST.js.map +1 -0
  144. package/dist/server.cjs +16 -15
  145. package/dist/server.d.cts +4 -5
  146. package/dist/server.d.cts.map +1 -1
  147. package/dist/server.d.ts +4 -5
  148. package/dist/server.d.ts.map +1 -1
  149. package/dist/server.js +15 -14
  150. package/dist/{stdio-D4oW-qT6.js → stdio-D8u2W847.js} +2 -2
  151. package/dist/{stdio-D4oW-qT6.js.map → stdio-D8u2W847.js.map} +1 -1
  152. package/dist/{stdio-BLzMxGqU.cjs → stdio-DydB2Pxu.cjs} +3 -4
  153. package/dist/{stdio-BLzMxGqU.cjs.map → stdio-DydB2Pxu.cjs.map} +1 -1
  154. package/dist/test-setup.cjs +1568 -1320
  155. package/dist/test-setup.cjs.map +1 -1
  156. package/dist/test-setup.js +1568 -1319
  157. package/dist/test-setup.js.map +1 -1
  158. package/dist/{toolDefinitions-BF-D81bS.js → toolDefinitions-BSC2D_S-.js} +95 -79
  159. package/dist/toolDefinitions-BSC2D_S-.js.map +1 -0
  160. package/dist/{toolDefinitions-CO65cU86.cjs → toolDefinitions-BtHN8t_d.cjs} +96 -81
  161. package/dist/toolDefinitions-BtHN8t_d.cjs.map +1 -0
  162. package/dist/{toolDefinitions-CCscRQoM.d.ts → toolDefinitions-Dp13BpEu.d.cts} +58 -26
  163. package/dist/toolDefinitions-Dp13BpEu.d.cts.map +1 -0
  164. package/dist/{toolDefinitions-K_TVqaLU.d.cts → toolDefinitions-fQrpWznJ.d.ts} +57 -25
  165. package/dist/toolDefinitions-fQrpWznJ.d.ts.map +1 -0
  166. package/dist/toolDefinitions.cjs +3 -3
  167. package/dist/toolDefinitions.d.cts +1 -1
  168. package/dist/toolDefinitions.d.ts +1 -1
  169. package/dist/toolDefinitions.js +2 -2
  170. package/dist/toolDefinitions.test.cjs +3 -4
  171. package/dist/toolDefinitions.test.cjs.map +1 -1
  172. package/dist/toolDefinitions.test.js +3 -3
  173. package/dist/{tools-B8ufMRZx.js → tools-4Rtn4WEf.js} +58 -57
  174. package/dist/tools-4Rtn4WEf.js.map +1 -0
  175. package/dist/{tools-BYt-G6p2.cjs → tools-DHHqAqP9.cjs} +59 -59
  176. package/dist/tools-DHHqAqP9.cjs.map +1 -0
  177. package/dist/tools.cjs +10 -9
  178. package/dist/tools.d.cts +55 -26
  179. package/dist/tools.d.cts.map +1 -1
  180. package/dist/tools.d.ts +55 -26
  181. package/dist/tools.d.ts.map +1 -1
  182. package/dist/tools.js +9 -8
  183. package/dist/tools.test.cjs +154 -62
  184. package/dist/tools.test.cjs.map +1 -1
  185. package/dist/tools.test.js +135 -42
  186. package/dist/tools.test.js.map +1 -1
  187. package/dist/transports/stdio.cjs +17 -16
  188. package/dist/transports/stdio.d.cts +4 -5
  189. package/dist/transports/stdio.d.cts.map +1 -1
  190. package/dist/transports/stdio.d.ts +4 -5
  191. package/dist/transports/stdio.d.ts.map +1 -1
  192. package/dist/transports/stdio.js +16 -15
  193. package/dist/{types-TaJcaAVg.d.cts → types-CbLyQvVe.d.cts} +3 -4
  194. package/dist/types-CbLyQvVe.d.cts.map +1 -0
  195. package/dist/{types-Ds7qzCBB.d.ts → types-CcffrLXB.d.cts} +5 -5
  196. package/dist/types-CcffrLXB.d.cts.map +1 -0
  197. package/dist/{types-DyM4kaGZ.d.ts → types-CfJ51LyL.d.ts} +3 -4
  198. package/dist/types-CfJ51LyL.d.ts.map +1 -0
  199. package/dist/{types-CPuN4Qmi.d.cts → types-DuUmV9zh.d.ts} +5 -5
  200. package/dist/types-DuUmV9zh.d.ts.map +1 -0
  201. package/dist/types.d.cts +3 -3
  202. package/dist/types.d.ts +3 -3
  203. package/dist/version-BT9r_3jm.js +6 -0
  204. package/dist/{version-dTEKpaGt.js.map → version-BT9r_3jm.js.map} +1 -1
  205. package/dist/{version-B0O4KvZ9.cjs → version-CRzAHHGZ.cjs} +2 -3
  206. package/dist/{version-B0O4KvZ9.cjs.map → version-CRzAHHGZ.cjs.map} +1 -1
  207. package/dist/version.cjs +2 -2
  208. package/dist/version.d.cts +1 -2
  209. package/dist/version.d.cts.map +1 -1
  210. package/dist/version.d.ts +1 -2
  211. package/dist/version.d.ts.map +1 -1
  212. package/dist/version.js +1 -1
  213. package/dist/{vi.ClIskdbk-De9q3829.js → vi.bdSIJ99Y-BfJr7I2s.js} +241 -171
  214. package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +1 -0
  215. package/dist/{vi.ClIskdbk-Bs263gvI.cjs → vi.bdSIJ99Y-Dft_B_Ta.cjs} +243 -182
  216. package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +1 -0
  217. package/package.json +8 -8
  218. package/dist/client-1dRfG57H.d.ts.map +0 -1
  219. package/dist/client-BsYOQsEI.d.cts.map +0 -1
  220. package/dist/client-CTm4cvI7.js.map +0 -1
  221. package/dist/client-DQ837FXP.cjs.map +0 -1
  222. package/dist/dist-BKh-M1A1.js.map +0 -1
  223. package/dist/dist-wiyJYfAH.cjs.map +0 -1
  224. package/dist/formatting-BQRAzO5v.js.map +0 -1
  225. package/dist/formatting-C-0bHtbh.cjs.map +0 -1
  226. package/dist/issue-helpers-CyoHu5j4.js.map +0 -1
  227. package/dist/issue-helpers-DbsECZFq.cjs.map +0 -1
  228. package/dist/promptDefinitions-5jiZMBg5.cjs.map +0 -1
  229. package/dist/promptDefinitions-CPTadtuI.js.map +0 -1
  230. package/dist/promptDefinitions-Dcz3d9wL.d.cts.map +0 -1
  231. package/dist/promptDefinitions-DrGK-v8n.d.ts.map +0 -1
  232. package/dist/schema-BCkBPgjj.cjs +0 -64
  233. package/dist/schema-BCkBPgjj.cjs.map +0 -1
  234. package/dist/schema-CJrk_GUH.js +0 -15
  235. package/dist/schema-CJrk_GUH.js.map +0 -1
  236. package/dist/schema-CaJV2aIO.d.cts.map +0 -1
  237. package/dist/schema-DwPOkoSP.d.ts.map +0 -1
  238. package/dist/schema-KEMqYaQn.cjs.map +0 -1
  239. package/dist/schema-nyYqVk4Y.js.map +0 -1
  240. package/dist/server-BWoJZj5B.cjs.map +0 -1
  241. package/dist/server-DtNbD1c-.js.map +0 -1
  242. package/dist/toolDefinitions-BF-D81bS.js.map +0 -1
  243. package/dist/toolDefinitions-CCscRQoM.d.ts.map +0 -1
  244. package/dist/toolDefinitions-CO65cU86.cjs.map +0 -1
  245. package/dist/toolDefinitions-K_TVqaLU.d.cts.map +0 -1
  246. package/dist/tools-B8ufMRZx.js.map +0 -1
  247. package/dist/tools-BYt-G6p2.cjs.map +0 -1
  248. package/dist/types-CPuN4Qmi.d.cts.map +0 -1
  249. package/dist/types-Ds7qzCBB.d.ts.map +0 -1
  250. package/dist/types-DyM4kaGZ.d.ts.map +0 -1
  251. package/dist/types-TaJcaAVg.d.cts.map +0 -1
  252. package/dist/version-dTEKpaGt.js +0 -6
  253. package/dist/vi.ClIskdbk-Bs263gvI.cjs.map +0 -1
  254. package/dist/vi.ClIskdbk-De9q3829.js.map +0 -1
  255. /package/dist/{api-client-9mzrj2HY.js → api-client-CL1WDkw9.cjs} +0 -0
  256. /package/dist/{api-client-CEBuz3Zu.cjs → api-client-CNv_hbPO.js} +0 -0
  257. /package/dist/{types-H-TSmRpm.js → types-6zHoEWAx.js} +0 -0
  258. /package/dist/{types-o3zWarRp.cjs → types-MYBaygjr.cjs} +0 -0
@@ -1,89 +1,90 @@
1
- "use strict";
2
- const require_chunk = require('./chunk-BtT13l48.cjs');
3
- const require_schema = require('./schema-BCkBPgjj.cjs');
1
+ const require_chunk = require('./chunk-DWy1uDak.cjs');
2
+ const require_schema = require('./schema-B8lT632E.cjs');
4
3
  const zod = require_chunk.__toESM(require("zod"));
5
4
 
6
5
  //#region src/toolDefinitions.ts
7
6
  const TOOL_DEFINITIONS = [
8
7
  {
9
- name: "list_organizations",
8
+ name: "whoami",
10
9
  description: [
11
- "List all organizations that the user has access to in Sentry.",
10
+ "Identify the authenticated user in Sentry.",
11
+ "",
12
+ "Use this tool when you need to:",
13
+ "- Get the user's name and email address."
14
+ ].join("\n"),
15
+ paramsSchema: { regionUrl: require_schema.ParamRegionUrl.optional() }
16
+ },
17
+ {
18
+ name: "find_organizations",
19
+ description: [
20
+ "Find organizations that the user has access to in Sentry.",
12
21
  "",
13
22
  "Use this tool when you need to:",
14
23
  "- View all organizations in Sentry",
15
24
  "- Find an organization's slug to aid other tool requests"
16
- ].join("\n")
25
+ ].join("\n"),
26
+ paramsSchema: { regionUrl: require_schema.ParamRegionUrl.optional() }
17
27
  },
18
28
  {
19
- name: "list_teams",
29
+ name: "find_teams",
20
30
  description: [
21
- "List all teams in an organization in Sentry.",
31
+ "Find teams in an organization in Sentry.",
22
32
  "",
23
33
  "Use this tool when you need to:",
24
34
  "- View all teams in a Sentry organization",
25
- "- Find an team's slug to aid other tool requests",
26
- "",
27
- "<hints>",
28
- "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
29
- "</hints>"
35
+ "- Find a team's slug to aid other tool requests"
30
36
  ].join("\n"),
31
37
  paramsSchema: {
32
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
38
+ organizationSlug: require_schema.ParamOrganizationSlug,
33
39
  regionUrl: require_schema.ParamRegionUrl.optional()
34
40
  }
35
41
  },
36
42
  {
37
- name: "list_projects",
43
+ name: "find_projects",
38
44
  description: [
39
- "Retrieve a list of projects in Sentry.",
45
+ "Find projects in Sentry.",
40
46
  "",
41
47
  "Use this tool when you need to:",
42
48
  "- View all projects in a Sentry organization",
43
- "- Find an project's slug to aid other tool requests",
44
- "",
45
- "<hints>",
46
- "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
47
- "</hints>"
49
+ "- Find a project's slug to aid other tool requests"
48
50
  ].join("\n"),
49
51
  paramsSchema: {
50
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
52
+ organizationSlug: require_schema.ParamOrganizationSlug,
51
53
  regionUrl: require_schema.ParamRegionUrl.optional()
52
54
  }
53
55
  },
54
56
  {
55
- name: "list_issues",
57
+ name: "find_issues",
56
58
  description: [
57
- "List all issues in Sentry.",
59
+ "Find issues in Sentry.",
58
60
  "",
59
61
  "Use this tool when you need to:",
60
62
  "- View all issues in a Sentry organization",
61
63
  "",
62
- "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.",
64
+ "If you're looking for more granular data beyond a summary of identified problems, you should use the `find_errors()` or `find_transactions()` tools instead.",
63
65
  "",
64
66
  "<examples>",
65
67
  "### Find the newest unresolved issues across 'my-organization'",
66
68
  "",
67
69
  "```",
68
- "list_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')",
70
+ "find_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')",
69
71
  "```",
70
72
  "",
71
73
  "### Find the most frequently occurring crashes in the 'my-project' project",
72
74
  "",
73
75
  "```",
74
- "list_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')",
76
+ "find_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')",
75
77
  "```",
76
78
  "",
77
79
  "</examples>",
78
80
  "",
79
81
  "<hints>",
80
82
  "- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
81
- "- 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.",
82
- "- You can use the `list_tags()` tool to see what user-defined tags are available.",
83
+ "- You can use the `find_tags()` tool to see what user-defined tags are available.",
83
84
  "</hints>"
84
85
  ].join("\n"),
85
86
  paramsSchema: {
86
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
87
+ organizationSlug: require_schema.ParamOrganizationSlug,
87
88
  regionUrl: require_schema.ParamRegionUrl.optional(),
88
89
  projectSlug: require_schema.ParamProjectSlug.optional(),
89
90
  query: require_schema.ParamQuery.optional(),
@@ -96,39 +97,50 @@ const TOOL_DEFINITIONS = [
96
97
  }
97
98
  },
98
99
  {
99
- name: "list_releases",
100
+ name: "find_releases",
100
101
  description: [
101
- "List all releases in Sentry.",
102
+ "Find releases in Sentry.",
102
103
  "",
103
104
  "Use this tool when you need to:",
104
105
  "- Find recent releases in a Sentry organization",
105
106
  "- Find the most recent version released of a specific project",
106
107
  "- Determine when a release was deployed to an environment",
108
+ "",
109
+ "<examples>",
110
+ "### Find the most recent releases in the 'my-organization' organization",
111
+ "",
112
+ "```",
113
+ "find_releases(organizationSlug='my-organization')",
114
+ "```",
115
+ "",
116
+ "### Find releases matching '2ce6a27' in the 'my-organization' organization",
117
+ "",
118
+ "```",
119
+ "find_releases(organizationSlug='my-organization', query='2ce6a27')",
120
+ "```",
121
+ "</examples>",
122
+ "",
107
123
  "<hints>",
108
124
  "- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
109
- "- 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.",
110
125
  "</hints>"
111
126
  ].join("\n"),
112
127
  paramsSchema: {
113
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
128
+ organizationSlug: require_schema.ParamOrganizationSlug,
114
129
  regionUrl: require_schema.ParamRegionUrl.optional(),
115
- projectSlug: require_schema.ParamProjectSlug.optional()
130
+ projectSlug: require_schema.ParamProjectSlugOrAll.optional(),
131
+ query: zod.z.string().trim().describe("Search for versions which contain the provided string.").optional()
116
132
  }
117
133
  },
118
134
  {
119
- name: "list_tags",
135
+ name: "find_tags",
120
136
  description: [
121
- "List all tags in Sentry.",
137
+ "Find tags in Sentry.",
122
138
  "",
123
139
  "Use this tool when you need to:",
124
- "- Find tags available to use in searches",
125
- "",
126
- "<hints>",
127
- "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
128
- "</hints>"
140
+ "- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)"
129
141
  ].join("\n"),
130
142
  paramsSchema: {
131
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
143
+ organizationSlug: require_schema.ParamOrganizationSlug,
132
144
  regionUrl: require_schema.ParamRegionUrl.optional()
133
145
  }
134
146
  },
@@ -157,21 +169,20 @@ const TOOL_DEFINITIONS = [
157
169
  "<hints>",
158
170
  "- If the user provides the `issueUrl`, you can ignore the other parameters.",
159
171
  "- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.",
160
- "- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
161
172
  "</hints>"
162
173
  ].join("\n"),
163
174
  paramsSchema: {
164
175
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
165
176
  regionUrl: require_schema.ParamRegionUrl.optional(),
166
177
  issueId: require_schema.ParamIssueShortId.optional(),
167
- eventId: zod.z.string().describe("The ID of the event.").optional(),
168
- issueUrl: zod.z.string().url().describe("The URL of the issue to retrieve details for.").optional()
178
+ eventId: zod.z.string().trim().describe("The ID of the event.").optional(),
179
+ issueUrl: require_schema.ParamIssueUrl.optional()
169
180
  }
170
181
  },
171
182
  {
172
- name: "search_errors",
183
+ name: "find_errors",
173
184
  description: [
174
- "Query Sentry for errors using advanced search syntax.",
185
+ "Find errors in Sentry using advanced search syntax.",
175
186
  "",
176
187
  "Use this tool when you need to:",
177
188
  "- Search for production errors in a specific file.",
@@ -184,38 +195,38 @@ const TOOL_DEFINITIONS = [
184
195
  "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.",
185
196
  "",
186
197
  "```",
187
- "search_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')",
198
+ "find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')",
188
199
  "```",
189
200
  "",
190
201
  "### Find recent crashes from the 'peated' project",
191
202
  "",
192
203
  "```",
193
- "search_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')",
204
+ "find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')",
194
205
  "```",
195
206
  "",
196
207
  "</examples>",
197
208
  "",
198
209
  "<hints>",
199
210
  "- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
200
- "- 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.",
201
- "- 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",
202
- "- You can use the `list_tags()` tool to see what user-defined tags are available.",
211
+ "- 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 `find_organizations()` first.",
212
+ "- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `find_issues()` tool",
213
+ "- You can use the `find_tags()` tool to see what user-defined tags are available.",
203
214
  "</hints>"
204
215
  ].join("\n"),
205
216
  paramsSchema: {
206
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
217
+ organizationSlug: require_schema.ParamOrganizationSlug,
207
218
  regionUrl: require_schema.ParamRegionUrl.optional(),
208
- projectSlug: require_schema.ParamProjectSlug.optional(),
209
- filename: zod.z.string().describe("The filename to search for errors in.").optional(),
219
+ projectSlug: require_schema.ParamProjectSlugOrAll.optional(),
220
+ filename: zod.z.string().trim().describe("The filename to search for errors in.").optional(),
210
221
  transaction: require_schema.ParamTransaction.optional(),
211
222
  query: require_schema.ParamQuery.optional(),
212
223
  sortBy: zod.z.enum(["last_seen", "count"]).optional().default("last_seen").describe("Sort the results either by the last time they occurred or the count of occurrences.")
213
224
  }
214
225
  },
215
226
  {
216
- name: "search_transactions",
227
+ name: "find_transactions",
217
228
  description: [
218
- "Query Sentry for transactions using advanced search syntax.",
229
+ "Find transactions in Sentry using advanced search syntax.",
219
230
  "",
220
231
  "Transactions are segments of traces that are associated with a specific route or endpoint.",
221
232
  "",
@@ -230,21 +241,21 @@ const TOOL_DEFINITIONS = [
230
241
  "...",
231
242
  "",
232
243
  "```",
233
- "search_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')",
244
+ "find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')",
234
245
  "```",
235
246
  "",
236
247
  "</examples>",
237
248
  "",
238
249
  "<hints>",
239
250
  "- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
240
- "- 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.",
241
- "- You can use the `list_tags()` tool to see what user-defined tags are available.",
251
+ "- 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 `find_organizations()` first.",
252
+ "- You can use the `find_tags()` tool to see what user-defined tags are available.",
242
253
  "</hints>"
243
254
  ].join("\n"),
244
255
  paramsSchema: {
245
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
256
+ organizationSlug: require_schema.ParamOrganizationSlug,
246
257
  regionUrl: require_schema.ParamRegionUrl.optional(),
247
- projectSlug: require_schema.ParamProjectSlug.optional(),
258
+ projectSlug: require_schema.ParamProjectSlugOrAll.optional(),
248
259
  transaction: require_schema.ParamTransaction.optional(),
249
260
  query: require_schema.ParamQuery.optional(),
250
261
  sortBy: zod.z.enum(["timestamp", "duration"]).optional().default("timestamp").describe("Sort the results either by the timestamp of the request (most recent first) or the duration of the request (longest first).")
@@ -255,6 +266,8 @@ const TOOL_DEFINITIONS = [
255
266
  description: [
256
267
  "Create a new team in Sentry.",
257
268
  "",
269
+ "Be careful when using this tool!",
270
+ "",
258
271
  "Use this tool when you need to:",
259
272
  "- Create a new team in a Sentry organization",
260
273
  "",
@@ -263,9 +276,9 @@ const TOOL_DEFINITIONS = [
263
276
  "</hints>"
264
277
  ].join("\n"),
265
278
  paramsSchema: {
266
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
279
+ organizationSlug: require_schema.ParamOrganizationSlug,
267
280
  regionUrl: require_schema.ParamRegionUrl.optional(),
268
- name: zod.z.string().describe("The name of the team to create.")
281
+ name: zod.z.string().trim().describe("The name of the team to create.")
269
282
  }
270
283
  },
271
284
  {
@@ -273,6 +286,8 @@ const TOOL_DEFINITIONS = [
273
286
  description: [
274
287
  "Create a new project in Sentry, giving you access to a new SENTRY_DSN.",
275
288
  "",
289
+ "Be careful when using this tool!",
290
+ "",
276
291
  "Use this tool when you need to:",
277
292
  "- Create a new project in a Sentry organization",
278
293
  "",
@@ -291,10 +306,10 @@ const TOOL_DEFINITIONS = [
291
306
  "</hints>"
292
307
  ].join("\n"),
293
308
  paramsSchema: {
294
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
309
+ organizationSlug: require_schema.ParamOrganizationSlug,
295
310
  regionUrl: require_schema.ParamRegionUrl.optional(),
296
- teamSlug: zod.z.string().toLowerCase().describe("The team's slug."),
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."),
311
+ teamSlug: require_schema.ParamTeamSlug,
312
+ name: zod.z.string().trim().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."),
298
313
  platform: require_schema.ParamPlatform.optional()
299
314
  }
300
315
  },
@@ -303,6 +318,8 @@ const TOOL_DEFINITIONS = [
303
318
  description: [
304
319
  "Create a new Sentry DSN for a specific project.",
305
320
  "",
321
+ "Be careful when using this tool!",
322
+ "",
306
323
  "Use this tool when you need to:",
307
324
  "- Create a new DSN for a specific project",
308
325
  "",
@@ -310,7 +327,7 @@ const TOOL_DEFINITIONS = [
310
327
  "### Create a new DSN for the 'my-project' project",
311
328
  "",
312
329
  "```",
313
- "create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Default')",
330
+ "create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Production')",
314
331
  "```",
315
332
  "",
316
333
  "</examples>",
@@ -321,14 +338,14 @@ const TOOL_DEFINITIONS = [
321
338
  "</hints>"
322
339
  ].join("\n"),
323
340
  paramsSchema: {
324
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
341
+ organizationSlug: require_schema.ParamOrganizationSlug,
325
342
  regionUrl: require_schema.ParamRegionUrl.optional(),
326
- projectSlug: zod.z.string().toLowerCase().describe("The project's slug."),
327
- name: zod.z.string().describe("The name of the DSN to create.")
343
+ projectSlug: require_schema.ParamProjectSlug,
344
+ name: zod.z.string().trim().describe("The name of the DSN to create, for example 'Production'.")
328
345
  }
329
346
  },
330
347
  {
331
- name: "list_dsns",
348
+ name: "find_dsns",
332
349
  description: [
333
350
  "List all Sentry DSNs for a specific project.",
334
351
  "",
@@ -337,13 +354,13 @@ const TOOL_DEFINITIONS = [
337
354
  "",
338
355
  "<hints>",
339
356
  "- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
340
- "- 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.",
357
+ "- 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 `find_organizations()` first.",
341
358
  "</hints>"
342
359
  ].join("\n"),
343
360
  paramsSchema: {
344
- organizationSlug: require_schema.ParamOrganizationSlug.optional(),
361
+ organizationSlug: require_schema.ParamOrganizationSlug,
345
362
  regionUrl: require_schema.ParamRegionUrl.optional(),
346
- projectSlug: zod.z.string().toLowerCase().describe("The project's slug.")
363
+ projectSlug: require_schema.ParamProjectSlug
347
364
  }
348
365
  },
349
366
  {
@@ -369,14 +386,13 @@ const TOOL_DEFINITIONS = [
369
386
  "<hints>",
370
387
  "- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.",
371
388
  "- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
372
- "- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
373
389
  "</hints>"
374
390
  ].join("\n"),
375
391
  paramsSchema: {
376
392
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
377
393
  regionUrl: require_schema.ParamRegionUrl.optional(),
378
394
  issueId: require_schema.ParamIssueShortId.optional(),
379
- issueUrl: zod.z.string().url().describe("The URL of the issue to retrieve details for.").optional()
395
+ issueUrl: require_schema.ParamIssueUrl.optional()
380
396
  }
381
397
  },
382
398
  {
@@ -399,14 +415,13 @@ const TOOL_DEFINITIONS = [
399
415
  "",
400
416
  "<hints>",
401
417
  "- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
402
- "- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
403
418
  "</hints>"
404
419
  ].join("\n"),
405
420
  paramsSchema: {
406
421
  organizationSlug: require_schema.ParamOrganizationSlug.optional(),
407
422
  regionUrl: require_schema.ParamRegionUrl.optional(),
408
423
  issueId: require_schema.ParamIssueShortId.optional(),
409
- issueUrl: zod.z.string().url().describe("The URL of the issue to retrieve details for.").optional()
424
+ issueUrl: require_schema.ParamIssueUrl.optional()
410
425
  }
411
426
  }
412
427
  ];
@@ -418,4 +433,4 @@ Object.defineProperty(exports, 'TOOL_DEFINITIONS', {
418
433
  return TOOL_DEFINITIONS;
419
434
  }
420
435
  });
421
- //# sourceMappingURL=toolDefinitions-CO65cU86.cjs.map
436
+ //# sourceMappingURL=toolDefinitions-BtHN8t_d.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolDefinitions-BtHN8t_d.cjs","names":["ParamOrganizationSlug","ParamTeamSlug","ParamProjectSlug"],"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 ParamProjectSlugOrAll,\n ParamIssueUrl,\n ParamTeamSlug,\n} from \"./schema\";\nimport { z } from \"zod\";\n\nexport const TOOL_DEFINITIONS = [\n {\n name: \"whoami\" as const,\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n paramsSchema: {\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"find_organizations\" as const,\n description: [\n \"Find 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 paramsSchema: {\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"find_teams\" as const,\n description: [\n \"Find 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 a team's slug to aid other tool requests\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"find_projects\" as const,\n description: [\n \"Find projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find a project's slug to aid other tool requests\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"find_issues\" as const,\n description: [\n \"Find 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 `find_errors()` or `find_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"find_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 \"find_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 \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\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: \"find_releases\" as const,\n description: [\n \"Find 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 \"\",\n \"<examples>\",\n \"### Find the most recent releases in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"find_releases(organizationSlug='my-organization')\",\n \"```\",\n \"\",\n \"### Find releases matching '2ce6a27' in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"find_releases(organizationSlug='my-organization', query='2ce6a27')\",\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 \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n query: z\n .string()\n .trim()\n .describe(\"Search for versions which contain the provided string.\")\n .optional(),\n },\n },\n {\n name: \"find_tags\" as const,\n description: [\n \"Find tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\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 \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\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 },\n {\n name: \"find_errors\" as const,\n description: [\n \"Find errors in Sentry 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 \"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"find_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 `find_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 `find_issues()` tool\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n filename: z\n .string()\n .trim()\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: \"find_transactions\" as const,\n description: [\n \"Find transactions in Sentry 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 \"find_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 `find_organizations()` first.\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.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 \"Be careful when using this tool!\",\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,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().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 \"Be careful when using this tool!\",\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,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\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 \"Be careful when using this tool!\",\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='Production')\",\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,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z\n .string()\n .trim()\n .describe(\"The name of the DSN to create, for example 'Production'.\"),\n },\n },\n {\n name: \"find_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 `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\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 \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.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 \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n },\n];\n"],"mappings":";;;;;AAgBA,MAAa,mBAAmB;CAC9B;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,WAAW,8BAAe,UAAU,CACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,WAAW,8BAAe,UAAU,CACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBA;GAClB,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBA;GAClB,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;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAa,qCAAsB,UAAU;GAC7C,OAAO,MACJ,QAAQ,CACR,MAAM,CACN,SAAS,yDAAyD,CAClE,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBA;GAClB,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,SAAS,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;GACtE,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;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAa,qCAAsB,UAAU;GAC7C,UAAU,MACP,QAAQ,CACR,MAAM,CACN,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,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAa,qCAAsB,UAAU;GAC7C,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;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,MAAM,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;EACpE;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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,UAAUC;GACV,MAAM,MACH,QAAQ,CACR,MAAM,CACN,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;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBD;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAaE;GACb,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SAAS,2DAA2D;EACxE;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBF;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAaE;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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,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,SAAS,iCAAkB,UAAU;GACrC,UAAU,6BAAc,UAAU;EACnC;CACF;AACF"}