@sentry/mcp-server 0.18.0 → 0.19.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 (809) hide show
  1. package/README.md +19 -10
  2. package/dist/{agent-DD6nYWBQ.d.cts → agent-ADO0sPxf.d.cts} +2 -2
  3. package/dist/{agent-DD6nYWBQ.d.cts.map → agent-ADO0sPxf.d.cts.map} +1 -1
  4. package/dist/{agent-DAlB2lDx.d.cts → agent-BA98dlM7.d.cts} +2 -2
  5. package/dist/{agent-DAlB2lDx.d.cts.map → agent-BA98dlM7.d.cts.map} +1 -1
  6. package/dist/{agent-CP5e4nTv.js → agent-BL7Xae0U.js} +6 -6
  7. package/dist/{agent-CP5e4nTv.js.map → agent-BL7Xae0U.js.map} +1 -1
  8. package/dist/{agent-D9xBrLvD.cjs → agent-CbJ6lvV3.cjs} +5 -5
  9. package/dist/{agent-D9xBrLvD.cjs.map → agent-CbJ6lvV3.cjs.map} +1 -1
  10. package/dist/{agent-BF4d0oSb.cjs → agent-D7MuFRwE.cjs} +6 -6
  11. package/dist/{agent-BF4d0oSb.cjs.map → agent-D7MuFRwE.cjs.map} +1 -1
  12. package/dist/{agent-xEtb_OFK.d.ts → agent-D9DV11tZ.d.ts} +4 -4
  13. package/dist/{agent-xEtb_OFK.d.ts.map → agent-D9DV11tZ.d.ts.map} +1 -1
  14. package/dist/{agent-DzpIyyqs.js → agent-DXya3Bcy.js} +5 -5
  15. package/dist/{agent-DzpIyyqs.js.map → agent-DXya3Bcy.js.map} +1 -1
  16. package/dist/{agent-UxF0J0wb.d.ts → agent-DhHtOQmP.d.ts} +6 -6
  17. package/dist/{agent-UxF0J0wb.d.ts.map → agent-DhHtOQmP.d.ts.map} +1 -1
  18. package/dist/{analyze-issue-with-seer-Cf0jCiKP.cjs → analyze-issue-with-seer-CI8pvCnf.cjs} +16 -11
  19. package/dist/analyze-issue-with-seer-CI8pvCnf.cjs.map +1 -0
  20. package/dist/{analyze-issue-with-seer-DqwczSTV.js → analyze-issue-with-seer-DvuKEcbu.js} +16 -11
  21. package/dist/analyze-issue-with-seer-DvuKEcbu.js.map +1 -0
  22. package/dist/{api-D9yO5I-i.cjs → api-CZD9zwQ-.cjs} +4 -4
  23. package/dist/{api-D9yO5I-i.cjs.map → api-CZD9zwQ-.cjs.map} +1 -1
  24. package/dist/{api-mjnGhOW2.js → api-CkLTFexT.js} +4 -4
  25. package/dist/{api-mjnGhOW2.js.map → api-CkLTFexT.js.map} +1 -1
  26. package/dist/api-client/client.cjs +5 -4
  27. package/dist/api-client/client.d.cts +3 -3
  28. package/dist/api-client/client.d.ts +3 -3
  29. package/dist/api-client/client.js +5 -4
  30. package/dist/api-client/errors.cjs +1 -1
  31. package/dist/api-client/errors.d.ts +1 -1
  32. package/dist/api-client/errors.js +1 -1
  33. package/dist/api-client/index.cjs +8 -6
  34. package/dist/api-client/index.d.cts +4 -4
  35. package/dist/api-client/index.d.ts +6 -6
  36. package/dist/api-client/index.js +8 -7
  37. package/dist/api-client/schema.cjs +2 -1
  38. package/dist/api-client/schema.d.cts +2 -2
  39. package/dist/api-client/schema.d.ts +2 -2
  40. package/dist/api-client/schema.js +2 -2
  41. package/dist/api-client/types.cjs +1 -1
  42. package/dist/api-client/types.d.cts +3 -3
  43. package/dist/api-client/types.d.ts +3 -3
  44. package/dist/api-client/types.js +1 -1
  45. package/dist/{callEmbeddedAgent-C0pC9du1.js → callEmbeddedAgent-B_BMEB_u.js} +3 -3
  46. package/dist/callEmbeddedAgent-B_BMEB_u.js.map +1 -0
  47. package/dist/{callEmbeddedAgent-BRz60bxa.cjs → callEmbeddedAgent-BaGxBAdM.cjs} +3 -3
  48. package/dist/callEmbeddedAgent-BaGxBAdM.cjs.map +1 -0
  49. package/dist/cli/parse.cjs +1 -1
  50. package/dist/cli/parse.d.cts +2 -2
  51. package/dist/cli/parse.d.cts.map +1 -1
  52. package/dist/cli/parse.d.ts +2 -2
  53. package/dist/cli/parse.d.ts.map +1 -1
  54. package/dist/cli/parse.js +1 -1
  55. package/dist/cli/resolve.cjs +3 -3
  56. package/dist/cli/resolve.d.cts +2 -2
  57. package/dist/cli/resolve.d.cts.map +1 -1
  58. package/dist/cli/resolve.d.ts +2 -2
  59. package/dist/cli/resolve.d.ts.map +1 -1
  60. package/dist/cli/resolve.js +3 -3
  61. package/dist/cli/types.d.cts +2 -2
  62. package/dist/cli/types.d.ts +2 -2
  63. package/dist/cli/usage.cjs +1 -1
  64. package/dist/cli/usage.d.cts +1 -1
  65. package/dist/cli/usage.d.ts +1 -1
  66. package/dist/cli/usage.js +1 -1
  67. package/dist/{client-AVVG7J24.cjs → client-C2TwbSm-.cjs} +75 -19
  68. package/dist/client-C2TwbSm-.cjs.map +1 -0
  69. package/dist/{client-BqrNpqZW.js → client-CWgvrDHH.js} +75 -19
  70. package/dist/client-CWgvrDHH.js.map +1 -0
  71. package/dist/{client-B0wezrpt.d.cts → client-C_fNdaX8.d.cts} +23 -11
  72. package/dist/client-C_fNdaX8.d.cts.map +1 -0
  73. package/dist/{client-D-KqRd94.d.ts → client-VVhTv_ej.d.ts} +24 -12
  74. package/dist/client-VVhTv_ej.d.ts.map +1 -0
  75. package/dist/{config-CqdBCqLx.js → config-BMC-126h.js} +1 -1
  76. package/dist/{config-CqdBCqLx.js.map → config-BMC-126h.js.map} +1 -1
  77. package/dist/{config-DsvSjPCG.cjs → config-CllFlx5w.cjs} +1 -1
  78. package/dist/{config-DsvSjPCG.cjs.map → config-CllFlx5w.cjs.map} +1 -1
  79. package/dist/{config-DFt-16ni.cjs → config-DbQP60oo.cjs} +1 -1
  80. package/dist/{config-DFt-16ni.cjs.map → config-DbQP60oo.cjs.map} +1 -1
  81. package/dist/{config-DDf8XyZs.js → config-DlhHLHjD.js} +1 -1
  82. package/dist/{config-DDf8XyZs.js.map → config-DlhHLHjD.js.map} +1 -1
  83. package/dist/constraint-helpers-Bey-Pii6.js +64 -0
  84. package/dist/constraint-helpers-Bey-Pii6.js.map +1 -0
  85. package/dist/constraint-helpers-BqcuWXad.cjs +76 -0
  86. package/dist/constraint-helpers-BqcuWXad.cjs.map +1 -0
  87. package/dist/context-storage-B8onP4Pw.cjs +69 -0
  88. package/dist/context-storage-B8onP4Pw.cjs.map +1 -0
  89. package/dist/context-storage-BRwdNVKx.js +51 -0
  90. package/dist/context-storage-BRwdNVKx.js.map +1 -0
  91. package/dist/{create-dsn-BhshlP7l.js → create-dsn-Bx2s8Bik.js} +9 -4
  92. package/dist/create-dsn-Bx2s8Bik.js.map +1 -0
  93. package/dist/{create-dsn-DaHidLhE.cjs → create-dsn-ggGt0lZf.cjs} +9 -4
  94. package/dist/create-dsn-ggGt0lZf.cjs.map +1 -0
  95. package/dist/{create-project-C3laecaU.js → create-project-C0pm6zUK.js} +11 -6
  96. package/dist/create-project-C0pm6zUK.js.map +1 -0
  97. package/dist/{create-project-xszOpGTC.cjs → create-project-CZBklXm8.cjs} +11 -6
  98. package/dist/create-project-CZBklXm8.cjs.map +1 -0
  99. package/dist/{create-team-CTN-DxOE.js → create-team-BQIns3VD.js} +9 -4
  100. package/dist/create-team-BQIns3VD.js.map +1 -0
  101. package/dist/{create-team-DmnJHSIx.cjs → create-team-DmqKw2c1.cjs} +9 -4
  102. package/dist/create-team-DmqKw2c1.cjs.map +1 -0
  103. package/dist/{dataset-fields-DacS0qF0.cjs → dataset-fields-C0m-vwNH.cjs} +2 -2
  104. package/dist/{dataset-fields-DacS0qF0.cjs.map → dataset-fields-C0m-vwNH.cjs.map} +1 -1
  105. package/dist/{dataset-fields-By43SxJp.js → dataset-fields-C1o_cZrM.js} +2 -2
  106. package/dist/{dataset-fields-By43SxJp.js.map → dataset-fields-C1o_cZrM.js.map} +1 -1
  107. package/dist/{enhance-error-C7AVt85N.js → enhance-error-D3QfZOhm.js} +2 -2
  108. package/dist/{enhance-error-C7AVt85N.js.map → enhance-error-D3QfZOhm.js.map} +1 -1
  109. package/dist/{enhance-error-CAREhbDf.cjs → enhance-error-DzXrKg85.cjs} +2 -2
  110. package/dist/{enhance-error-CAREhbDf.cjs.map → enhance-error-DzXrKg85.cjs.map} +1 -1
  111. package/dist/{error-handling-qfa1BeDb.cjs → error-handling-CxV2m_Dr.cjs} +5 -5
  112. package/dist/error-handling-CxV2m_Dr.cjs.map +1 -0
  113. package/dist/{error-handling-efwohgKv.js → error-handling-R4SJQ7n0.js} +5 -5
  114. package/dist/error-handling-R4SJQ7n0.js.map +1 -0
  115. package/dist/{errors-CNTY5dED.cjs → errors-Bmqdg5Q6.cjs} +1 -1
  116. package/dist/{errors-CNTY5dED.cjs.map → errors-Bmqdg5Q6.cjs.map} +1 -1
  117. package/dist/{errors-Cn4l-BlC.d.ts → errors-Bvit2_Qs.d.ts} +1 -1
  118. package/dist/{errors-Cn4l-BlC.d.ts.map → errors-Bvit2_Qs.d.ts.map} +1 -1
  119. package/dist/{errors-Dr7Q6mD5.js → errors-CQZ-QlOB.js} +1 -1
  120. package/dist/{errors-Dr7Q6mD5.js.map → errors-CQZ-QlOB.js.map} +1 -1
  121. package/dist/{errors-bxPCd8AO.d.ts → errors-JbBt1G2l.d.ts} +1 -1
  122. package/dist/{errors-bxPCd8AO.d.ts.map → errors-JbBt1G2l.d.ts.map} +1 -1
  123. package/dist/errors.d.ts +1 -1
  124. package/dist/{fetch-utils-DRWItYjp.js → fetch-utils-BetJhSli.js} +1 -1
  125. package/dist/{fetch-utils-DRWItYjp.js.map → fetch-utils-BetJhSli.js.map} +1 -1
  126. package/dist/{fetch-utils-bHWZV7j9.cjs → fetch-utils-Cp3P-Ai3.cjs} +1 -1
  127. package/dist/{fetch-utils-bHWZV7j9.cjs.map → fetch-utils-Cp3P-Ai3.cjs.map} +1 -1
  128. package/dist/{find-dsns-U4CCcoTv.js → find-dsns-BPN8wnUr.js} +7 -3
  129. package/dist/find-dsns-BPN8wnUr.js.map +1 -0
  130. package/dist/{find-dsns-D0l3siyF.cjs → find-dsns-Ct6uFZMB.cjs} +7 -3
  131. package/dist/find-dsns-Ct6uFZMB.cjs.map +1 -0
  132. package/dist/{find-organizations-Ca-zpAlI.cjs → find-organizations-BGI_WW2q.cjs} +18 -7
  133. package/dist/find-organizations-BGI_WW2q.cjs.map +1 -0
  134. package/dist/{find-organizations-HUZFa8ZA.js → find-organizations-DxH9SS3w.js} +18 -7
  135. package/dist/find-organizations-DxH9SS3w.js.map +1 -0
  136. package/dist/{find-projects-CWNLthwg.cjs → find-projects-B80qSPpP.cjs} +19 -8
  137. package/dist/find-projects-B80qSPpP.cjs.map +1 -0
  138. package/dist/{find-projects-Dy1_O9L0.js → find-projects-DOMBBYAP.js} +19 -8
  139. package/dist/find-projects-DOMBBYAP.js.map +1 -0
  140. package/dist/{find-releases-DN_BfQM2.js → find-releases-CfZRMBvh.js} +8 -4
  141. package/dist/find-releases-CfZRMBvh.js.map +1 -0
  142. package/dist/{find-releases-BtazPcQH.cjs → find-releases-Cy-Q-Qje.cjs} +8 -4
  143. package/dist/find-releases-Cy-Q-Qje.cjs.map +1 -0
  144. package/dist/{find-teams-_zAHPVGx.cjs → find-teams-BuH2ddaL.cjs} +19 -8
  145. package/dist/find-teams-BuH2ddaL.cjs.map +1 -0
  146. package/dist/find-teams-D5770X0I.js +51 -0
  147. package/dist/find-teams-D5770X0I.js.map +1 -0
  148. package/dist/{formatters-DJSiRyVi.js → formatters-B9XiCNZ_.js} +2 -2
  149. package/dist/{formatters-DJSiRyVi.js.map → formatters-B9XiCNZ_.js.map} +1 -1
  150. package/dist/{formatters-Bzx0sr5R.cjs → formatters-CkbVfXEE.cjs} +2 -2
  151. package/dist/{formatters-Bzx0sr5R.cjs.map → formatters-CkbVfXEE.cjs.map} +1 -1
  152. package/dist/{formatters-CCZdBmLd.cjs → formatters-DMlTJcHW.cjs} +2 -2
  153. package/dist/{formatters-CCZdBmLd.cjs.map → formatters-DMlTJcHW.cjs.map} +1 -1
  154. package/dist/{formatters-DJM9_F3A.js → formatters-MEWHZ83Y.js} +2 -2
  155. package/dist/{formatters-DJM9_F3A.js.map → formatters-MEWHZ83Y.js.map} +1 -1
  156. package/dist/{formatting-CfpTtZLo.js → formatting-CAQbf0su.js} +1 -1
  157. package/dist/{formatting-CfpTtZLo.js.map → formatting-CAQbf0su.js.map} +1 -1
  158. package/dist/{formatting-CqmsvuAY.cjs → formatting-Cu1Skk_Y.cjs} +444 -10
  159. package/dist/formatting-Cu1Skk_Y.cjs.map +1 -0
  160. package/dist/{formatting-BjCK9XwW.js → formatting-DytLf-hH.js} +444 -10
  161. package/dist/formatting-DytLf-hH.js.map +1 -0
  162. package/dist/{formatting-CJKoPqjy.cjs → formatting-EM76FrY3.cjs} +1 -1
  163. package/dist/{formatting-CJKoPqjy.cjs.map → formatting-EM76FrY3.cjs.map} +1 -1
  164. package/dist/{formatting-l3qx5d7L.d.ts → formatting-FJne_W9i.d.cts} +11 -6
  165. package/dist/formatting-FJne_W9i.d.cts.map +1 -0
  166. package/dist/{formatting-XMmhMjRz.d.cts → formatting-ar_6QZRE.d.ts} +11 -6
  167. package/dist/formatting-ar_6QZRE.d.ts.map +1 -0
  168. package/dist/{get-doc-JDwOkY2j.js → get-doc-D9Xq7et9.js} +8 -4
  169. package/dist/get-doc-D9Xq7et9.js.map +1 -0
  170. package/dist/{get-doc-Euz6NiM3.cjs → get-doc-MxWNTA8R.cjs} +8 -4
  171. package/dist/get-doc-MxWNTA8R.cjs.map +1 -0
  172. package/dist/{get-event-attachment-pIJmUfFE.js → get-event-attachment-B_BzSfcE.js} +7 -3
  173. package/dist/get-event-attachment-B_BzSfcE.js.map +1 -0
  174. package/dist/{get-event-attachment-DvpQ-dEP.cjs → get-event-attachment-CrtS0QRV.cjs} +7 -3
  175. package/dist/get-event-attachment-CrtS0QRV.cjs.map +1 -0
  176. package/dist/{get-issue-details-B1PDMmMY.js → get-issue-details-Bvw1Xi8I.js} +50 -10
  177. package/dist/get-issue-details-Bvw1Xi8I.js.map +1 -0
  178. package/dist/{get-issue-details-BH75EnNk.cjs → get-issue-details-DTQ-jXyu.cjs} +50 -10
  179. package/dist/get-issue-details-DTQ-jXyu.cjs.map +1 -0
  180. package/dist/{get-trace-details-CaK0JMf4.js → get-trace-details-BL5_jvgs.js} +7 -3
  181. package/dist/get-trace-details-BL5_jvgs.js.map +1 -0
  182. package/dist/{get-trace-details-Bksygq21.cjs → get-trace-details-iDp34mms.cjs} +7 -3
  183. package/dist/get-trace-details-iDp34mms.cjs.map +1 -0
  184. package/dist/{handler-DyBdUYam.js → handler-B08ITQl8.js} +10 -6
  185. package/dist/handler-B08ITQl8.js.map +1 -0
  186. package/dist/{handler-C0zOOLbO.cjs → handler-B7-KeBak.cjs} +10 -6
  187. package/dist/handler-B7-KeBak.cjs.map +1 -0
  188. package/dist/{handler-DSYbwPgv.d.cts → handler-BcRR_2MX.d.cts} +2 -2
  189. package/dist/{handler-DSYbwPgv.d.cts.map → handler-BcRR_2MX.d.cts.map} +1 -1
  190. package/dist/{handler-CcbbXK_f.d.ts → handler-CdSvAOl6.d.ts} +2 -2
  191. package/dist/{handler-CcbbXK_f.d.ts.map → handler-CdSvAOl6.d.ts.map} +1 -1
  192. package/dist/{handler-cy5oD28N.cjs → handler-DIiYPQGL.cjs} +11 -7
  193. package/dist/handler-DIiYPQGL.cjs.map +1 -0
  194. package/dist/{handler-RV4XhU8F.d.cts → handler-LaesAQaD.d.cts} +2 -2
  195. package/dist/{handler-RV4XhU8F.d.cts.map → handler-LaesAQaD.d.cts.map} +1 -1
  196. package/dist/{handler-BbqDy4DA.js → handler-nILS77E9.js} +11 -7
  197. package/dist/handler-nILS77E9.js.map +1 -0
  198. package/dist/{handler-Ct9Z_sTZ.d.ts → handler-uWae09YN.d.ts} +2 -2
  199. package/dist/{handler-Ct9Z_sTZ.d.ts.map → handler-uWae09YN.d.ts.map} +1 -1
  200. package/dist/index.cjs +72 -76
  201. package/dist/index.cjs.map +1 -1
  202. package/dist/index.js +71 -75
  203. package/dist/index.js.map +1 -1
  204. package/dist/internal/agents/callEmbeddedAgent.cjs +2 -1
  205. package/dist/internal/agents/callEmbeddedAgent.js +2 -1
  206. package/dist/internal/agents/openai-provider.cjs +4 -0
  207. package/dist/internal/agents/openai-provider.d.cts +24 -0
  208. package/dist/internal/agents/openai-provider.d.cts.map +1 -0
  209. package/dist/internal/agents/openai-provider.d.ts +24 -0
  210. package/dist/internal/agents/openai-provider.d.ts.map +1 -0
  211. package/dist/internal/agents/openai-provider.js +3 -0
  212. package/dist/internal/agents/tools/dataset-fields.cjs +9 -9
  213. package/dist/internal/agents/tools/dataset-fields.d.cts +7 -7
  214. package/dist/internal/agents/tools/dataset-fields.d.ts +9 -9
  215. package/dist/internal/agents/tools/dataset-fields.js +9 -9
  216. package/dist/internal/agents/tools/otel-semantics.cjs +9 -9
  217. package/dist/internal/agents/tools/otel-semantics.d.cts +7 -7
  218. package/dist/internal/agents/tools/otel-semantics.d.ts +9 -9
  219. package/dist/internal/agents/tools/otel-semantics.js +9 -9
  220. package/dist/internal/agents/tools/utils.cjs +8 -8
  221. package/dist/internal/agents/tools/utils.d.cts +1 -1
  222. package/dist/internal/agents/tools/utils.d.ts +1 -1
  223. package/dist/internal/agents/tools/utils.js +8 -8
  224. package/dist/internal/agents/tools/whoami.cjs +9 -9
  225. package/dist/internal/agents/tools/whoami.d.cts +7 -7
  226. package/dist/internal/agents/tools/whoami.d.ts +9 -9
  227. package/dist/internal/agents/tools/whoami.js +9 -9
  228. package/dist/internal/constraint-helpers.cjs +4 -0
  229. package/dist/internal/constraint-helpers.d.cts +53 -0
  230. package/dist/internal/constraint-helpers.d.cts.map +1 -0
  231. package/dist/internal/constraint-helpers.d.ts +53 -0
  232. package/dist/internal/constraint-helpers.d.ts.map +1 -0
  233. package/dist/internal/constraint-helpers.js +3 -0
  234. package/dist/internal/context-storage.cjs +5 -0
  235. package/dist/internal/context-storage.d.cts +48 -0
  236. package/dist/internal/context-storage.d.cts.map +1 -0
  237. package/dist/internal/context-storage.d.ts +48 -0
  238. package/dist/internal/context-storage.d.ts.map +1 -0
  239. package/dist/internal/context-storage.js +3 -0
  240. package/dist/internal/error-handling.cjs +8 -8
  241. package/dist/internal/error-handling.d.cts +3 -3
  242. package/dist/internal/error-handling.d.ts +6 -6
  243. package/dist/internal/error-handling.js +8 -8
  244. package/dist/internal/fetch-utils.cjs +1 -1
  245. package/dist/internal/fetch-utils.js +1 -1
  246. package/dist/internal/formatting.cjs +2 -2
  247. package/dist/internal/formatting.d.cts +4 -4
  248. package/dist/internal/formatting.d.ts +6 -6
  249. package/dist/internal/formatting.js +2 -2
  250. package/dist/internal/issue-helpers.cjs +1 -1
  251. package/dist/internal/issue-helpers.d.cts +1 -1
  252. package/dist/internal/issue-helpers.d.ts +1 -1
  253. package/dist/internal/issue-helpers.js +1 -1
  254. package/dist/internal/test-fixtures.cjs +12 -2
  255. package/dist/internal/test-fixtures.cjs.map +1 -1
  256. package/dist/internal/test-fixtures.d.cts +35 -2133
  257. package/dist/internal/test-fixtures.d.cts.map +1 -1
  258. package/dist/internal/test-fixtures.d.ts +35 -2133
  259. package/dist/internal/test-fixtures.d.ts.map +1 -1
  260. package/dist/internal/test-fixtures.js +12 -2
  261. package/dist/internal/test-fixtures.js.map +1 -1
  262. package/dist/internal/tool-helpers/api.cjs +9 -8
  263. package/dist/internal/tool-helpers/api.d.cts +5 -6
  264. package/dist/internal/tool-helpers/api.d.cts.map +1 -1
  265. package/dist/internal/tool-helpers/api.d.ts +7 -8
  266. package/dist/internal/tool-helpers/api.d.ts.map +1 -1
  267. package/dist/internal/tool-helpers/api.js +9 -8
  268. package/dist/internal/tool-helpers/define.d.cts +3 -4
  269. package/dist/internal/tool-helpers/define.d.cts.map +1 -1
  270. package/dist/internal/tool-helpers/define.d.ts +3 -4
  271. package/dist/internal/tool-helpers/define.d.ts.map +1 -1
  272. package/dist/internal/tool-helpers/enhance-error.cjs +8 -7
  273. package/dist/internal/tool-helpers/enhance-error.d.cts +3 -3
  274. package/dist/internal/tool-helpers/enhance-error.d.ts +5 -5
  275. package/dist/internal/tool-helpers/enhance-error.js +8 -7
  276. package/dist/internal/tool-helpers/formatting.cjs +1 -1
  277. package/dist/internal/tool-helpers/formatting.d.cts +3 -3
  278. package/dist/internal/tool-helpers/formatting.d.ts +5 -5
  279. package/dist/internal/tool-helpers/formatting.js +1 -1
  280. package/dist/internal/tool-helpers/issue.cjs +4 -4
  281. package/dist/internal/tool-helpers/issue.d.cts +5 -5
  282. package/dist/internal/tool-helpers/issue.d.ts +7 -7
  283. package/dist/internal/tool-helpers/issue.js +4 -4
  284. package/dist/internal/tool-helpers/seer.cjs +1 -1
  285. package/dist/internal/tool-helpers/seer.d.cts +3 -3
  286. package/dist/internal/tool-helpers/seer.d.ts +5 -5
  287. package/dist/internal/tool-helpers/seer.js +1 -1
  288. package/dist/internal/tool-helpers/validate-region-url.cjs +1 -1
  289. package/dist/internal/tool-helpers/validate-region-url.js +1 -1
  290. package/dist/{issue-helpers-Bjp6xu5H.js → issue-helpers-8Bubch8E.js} +1 -1
  291. package/dist/{issue-helpers-Bjp6xu5H.js.map → issue-helpers-8Bubch8E.js.map} +1 -1
  292. package/dist/{issue-helpers-Cf6mvHG1.d.cts → issue-helpers-CD46ia7_.d.cts} +1 -1
  293. package/dist/{issue-helpers-Cf6mvHG1.d.cts.map → issue-helpers-CD46ia7_.d.cts.map} +1 -1
  294. package/dist/{issue-helpers-1qxzc7ww.cjs → issue-helpers-DbPTv_qC.cjs} +1 -1
  295. package/dist/{issue-helpers-1qxzc7ww.cjs.map → issue-helpers-DbPTv_qC.cjs.map} +1 -1
  296. package/dist/{issue-helpers-kwhe1ipy.d.ts → issue-helpers-bECziPOG.d.ts} +1 -1
  297. package/dist/{issue-helpers-kwhe1ipy.d.ts.map → issue-helpers-bECziPOG.d.ts.map} +1 -1
  298. package/dist/logging-CDYnh7ho.d.cts +31 -0
  299. package/dist/logging-CDYnh7ho.d.cts.map +1 -0
  300. package/dist/logging-CkAJKyq2.cjs +298 -0
  301. package/dist/logging-CkAJKyq2.cjs.map +1 -0
  302. package/dist/logging-DqqDTe02.js +256 -0
  303. package/dist/logging-DqqDTe02.js.map +1 -0
  304. package/dist/logging-PY270KtN.d.ts +31 -0
  305. package/dist/logging-PY270KtN.d.ts.map +1 -0
  306. package/dist/openai-provider-BELCfis6.js +29 -0
  307. package/dist/openai-provider-BELCfis6.js.map +1 -0
  308. package/dist/openai-provider-CRxXeC9G.cjs +41 -0
  309. package/dist/openai-provider-CRxXeC9G.cjs.map +1 -0
  310. package/dist/{otel-semantics-BFRGhf6y.js → otel-semantics-CArUzarp.js} +2 -2
  311. package/dist/{otel-semantics-BFRGhf6y.js.map → otel-semantics-CArUzarp.js.map} +1 -1
  312. package/dist/{otel-semantics-CkUpXWEJ.cjs → otel-semantics-onvZv7i9.cjs} +2 -2
  313. package/dist/{otel-semantics-CkUpXWEJ.cjs.map → otel-semantics-onvZv7i9.cjs.map} +1 -1
  314. package/dist/{parse-C3tRlsy-.js → parse-8lpnm_2Z.js} +4 -1
  315. package/dist/parse-8lpnm_2Z.js.map +1 -0
  316. package/dist/{parse-CeFc4xnt.cjs → parse-shlhKlaL.cjs} +4 -1
  317. package/dist/parse-shlhKlaL.cjs.map +1 -0
  318. package/dist/{permissions-C-q0Y5bL.d.ts → permissions-40d2hxK-.d.ts} +2 -2
  319. package/dist/permissions-40d2hxK-.d.ts.map +1 -0
  320. package/dist/{permissions-Cm5e34n2.d.cts → permissions-B1meXGie.d.cts} +2 -2
  321. package/dist/permissions-B1meXGie.d.cts.map +1 -0
  322. package/dist/{permissions-DRdH39Fe.js → permissions-C_xHmYV4.js} +5 -3
  323. package/dist/permissions-C_xHmYV4.js.map +1 -0
  324. package/dist/{permissions-DuDYuCjy.cjs → permissions-D5kR-bZw.cjs} +5 -3
  325. package/dist/permissions-D5kR-bZw.cjs.map +1 -0
  326. package/dist/permissions.cjs +1 -1
  327. package/dist/permissions.d.cts +1 -1
  328. package/dist/permissions.d.ts +1 -1
  329. package/dist/permissions.js +1 -1
  330. package/dist/{resolve-CAtC1wN-.cjs → resolve-CBipUzux.cjs} +5 -3
  331. package/dist/resolve-CBipUzux.cjs.map +1 -0
  332. package/dist/{resolve-B_Fq13Dk.js → resolve-CZduTbDq.js} +5 -3
  333. package/dist/resolve-CZduTbDq.js.map +1 -0
  334. package/dist/{schema-ChvpDxUk.d.cts → schema-0uEmsoCr.d.ts} +2512 -211
  335. package/dist/schema-0uEmsoCr.d.ts.map +1 -0
  336. package/dist/{schema-D1CzTJXB.js → schema-CuB-30t5.js} +38 -6
  337. package/dist/schema-CuB-30t5.js.map +1 -0
  338. package/dist/{schema-BUBkkdUa.cjs → schema-Cv_VNAHz.cjs} +8 -1
  339. package/dist/schema-Cv_VNAHz.cjs.map +1 -0
  340. package/dist/{schema-CbXlt1rW.cjs → schema-DoWJbcHt.cjs} +43 -5
  341. package/dist/schema-DoWJbcHt.cjs.map +1 -0
  342. package/dist/{schema-DPJO5nkQ.js → schema-rwexXWFL.js} +3 -2
  343. package/dist/schema-rwexXWFL.js.map +1 -0
  344. package/dist/{schema-DOY22v1Q.d.ts → schema-xhCkX5uD.d.cts} +2766 -465
  345. package/dist/schema-xhCkX5uD.d.cts.map +1 -0
  346. package/dist/schema.cjs +2 -1
  347. package/dist/schema.d.cts +2 -1
  348. package/dist/schema.d.cts.map +1 -1
  349. package/dist/schema.d.ts +2 -1
  350. package/dist/schema.d.ts.map +1 -1
  351. package/dist/schema.js +2 -2
  352. package/dist/{search-docs-CpAlMLs8.js → search-docs-B9qNTw49.js} +8 -4
  353. package/dist/search-docs-B9qNTw49.js.map +1 -0
  354. package/dist/{search-docs-CH6-1H9_.cjs → search-docs-CTT1Bt1U.cjs} +8 -4
  355. package/dist/search-docs-CTT1Bt1U.cjs.map +1 -0
  356. package/dist/{seer-retC9dFI.cjs → seer-B63P5CPi.cjs} +1 -1
  357. package/dist/{seer-retC9dFI.cjs.map → seer-B63P5CPi.cjs.map} +1 -1
  358. package/dist/{seer-DLvrFQPo.js → seer-CderEQ-X.js} +1 -1
  359. package/dist/{seer-DLvrFQPo.js.map → seer-CderEQ-X.js.map} +1 -1
  360. package/dist/sentry-BhTMff8f.js +104 -0
  361. package/dist/sentry-BhTMff8f.js.map +1 -0
  362. package/dist/sentry-DZNWcvcy.d.ts +9 -0
  363. package/dist/sentry-DZNWcvcy.d.ts.map +1 -0
  364. package/dist/sentry-Da9wc8eP.cjs +110 -0
  365. package/dist/sentry-Da9wc8eP.cjs.map +1 -0
  366. package/dist/sentry-De4G2HDR.d.cts +9 -0
  367. package/dist/sentry-De4G2HDR.d.cts.map +1 -0
  368. package/dist/server-B0jJJdAd.js +157 -0
  369. package/dist/server-B0jJJdAd.js.map +1 -0
  370. package/dist/server-Bk2YVj60.cjs +163 -0
  371. package/dist/server-Bk2YVj60.cjs.map +1 -0
  372. package/dist/server.cjs +59 -61
  373. package/dist/server.d.cts +32 -19
  374. package/dist/server.d.cts.map +1 -1
  375. package/dist/server.d.ts +32 -19
  376. package/dist/server.d.ts.map +1 -1
  377. package/dist/server.js +59 -61
  378. package/dist/{stdio-CJnMOUAU.cjs → stdio-D_myxOG-.cjs} +17 -15
  379. package/dist/stdio-D_myxOG-.cjs.map +1 -0
  380. package/dist/{stdio-DB9muOi8.js → stdio-Uv0oXx1a.js} +17 -15
  381. package/dist/stdio-Uv0oXx1a.js.map +1 -0
  382. package/dist/telem/index.cjs +10 -0
  383. package/dist/telem/index.d.cts +3 -0
  384. package/dist/telem/index.d.ts +3 -0
  385. package/dist/telem/index.js +4 -0
  386. package/dist/telem/logging.cjs +9 -0
  387. package/dist/telem/logging.d.cts +2 -0
  388. package/dist/telem/logging.d.ts +2 -0
  389. package/dist/telem/logging.js +3 -0
  390. package/dist/telem/sentry.cjs +3 -0
  391. package/dist/telem/sentry.d.cts +2 -0
  392. package/dist/telem/sentry.d.ts +2 -0
  393. package/dist/telem/sentry.js +3 -0
  394. package/dist/test-setup.cjs +367 -147
  395. package/dist/test-setup.cjs.map +1 -1
  396. package/dist/test-setup.d.cts +2 -3
  397. package/dist/test-setup.d.cts.map +1 -1
  398. package/dist/test-setup.d.ts +2 -3
  399. package/dist/test-setup.d.ts.map +1 -1
  400. package/dist/test-setup.js +367 -147
  401. package/dist/test-setup.js.map +1 -1
  402. package/dist/test-utils/context.d.cts +2 -3
  403. package/dist/test-utils/context.d.cts.map +1 -1
  404. package/dist/test-utils/context.d.ts +2 -3
  405. package/dist/test-utils/context.d.ts.map +1 -1
  406. package/dist/toolDefinitions.cjs +636 -127
  407. package/dist/toolDefinitions.cjs.map +1 -1
  408. package/dist/toolDefinitions.d.cts +5 -5
  409. package/dist/toolDefinitions.d.cts.map +1 -1
  410. package/dist/toolDefinitions.d.ts +5 -5
  411. package/dist/toolDefinitions.d.ts.map +1 -1
  412. package/dist/toolDefinitions.js +636 -127
  413. package/dist/toolDefinitions.js.map +1 -1
  414. package/dist/tools/analyze-issue-with-seer.cjs +16 -15
  415. package/dist/tools/analyze-issue-with-seer.d.cts +3 -4
  416. package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -1
  417. package/dist/tools/analyze-issue-with-seer.d.ts +3 -4
  418. package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -1
  419. package/dist/tools/analyze-issue-with-seer.js +16 -15
  420. package/dist/tools/create-dsn.cjs +11 -10
  421. package/dist/tools/create-dsn.d.cts +3 -4
  422. package/dist/tools/create-dsn.d.cts.map +1 -1
  423. package/dist/tools/create-dsn.d.ts +3 -4
  424. package/dist/tools/create-dsn.d.ts.map +1 -1
  425. package/dist/tools/create-dsn.js +11 -10
  426. package/dist/tools/create-project.cjs +11 -11
  427. package/dist/tools/create-project.d.cts +3 -4
  428. package/dist/tools/create-project.d.cts.map +1 -1
  429. package/dist/tools/create-project.d.ts +3 -4
  430. package/dist/tools/create-project.d.ts.map +1 -1
  431. package/dist/tools/create-project.js +11 -11
  432. package/dist/tools/create-team.cjs +11 -10
  433. package/dist/tools/create-team.d.cts +3 -4
  434. package/dist/tools/create-team.d.cts.map +1 -1
  435. package/dist/tools/create-team.d.ts +3 -4
  436. package/dist/tools/create-team.d.ts.map +1 -1
  437. package/dist/tools/create-team.js +11 -10
  438. package/dist/tools/find-dsns.cjs +11 -10
  439. package/dist/tools/find-dsns.d.cts +7 -8
  440. package/dist/tools/find-dsns.d.ts +7 -8
  441. package/dist/tools/find-dsns.js +11 -10
  442. package/dist/tools/find-organizations.cjs +12 -9
  443. package/dist/tools/find-organizations.d.cts +7 -5
  444. package/dist/tools/find-organizations.d.ts +7 -5
  445. package/dist/tools/find-organizations.js +12 -9
  446. package/dist/tools/find-projects.cjs +11 -10
  447. package/dist/tools/find-projects.d.cts +7 -7
  448. package/dist/tools/find-projects.d.ts +7 -7
  449. package/dist/tools/find-projects.js +11 -10
  450. package/dist/tools/find-releases.cjs +11 -10
  451. package/dist/tools/find-releases.d.cts +3 -4
  452. package/dist/tools/find-releases.d.cts.map +1 -1
  453. package/dist/tools/find-releases.d.ts +3 -4
  454. package/dist/tools/find-releases.d.ts.map +1 -1
  455. package/dist/tools/find-releases.js +11 -10
  456. package/dist/tools/find-teams.cjs +11 -10
  457. package/dist/tools/find-teams.d.cts +7 -7
  458. package/dist/tools/find-teams.d.ts +7 -7
  459. package/dist/tools/find-teams.js +11 -10
  460. package/dist/tools/get-doc.cjs +9 -8
  461. package/dist/tools/get-doc.d.cts +3 -4
  462. package/dist/tools/get-doc.d.cts.map +1 -1
  463. package/dist/tools/get-doc.d.ts +3 -4
  464. package/dist/tools/get-doc.d.ts.map +1 -1
  465. package/dist/tools/get-doc.js +9 -8
  466. package/dist/tools/get-event-attachment.cjs +11 -10
  467. package/dist/tools/get-event-attachment.d.cts +9 -10
  468. package/dist/tools/get-event-attachment.d.ts +9 -10
  469. package/dist/tools/get-event-attachment.js +11 -10
  470. package/dist/tools/get-issue-details.cjs +16 -15
  471. package/dist/tools/get-issue-details.d.cts +3 -4
  472. package/dist/tools/get-issue-details.d.cts.map +1 -1
  473. package/dist/tools/get-issue-details.d.ts +3 -4
  474. package/dist/tools/get-issue-details.d.ts.map +1 -1
  475. package/dist/tools/get-issue-details.js +16 -15
  476. package/dist/tools/get-trace-details.cjs +11 -10
  477. package/dist/tools/get-trace-details.d.cts +7 -8
  478. package/dist/tools/get-trace-details.d.ts +7 -8
  479. package/dist/tools/get-trace-details.js +11 -10
  480. package/dist/tools/index.cjs +52 -51
  481. package/dist/tools/index.d.cts +79 -76
  482. package/dist/tools/index.d.cts.map +1 -1
  483. package/dist/tools/index.d.ts +79 -76
  484. package/dist/tools/index.d.ts.map +1 -1
  485. package/dist/tools/index.js +52 -51
  486. package/dist/tools/search-docs.cjs +10 -9
  487. package/dist/tools/search-docs.d.cts +3 -4
  488. package/dist/tools/search-docs.d.cts.map +1 -1
  489. package/dist/tools/search-docs.d.ts +3 -4
  490. package/dist/tools/search-docs.d.ts.map +1 -1
  491. package/dist/tools/search-docs.js +10 -9
  492. package/dist/tools/search-events/agent.cjs +15 -14
  493. package/dist/tools/search-events/agent.d.cts +4 -4
  494. package/dist/tools/search-events/agent.d.ts +6 -6
  495. package/dist/tools/search-events/agent.js +15 -14
  496. package/dist/tools/search-events/config.cjs +1 -1
  497. package/dist/tools/search-events/config.js +1 -1
  498. package/dist/tools/search-events/formatters.cjs +10 -10
  499. package/dist/tools/search-events/formatters.d.cts +5 -5
  500. package/dist/tools/search-events/formatters.d.ts +7 -7
  501. package/dist/tools/search-events/formatters.js +10 -10
  502. package/dist/tools/search-events/handler.cjs +20 -19
  503. package/dist/tools/search-events/handler.d.cts +4 -5
  504. package/dist/tools/search-events/handler.d.ts +4 -5
  505. package/dist/tools/search-events/handler.js +20 -19
  506. package/dist/tools/search-events/index.cjs +21 -20
  507. package/dist/tools/search-events/index.d.cts +8 -9
  508. package/dist/tools/search-events/index.d.ts +10 -11
  509. package/dist/tools/search-events/index.js +21 -20
  510. package/dist/tools/search-events/utils.cjs +9 -9
  511. package/dist/tools/search-events/utils.d.cts +5 -5
  512. package/dist/tools/search-events/utils.d.ts +7 -7
  513. package/dist/tools/search-events/utils.js +9 -9
  514. package/dist/tools/search-issues/agent.cjs +14 -13
  515. package/dist/tools/search-issues/agent.d.cts +4 -4
  516. package/dist/tools/search-issues/agent.d.ts +6 -6
  517. package/dist/tools/search-issues/agent.js +14 -13
  518. package/dist/tools/search-issues/config.cjs +1 -1
  519. package/dist/tools/search-issues/config.js +1 -1
  520. package/dist/tools/search-issues/formatters.cjs +2 -2
  521. package/dist/tools/search-issues/formatters.d.cts +3 -3
  522. package/dist/tools/search-issues/formatters.d.ts +5 -5
  523. package/dist/tools/search-issues/formatters.js +2 -2
  524. package/dist/tools/search-issues/handler.cjs +19 -18
  525. package/dist/tools/search-issues/handler.d.cts +4 -5
  526. package/dist/tools/search-issues/handler.d.ts +4 -5
  527. package/dist/tools/search-issues/handler.js +19 -18
  528. package/dist/tools/search-issues/index.cjs +20 -19
  529. package/dist/tools/search-issues/index.d.cts +8 -9
  530. package/dist/tools/search-issues/index.d.ts +10 -11
  531. package/dist/tools/search-issues/index.js +20 -19
  532. package/dist/tools/types.d.cts +3 -4
  533. package/dist/tools/types.d.ts +3 -4
  534. package/dist/tools/update-issue.cjs +16 -15
  535. package/dist/tools/update-issue.d.cts +10 -11
  536. package/dist/tools/update-issue.d.ts +10 -11
  537. package/dist/tools/update-issue.js +16 -15
  538. package/dist/tools/update-project.cjs +11 -11
  539. package/dist/tools/update-project.d.cts +3 -4
  540. package/dist/tools/update-project.d.cts.map +1 -1
  541. package/dist/tools/update-project.d.ts +3 -4
  542. package/dist/tools/update-project.d.ts.map +1 -1
  543. package/dist/tools/update-project.js +11 -11
  544. package/dist/tools/whoami.cjs +10 -9
  545. package/dist/tools/whoami.d.cts +3 -4
  546. package/dist/tools/whoami.d.ts +3 -4
  547. package/dist/tools/whoami.js +10 -9
  548. package/dist/{tools-UZ_biJKC.cjs → tools-DcCN34Xz.cjs} +20 -20
  549. package/dist/{tools-UZ_biJKC.cjs.map → tools-DcCN34Xz.cjs.map} +1 -1
  550. package/dist/{tools-BiCRxQiY.js → tools-Du5wLts3.js} +20 -20
  551. package/dist/{tools-BiCRxQiY.js.map → tools-Du5wLts3.js.map} +1 -1
  552. package/dist/transports/stdio.cjs +3 -65
  553. package/dist/transports/stdio.d.cts +12 -9
  554. package/dist/transports/stdio.d.cts.map +1 -1
  555. package/dist/transports/stdio.d.ts +12 -9
  556. package/dist/transports/stdio.d.ts.map +1 -1
  557. package/dist/transports/stdio.js +3 -65
  558. package/dist/{types-B4nOfch5.d.cts → types-4O1B8U0e.d.ts} +9 -4
  559. package/dist/types-4O1B8U0e.d.ts.map +1 -0
  560. package/dist/{types-DTp1ajTT.d.ts → types-B9_8hSal.d.cts} +5 -2
  561. package/dist/types-B9_8hSal.d.cts.map +1 -0
  562. package/dist/{types-DLRWzl3K.d.cts → types-BU11bcu2.d.ts} +5 -2
  563. package/dist/types-BU11bcu2.d.ts.map +1 -0
  564. package/dist/{types-o23QqDgk.d.cts → types-CZUp4Xzk.d.ts} +10 -5
  565. package/dist/types-CZUp4Xzk.d.ts.map +1 -0
  566. package/dist/{types-ryM3umix.d.ts → types-CtnbvcEw.d.cts} +9 -4
  567. package/dist/types-CtnbvcEw.d.cts.map +1 -0
  568. package/dist/{types-s3ChfOM9.d.ts → types-DkmHqy15.d.cts} +10 -5
  569. package/dist/types-DkmHqy15.d.cts.map +1 -0
  570. package/dist/types-NVsIso1A.d.ts +31 -0
  571. package/dist/types-NVsIso1A.d.ts.map +1 -0
  572. package/dist/types-Z4mR2AFK.d.cts +31 -0
  573. package/dist/types-Z4mR2AFK.d.cts.map +1 -0
  574. package/dist/types.cjs +16 -0
  575. package/dist/types.cjs.map +1 -0
  576. package/dist/types.d.cts +3 -4
  577. package/dist/types.d.ts +3 -4
  578. package/dist/types.js +15 -0
  579. package/dist/types.js.map +1 -0
  580. package/dist/{update-issue-nq8D_YUe.js → update-issue-CoAkoO66.js} +11 -5
  581. package/dist/update-issue-CoAkoO66.js.map +1 -0
  582. package/dist/{update-issue-CD-kp2dt.cjs → update-issue-eELBq_Uy.cjs} +11 -5
  583. package/dist/update-issue-eELBq_Uy.cjs.map +1 -0
  584. package/dist/{update-project-DvJfmSmX.js → update-project-CuZlyBPN.js} +13 -7
  585. package/dist/update-project-CuZlyBPN.js.map +1 -0
  586. package/dist/{update-project-B_OLM4Ky.cjs → update-project-DMRBdOZ5.cjs} +13 -7
  587. package/dist/update-project-DMRBdOZ5.cjs.map +1 -0
  588. package/dist/{url-utils-0OheI87i.cjs → url-utils-Bn5EoScr.cjs} +26 -1
  589. package/dist/url-utils-Bn5EoScr.cjs.map +1 -0
  590. package/dist/{url-utils-DF8NBCyH.js → url-utils-d9bPTnOl.js} +21 -2
  591. package/dist/url-utils-d9bPTnOl.js.map +1 -0
  592. package/dist/usage-CP6e39yF.cjs +39 -0
  593. package/dist/usage-CP6e39yF.cjs.map +1 -0
  594. package/dist/usage-CihInDyq.js +33 -0
  595. package/dist/usage-CihInDyq.js.map +1 -0
  596. package/dist/utils/url-utils.cjs +2 -1
  597. package/dist/utils/url-utils.d.cts +9 -1
  598. package/dist/utils/url-utils.d.cts.map +1 -1
  599. package/dist/utils/url-utils.d.ts +9 -1
  600. package/dist/utils/url-utils.d.ts.map +1 -1
  601. package/dist/utils/url-utils.js +2 -2
  602. package/dist/{utils-DQ69VZrK.cjs → utils-C5DuiZoe.cjs} +2 -2
  603. package/dist/{utils-DQ69VZrK.cjs.map → utils-C5DuiZoe.cjs.map} +1 -1
  604. package/dist/{utils-CP4vAzfv.js → utils-CwvZS30K.js} +2 -2
  605. package/dist/{utils-CP4vAzfv.js.map → utils-CwvZS30K.js.map} +1 -1
  606. package/dist/{utils-Cw6O1ztc.d.ts → utils-DKQuo7b2.d.ts} +4 -4
  607. package/dist/utils-DKQuo7b2.d.ts.map +1 -0
  608. package/dist/{utils-Ddvt3CBZ.d.cts → utils-DKgPcA6i.d.cts} +6 -6
  609. package/dist/{utils-Ddvt3CBZ.d.cts.map → utils-DKgPcA6i.d.cts.map} +1 -1
  610. package/dist/{utils-BOPpU4-H.cjs → utils-DUJcA3eH.cjs} +16 -7
  611. package/dist/utils-DUJcA3eH.cjs.map +1 -0
  612. package/dist/{utils-DA-V9B-n.d.ts → utils-DpeFMEgH.d.ts} +6 -6
  613. package/dist/{utils-DA-V9B-n.d.ts.map → utils-DpeFMEgH.d.ts.map} +1 -1
  614. package/dist/{utils-OyJ8CB2S.d.cts → utils-HNrRwq-a.d.cts} +4 -4
  615. package/dist/utils-HNrRwq-a.d.cts.map +1 -0
  616. package/dist/{utils-K1XhlGf4.js → utils-iC0Uutcf.js} +16 -7
  617. package/dist/utils-iC0Uutcf.js.map +1 -0
  618. package/dist/{validate-region-url-DTUtqFky.js → validate-region-url-CaR6XWB_.js} +1 -1
  619. package/dist/{validate-region-url-DTUtqFky.js.map → validate-region-url-CaR6XWB_.js.map} +1 -1
  620. package/dist/{validate-region-url-BhxxcBgE.cjs → validate-region-url-dzz6t54w.cjs} +1 -1
  621. package/dist/{validate-region-url-BhxxcBgE.cjs.map → validate-region-url-dzz6t54w.cjs.map} +1 -1
  622. package/dist/version-6dHij-Gk.js +6 -0
  623. package/dist/{version-CaDh5TML.js.map → version-6dHij-Gk.js.map} +1 -1
  624. package/dist/{version-DB2IM9qM.cjs → version-Cq6vA9Kc.cjs} +2 -2
  625. package/dist/{version-DB2IM9qM.cjs.map → version-Cq6vA9Kc.cjs.map} +1 -1
  626. package/dist/version.cjs +1 -1
  627. package/dist/version.js +1 -1
  628. package/dist/{whoami-qCGsRPRm.js → whoami-Bh_uOPqO.js} +6 -2
  629. package/dist/whoami-Bh_uOPqO.js.map +1 -0
  630. package/dist/{whoami-bRIfclYF.js → whoami-D8-XCgVJ.js} +2 -2
  631. package/dist/{whoami-bRIfclYF.js.map → whoami-D8-XCgVJ.js.map} +1 -1
  632. package/dist/{whoami-DCgOyVnW.cjs → whoami-DBSqcCGl.cjs} +2 -2
  633. package/dist/{whoami-DCgOyVnW.cjs.map → whoami-DBSqcCGl.cjs.map} +1 -1
  634. package/dist/{whoami-BdiVu0Wr.cjs → whoami-DBlwuDZf.cjs} +6 -2
  635. package/dist/whoami-DBlwuDZf.cjs.map +1 -0
  636. package/package.json +29 -27
  637. package/dist/about-CDAN_HuU.js +0 -136
  638. package/dist/about-CDAN_HuU.js.map +0 -1
  639. package/dist/about-CteXVo1Q.d.ts +0 -10
  640. package/dist/about-CteXVo1Q.d.ts.map +0 -1
  641. package/dist/about-CwQvsGSc.d.cts +0 -10
  642. package/dist/about-CwQvsGSc.d.cts.map +0 -1
  643. package/dist/about-aDGhlM6f.cjs +0 -142
  644. package/dist/about-aDGhlM6f.cjs.map +0 -1
  645. package/dist/analyze-issue-with-seer-Cf0jCiKP.cjs.map +0 -1
  646. package/dist/analyze-issue-with-seer-DqwczSTV.js.map +0 -1
  647. package/dist/callEmbeddedAgent-BRz60bxa.cjs.map +0 -1
  648. package/dist/callEmbeddedAgent-C0pC9du1.js.map +0 -1
  649. package/dist/client-AVVG7J24.cjs.map +0 -1
  650. package/dist/client-B0wezrpt.d.cts.map +0 -1
  651. package/dist/client-BqrNpqZW.js.map +0 -1
  652. package/dist/client-D-KqRd94.d.ts.map +0 -1
  653. package/dist/create-dsn-BhshlP7l.js.map +0 -1
  654. package/dist/create-dsn-DaHidLhE.cjs.map +0 -1
  655. package/dist/create-project-C3laecaU.js.map +0 -1
  656. package/dist/create-project-xszOpGTC.cjs.map +0 -1
  657. package/dist/create-team-CTN-DxOE.js.map +0 -1
  658. package/dist/create-team-DmnJHSIx.cjs.map +0 -1
  659. package/dist/error-handling-efwohgKv.js.map +0 -1
  660. package/dist/error-handling-qfa1BeDb.cjs.map +0 -1
  661. package/dist/find-dsns-D0l3siyF.cjs.map +0 -1
  662. package/dist/find-dsns-U4CCcoTv.js.map +0 -1
  663. package/dist/find-organizations-Ca-zpAlI.cjs.map +0 -1
  664. package/dist/find-organizations-HUZFa8ZA.js.map +0 -1
  665. package/dist/find-projects-CWNLthwg.cjs.map +0 -1
  666. package/dist/find-projects-Dy1_O9L0.js.map +0 -1
  667. package/dist/find-releases-BtazPcQH.cjs.map +0 -1
  668. package/dist/find-releases-DN_BfQM2.js.map +0 -1
  669. package/dist/find-teams-CRVT4KOg.js +0 -40
  670. package/dist/find-teams-CRVT4KOg.js.map +0 -1
  671. package/dist/find-teams-_zAHPVGx.cjs.map +0 -1
  672. package/dist/formatting-BjCK9XwW.js.map +0 -1
  673. package/dist/formatting-CqmsvuAY.cjs.map +0 -1
  674. package/dist/formatting-XMmhMjRz.d.cts.map +0 -1
  675. package/dist/formatting-l3qx5d7L.d.ts.map +0 -1
  676. package/dist/get-doc-Euz6NiM3.cjs.map +0 -1
  677. package/dist/get-doc-JDwOkY2j.js.map +0 -1
  678. package/dist/get-event-attachment-DvpQ-dEP.cjs.map +0 -1
  679. package/dist/get-event-attachment-pIJmUfFE.js.map +0 -1
  680. package/dist/get-issue-details-B1PDMmMY.js.map +0 -1
  681. package/dist/get-issue-details-BH75EnNk.cjs.map +0 -1
  682. package/dist/get-trace-details-Bksygq21.cjs.map +0 -1
  683. package/dist/get-trace-details-CaK0JMf4.js.map +0 -1
  684. package/dist/handler-BbqDy4DA.js.map +0 -1
  685. package/dist/handler-C0zOOLbO.cjs.map +0 -1
  686. package/dist/handler-DyBdUYam.js.map +0 -1
  687. package/dist/handler-cy5oD28N.cjs.map +0 -1
  688. package/dist/internal/sentry-scrubbing.cjs +0 -6
  689. package/dist/internal/sentry-scrubbing.d.cts +0 -28
  690. package/dist/internal/sentry-scrubbing.d.cts.map +0 -1
  691. package/dist/internal/sentry-scrubbing.d.ts +0 -28
  692. package/dist/internal/sentry-scrubbing.d.ts.map +0 -1
  693. package/dist/internal/sentry-scrubbing.js +0 -3
  694. package/dist/logging-CBMxr4i2.js +0 -25
  695. package/dist/logging-CBMxr4i2.js.map +0 -1
  696. package/dist/logging-rvUPDKax.cjs +0 -31
  697. package/dist/logging-rvUPDKax.cjs.map +0 -1
  698. package/dist/logging.cjs +0 -3
  699. package/dist/logging.d.cts +0 -37
  700. package/dist/logging.d.cts.map +0 -1
  701. package/dist/logging.d.ts +0 -37
  702. package/dist/logging.d.ts.map +0 -1
  703. package/dist/logging.js +0 -3
  704. package/dist/parse-C3tRlsy-.js.map +0 -1
  705. package/dist/parse-CeFc4xnt.cjs.map +0 -1
  706. package/dist/permissions-C-q0Y5bL.d.ts.map +0 -1
  707. package/dist/permissions-Cm5e34n2.d.cts.map +0 -1
  708. package/dist/permissions-DRdH39Fe.js.map +0 -1
  709. package/dist/permissions-DuDYuCjy.cjs.map +0 -1
  710. package/dist/promptDefinitions-02aQWFKD.cjs +0 -37
  711. package/dist/promptDefinitions-02aQWFKD.cjs.map +0 -1
  712. package/dist/promptDefinitions-ImFNiWkX.d.cts +0 -34
  713. package/dist/promptDefinitions-ImFNiWkX.d.cts.map +0 -1
  714. package/dist/promptDefinitions-Y-mt2_IM.d.ts +0 -34
  715. package/dist/promptDefinitions-Y-mt2_IM.d.ts.map +0 -1
  716. package/dist/promptDefinitions-wR6u6ZJE.js +0 -31
  717. package/dist/promptDefinitions-wR6u6ZJE.js.map +0 -1
  718. package/dist/promptDefinitions.cjs +0 -6
  719. package/dist/promptDefinitions.d.cts +0 -2
  720. package/dist/promptDefinitions.d.ts +0 -2
  721. package/dist/promptDefinitions.js +0 -6
  722. package/dist/prompts-BwZJaywH.cjs +0 -41
  723. package/dist/prompts-BwZJaywH.cjs.map +0 -1
  724. package/dist/prompts-DCJ0XraB.js +0 -36
  725. package/dist/prompts-DCJ0XraB.js.map +0 -1
  726. package/dist/prompts.cjs +0 -4
  727. package/dist/prompts.d.cts +0 -31
  728. package/dist/prompts.d.cts.map +0 -1
  729. package/dist/prompts.d.ts +0 -31
  730. package/dist/prompts.d.ts.map +0 -1
  731. package/dist/prompts.js +0 -4
  732. package/dist/resolve-B_Fq13Dk.js.map +0 -1
  733. package/dist/resolve-CAtC1wN-.cjs.map +0 -1
  734. package/dist/resources/about.cjs +0 -3
  735. package/dist/resources/about.d.cts +0 -2
  736. package/dist/resources/about.d.ts +0 -2
  737. package/dist/resources/about.js +0 -3
  738. package/dist/resources/index.cjs +0 -4
  739. package/dist/resources/index.d.cts +0 -2
  740. package/dist/resources/index.d.ts +0 -2
  741. package/dist/resources/index.js +0 -4
  742. package/dist/resources-B4ropjfD.cjs +0 -94
  743. package/dist/resources-B4ropjfD.cjs.map +0 -1
  744. package/dist/resources-DaEUMw3Y.js +0 -82
  745. package/dist/resources-DaEUMw3Y.js.map +0 -1
  746. package/dist/resources.cjs +0 -8
  747. package/dist/resources.d.cts +0 -37
  748. package/dist/resources.d.cts.map +0 -1
  749. package/dist/resources.d.ts +0 -37
  750. package/dist/resources.d.ts.map +0 -1
  751. package/dist/resources.js +0 -7
  752. package/dist/schema-BUBkkdUa.cjs.map +0 -1
  753. package/dist/schema-CbXlt1rW.cjs.map +0 -1
  754. package/dist/schema-ChvpDxUk.d.cts.map +0 -1
  755. package/dist/schema-D1CzTJXB.js.map +0 -1
  756. package/dist/schema-DOY22v1Q.d.ts.map +0 -1
  757. package/dist/schema-DPJO5nkQ.js.map +0 -1
  758. package/dist/search-docs-CH6-1H9_.cjs.map +0 -1
  759. package/dist/search-docs-CpAlMLs8.js.map +0 -1
  760. package/dist/sentry-scrubbing-BrjExjlM.js +0 -94
  761. package/dist/sentry-scrubbing-BrjExjlM.js.map +0 -1
  762. package/dist/sentry-scrubbing-CDcE4n-D.cjs +0 -118
  763. package/dist/sentry-scrubbing-CDcE4n-D.cjs.map +0 -1
  764. package/dist/server-BjizUxVR.js +0 -238
  765. package/dist/server-BjizUxVR.js.map +0 -1
  766. package/dist/server-RKq8MlNM.cjs +0 -244
  767. package/dist/server-RKq8MlNM.cjs.map +0 -1
  768. package/dist/stdio-CJnMOUAU.cjs.map +0 -1
  769. package/dist/stdio-DB9muOi8.js.map +0 -1
  770. package/dist/types-B4nOfch5.d.cts.map +0 -1
  771. package/dist/types-CKPddlfS.cjs +0 -0
  772. package/dist/types-Cy4S5lN-.js +0 -0
  773. package/dist/types-DLRWzl3K.d.cts.map +0 -1
  774. package/dist/types-DTp1ajTT.d.ts.map +0 -1
  775. package/dist/types-Dj36Sq2V.d.cts +0 -41
  776. package/dist/types-Dj36Sq2V.d.cts.map +0 -1
  777. package/dist/types-m-t7jx2f.d.ts +0 -41
  778. package/dist/types-m-t7jx2f.d.ts.map +0 -1
  779. package/dist/types-o23QqDgk.d.cts.map +0 -1
  780. package/dist/types-ryM3umix.d.ts.map +0 -1
  781. package/dist/types-s3ChfOM9.d.ts.map +0 -1
  782. package/dist/update-issue-CD-kp2dt.cjs.map +0 -1
  783. package/dist/update-issue-nq8D_YUe.js.map +0 -1
  784. package/dist/update-project-B_OLM4Ky.cjs.map +0 -1
  785. package/dist/update-project-DvJfmSmX.js.map +0 -1
  786. package/dist/url-utils-0OheI87i.cjs.map +0 -1
  787. package/dist/url-utils-DF8NBCyH.js.map +0 -1
  788. package/dist/usage-Do2a2NJi.cjs +0 -44
  789. package/dist/usage-Do2a2NJi.cjs.map +0 -1
  790. package/dist/usage-OGOjVeAz.js +0 -38
  791. package/dist/usage-OGOjVeAz.js.map +0 -1
  792. package/dist/utils-BOPpU4-H.cjs.map +0 -1
  793. package/dist/utils-Cw6O1ztc.d.ts.map +0 -1
  794. package/dist/utils-K1XhlGf4.js.map +0 -1
  795. package/dist/utils-OyJ8CB2S.d.cts.map +0 -1
  796. package/dist/version-CaDh5TML.js +0 -6
  797. package/dist/whoami-BdiVu0Wr.cjs.map +0 -1
  798. package/dist/whoami-qCGsRPRm.js.map +0 -1
  799. /package/dist/{api-client-T99a5Vta.js → api-client-BR5WolLe.js} +0 -0
  800. /package/dist/{api-client-_2QFWf0d.cjs → api-client-BsHWi0-I.cjs} +0 -0
  801. /package/dist/{index-DCwqskfg.d.ts → index-DZJ9s9rm.d.ts} +0 -0
  802. /package/dist/{issue-DKr8zNay.js → issue-B7cgiWKp.cjs} +0 -0
  803. /package/dist/{issue-DrgpqPbF.cjs → issue-BLm6gohl.js} +0 -0
  804. /package/dist/{resources-BlsH_EDg.cjs → search-events-Bc2a_R3A.cjs} +0 -0
  805. /package/dist/{resources-U-u5ze91.js → search-events-Bo5bAsOv.js} +0 -0
  806. /package/dist/{search-events-CUvQ_Jch.js → search-issues-AaiYCZ6J.cjs} +0 -0
  807. /package/dist/{search-events-DSY2Z_Eh.cjs → search-issues-DVHuKDdB.js} +0 -0
  808. /package/dist/{search-issues-BOmdyuUf.js → types-Bx1EKe0v.js} +0 -0
  809. /package/dist/{search-issues-BxO2JE3D.cjs → types-D10T4PdD.cjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { defineTool } from "./define-2Lj8Lm1t.js";
2
- import { apiServiceFromContext } from "./api-mjnGhOW2.js";
2
+ import { apiServiceFromContext } from "./api-CkLTFexT.js";
3
3
 
4
4
  //#region src/tools/whoami.ts
5
5
  var whoami_default = defineTool({
@@ -12,6 +12,10 @@ var whoami_default = defineTool({
12
12
  ].join("\n"),
13
13
  inputSchema: {},
14
14
  requiredScopes: [],
15
+ annotations: {
16
+ readOnlyHint: true,
17
+ openWorldHint: true
18
+ },
15
19
  async handler(params, context) {
16
20
  const apiService = apiServiceFromContext(context);
17
21
  const user = await apiService.getAuthenticatedUser();
@@ -30,4 +34,4 @@ var whoami_default = defineTool({
30
34
 
31
35
  //#endregion
32
36
  export { whoami_default };
33
- //# sourceMappingURL=whoami-qCGsRPRm.js.map
37
+ //# sourceMappingURL=whoami-Bh_uOPqO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whoami-Bh_uOPqO.js","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"whoami\",\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 inputSchema: {},\n requiredScopes: [], // No specific scopes required - uses authentication token\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n // API client will throw ApiClientError/ApiServerError which the MCP server wrapper handles\n const user = await apiService.getAuthenticatedUser();\n\n let output = `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n\n // Add constraints information\n const constraints = context.constraints;\n if (\n constraints.organizationSlug ||\n constraints.projectSlug ||\n constraints.regionUrl\n ) {\n output += \"\\n\\n## Session Constraints\\n\\n\";\n\n if (constraints.organizationSlug) {\n output += `- **Organization**: ${constraints.organizationSlug}\\n`;\n }\n if (constraints.projectSlug) {\n output += `- **Project**: ${constraints.projectSlug}\\n`;\n }\n if (constraints.regionUrl) {\n output += `- **Region URL**: ${constraints.regionUrl}\\n`;\n }\n\n output += \"\\nThese constraints limit the scope of this MCP session.\";\n }\n\n return output;\n },\n});\n"],"mappings":";;;;AAIA,qBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,gBAAgB,CAAE;CAClB,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,sBAAsB,QAAQ;EAEjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;EAEpD,IAAI,UAAU,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;EAGzG,MAAM,cAAc,QAAQ;AAC5B,MACE,YAAY,oBACZ,YAAY,eACZ,YAAY,WACZ;AACA,aAAU;AAEV,OAAI,YAAY,iBACd,YAAW,sBAAsB,YAAY,iBAAiB;AAEhE,OAAI,YAAY,YACd,YAAW,iBAAiB,YAAY,YAAY;AAEtD,OAAI,YAAY,UACd,YAAW,oBAAoB,YAAY,UAAU;AAGvD,aAAU;EACX;AAED,SAAO;CACR;AACF,EAAC"}
@@ -1,4 +1,4 @@
1
- import { agentTool } from "./utils-K1XhlGf4.js";
1
+ import { agentTool } from "./utils-iC0Uutcf.js";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/internal/agents/tools/whoami.ts
@@ -31,4 +31,4 @@ function createWhoamiTool(options) {
31
31
 
32
32
  //#endregion
33
33
  export { createWhoamiTool, getCurrentUser };
34
- //# sourceMappingURL=whoami-bRIfclYF.js.map
34
+ //# sourceMappingURL=whoami-D8-XCgVJ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"whoami-bRIfclYF.js","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,UAAU;EACf,aAAa;EACb,YAAY,EAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
1
+ {"version":3,"file":"whoami-D8-XCgVJ.js","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,UAAU;EACf,aAAa;EACb,YAAY,EAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_utils = require('./utils-BOPpU4-H.cjs');
2
+ const require_utils = require('./utils-DUJcA3eH.cjs');
3
3
  const zod = require_chunk.__toESM(require("zod"));
4
4
 
5
5
  //#region src/internal/agents/tools/whoami.ts
@@ -43,4 +43,4 @@ Object.defineProperty(exports, 'getCurrentUser', {
43
43
  return getCurrentUser;
44
44
  }
45
45
  });
46
- //# sourceMappingURL=whoami-DCgOyVnW.cjs.map
46
+ //# sourceMappingURL=whoami-DBSqcCGl.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"whoami-DCgOyVnW.cjs","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,wBAAU;EACf,aAAa;EACb,YAAY,MAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
1
+ {"version":3,"file":"whoami-DBSqcCGl.cjs","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,wBAAU;EACf,aAAa;EACb,YAAY,MAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
@@ -1,5 +1,5 @@
1
1
  const require_define = require('./define-BfP4rFlE.cjs');
2
- const require_api = require('./api-D9yO5I-i.cjs');
2
+ const require_api = require('./api-CZD9zwQ-.cjs');
3
3
 
4
4
  //#region src/tools/whoami.ts
5
5
  var whoami_default = require_define.defineTool({
@@ -12,6 +12,10 @@ var whoami_default = require_define.defineTool({
12
12
  ].join("\n"),
13
13
  inputSchema: {},
14
14
  requiredScopes: [],
15
+ annotations: {
16
+ readOnlyHint: true,
17
+ openWorldHint: true
18
+ },
15
19
  async handler(params, context) {
16
20
  const apiService = require_api.apiServiceFromContext(context);
17
21
  const user = await apiService.getAuthenticatedUser();
@@ -35,4 +39,4 @@ Object.defineProperty(exports, 'whoami_default', {
35
39
  return whoami_default;
36
40
  }
37
41
  });
38
- //# sourceMappingURL=whoami-BdiVu0Wr.cjs.map
42
+ //# sourceMappingURL=whoami-DBlwuDZf.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whoami-DBlwuDZf.cjs","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"whoami\",\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 inputSchema: {},\n requiredScopes: [], // No specific scopes required - uses authentication token\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n // API client will throw ApiClientError/ApiServerError which the MCP server wrapper handles\n const user = await apiService.getAuthenticatedUser();\n\n let output = `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n\n // Add constraints information\n const constraints = context.constraints;\n if (\n constraints.organizationSlug ||\n constraints.projectSlug ||\n constraints.regionUrl\n ) {\n output += \"\\n\\n## Session Constraints\\n\\n\";\n\n if (constraints.organizationSlug) {\n output += `- **Organization**: ${constraints.organizationSlug}\\n`;\n }\n if (constraints.projectSlug) {\n output += `- **Project**: ${constraints.projectSlug}\\n`;\n }\n if (constraints.regionUrl) {\n output += `- **Region URL**: ${constraints.regionUrl}\\n`;\n }\n\n output += \"\\nThese constraints limit the scope of this MCP session.\";\n }\n\n return output;\n },\n});\n"],"mappings":";;;;AAIA,qBAAe,0BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,gBAAgB,CAAE;CAClB,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,kCAAsB,QAAQ;EAEjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;EAEpD,IAAI,UAAU,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;EAGzG,MAAM,cAAc,QAAQ;AAC5B,MACE,YAAY,oBACZ,YAAY,eACZ,YAAY,WACZ;AACA,aAAU;AAEV,OAAI,YAAY,iBACd,YAAW,sBAAsB,YAAY,iBAAiB;AAEhE,OAAI,YAAY,YACd,YAAW,iBAAiB,YAAY,YAAY;AAEtD,OAAI,YAAY,UACd,YAAW,oBAAoB,YAAY,UAAU;AAGvD,aAAU;EACX;AAED,SAAO;CACR;AACF,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/mcp-server",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -41,9 +41,17 @@
41
41
  "types": "./dist/constants.ts",
42
42
  "default": "./dist/constants.js"
43
43
  },
44
- "./logging": {
45
- "types": "./dist/logging.ts",
46
- "default": "./dist/logging.js"
44
+ "./telem": {
45
+ "types": "./dist/telem/index.ts",
46
+ "default": "./dist/telem/index.js"
47
+ },
48
+ "./telem/logging": {
49
+ "types": "./dist/telem/logging.ts",
50
+ "default": "./dist/telem/logging.js"
51
+ },
52
+ "./telem/sentry": {
53
+ "types": "./dist/telem/sentry.ts",
54
+ "default": "./dist/telem/sentry.js"
47
55
  },
48
56
  "./permissions": {
49
57
  "types": "./dist/permissions.ts",
@@ -57,18 +65,6 @@
57
65
  "types": "./dist/server.ts",
58
66
  "default": "./dist/server.js"
59
67
  },
60
- "./promptDefinitions": {
61
- "types": "./dist/promptDefinitions.ts",
62
- "default": "./dist/promptDefinitions.js"
63
- },
64
- "./prompts": {
65
- "types": "./dist/prompts.ts",
66
- "default": "./dist/prompts.js"
67
- },
68
- "./resources": {
69
- "types": "./dist/resources.ts",
70
- "default": "./dist/resources.js"
71
- },
72
68
  "./toolDefinitions": {
73
69
  "types": "./dist/toolDefinitions.ts",
74
70
  "default": "./dist/toolDefinitions.js"
@@ -100,35 +96,41 @@
100
96
  "./internal/agents/callEmbeddedAgent": {
101
97
  "types": "./dist/internal/agents/callEmbeddedAgent.ts",
102
98
  "default": "./dist/internal/agents/callEmbeddedAgent.js"
99
+ },
100
+ "./internal/context-storage": {
101
+ "types": "./dist/internal/context-storage.ts",
102
+ "default": "./dist/internal/context-storage.js"
103
103
  }
104
104
  },
105
105
  "devDependencies": {
106
106
  "msw": "^2.10.2",
107
107
  "yaml": "^2.6.1",
108
108
  "zod-to-json-schema": "^3.24.6",
109
- "@sentry/mcp-server-tsconfig": "0.18.0",
110
- "@sentry/mcp-server-mocks": "0.18.0"
109
+ "@sentry/mcp-server-mocks": "0.19.0",
110
+ "@sentry/mcp-server-tsconfig": "0.19.0"
111
111
  },
112
112
  "dependencies": {
113
113
  "@ai-sdk/openai": "^1.3.22",
114
- "@modelcontextprotocol/sdk": "^1.17.1",
115
- "@sentry/core": "9.34.0",
116
- "@sentry/node": "9.34.0",
114
+ "@logtape/logtape": "^1.1.1",
115
+ "@logtape/sentry": "^1.1.1",
116
+ "@modelcontextprotocol/sdk": "^1.20.2",
117
+ "@sentry/core": "10.22.0",
118
+ "@sentry/node": "10.22.0",
117
119
  "ai": "^4.3.16",
118
120
  "dotenv": "^16.6.1",
119
121
  "zod": "^3.25.67"
120
122
  },
121
123
  "scripts": {
122
- "prebuild": "pnpm run generate-tool-definitions",
124
+ "prebuild": "pnpm run generate-definitions",
123
125
  "build": "tsdown",
124
- "dev": "pnpm run generate-tool-definitions && tsdown -w",
126
+ "dev": "pnpm run generate-definitions && tsdown -w",
125
127
  "start": "tsx src/index.ts",
126
- "pretest": "pnpm run generate-tool-definitions",
128
+ "pretest": "pnpm run generate-definitions",
127
129
  "test": "vitest run",
128
- "test:ci": "pnpm run generate-tool-definitions && vitest run --coverage --reporter=default --reporter=junit --outputFile=tests.junit.xml",
129
- "test:watch": "pnpm run generate-tool-definitions && vitest",
130
+ "test:ci": "pnpm run generate-definitions && vitest run --coverage --reporter=default --reporter=junit --outputFile=tests.junit.xml",
131
+ "test:watch": "pnpm run generate-definitions && vitest",
130
132
  "tsc": "tsc --noEmit",
131
- "generate-tool-definitions": "tsx scripts/generate-tool-definitions.ts",
133
+ "generate-definitions": "tsx scripts/generate-definitions.ts",
132
134
  "generate-otel-namespaces": "tsx scripts/generate-otel-namespaces.ts"
133
135
  }
134
136
  }
@@ -1,136 +0,0 @@
1
- //#region src/resources/about.ts
2
- /**
3
- * About content for the Sentry MCP resource.
4
- * This provides users with information about the service and what they can do with it.
5
- */
6
- const ABOUT_CONTENT = `# About Sentry MCP
7
-
8
- ## What is Sentry MCP?
9
-
10
- The Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.
11
-
12
- This remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.
13
-
14
- ## Learn More
15
-
16
- Visit **<https://mcp.sentry.dev>** for documentation and updates.
17
-
18
- ## 🚀 Quick Start for Coding Agents
19
-
20
- When debugging your application with Sentry MCP:
21
-
22
- ### Debug a Production Error
23
- User reports an error? Just paste the Sentry link:
24
- - "Analyze https://myorg.sentry.io/issues/PROJECT-123"
25
- - "Get root cause for https://sentry.io/organizations/myorg/issues/5678/"
26
- - "Explain this error: [paste Sentry issue URL]"
27
-
28
- ### Fix Code Based on Errors
29
- Get AI-powered fixes for your codebase:
30
- - "Analyze issue PROJECT-123 with AI and show me the code fix"
31
- - "What's causing the TypeError in checkout.js line 45?"
32
- - "Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789"
33
-
34
- ### Investigate Performance Issues
35
- - "Show me slow API calls in /api/checkout endpoint"
36
- - "Find database queries taking over 1 second"
37
- - "Analyze trace abc123def456 for performance bottlenecks"
38
-
39
- ## 📊 Real-Time Error Monitoring
40
-
41
- Monitor errors while you code:
42
-
43
- ### Check Error Impact
44
- - "How many users are affected by error PROJECT-456?"
45
- - "Are there new errors in the last deployment?"
46
- - "Show critical errors from production in the last hour"
47
- - "Which errors are happening most frequently?"
48
-
49
- ### Track Deployments
50
- - "What errors appeared after release v2.1.0?"
51
- - "Show me issues in the latest release"
52
- - "Find errors introduced in commit abc123"
53
-
54
- ## 🛠 Project Configuration for Development
55
-
56
- When setting up error tracking in your code:
57
-
58
- ### Get Your DSN
59
- - "Get the DSN for my-project" - For configuring Sentry SDK
60
- - "Create a production DSN for my-api" - For environment-specific setup
61
-
62
- ### SDK Setup Help
63
- - "Search docs for Next.js setup" - Get integration guides
64
- - "How do I configure source maps for React?"
65
- - "Show Python Django integration guide"
66
-
67
- ## 🎯 Real-World Developer Workflows
68
-
69
- ### User Reports a Bug
70
- 1. User sends you a Sentry link or error ID
71
- 2. "Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI"
72
- 3. Review the root cause analysis and suggested fixes
73
- 4. Apply the fix to your codebase
74
- 5. "Resolve issue PROJECT-123" when deployed
75
-
76
- ### Debugging CI/CD Failures
77
- 1. "Show errors from the last hour in staging environment"
78
- 2. "What's causing the test failures in auth.js?"
79
- 3. "Get stack trace for error EVENT-789"
80
- 4. Fix the issue and push your changes
81
-
82
- ### Performance Optimization
83
- 1. "Find the slowest database queries in production"
84
- 2. "Show me traces for /api/checkout taking over 2 seconds"
85
- 3. "What's the P95 response time for our API?"
86
- 4. Optimize based on the bottlenecks found
87
-
88
- ### Pre-Release Checklist
89
- 1. "Are there any unresolved critical errors?"
90
- 2. "Show errors from the staging environment today"
91
- 3. "What new errors appeared in the last deployment?"
92
- 4. Fix any blockers before release
93
-
94
- ## 💡 Pro Tips
95
-
96
- ### Working with Issue URLs
97
- Sentry MCP understands multiple URL formats:
98
- - Full URLs: \`https://myorg.sentry.io/issues/PROJECT-123\`
99
- - Organization URLs: \`https://sentry.io/organizations/myorg/issues/5678/\`
100
- - Just paste the link from your browser - it will parse it correctly
101
-
102
- ### Natural Language is Preferred
103
- The AI understands context:
104
- - "Fix the TypeError in my checkout flow"
105
- - "Why is the database timing out?"
106
- - "Debug the authentication error users are seeing"
107
-
108
- ### Environment-Specific Queries
109
- - Add "in production" or "in staging" to filter by environment
110
- - "Show errors from the mobile app" to filter by platform
111
- - "Errors affecting Chrome users" for browser-specific issues
112
-
113
- ## ⚙️ Key Capabilities
114
-
115
- ### AI-Powered Tools
116
- With OpenAI API key configured:
117
- - **Natural language search** - Find issues and events using plain English
118
- - **Root cause analysis** - Get AI-powered debugging with code fixes via Seer
119
- - **Smart query translation** - Converts natural language to Sentry's query syntax
120
-
121
- ### Available Resources
122
- - **SDK Documentation** - Access platform-specific setup guides
123
- - **This guide** - Available at \`sentry://about\`
124
-
125
- ## 📚 Need Help?
126
-
127
- - **Report issues**: https://github.com/getsentry/sentry-mcp/issues
128
- - **Documentation**: https://mcp.sentry.dev
129
-
130
- ---
131
-
132
- *Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*`;
133
-
134
- //#endregion
135
- export { ABOUT_CONTENT };
136
- //# sourceMappingURL=about-CDAN_HuU.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"about-CDAN_HuU.js","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":["/**\n * About content for the Sentry MCP resource.\n * This provides users with information about the service and what they can do with it.\n */\n\nexport const ABOUT_CONTENT = `# About Sentry MCP\n\n## What is Sentry MCP?\n\nThe Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.\n\nThis remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.\n\n## Learn More\n\nVisit **<https://mcp.sentry.dev>** for documentation and updates.\n\n## 🚀 Quick Start for Coding Agents\n\nWhen debugging your application with Sentry MCP:\n\n### Debug a Production Error\nUser reports an error? Just paste the Sentry link:\n- \"Analyze https://myorg.sentry.io/issues/PROJECT-123\"\n- \"Get root cause for https://sentry.io/organizations/myorg/issues/5678/\"\n- \"Explain this error: [paste Sentry issue URL]\"\n\n### Fix Code Based on Errors\nGet AI-powered fixes for your codebase:\n- \"Analyze issue PROJECT-123 with AI and show me the code fix\"\n- \"What's causing the TypeError in checkout.js line 45?\"\n- \"Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789\"\n\n### Investigate Performance Issues\n- \"Show me slow API calls in /api/checkout endpoint\"\n- \"Find database queries taking over 1 second\"\n- \"Analyze trace abc123def456 for performance bottlenecks\"\n\n## 📊 Real-Time Error Monitoring\n\nMonitor errors while you code:\n\n### Check Error Impact\n- \"How many users are affected by error PROJECT-456?\"\n- \"Are there new errors in the last deployment?\"\n- \"Show critical errors from production in the last hour\"\n- \"Which errors are happening most frequently?\"\n\n### Track Deployments\n- \"What errors appeared after release v2.1.0?\"\n- \"Show me issues in the latest release\"\n- \"Find errors introduced in commit abc123\"\n\n## 🛠 Project Configuration for Development\n\nWhen setting up error tracking in your code:\n\n### Get Your DSN\n- \"Get the DSN for my-project\" - For configuring Sentry SDK\n- \"Create a production DSN for my-api\" - For environment-specific setup\n\n### SDK Setup Help\n- \"Search docs for Next.js setup\" - Get integration guides\n- \"How do I configure source maps for React?\"\n- \"Show Python Django integration guide\"\n\n## 🎯 Real-World Developer Workflows\n\n### User Reports a Bug\n1. User sends you a Sentry link or error ID\n2. \"Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI\"\n3. Review the root cause analysis and suggested fixes\n4. Apply the fix to your codebase\n5. \"Resolve issue PROJECT-123\" when deployed\n\n### Debugging CI/CD Failures\n1. \"Show errors from the last hour in staging environment\"\n2. \"What's causing the test failures in auth.js?\"\n3. \"Get stack trace for error EVENT-789\"\n4. Fix the issue and push your changes\n\n### Performance Optimization\n1. \"Find the slowest database queries in production\"\n2. \"Show me traces for /api/checkout taking over 2 seconds\"\n3. \"What's the P95 response time for our API?\"\n4. Optimize based on the bottlenecks found\n\n### Pre-Release Checklist\n1. \"Are there any unresolved critical errors?\"\n2. \"Show errors from the staging environment today\"\n3. \"What new errors appeared in the last deployment?\"\n4. Fix any blockers before release\n\n## 💡 Pro Tips\n\n### Working with Issue URLs\nSentry MCP understands multiple URL formats:\n- Full URLs: \\`https://myorg.sentry.io/issues/PROJECT-123\\`\n- Organization URLs: \\`https://sentry.io/organizations/myorg/issues/5678/\\`\n- Just paste the link from your browser - it will parse it correctly\n\n### Natural Language is Preferred\nThe AI understands context:\n- \"Fix the TypeError in my checkout flow\"\n- \"Why is the database timing out?\"\n- \"Debug the authentication error users are seeing\"\n\n### Environment-Specific Queries\n- Add \"in production\" or \"in staging\" to filter by environment\n- \"Show errors from the mobile app\" to filter by platform\n- \"Errors affecting Chrome users\" for browser-specific issues\n\n## ⚙️ Key Capabilities\n\n### AI-Powered Tools\nWith OpenAI API key configured:\n- **Natural language search** - Find issues and events using plain English\n- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer\n- **Smart query translation** - Converts natural language to Sentry's query syntax\n\n### Available Resources\n- **SDK Documentation** - Access platform-specific setup guides\n- **This guide** - Available at \\`sentry://about\\`\n\n## 📚 Need Help?\n\n- **Report issues**: https://github.com/getsentry/sentry-mcp/issues\n- **Documentation**: https://mcp.sentry.dev\n\n---\n\n*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*`;\n"],"mappings":";;;;;AAKA,MAAa,iBAAiB"}
@@ -1,10 +0,0 @@
1
- //#region src/resources/about.d.ts
2
- /**
3
- * About content for the Sentry MCP resource.
4
- * This provides users with information about the service and what they can do with it.
5
- */
6
- declare const ABOUT_CONTENT = "# About Sentry MCP\n\n## What is Sentry MCP?\n\nThe Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.\n\nThis remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.\n\n## Learn More\n\nVisit **<https://mcp.sentry.dev>** for documentation and updates.\n\n## \uD83D\uDE80 Quick Start for Coding Agents\n\nWhen debugging your application with Sentry MCP:\n\n### Debug a Production Error\nUser reports an error? Just paste the Sentry link:\n- \"Analyze https://myorg.sentry.io/issues/PROJECT-123\"\n- \"Get root cause for https://sentry.io/organizations/myorg/issues/5678/\"\n- \"Explain this error: [paste Sentry issue URL]\"\n\n### Fix Code Based on Errors\nGet AI-powered fixes for your codebase:\n- \"Analyze issue PROJECT-123 with AI and show me the code fix\"\n- \"What's causing the TypeError in checkout.js line 45?\"\n- \"Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789\"\n\n### Investigate Performance Issues\n- \"Show me slow API calls in /api/checkout endpoint\"\n- \"Find database queries taking over 1 second\"\n- \"Analyze trace abc123def456 for performance bottlenecks\"\n\n## \uD83D\uDCCA Real-Time Error Monitoring\n\nMonitor errors while you code:\n\n### Check Error Impact\n- \"How many users are affected by error PROJECT-456?\"\n- \"Are there new errors in the last deployment?\"\n- \"Show critical errors from production in the last hour\"\n- \"Which errors are happening most frequently?\"\n\n### Track Deployments\n- \"What errors appeared after release v2.1.0?\"\n- \"Show me issues in the latest release\"\n- \"Find errors introduced in commit abc123\"\n\n## \uD83D\uDEE0 Project Configuration for Development\n\nWhen setting up error tracking in your code:\n\n### Get Your DSN\n- \"Get the DSN for my-project\" - For configuring Sentry SDK\n- \"Create a production DSN for my-api\" - For environment-specific setup\n\n### SDK Setup Help\n- \"Search docs for Next.js setup\" - Get integration guides\n- \"How do I configure source maps for React?\"\n- \"Show Python Django integration guide\"\n\n## \uD83C\uDFAF Real-World Developer Workflows\n\n### User Reports a Bug\n1. User sends you a Sentry link or error ID\n2. \"Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI\"\n3. Review the root cause analysis and suggested fixes\n4. Apply the fix to your codebase\n5. \"Resolve issue PROJECT-123\" when deployed\n\n### Debugging CI/CD Failures\n1. \"Show errors from the last hour in staging environment\"\n2. \"What's causing the test failures in auth.js?\"\n3. \"Get stack trace for error EVENT-789\"\n4. Fix the issue and push your changes\n\n### Performance Optimization\n1. \"Find the slowest database queries in production\"\n2. \"Show me traces for /api/checkout taking over 2 seconds\"\n3. \"What's the P95 response time for our API?\"\n4. Optimize based on the bottlenecks found\n\n### Pre-Release Checklist\n1. \"Are there any unresolved critical errors?\"\n2. \"Show errors from the staging environment today\"\n3. \"What new errors appeared in the last deployment?\"\n4. Fix any blockers before release\n\n## \uD83D\uDCA1 Pro Tips\n\n### Working with Issue URLs\nSentry MCP understands multiple URL formats:\n- Full URLs: `https://myorg.sentry.io/issues/PROJECT-123`\n- Organization URLs: `https://sentry.io/organizations/myorg/issues/5678/`\n- Just paste the link from your browser - it will parse it correctly\n\n### Natural Language is Preferred\nThe AI understands context:\n- \"Fix the TypeError in my checkout flow\"\n- \"Why is the database timing out?\"\n- \"Debug the authentication error users are seeing\"\n\n### Environment-Specific Queries\n- Add \"in production\" or \"in staging\" to filter by environment\n- \"Show errors from the mobile app\" to filter by platform\n- \"Errors affecting Chrome users\" for browser-specific issues\n\n## \u2699\uFE0F Key Capabilities\n\n### AI-Powered Tools\nWith OpenAI API key configured:\n- **Natural language search** - Find issues and events using plain English\n- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer\n- **Smart query translation** - Converts natural language to Sentry's query syntax\n\n### Available Resources\n- **SDK Documentation** - Access platform-specific setup guides\n- **This guide** - Available at `sentry://about`\n\n## \uD83D\uDCDA Need Help?\n\n- **Report issues**: https://github.com/getsentry/sentry-mcp/issues\n- **Documentation**: https://mcp.sentry.dev\n\n---\n\n*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*";
7
- //# sourceMappingURL=about.d.ts.map
8
- //#endregion
9
- export { ABOUT_CONTENT };
10
- //# sourceMappingURL=about-CteXVo1Q.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"about-CteXVo1Q.d.ts","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":[],"mappings":";;AAKA;;;cAAa,aAAA"}
@@ -1,10 +0,0 @@
1
- //#region src/resources/about.d.ts
2
- /**
3
- * About content for the Sentry MCP resource.
4
- * This provides users with information about the service and what they can do with it.
5
- */
6
- declare const ABOUT_CONTENT = "# About Sentry MCP\n\n## What is Sentry MCP?\n\nThe Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.\n\nThis remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.\n\n## Learn More\n\nVisit **<https://mcp.sentry.dev>** for documentation and updates.\n\n## \uD83D\uDE80 Quick Start for Coding Agents\n\nWhen debugging your application with Sentry MCP:\n\n### Debug a Production Error\nUser reports an error? Just paste the Sentry link:\n- \"Analyze https://myorg.sentry.io/issues/PROJECT-123\"\n- \"Get root cause for https://sentry.io/organizations/myorg/issues/5678/\"\n- \"Explain this error: [paste Sentry issue URL]\"\n\n### Fix Code Based on Errors\nGet AI-powered fixes for your codebase:\n- \"Analyze issue PROJECT-123 with AI and show me the code fix\"\n- \"What's causing the TypeError in checkout.js line 45?\"\n- \"Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789\"\n\n### Investigate Performance Issues\n- \"Show me slow API calls in /api/checkout endpoint\"\n- \"Find database queries taking over 1 second\"\n- \"Analyze trace abc123def456 for performance bottlenecks\"\n\n## \uD83D\uDCCA Real-Time Error Monitoring\n\nMonitor errors while you code:\n\n### Check Error Impact\n- \"How many users are affected by error PROJECT-456?\"\n- \"Are there new errors in the last deployment?\"\n- \"Show critical errors from production in the last hour\"\n- \"Which errors are happening most frequently?\"\n\n### Track Deployments\n- \"What errors appeared after release v2.1.0?\"\n- \"Show me issues in the latest release\"\n- \"Find errors introduced in commit abc123\"\n\n## \uD83D\uDEE0 Project Configuration for Development\n\nWhen setting up error tracking in your code:\n\n### Get Your DSN\n- \"Get the DSN for my-project\" - For configuring Sentry SDK\n- \"Create a production DSN for my-api\" - For environment-specific setup\n\n### SDK Setup Help\n- \"Search docs for Next.js setup\" - Get integration guides\n- \"How do I configure source maps for React?\"\n- \"Show Python Django integration guide\"\n\n## \uD83C\uDFAF Real-World Developer Workflows\n\n### User Reports a Bug\n1. User sends you a Sentry link or error ID\n2. \"Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI\"\n3. Review the root cause analysis and suggested fixes\n4. Apply the fix to your codebase\n5. \"Resolve issue PROJECT-123\" when deployed\n\n### Debugging CI/CD Failures\n1. \"Show errors from the last hour in staging environment\"\n2. \"What's causing the test failures in auth.js?\"\n3. \"Get stack trace for error EVENT-789\"\n4. Fix the issue and push your changes\n\n### Performance Optimization\n1. \"Find the slowest database queries in production\"\n2. \"Show me traces for /api/checkout taking over 2 seconds\"\n3. \"What's the P95 response time for our API?\"\n4. Optimize based on the bottlenecks found\n\n### Pre-Release Checklist\n1. \"Are there any unresolved critical errors?\"\n2. \"Show errors from the staging environment today\"\n3. \"What new errors appeared in the last deployment?\"\n4. Fix any blockers before release\n\n## \uD83D\uDCA1 Pro Tips\n\n### Working with Issue URLs\nSentry MCP understands multiple URL formats:\n- Full URLs: `https://myorg.sentry.io/issues/PROJECT-123`\n- Organization URLs: `https://sentry.io/organizations/myorg/issues/5678/`\n- Just paste the link from your browser - it will parse it correctly\n\n### Natural Language is Preferred\nThe AI understands context:\n- \"Fix the TypeError in my checkout flow\"\n- \"Why is the database timing out?\"\n- \"Debug the authentication error users are seeing\"\n\n### Environment-Specific Queries\n- Add \"in production\" or \"in staging\" to filter by environment\n- \"Show errors from the mobile app\" to filter by platform\n- \"Errors affecting Chrome users\" for browser-specific issues\n\n## \u2699\uFE0F Key Capabilities\n\n### AI-Powered Tools\nWith OpenAI API key configured:\n- **Natural language search** - Find issues and events using plain English\n- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer\n- **Smart query translation** - Converts natural language to Sentry's query syntax\n\n### Available Resources\n- **SDK Documentation** - Access platform-specific setup guides\n- **This guide** - Available at `sentry://about`\n\n## \uD83D\uDCDA Need Help?\n\n- **Report issues**: https://github.com/getsentry/sentry-mcp/issues\n- **Documentation**: https://mcp.sentry.dev\n\n---\n\n*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*";
7
- //# sourceMappingURL=about.d.ts.map
8
- //#endregion
9
- export { ABOUT_CONTENT };
10
- //# sourceMappingURL=about-CwQvsGSc.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"about-CwQvsGSc.d.cts","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":[],"mappings":";;AAKA;;;cAAa,aAAA"}
@@ -1,142 +0,0 @@
1
-
2
- //#region src/resources/about.ts
3
- /**
4
- * About content for the Sentry MCP resource.
5
- * This provides users with information about the service and what they can do with it.
6
- */
7
- const ABOUT_CONTENT = `# About Sentry MCP
8
-
9
- ## What is Sentry MCP?
10
-
11
- The Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.
12
-
13
- This remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.
14
-
15
- ## Learn More
16
-
17
- Visit **<https://mcp.sentry.dev>** for documentation and updates.
18
-
19
- ## 🚀 Quick Start for Coding Agents
20
-
21
- When debugging your application with Sentry MCP:
22
-
23
- ### Debug a Production Error
24
- User reports an error? Just paste the Sentry link:
25
- - "Analyze https://myorg.sentry.io/issues/PROJECT-123"
26
- - "Get root cause for https://sentry.io/organizations/myorg/issues/5678/"
27
- - "Explain this error: [paste Sentry issue URL]"
28
-
29
- ### Fix Code Based on Errors
30
- Get AI-powered fixes for your codebase:
31
- - "Analyze issue PROJECT-123 with AI and show me the code fix"
32
- - "What's causing the TypeError in checkout.js line 45?"
33
- - "Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789"
34
-
35
- ### Investigate Performance Issues
36
- - "Show me slow API calls in /api/checkout endpoint"
37
- - "Find database queries taking over 1 second"
38
- - "Analyze trace abc123def456 for performance bottlenecks"
39
-
40
- ## 📊 Real-Time Error Monitoring
41
-
42
- Monitor errors while you code:
43
-
44
- ### Check Error Impact
45
- - "How many users are affected by error PROJECT-456?"
46
- - "Are there new errors in the last deployment?"
47
- - "Show critical errors from production in the last hour"
48
- - "Which errors are happening most frequently?"
49
-
50
- ### Track Deployments
51
- - "What errors appeared after release v2.1.0?"
52
- - "Show me issues in the latest release"
53
- - "Find errors introduced in commit abc123"
54
-
55
- ## 🛠 Project Configuration for Development
56
-
57
- When setting up error tracking in your code:
58
-
59
- ### Get Your DSN
60
- - "Get the DSN for my-project" - For configuring Sentry SDK
61
- - "Create a production DSN for my-api" - For environment-specific setup
62
-
63
- ### SDK Setup Help
64
- - "Search docs for Next.js setup" - Get integration guides
65
- - "How do I configure source maps for React?"
66
- - "Show Python Django integration guide"
67
-
68
- ## 🎯 Real-World Developer Workflows
69
-
70
- ### User Reports a Bug
71
- 1. User sends you a Sentry link or error ID
72
- 2. "Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI"
73
- 3. Review the root cause analysis and suggested fixes
74
- 4. Apply the fix to your codebase
75
- 5. "Resolve issue PROJECT-123" when deployed
76
-
77
- ### Debugging CI/CD Failures
78
- 1. "Show errors from the last hour in staging environment"
79
- 2. "What's causing the test failures in auth.js?"
80
- 3. "Get stack trace for error EVENT-789"
81
- 4. Fix the issue and push your changes
82
-
83
- ### Performance Optimization
84
- 1. "Find the slowest database queries in production"
85
- 2. "Show me traces for /api/checkout taking over 2 seconds"
86
- 3. "What's the P95 response time for our API?"
87
- 4. Optimize based on the bottlenecks found
88
-
89
- ### Pre-Release Checklist
90
- 1. "Are there any unresolved critical errors?"
91
- 2. "Show errors from the staging environment today"
92
- 3. "What new errors appeared in the last deployment?"
93
- 4. Fix any blockers before release
94
-
95
- ## 💡 Pro Tips
96
-
97
- ### Working with Issue URLs
98
- Sentry MCP understands multiple URL formats:
99
- - Full URLs: \`https://myorg.sentry.io/issues/PROJECT-123\`
100
- - Organization URLs: \`https://sentry.io/organizations/myorg/issues/5678/\`
101
- - Just paste the link from your browser - it will parse it correctly
102
-
103
- ### Natural Language is Preferred
104
- The AI understands context:
105
- - "Fix the TypeError in my checkout flow"
106
- - "Why is the database timing out?"
107
- - "Debug the authentication error users are seeing"
108
-
109
- ### Environment-Specific Queries
110
- - Add "in production" or "in staging" to filter by environment
111
- - "Show errors from the mobile app" to filter by platform
112
- - "Errors affecting Chrome users" for browser-specific issues
113
-
114
- ## ⚙️ Key Capabilities
115
-
116
- ### AI-Powered Tools
117
- With OpenAI API key configured:
118
- - **Natural language search** - Find issues and events using plain English
119
- - **Root cause analysis** - Get AI-powered debugging with code fixes via Seer
120
- - **Smart query translation** - Converts natural language to Sentry's query syntax
121
-
122
- ### Available Resources
123
- - **SDK Documentation** - Access platform-specific setup guides
124
- - **This guide** - Available at \`sentry://about\`
125
-
126
- ## 📚 Need Help?
127
-
128
- - **Report issues**: https://github.com/getsentry/sentry-mcp/issues
129
- - **Documentation**: https://mcp.sentry.dev
130
-
131
- ---
132
-
133
- *Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*`;
134
-
135
- //#endregion
136
- Object.defineProperty(exports, 'ABOUT_CONTENT', {
137
- enumerable: true,
138
- get: function () {
139
- return ABOUT_CONTENT;
140
- }
141
- });
142
- //# sourceMappingURL=about-aDGhlM6f.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"about-aDGhlM6f.cjs","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":["/**\n * About content for the Sentry MCP resource.\n * This provides users with information about the service and what they can do with it.\n */\n\nexport const ABOUT_CONTENT = `# About Sentry MCP\n\n## What is Sentry MCP?\n\nThe Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.\n\nThis remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.\n\n## Learn More\n\nVisit **<https://mcp.sentry.dev>** for documentation and updates.\n\n## 🚀 Quick Start for Coding Agents\n\nWhen debugging your application with Sentry MCP:\n\n### Debug a Production Error\nUser reports an error? Just paste the Sentry link:\n- \"Analyze https://myorg.sentry.io/issues/PROJECT-123\"\n- \"Get root cause for https://sentry.io/organizations/myorg/issues/5678/\"\n- \"Explain this error: [paste Sentry issue URL]\"\n\n### Fix Code Based on Errors\nGet AI-powered fixes for your codebase:\n- \"Analyze issue PROJECT-123 with AI and show me the code fix\"\n- \"What's causing the TypeError in checkout.js line 45?\"\n- \"Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789\"\n\n### Investigate Performance Issues\n- \"Show me slow API calls in /api/checkout endpoint\"\n- \"Find database queries taking over 1 second\"\n- \"Analyze trace abc123def456 for performance bottlenecks\"\n\n## 📊 Real-Time Error Monitoring\n\nMonitor errors while you code:\n\n### Check Error Impact\n- \"How many users are affected by error PROJECT-456?\"\n- \"Are there new errors in the last deployment?\"\n- \"Show critical errors from production in the last hour\"\n- \"Which errors are happening most frequently?\"\n\n### Track Deployments\n- \"What errors appeared after release v2.1.0?\"\n- \"Show me issues in the latest release\"\n- \"Find errors introduced in commit abc123\"\n\n## 🛠 Project Configuration for Development\n\nWhen setting up error tracking in your code:\n\n### Get Your DSN\n- \"Get the DSN for my-project\" - For configuring Sentry SDK\n- \"Create a production DSN for my-api\" - For environment-specific setup\n\n### SDK Setup Help\n- \"Search docs for Next.js setup\" - Get integration guides\n- \"How do I configure source maps for React?\"\n- \"Show Python Django integration guide\"\n\n## 🎯 Real-World Developer Workflows\n\n### User Reports a Bug\n1. User sends you a Sentry link or error ID\n2. \"Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI\"\n3. Review the root cause analysis and suggested fixes\n4. Apply the fix to your codebase\n5. \"Resolve issue PROJECT-123\" when deployed\n\n### Debugging CI/CD Failures\n1. \"Show errors from the last hour in staging environment\"\n2. \"What's causing the test failures in auth.js?\"\n3. \"Get stack trace for error EVENT-789\"\n4. Fix the issue and push your changes\n\n### Performance Optimization\n1. \"Find the slowest database queries in production\"\n2. \"Show me traces for /api/checkout taking over 2 seconds\"\n3. \"What's the P95 response time for our API?\"\n4. Optimize based on the bottlenecks found\n\n### Pre-Release Checklist\n1. \"Are there any unresolved critical errors?\"\n2. \"Show errors from the staging environment today\"\n3. \"What new errors appeared in the last deployment?\"\n4. Fix any blockers before release\n\n## 💡 Pro Tips\n\n### Working with Issue URLs\nSentry MCP understands multiple URL formats:\n- Full URLs: \\`https://myorg.sentry.io/issues/PROJECT-123\\`\n- Organization URLs: \\`https://sentry.io/organizations/myorg/issues/5678/\\`\n- Just paste the link from your browser - it will parse it correctly\n\n### Natural Language is Preferred\nThe AI understands context:\n- \"Fix the TypeError in my checkout flow\"\n- \"Why is the database timing out?\"\n- \"Debug the authentication error users are seeing\"\n\n### Environment-Specific Queries\n- Add \"in production\" or \"in staging\" to filter by environment\n- \"Show errors from the mobile app\" to filter by platform\n- \"Errors affecting Chrome users\" for browser-specific issues\n\n## ⚙️ Key Capabilities\n\n### AI-Powered Tools\nWith OpenAI API key configured:\n- **Natural language search** - Find issues and events using plain English\n- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer\n- **Smart query translation** - Converts natural language to Sentry's query syntax\n\n### Available Resources\n- **SDK Documentation** - Access platform-specific setup guides\n- **This guide** - Available at \\`sentry://about\\`\n\n## 📚 Need Help?\n\n- **Report issues**: https://github.com/getsentry/sentry-mcp/issues\n- **Documentation**: https://mcp.sentry.dev\n\n---\n\n*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*`;\n"],"mappings":";;;;;;AAKA,MAAa,iBAAiB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"analyze-issue-with-seer-Cf0jCiKP.cjs","names":["context: ServerContext","SEER_MAX_RETRIES","SEER_INITIAL_RETRY_DELAY","ApiServerError","ApiError","SEER_TIMEOUT","SEER_POLLING_INTERVAL"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { parseIssueParams } from \"../internal/tool-helpers/issue\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"../internal/tool-helpers/seer\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError, ApiServerError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n requiredScopes: [\"event:read\"],\n description: [\n \"Use Seer AI to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;;;AAyBA,sCAAe,0BAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,YAAa;CAC9B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,aAAa,MACV,QAAQ,CACR,SAAS,kDAAkD,CAC3D,UAAU;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,kCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAEpC,IAAI,UAAU,+BAA+B,cAAc;EAG3D,IAAI,eAAe,MAAM,qCACvB,MACE,WAAW,gBAAgB;GACzB,kBAAkB;GAClB,SAAS;EACV,EAAC,EACJ;GACE,YAAYC;GACZ,cAAcC;GACd,aAAa,CAAC,UAAU;AAEtB,WACE,iBAAiBC,mCAAoB,iBAAiBC;GAEzD;EACF,EACF;AAGD,OAAK,aAAa,SAAS;AACzB,cAAW;GACX,MAAM,cAAc,MAAM,WAAW,aAAa;IAChD,kBAAkB;IAClB,SAAS;IACT,aAAa,OAAO;GACrB,EAAC;AACF,cAAW,gCAAgC,YAAY,OAAO;AAG9D,SAAM,IAAI,QAAQ,CAAC,YAAY,WAAW,SAAS,IAAK;AAGxD,kBAAe,MAAM,qCACnB,MACE,WAAW,gBAAgB;IACzB,kBAAkB;IAClB,SAAS;GACV,EAAC,EACJ;IACE,YAAYH;IACZ,cAAcC;IACd,aAAa,CAAC,UAAU;AAEtB,YACE,iBAAiBC,mCAAoB,iBAAiBC;IAEzD;GACF,EACF;EACF,OAAM;AACL,cAAW,mCAAmC,aAAa,QAAQ,OAAO;GAG1E,MAAM,iBAAiB,aAAa,QAAQ;AAC5C,OAAI,8BAAiB,eAAe,EAAE;AAEpC,eAAW,cAAc,kCAAqB,eAAe,CAAC;AAE9D,SAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,eAAU,qCAAwB,KAAK;AACvC,eAAU;IACX;AAED,QAAI,mBAAmB,aAAa;AAClC,gBAAW,gBAAgB,eAAe;AAC1C,eAAU,0CAA6B,eAAe;AACtD,eAAU;IACX;AAED,WAAO;GACR;EACF;EAGD,MAAM,YAAY,KAAK,KAAK;EAC5B,IAAI,aAAa;EACjB,IAAI,oBAAoB;AAExB,SAAO,KAAK,KAAK,GAAG,YAAYC,2BAAc;AAC5C,QAAK,aAAa,SAAS;AACzB,eAAW;AACX,eAAW;AACX,cAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,eAAW;AACX,WAAO;GACR;GAED,MAAM,SAAS,aAAa,QAAQ;AAGpC,OAAI,8BAAiB,OAAO,EAAE;AAC5B,eAAW,cAAc,kCAAqB,OAAO,CAAC;AAGtD,SAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,eAAU,qCAAwB,KAAK;AACvC,eAAU;IACX;AAED,QAAI,WAAW,aAAa;AAC1B,gBAAW,gBAAgB,OAAO;AAClC,eAAU,0CAA6B,OAAO;IAC/C;AAED,WAAO;GACR;AAGD,OAAI,WAAW,YAAY;IACzB,MAAM,aAAa,aAAa,QAAQ,MAAM,KAC5C,CAAC,SACC,KAAK,WAAW,gBAAgB,KAAK,WAAW,cACnD;AACD,QAAI,WACF,YAAW,cAAc,WAAW,MAAM;AAE5C,iBAAa;GACd;AAGD,SAAM,IAAI,QAAQ,CAAC,YACjB,WAAW,SAASC,mCAAsB;AAI5C,OAAI;AACF,mBAAe,MAAM,qCACnB,MACE,WAAW,gBAAgB;KACzB,kBAAkB;KAClB,SAAS;IACV,EAAC,EACJ;KACE,YAAYL;KACZ,cAAcC;KACd,aAAa,CAAC,UAAU;AAEtB,aACE,iBAAiBC,mCAAoB,iBAAiBC;KAEzD;IACF,EACF;AACD,wBAAoB;GACrB,SAAQ,OAAO;AACd;AAGA,QAAI,qBAAqB,GAAG;AAC1B,gBAAW;AACX,gBAAW;AACX,gBAAW,SAAS,iBAAiB,QAAQ,MAAM,UAAU,OAAO,MAAM,CAAC;AAC3E,gBAAW;AACX,gBAAW;AACX,eAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,gBAAW;AACX,YAAO;IACR;AAGD,eAAW,6CAA6C,kBAAkB;GAC3E;EACF;AAGD,MAAI,aAAa,SAAS;AACxB,cAAW,sBAAsB,kCAAqB,aAAa,QAAQ,OAAO,CAAC;AACnF,QAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,cAAU,qCAAwB,KAAK;AACvC,cAAU;GACX;EACF;AAGD,aAAW;AACX,aAAW,gDAAgDC,4BAAe,IAAK;AAE/E,aAAW;AACX,aAAW;AACX,YAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,aAAW;AAEX,SAAO;CACR;AACF,EAAC"}