@sentry/mcp-server 0.15.0 → 0.17.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 (612) hide show
  1. package/dist/agent-COgY789I.js +225 -0
  2. package/dist/agent-COgY789I.js.map +1 -0
  3. package/dist/agent-Cody_f0d.cjs +59 -0
  4. package/dist/agent-Cody_f0d.cjs.map +1 -0
  5. package/dist/agent-DZRRChrO.js +53 -0
  6. package/dist/agent-DZRRChrO.js.map +1 -0
  7. package/dist/agent-DpCCnhh5.cjs +231 -0
  8. package/dist/agent-DpCCnhh5.cjs.map +1 -0
  9. package/dist/agent-tools/discover-dataset-fields.cjs +6 -0
  10. package/dist/agent-tools/discover-dataset-fields.d.cts +59 -0
  11. package/dist/agent-tools/discover-dataset-fields.d.cts.map +1 -0
  12. package/dist/agent-tools/discover-dataset-fields.d.ts +59 -0
  13. package/dist/agent-tools/discover-dataset-fields.d.ts.map +1 -0
  14. package/dist/agent-tools/discover-dataset-fields.js +3 -0
  15. package/dist/agent-tools/lookup-otel-semantics.cjs +5 -0
  16. package/dist/agent-tools/lookup-otel-semantics.d.cts +38 -0
  17. package/dist/agent-tools/lookup-otel-semantics.d.cts.map +1 -0
  18. package/dist/agent-tools/lookup-otel-semantics.d.ts +38 -0
  19. package/dist/agent-tools/lookup-otel-semantics.d.ts.map +1 -0
  20. package/dist/agent-tools/lookup-otel-semantics.js +4 -0
  21. package/dist/agent-tools/whoami.cjs +4 -0
  22. package/dist/agent-tools/whoami.d.cts +28 -0
  23. package/dist/agent-tools/whoami.d.cts.map +1 -0
  24. package/dist/agent-tools/whoami.d.ts +28 -0
  25. package/dist/agent-tools/whoami.d.ts.map +1 -0
  26. package/dist/agent-tools/whoami.js +3 -0
  27. package/dist/{analyze-issue-with-seer-CoqsTklL.js → analyze-issue-with-seer-DcSwrWrs.js} +51 -11
  28. package/dist/analyze-issue-with-seer-DcSwrWrs.js.map +1 -0
  29. package/dist/{analyze-issue-with-seer-BkVrrh28.cjs → analyze-issue-with-seer-Dw9iqvSk.cjs} +51 -11
  30. package/dist/analyze-issue-with-seer-Dw9iqvSk.cjs.map +1 -0
  31. package/dist/api-client/client.cjs +4 -2
  32. package/dist/api-client/client.d.cts +3 -3
  33. package/dist/api-client/client.d.ts +3 -3
  34. package/dist/api-client/client.js +4 -2
  35. package/dist/api-client/index.cjs +6 -4
  36. package/dist/api-client/index.d.cts +3 -3
  37. package/dist/api-client/index.d.ts +4 -4
  38. package/dist/api-client/index.js +6 -4
  39. package/dist/api-client/schema.cjs +1 -1
  40. package/dist/api-client/schema.d.cts +1 -1
  41. package/dist/api-client/schema.d.ts +1 -1
  42. package/dist/api-client/schema.js +1 -1
  43. package/dist/api-client/types.cjs +1 -1
  44. package/dist/api-client/types.d.cts +2 -2
  45. package/dist/api-client/types.d.ts +2 -2
  46. package/dist/api-client/types.js +1 -1
  47. package/dist/api-utils-BlUSO8xh.js +68 -0
  48. package/dist/api-utils-BlUSO8xh.js.map +1 -0
  49. package/dist/api-utils-DFWUfQ83.cjs +85 -0
  50. package/dist/api-utils-DFWUfQ83.cjs.map +1 -0
  51. package/dist/{client-Dkw5iYu3.cjs → client-CPrEfAwa.cjs} +403 -58
  52. package/dist/client-CPrEfAwa.cjs.map +1 -0
  53. package/dist/{client-CQ9Xe1aN.d.cts → client-C_dDreKj.d.ts} +198 -11
  54. package/dist/client-C_dDreKj.d.ts.map +1 -0
  55. package/dist/{client-VCJp6Kcu.d.ts → client-CgS3tjJG.d.cts} +198 -11
  56. package/dist/client-CgS3tjJG.d.cts.map +1 -0
  57. package/dist/{client-DOYWNvVM.js → client-MaVV1gVC.js} +403 -58
  58. package/dist/client-MaVV1gVC.js.map +1 -0
  59. package/dist/config-BUmDxVLS.js +52 -0
  60. package/dist/config-BUmDxVLS.js.map +1 -0
  61. package/dist/config-BvtWiL3I.js +449 -0
  62. package/dist/config-BvtWiL3I.js.map +1 -0
  63. package/dist/config-CD-5FpOO.cjs +479 -0
  64. package/dist/config-CD-5FpOO.cjs.map +1 -0
  65. package/dist/config-FWsgDbm7.cjs +58 -0
  66. package/dist/config-FWsgDbm7.cjs.map +1 -0
  67. package/dist/{create-dsn-Dz8nyTFw.cjs → create-dsn-C6IPwoVO.cjs} +12 -10
  68. package/dist/create-dsn-C6IPwoVO.cjs.map +1 -0
  69. package/dist/{create-dsn-D530I7Lr.js → create-dsn-QDLdwhDO.js} +12 -10
  70. package/dist/create-dsn-QDLdwhDO.js.map +1 -0
  71. package/dist/{create-project-K1od5Rhx.js → create-project-Cax3fWey.js} +14 -11
  72. package/dist/create-project-Cax3fWey.js.map +1 -0
  73. package/dist/{create-project-BxzRiryg.cjs → create-project-DdSF58TR.cjs} +14 -11
  74. package/dist/create-project-DdSF58TR.cjs.map +1 -0
  75. package/dist/{create-team-CJhrccc1.cjs → create-team-CXaLcylp.cjs} +14 -5
  76. package/dist/{create-team-CJhrccc1.cjs.map → create-team-CXaLcylp.cjs.map} +1 -1
  77. package/dist/{create-team-zHz00C6Q.js → create-team-nm06goO5.js} +14 -5
  78. package/dist/{create-team-zHz00C6Q.js.map → create-team-nm06goO5.js.map} +1 -1
  79. package/dist/discover-dataset-fields-BEnyqPSq.js +156 -0
  80. package/dist/discover-dataset-fields-BEnyqPSq.js.map +1 -0
  81. package/dist/discover-dataset-fields-Cl7HpVkm.cjs +180 -0
  82. package/dist/discover-dataset-fields-Cl7HpVkm.cjs.map +1 -0
  83. package/dist/errors-BtJEw2Z-.cjs +38 -0
  84. package/dist/errors-BtJEw2Z-.cjs.map +1 -0
  85. package/dist/errors-D_R568zP.js +26 -0
  86. package/dist/errors-D_R568zP.js.map +1 -0
  87. package/dist/errors.cjs +2 -1
  88. package/dist/errors.d.cts +10 -2
  89. package/dist/errors.d.cts.map +1 -1
  90. package/dist/errors.d.ts +10 -2
  91. package/dist/errors.d.ts.map +1 -1
  92. package/dist/errors.js +2 -2
  93. package/dist/fetch-utils-CTLoW1R8.d.cts +33 -0
  94. package/dist/fetch-utils-CTLoW1R8.d.cts.map +1 -0
  95. package/dist/fetch-utils-C_Xj921x.js +52 -0
  96. package/dist/fetch-utils-C_Xj921x.js.map +1 -0
  97. package/dist/fetch-utils-DkcYwqBo.cjs +64 -0
  98. package/dist/fetch-utils-DkcYwqBo.cjs.map +1 -0
  99. package/dist/fetch-utils-JDZw4XaU.d.ts +33 -0
  100. package/dist/fetch-utils-JDZw4XaU.d.ts.map +1 -0
  101. package/dist/{find-dsns-BoEP0N7B.js → find-dsns-C3G5aBm1.js} +3 -3
  102. package/dist/{find-dsns-BoEP0N7B.js.map → find-dsns-C3G5aBm1.js.map} +1 -1
  103. package/dist/{find-dsns-CK59RaUJ.cjs → find-dsns-vQolGM7e.cjs} +3 -3
  104. package/dist/{find-dsns-CK59RaUJ.cjs.map → find-dsns-vQolGM7e.cjs.map} +1 -1
  105. package/dist/{find-organizations-BrdMfZRO.cjs → find-organizations-BDtHkcFV.cjs} +3 -3
  106. package/dist/find-organizations-BDtHkcFV.cjs.map +1 -0
  107. package/dist/{find-organizations-ojXwWWzk.js → find-organizations-Cs1GvZtJ.js} +3 -3
  108. package/dist/find-organizations-Cs1GvZtJ.js.map +1 -0
  109. package/dist/{find-projects-fcLG4KpT.js → find-projects-B0NdOjBO.js} +4 -4
  110. package/dist/{find-projects-fcLG4KpT.js.map → find-projects-B0NdOjBO.js.map} +1 -1
  111. package/dist/{find-projects-BZWhlYJh.cjs → find-projects-xM2L0U1W.cjs} +4 -4
  112. package/dist/{find-projects-BZWhlYJh.cjs.map → find-projects-xM2L0U1W.cjs.map} +1 -1
  113. package/dist/{find-releases-CZCVEOHZ.cjs → find-releases-BBTYr5Bx.cjs} +3 -3
  114. package/dist/{find-releases-CZCVEOHZ.cjs.map → find-releases-BBTYr5Bx.cjs.map} +1 -1
  115. package/dist/{find-releases-BUozr0Z-.js → find-releases-BO2OF_uR.js} +3 -3
  116. package/dist/{find-releases-BUozr0Z-.js.map → find-releases-BO2OF_uR.js.map} +1 -1
  117. package/dist/{find-teams-CnU5x9rQ.cjs → find-teams-B237Aq8U.cjs} +4 -4
  118. package/dist/{find-teams-CnU5x9rQ.cjs.map → find-teams-B237Aq8U.cjs.map} +1 -1
  119. package/dist/{find-teams-BZ118EIK.js → find-teams-CqUwp0EI.js} +4 -4
  120. package/dist/{find-teams-BZ118EIK.js.map → find-teams-CqUwp0EI.js.map} +1 -1
  121. package/dist/formatters-B3ONbRhI.js +79 -0
  122. package/dist/formatters-B3ONbRhI.js.map +1 -0
  123. package/dist/formatters-CfeBjhXZ.cjs +235 -0
  124. package/dist/formatters-CfeBjhXZ.cjs.map +1 -0
  125. package/dist/formatters-DSYXBiQx.js +217 -0
  126. package/dist/formatters-DSYXBiQx.js.map +1 -0
  127. package/dist/formatters-DbqofIoy.cjs +85 -0
  128. package/dist/formatters-DbqofIoy.cjs.map +1 -0
  129. package/dist/{formatting-CcTK2X8V.d.cts → formatting-BxyhA4G3.d.cts} +4 -4
  130. package/dist/formatting-BxyhA4G3.d.cts.map +1 -0
  131. package/dist/{formatting-D0Aki7rK.cjs → formatting-C180PVwd.cjs} +3 -3
  132. package/dist/formatting-C180PVwd.cjs.map +1 -0
  133. package/dist/{formatting-vtXxusbn.d.ts → formatting-C80LN9iK.d.ts} +4 -4
  134. package/dist/formatting-C80LN9iK.d.ts.map +1 -0
  135. package/dist/{formatting-Bvyded57.js → formatting-DIvCVunN.js} +3 -3
  136. package/dist/formatting-DIvCVunN.js.map +1 -0
  137. package/dist/{formatting-utils-DgOyTl-m.js → formatting-utils-C3sej5ER.js} +1 -1
  138. package/dist/{formatting-utils-DgOyTl-m.js.map → formatting-utils-C3sej5ER.js.map} +1 -1
  139. package/dist/{formatting-utils-m9R5bsRU.cjs → formatting-utils-DDz14xeB.cjs} +1 -1
  140. package/dist/{formatting-utils-m9R5bsRU.cjs.map → formatting-utils-DDz14xeB.cjs.map} +1 -1
  141. package/dist/{get-doc-DaTCenOE.cjs → get-doc-BfMg0GIa.cjs} +4 -4
  142. package/dist/{get-doc-DaTCenOE.cjs.map → get-doc-BfMg0GIa.cjs.map} +1 -1
  143. package/dist/{get-doc-YTiQznr1.js → get-doc-DyqJe6TP.js} +4 -4
  144. package/dist/{get-doc-YTiQznr1.js.map → get-doc-DyqJe6TP.js.map} +1 -1
  145. package/dist/{get-event-attachment-DVCPpUMj.js → get-event-attachment-B-ElqztF.js} +3 -3
  146. package/dist/{get-event-attachment-DVCPpUMj.js.map → get-event-attachment-B-ElqztF.js.map} +1 -1
  147. package/dist/{get-event-attachment-C-ig2-3F.cjs → get-event-attachment-o0oH43Tv.cjs} +3 -3
  148. package/dist/{get-event-attachment-C-ig2-3F.cjs.map → get-event-attachment-o0oH43Tv.cjs.map} +1 -1
  149. package/dist/{get-issue-details-lBrYR9yx.cjs → get-issue-details-CP_RyCpt.cjs} +27 -20
  150. package/dist/get-issue-details-CP_RyCpt.cjs.map +1 -0
  151. package/dist/{get-issue-details-Dcmzxknx.js → get-issue-details-CzroF7HR.js} +27 -20
  152. package/dist/get-issue-details-CzroF7HR.js.map +1 -0
  153. package/dist/handler-BGhr9FJM.d.cts +15 -0
  154. package/dist/handler-BGhr9FJM.d.cts.map +1 -0
  155. package/dist/handler-BH_OLIbD.cjs +152 -0
  156. package/dist/handler-BH_OLIbD.cjs.map +1 -0
  157. package/dist/handler-BPPTAi7I.d.ts +15 -0
  158. package/dist/handler-BPPTAi7I.d.ts.map +1 -0
  159. package/dist/handler-BZ3hKPb8.d.cts +15 -0
  160. package/dist/handler-BZ3hKPb8.d.cts.map +1 -0
  161. package/dist/handler-O9fYgC9a.cjs +114 -0
  162. package/dist/handler-O9fYgC9a.cjs.map +1 -0
  163. package/dist/handler-aE_8mEm7.js +146 -0
  164. package/dist/handler-aE_8mEm7.js.map +1 -0
  165. package/dist/handler-cUB6XcUV.d.ts +15 -0
  166. package/dist/handler-cUB6XcUV.d.ts.map +1 -0
  167. package/dist/handler-ykkULTZ-.js +108 -0
  168. package/dist/handler-ykkULTZ-.js.map +1 -0
  169. package/dist/index.cjs +54 -44
  170. package/dist/index.cjs.map +1 -1
  171. package/dist/index.js +54 -44
  172. package/dist/index.js.map +1 -1
  173. package/dist/internal/fetch-utils.cjs +3 -2
  174. package/dist/internal/fetch-utils.d.cts +2 -2
  175. package/dist/internal/fetch-utils.d.ts +2 -2
  176. package/dist/internal/fetch-utils.js +2 -2
  177. package/dist/internal/formatting.cjs +2 -2
  178. package/dist/internal/formatting.d.cts +4 -4
  179. package/dist/internal/formatting.d.ts +5 -5
  180. package/dist/internal/formatting.js +2 -2
  181. package/dist/internal/issue-helpers.cjs +2 -1
  182. package/dist/internal/issue-helpers.d.ts +1 -1
  183. package/dist/internal/issue-helpers.js +2 -1
  184. package/dist/internal/test-fixtures.d.cts +164 -164
  185. package/dist/internal/test-fixtures.d.cts.map +1 -1
  186. package/dist/internal/test-fixtures.d.ts +38 -38
  187. package/dist/internal/test-fixtures.d.ts.map +1 -1
  188. package/dist/{issue-helpers-CqqYnwYE.js → issue-helpers-CRx45FYG.js} +15 -19
  189. package/dist/issue-helpers-CRx45FYG.js.map +1 -0
  190. package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -1
  191. package/dist/{issue-helpers-BJffpNoO.d.ts → issue-helpers-D1_Uqr-F.d.ts} +1 -1
  192. package/dist/issue-helpers-D1_Uqr-F.d.ts.map +1 -0
  193. package/dist/{issue-helpers-DyAIO0w6.cjs → issue-helpers-s5fKLwJZ.cjs} +14 -19
  194. package/dist/issue-helpers-s5fKLwJZ.cjs.map +1 -0
  195. package/dist/{logging-CX2buXiG.cjs → logging-BpL53bY6.cjs} +1 -1
  196. package/dist/{logging-CX2buXiG.cjs.map → logging-BpL53bY6.cjs.map} +1 -1
  197. package/dist/{logging-DzxYBMrn.js → logging-tGU_SYcA.js} +1 -1
  198. package/dist/{logging-DzxYBMrn.js.map → logging-tGU_SYcA.js.map} +1 -1
  199. package/dist/logging.cjs +1 -1
  200. package/dist/logging.js +1 -1
  201. package/dist/lookup-otel-semantics-BbriXZAx.cjs +5088 -0
  202. package/dist/lookup-otel-semantics-BbriXZAx.cjs.map +1 -0
  203. package/dist/lookup-otel-semantics-Dt667kdR.js +5076 -0
  204. package/dist/lookup-otel-semantics-Dt667kdR.js.map +1 -0
  205. package/dist/{promptDefinitions-C29BWGYg.cjs → promptDefinitions-5V4-M69A.cjs} +2 -2
  206. package/dist/{promptDefinitions-C29BWGYg.cjs.map → promptDefinitions-5V4-M69A.cjs.map} +1 -1
  207. package/dist/{promptDefinitions-D3GTBGLr.d.ts → promptDefinitions-DehpwJfn.d.ts} +1 -1
  208. package/dist/promptDefinitions-DehpwJfn.d.ts.map +1 -0
  209. package/dist/{promptDefinitions-CSKE8T0a.js → promptDefinitions-DyshsF51.js} +2 -2
  210. package/dist/{promptDefinitions-CSKE8T0a.js.map → promptDefinitions-DyshsF51.js.map} +1 -1
  211. package/dist/promptDefinitions.cjs +2 -2
  212. package/dist/promptDefinitions.d.ts +1 -1
  213. package/dist/promptDefinitions.js +2 -2
  214. package/dist/{prompts-Df3i1XSB.cjs → prompts-BTtNbKQR.cjs} +7 -5
  215. package/dist/prompts-BTtNbKQR.cjs.map +1 -0
  216. package/dist/{prompts-C8Y9w5c4.js → prompts-CYcvIxWR.js} +7 -5
  217. package/dist/prompts-CYcvIxWR.js.map +1 -0
  218. package/dist/prompts.cjs +2 -2
  219. package/dist/prompts.d.cts +1 -1
  220. package/dist/prompts.d.cts.map +1 -1
  221. package/dist/prompts.d.ts +2 -2
  222. package/dist/prompts.d.ts.map +1 -1
  223. package/dist/prompts.js +2 -2
  224. package/dist/resources-CSxBC9gs.js +60 -0
  225. package/dist/resources-CSxBC9gs.js.map +1 -0
  226. package/dist/resources-TCvijqOA.cjs +72 -0
  227. package/dist/resources-TCvijqOA.cjs.map +1 -0
  228. package/dist/resources.cjs +2 -2
  229. package/dist/resources.d.cts.map +1 -1
  230. package/dist/resources.d.ts.map +1 -1
  231. package/dist/resources.js +2 -2
  232. package/dist/{schema-3NeMWRAm.d.cts → schema-BlkWypl3.d.ts} +155 -155
  233. package/dist/schema-BlkWypl3.d.ts.map +1 -0
  234. package/dist/{schema-DtsnsxMl.js → schema-Bv2fvxgy.js} +2 -2
  235. package/dist/{schema-DtsnsxMl.js.map → schema-Bv2fvxgy.js.map} +1 -1
  236. package/dist/{schema-B_cMyyJJ.cjs → schema-C0LznFvu.cjs} +4 -4
  237. package/dist/schema-C0LznFvu.cjs.map +1 -0
  238. package/dist/{schema-WDk5Yqww.js → schema-CcFmBoEf.js} +4 -4
  239. package/dist/schema-CcFmBoEf.js.map +1 -0
  240. package/dist/{schema-B3CzDGJk.d.ts → schema-CdDcpvrp.d.cts} +375 -375
  241. package/dist/schema-CdDcpvrp.d.cts.map +1 -0
  242. package/dist/{schema-BpJVmev8.cjs → schema-DPL_hZXP.cjs} +2 -2
  243. package/dist/{schema-BpJVmev8.cjs.map → schema-DPL_hZXP.cjs.map} +1 -1
  244. package/dist/schema.cjs +1 -1
  245. package/dist/schema.js +1 -1
  246. package/dist/{search-docs-D5Foht_0.cjs → search-docs-CjIZDaD1.cjs} +4 -4
  247. package/dist/{search-docs-D5Foht_0.cjs.map → search-docs-CjIZDaD1.cjs.map} +1 -1
  248. package/dist/{search-docs-BLbB_GV2.js → search-docs-ss09Dt0F.js} +4 -4
  249. package/dist/{search-docs-BLbB_GV2.js.map → search-docs-ss09Dt0F.js.map} +1 -1
  250. package/dist/search-issues-BFgCvRYe.js +0 -0
  251. package/dist/search-issues-Biu64RkQ.cjs +0 -0
  252. package/dist/{seer-utils-CDm5J8ur.cjs → seer-utils-C7Kv0gr8.cjs} +15 -1
  253. package/dist/seer-utils-C7Kv0gr8.cjs.map +1 -0
  254. package/dist/{seer-utils-Cj9DXrow.js → seer-utils-NPHv8KYY.js} +4 -2
  255. package/dist/seer-utils-NPHv8KYY.js.map +1 -0
  256. package/dist/{server-BSRxzYFd.js → server-D78x_7Vz.js} +80 -26
  257. package/dist/server-D78x_7Vz.js.map +1 -0
  258. package/dist/{server-Dgkqz8bA.cjs → server-DYFiTMLB.cjs} +80 -26
  259. package/dist/server-DYFiTMLB.cjs.map +1 -0
  260. package/dist/server.cjs +52 -40
  261. package/dist/server.d.cts +4 -2
  262. package/dist/server.d.cts.map +1 -1
  263. package/dist/server.d.ts +5 -3
  264. package/dist/server.d.ts.map +1 -1
  265. package/dist/server.js +52 -40
  266. package/dist/{stdio-BQAm0Liz.cjs → stdio-Be01KQkA.cjs} +3 -3
  267. package/dist/{stdio-BQAm0Liz.cjs.map → stdio-Be01KQkA.cjs.map} +1 -1
  268. package/dist/{stdio-BcihaDjO.js → stdio-CDb2NHHD.js} +3 -3
  269. package/dist/{stdio-BcihaDjO.js.map → stdio-CDb2NHHD.js.map} +1 -1
  270. package/dist/test-setup.cjs +371 -0
  271. package/dist/test-setup.cjs.map +1 -1
  272. package/dist/test-setup.js +371 -0
  273. package/dist/test-setup.js.map +1 -1
  274. package/dist/toolDefinitions.cjs +184 -0
  275. package/dist/toolDefinitions.cjs.map +1 -0
  276. package/dist/toolDefinitions.d.cts +13 -0
  277. package/dist/toolDefinitions.d.cts.map +1 -0
  278. package/dist/toolDefinitions.d.ts +8 -20
  279. package/dist/toolDefinitions.d.ts.map +1 -0
  280. package/dist/toolDefinitions.js +183 -1059
  281. package/dist/toolDefinitions.js.map +1 -0
  282. package/dist/tools/analyze-issue-with-seer.cjs +14 -12
  283. package/dist/tools/analyze-issue-with-seer.d.cts +2 -2
  284. package/dist/tools/analyze-issue-with-seer.d.ts +3 -3
  285. package/dist/tools/analyze-issue-with-seer.js +14 -12
  286. package/dist/tools/create-dsn.cjs +9 -8
  287. package/dist/tools/create-dsn.d.cts +2 -2
  288. package/dist/tools/create-dsn.d.ts +3 -3
  289. package/dist/tools/create-dsn.js +9 -8
  290. package/dist/tools/create-project.cjs +10 -9
  291. package/dist/tools/create-project.d.cts +2 -2
  292. package/dist/tools/create-project.d.ts +3 -3
  293. package/dist/tools/create-project.js +10 -9
  294. package/dist/tools/create-team.cjs +9 -8
  295. package/dist/tools/create-team.d.cts +2 -2
  296. package/dist/tools/create-team.d.ts +3 -3
  297. package/dist/tools/create-team.js +9 -8
  298. package/dist/tools/find-dsns.cjs +9 -8
  299. package/dist/tools/find-dsns.d.cts +2 -2
  300. package/dist/tools/find-dsns.d.ts +3 -3
  301. package/dist/tools/find-dsns.js +9 -8
  302. package/dist/tools/find-organizations.cjs +8 -7
  303. package/dist/tools/find-organizations.d.cts +2 -2
  304. package/dist/tools/find-organizations.d.ts +3 -3
  305. package/dist/tools/find-organizations.js +8 -7
  306. package/dist/tools/find-projects.cjs +9 -8
  307. package/dist/tools/find-projects.d.cts +2 -2
  308. package/dist/tools/find-projects.d.ts +3 -3
  309. package/dist/tools/find-projects.js +9 -8
  310. package/dist/tools/find-releases.cjs +9 -8
  311. package/dist/tools/find-releases.d.cts +2 -2
  312. package/dist/tools/find-releases.d.ts +3 -3
  313. package/dist/tools/find-releases.js +9 -8
  314. package/dist/tools/find-teams.cjs +9 -8
  315. package/dist/tools/find-teams.d.cts +2 -2
  316. package/dist/tools/find-teams.d.ts +3 -3
  317. package/dist/tools/find-teams.js +9 -8
  318. package/dist/tools/get-doc.cjs +9 -8
  319. package/dist/tools/get-doc.d.cts +2 -2
  320. package/dist/tools/get-doc.d.ts +3 -3
  321. package/dist/tools/get-doc.js +9 -8
  322. package/dist/tools/get-event-attachment.cjs +9 -8
  323. package/dist/tools/get-event-attachment.d.cts +2 -2
  324. package/dist/tools/get-event-attachment.d.ts +3 -3
  325. package/dist/tools/get-event-attachment.js +9 -8
  326. package/dist/tools/get-issue-details.cjs +13 -12
  327. package/dist/tools/get-issue-details.d.cts +2 -2
  328. package/dist/tools/get-issue-details.d.ts +3 -3
  329. package/dist/tools/get-issue-details.js +13 -12
  330. package/dist/tools/index.cjs +47 -36
  331. package/dist/tools/index.d.cts +74 -86
  332. package/dist/tools/index.d.cts.map +1 -1
  333. package/dist/tools/index.d.ts +15 -27
  334. package/dist/tools/index.d.ts.map +1 -1
  335. package/dist/tools/index.js +47 -36
  336. package/dist/tools/search-docs.cjs +10 -8
  337. package/dist/tools/search-docs.d.cts +2 -2
  338. package/dist/tools/search-docs.d.ts +3 -3
  339. package/dist/tools/search-docs.js +10 -8
  340. package/dist/tools/search-events/agent.cjs +8 -0
  341. package/dist/tools/search-events/agent.d.cts +43 -0
  342. package/dist/tools/search-events/agent.d.cts.map +1 -0
  343. package/dist/tools/search-events/agent.d.ts +43 -0
  344. package/dist/tools/search-events/agent.d.ts.map +1 -0
  345. package/dist/tools/search-events/agent.js +8 -0
  346. package/dist/tools/search-events/config.cjs +7 -0
  347. package/dist/tools/search-events/config.d.cts +131 -0
  348. package/dist/tools/search-events/config.d.cts.map +1 -0
  349. package/dist/tools/search-events/config.d.ts +131 -0
  350. package/dist/tools/search-events/config.d.ts.map +1 -0
  351. package/dist/tools/search-events/config.js +3 -0
  352. package/dist/tools/search-events/formatters.cjs +8 -0
  353. package/dist/tools/search-events/formatters.d.cts +32 -0
  354. package/dist/tools/search-events/formatters.d.cts.map +1 -0
  355. package/dist/tools/search-events/formatters.d.ts +32 -0
  356. package/dist/tools/search-events/formatters.d.ts.map +1 -0
  357. package/dist/tools/search-events/formatters.js +6 -0
  358. package/dist/tools/search-events/handler.cjs +20 -0
  359. package/dist/tools/search-events/handler.d.cts +5 -0
  360. package/dist/tools/search-events/handler.d.ts +5 -0
  361. package/dist/tools/search-events/handler.js +20 -0
  362. package/dist/tools/search-events/index.cjs +21 -0
  363. package/dist/tools/search-events/index.d.cts +5 -0
  364. package/dist/tools/search-events/index.d.ts +5 -0
  365. package/dist/tools/search-events/index.js +21 -0
  366. package/dist/tools/search-events/utils.cjs +9 -0
  367. package/dist/tools/search-events/utils.d.cts +6 -0
  368. package/dist/tools/search-events/utils.d.ts +6 -0
  369. package/dist/tools/search-events/utils.js +5 -0
  370. package/dist/tools/search-issues/agent.cjs +7 -0
  371. package/dist/tools/search-issues/agent.d.cts +33 -0
  372. package/dist/tools/search-issues/agent.d.cts.map +1 -0
  373. package/dist/tools/search-issues/agent.d.ts +33 -0
  374. package/dist/tools/search-issues/agent.d.ts.map +1 -0
  375. package/dist/tools/search-issues/agent.js +7 -0
  376. package/dist/tools/search-issues/config.cjs +3 -0
  377. package/dist/tools/search-issues/config.d.cts +9 -0
  378. package/dist/tools/search-issues/config.d.cts.map +1 -0
  379. package/dist/tools/search-issues/config.d.ts +9 -0
  380. package/dist/tools/search-issues/config.d.ts.map +1 -0
  381. package/dist/tools/search-issues/config.js +3 -0
  382. package/dist/tools/search-issues/formatters.cjs +4 -0
  383. package/dist/tools/search-issues/formatters.d.cts +15 -0
  384. package/dist/tools/search-issues/formatters.d.cts.map +1 -0
  385. package/dist/tools/search-issues/formatters.d.ts +15 -0
  386. package/dist/tools/search-issues/formatters.d.ts.map +1 -0
  387. package/dist/tools/search-issues/formatters.js +4 -0
  388. package/dist/tools/search-issues/handler.cjs +18 -0
  389. package/dist/tools/search-issues/handler.d.cts +5 -0
  390. package/dist/tools/search-issues/handler.d.ts +5 -0
  391. package/dist/tools/search-issues/handler.js +18 -0
  392. package/dist/tools/search-issues/index.cjs +19 -0
  393. package/dist/tools/search-issues/index.d.cts +5 -0
  394. package/dist/tools/search-issues/index.d.ts +5 -0
  395. package/dist/tools/search-issues/index.js +19 -0
  396. package/dist/tools/types.d.cts +2 -2
  397. package/dist/tools/types.d.ts +3 -3
  398. package/dist/tools/update-issue.cjs +14 -13
  399. package/dist/tools/update-issue.d.cts +2 -2
  400. package/dist/tools/update-issue.d.ts +3 -3
  401. package/dist/tools/update-issue.js +14 -13
  402. package/dist/tools/update-project.cjs +10 -9
  403. package/dist/tools/update-project.d.cts +2 -2
  404. package/dist/tools/update-project.d.ts +3 -3
  405. package/dist/tools/update-project.js +10 -9
  406. package/dist/tools/utils/api-utils.cjs +10 -7
  407. package/dist/tools/utils/api-utils.d.cts +23 -6
  408. package/dist/tools/utils/api-utils.d.cts.map +1 -1
  409. package/dist/tools/utils/api-utils.d.ts +25 -8
  410. package/dist/tools/utils/api-utils.d.ts.map +1 -1
  411. package/dist/tools/utils/api-utils.js +8 -7
  412. package/dist/tools/utils/defineTool.d.cts +2 -2
  413. package/dist/tools/utils/defineTool.d.ts +3 -3
  414. package/dist/tools/utils/fetch-utils.cjs +4 -3
  415. package/dist/tools/utils/fetch-utils.d.cts +2 -2
  416. package/dist/tools/utils/fetch-utils.d.ts +2 -2
  417. package/dist/tools/utils/fetch-utils.js +3 -3
  418. package/dist/tools/utils/formatting-utils.cjs +1 -1
  419. package/dist/tools/utils/formatting-utils.d.cts +3 -3
  420. package/dist/tools/utils/formatting-utils.d.ts +4 -4
  421. package/dist/tools/utils/formatting-utils.js +1 -1
  422. package/dist/tools/utils/issue-utils.cjs +5 -4
  423. package/dist/tools/utils/issue-utils.d.cts +4 -4
  424. package/dist/tools/utils/issue-utils.d.ts +6 -6
  425. package/dist/tools/utils/issue-utils.js +5 -4
  426. package/dist/tools/utils/seer-utils.cjs +3 -1
  427. package/dist/tools/utils/seer-utils.d.cts +6 -4
  428. package/dist/tools/utils/seer-utils.d.cts.map +1 -1
  429. package/dist/tools/utils/seer-utils.d.ts +7 -5
  430. package/dist/tools/utils/seer-utils.d.ts.map +1 -1
  431. package/dist/tools/utils/seer-utils.js +2 -2
  432. package/dist/tools/whoami.cjs +8 -7
  433. package/dist/tools/whoami.d.cts +2 -2
  434. package/dist/tools/whoami.d.ts +3 -3
  435. package/dist/tools/whoami.js +8 -7
  436. package/dist/tools-DvKm5uMs.js +44 -0
  437. package/dist/tools-DvKm5uMs.js.map +1 -0
  438. package/dist/tools-sQ2wM3Pi.cjs +49 -0
  439. package/dist/tools-sQ2wM3Pi.cjs.map +1 -0
  440. package/dist/transports/stdio.cjs +53 -42
  441. package/dist/transports/stdio.d.cts +1 -1
  442. package/dist/transports/stdio.d.ts +2 -2
  443. package/dist/transports/stdio.js +53 -42
  444. package/dist/types-6zHoEWAx.js +0 -0
  445. package/dist/{types-DpV1JAZj.d.ts → types-B-8S69No.d.ts} +2 -2
  446. package/dist/{types-DpV1JAZj.d.ts.map → types-B-8S69No.d.ts.map} +1 -1
  447. package/dist/{types-qB8a4WQT.d.ts → types-BOcoP3Na.d.ts} +2 -2
  448. package/dist/{types-qB8a4WQT.d.ts.map → types-BOcoP3Na.d.ts.map} +1 -1
  449. package/dist/{types-CUN-2OSS.d.cts → types-BV-G5sBp.d.cts} +4 -2
  450. package/dist/{types-CUN-2OSS.d.cts.map → types-BV-G5sBp.d.cts.map} +1 -1
  451. package/dist/{types-BoMP-Ro6.d.cts → types-BYtO24VE.d.cts} +2 -2
  452. package/dist/{types-BoMP-Ro6.d.cts.map → types-BYtO24VE.d.cts.map} +1 -1
  453. package/dist/{types-DkJtNDXU.d.ts → types-C1Fih0eQ.d.ts} +5 -3
  454. package/dist/{types-DkJtNDXU.d.ts.map → types-C1Fih0eQ.d.ts.map} +1 -1
  455. package/dist/types-DdloOYgD.cjs +0 -0
  456. package/dist/{types-D_mx318Q.d.cts → types-aOEJ0KgQ.d.cts} +2 -2
  457. package/dist/{types-D_mx318Q.d.cts.map → types-aOEJ0KgQ.d.cts.map} +1 -1
  458. package/dist/types.d.cts +1 -1
  459. package/dist/types.d.ts +2 -2
  460. package/dist/{update-issue-DpkxxiNk.cjs → update-issue-D77PudUi.cjs} +20 -13
  461. package/dist/update-issue-D77PudUi.cjs.map +1 -0
  462. package/dist/{update-issue-DRTQvy6p.js → update-issue-ndy2PF5G.js} +20 -13
  463. package/dist/update-issue-ndy2PF5G.js.map +1 -0
  464. package/dist/{update-project-YLxt2ry2.js → update-project-Bxsi-BG_.js} +5 -5
  465. package/dist/{update-project-YLxt2ry2.js.map → update-project-Bxsi-BG_.js.map} +1 -1
  466. package/dist/{update-project-DLDDbcGY.cjs → update-project-DqECtbDA.cjs} +5 -5
  467. package/dist/{update-project-DLDDbcGY.cjs.map → update-project-DqECtbDA.cjs.map} +1 -1
  468. package/dist/url-utils-IqgSmI-B.js +152 -0
  469. package/dist/url-utils-IqgSmI-B.js.map +1 -0
  470. package/dist/url-utils-vJo2ER5v.cjs +206 -0
  471. package/dist/url-utils-vJo2ER5v.cjs.map +1 -0
  472. package/dist/utils/url-utils.cjs +6 -1
  473. package/dist/utils/url-utils.d.cts +43 -1
  474. package/dist/utils/url-utils.d.cts.map +1 -1
  475. package/dist/utils/url-utils.d.ts +43 -1
  476. package/dist/utils/url-utils.d.ts.map +1 -1
  477. package/dist/utils/url-utils.js +2 -2
  478. package/dist/utils-BwXbSgEI.d.ts +35 -0
  479. package/dist/utils-BwXbSgEI.d.ts.map +1 -0
  480. package/dist/utils-CqbeJfE1.cjs +138 -0
  481. package/dist/utils-CqbeJfE1.cjs.map +1 -0
  482. package/dist/utils-CtBGHj_N.d.cts +35 -0
  483. package/dist/utils-CtBGHj_N.d.cts.map +1 -0
  484. package/dist/utils-OgYE-imr.js +108 -0
  485. package/dist/utils-OgYE-imr.js.map +1 -0
  486. package/dist/version-Bj68uyCt.js +6 -0
  487. package/dist/{version-CcTnFB56.js.map → version-Bj68uyCt.js.map} +1 -1
  488. package/dist/{version-rDjaSkPw.cjs → version-CMS1IOUV.cjs} +2 -2
  489. package/dist/{version-rDjaSkPw.cjs.map → version-CMS1IOUV.cjs.map} +1 -1
  490. package/dist/version.cjs +1 -1
  491. package/dist/version.js +1 -1
  492. package/dist/{whoami-CEgbTUqt.cjs → whoami-BOJHfdih.cjs} +2 -2
  493. package/dist/{whoami-CEgbTUqt.cjs.map → whoami-BOJHfdih.cjs.map} +1 -1
  494. package/dist/{whoami-DesNZnaQ.js → whoami-Bswhb72a.js} +2 -2
  495. package/dist/{whoami-DesNZnaQ.js.map → whoami-Bswhb72a.js.map} +1 -1
  496. package/dist/whoami-CoZJKpys.cjs +44 -0
  497. package/dist/whoami-CoZJKpys.cjs.map +1 -0
  498. package/dist/whoami-xBAWvzG4.js +32 -0
  499. package/dist/whoami-xBAWvzG4.js.map +1 -0
  500. package/package.json +14 -7
  501. package/dist/analyze-issue-with-seer-BkVrrh28.cjs.map +0 -1
  502. package/dist/analyze-issue-with-seer-CoqsTklL.js.map +0 -1
  503. package/dist/api-utils-C6QJAzFL.js +0 -31
  504. package/dist/api-utils-C6QJAzFL.js.map +0 -1
  505. package/dist/api-utils-d36iteNO.cjs +0 -36
  506. package/dist/api-utils-d36iteNO.cjs.map +0 -1
  507. package/dist/client-CQ9Xe1aN.d.cts.map +0 -1
  508. package/dist/client-DOYWNvVM.js.map +0 -1
  509. package/dist/client-Dkw5iYu3.cjs.map +0 -1
  510. package/dist/client-VCJp6Kcu.d.ts.map +0 -1
  511. package/dist/create-dsn-D530I7Lr.js.map +0 -1
  512. package/dist/create-dsn-Dz8nyTFw.cjs.map +0 -1
  513. package/dist/create-project-BxzRiryg.cjs.map +0 -1
  514. package/dist/create-project-K1od5Rhx.js.map +0 -1
  515. package/dist/errors-CIoxzIug.js +0 -15
  516. package/dist/errors-CIoxzIug.js.map +0 -1
  517. package/dist/errors-YmiXLOyx.cjs +0 -21
  518. package/dist/errors-YmiXLOyx.cjs.map +0 -1
  519. package/dist/fetch-utils-BMKjO-cc.js +0 -29
  520. package/dist/fetch-utils-BMKjO-cc.js.map +0 -1
  521. package/dist/fetch-utils-Bv9WjUp0.d.ts +0 -14
  522. package/dist/fetch-utils-Bv9WjUp0.d.ts.map +0 -1
  523. package/dist/fetch-utils-DzdRW4Yd.d.cts +0 -14
  524. package/dist/fetch-utils-DzdRW4Yd.d.cts.map +0 -1
  525. package/dist/fetch-utils-oab6uNp3.cjs +0 -35
  526. package/dist/fetch-utils-oab6uNp3.cjs.map +0 -1
  527. package/dist/find-errors-C3oUMeRi.js +0 -91
  528. package/dist/find-errors-C3oUMeRi.js.map +0 -1
  529. package/dist/find-errors-CB9NpSxG.cjs +0 -97
  530. package/dist/find-errors-CB9NpSxG.cjs.map +0 -1
  531. package/dist/find-issues-C3uk59rn.cjs +0 -98
  532. package/dist/find-issues-C3uk59rn.cjs.map +0 -1
  533. package/dist/find-issues-CAtNGBly.js +0 -92
  534. package/dist/find-issues-CAtNGBly.js.map +0 -1
  535. package/dist/find-organizations-BrdMfZRO.cjs.map +0 -1
  536. package/dist/find-organizations-ojXwWWzk.js.map +0 -1
  537. package/dist/find-tags-Byk4d3oZ.cjs +0 -45
  538. package/dist/find-tags-Byk4d3oZ.cjs.map +0 -1
  539. package/dist/find-tags-d-wF1Se8.js +0 -39
  540. package/dist/find-tags-d-wF1Se8.js.map +0 -1
  541. package/dist/find-transactions-BiBgg-AE.js +0 -83
  542. package/dist/find-transactions-BiBgg-AE.js.map +0 -1
  543. package/dist/find-transactions-DuZyqjhF.cjs +0 -89
  544. package/dist/find-transactions-DuZyqjhF.cjs.map +0 -1
  545. package/dist/formatting-Bvyded57.js.map +0 -1
  546. package/dist/formatting-CcTK2X8V.d.cts.map +0 -1
  547. package/dist/formatting-D0Aki7rK.cjs.map +0 -1
  548. package/dist/formatting-vtXxusbn.d.ts.map +0 -1
  549. package/dist/get-issue-details-Dcmzxknx.js.map +0 -1
  550. package/dist/get-issue-details-lBrYR9yx.cjs.map +0 -1
  551. package/dist/issue-helpers-BJffpNoO.d.ts.map +0 -1
  552. package/dist/issue-helpers-CqqYnwYE.js.map +0 -1
  553. package/dist/issue-helpers-DyAIO0w6.cjs.map +0 -1
  554. package/dist/promptDefinitions-D3GTBGLr.d.ts.map +0 -1
  555. package/dist/prompts-C8Y9w5c4.js.map +0 -1
  556. package/dist/prompts-Df3i1XSB.cjs.map +0 -1
  557. package/dist/resources-BHF8a1ZB.js +0 -92
  558. package/dist/resources-BHF8a1ZB.js.map +0 -1
  559. package/dist/resources-BM_YQGcb.cjs +0 -104
  560. package/dist/resources-BM_YQGcb.cjs.map +0 -1
  561. package/dist/schema-3NeMWRAm.d.cts.map +0 -1
  562. package/dist/schema-B3CzDGJk.d.ts.map +0 -1
  563. package/dist/schema-B_cMyyJJ.cjs.map +0 -1
  564. package/dist/schema-WDk5Yqww.js.map +0 -1
  565. package/dist/seer-utils-CDm5J8ur.cjs.map +0 -1
  566. package/dist/seer-utils-Cj9DXrow.js.map +0 -1
  567. package/dist/server-BSRxzYFd.js.map +0 -1
  568. package/dist/server-Dgkqz8bA.cjs.map +0 -1
  569. package/dist/tools/find-errors.cjs +0 -12
  570. package/dist/tools/find-errors.d.cts +0 -18
  571. package/dist/tools/find-errors.d.cts.map +0 -1
  572. package/dist/tools/find-errors.d.ts +0 -18
  573. package/dist/tools/find-errors.d.ts.map +0 -1
  574. package/dist/tools/find-errors.js +0 -12
  575. package/dist/tools/find-issues.cjs +0 -12
  576. package/dist/tools/find-issues.d.cts +0 -16
  577. package/dist/tools/find-issues.d.cts.map +0 -1
  578. package/dist/tools/find-issues.d.ts +0 -16
  579. package/dist/tools/find-issues.d.ts.map +0 -1
  580. package/dist/tools/find-issues.js +0 -12
  581. package/dist/tools/find-tags.cjs +0 -12
  582. package/dist/tools/find-tags.d.cts +0 -13
  583. package/dist/tools/find-tags.d.cts.map +0 -1
  584. package/dist/tools/find-tags.d.ts +0 -13
  585. package/dist/tools/find-tags.d.ts.map +0 -1
  586. package/dist/tools/find-tags.js +0 -12
  587. package/dist/tools/find-transactions.cjs +0 -12
  588. package/dist/tools/find-transactions.d.cts +0 -17
  589. package/dist/tools/find-transactions.d.cts.map +0 -1
  590. package/dist/tools/find-transactions.d.ts +0 -17
  591. package/dist/tools/find-transactions.d.ts.map +0 -1
  592. package/dist/tools/find-transactions.js +0 -12
  593. package/dist/tools-CHnZvVEN.cjs +0 -53
  594. package/dist/tools-CHnZvVEN.cjs.map +0 -1
  595. package/dist/tools-CdXGgq1W.js +0 -48
  596. package/dist/tools-CdXGgq1W.js.map +0 -1
  597. package/dist/update-issue-DRTQvy6p.js.map +0 -1
  598. package/dist/update-issue-DpkxxiNk.cjs.map +0 -1
  599. package/dist/url-utils-C9hykWmk.cjs +0 -106
  600. package/dist/url-utils-C9hykWmk.cjs.map +0 -1
  601. package/dist/url-utils-DvZYfzPM.js +0 -82
  602. package/dist/url-utils-DvZYfzPM.js.map +0 -1
  603. package/dist/version-CcTnFB56.js +0 -6
  604. /package/dist/{api-client-CL1WDkw9.cjs → api-client-BWt6M7ij.cjs} +0 -0
  605. /package/dist/{api-client-ChL_0F2u.js → api-client-CNv_hbPO.js} +0 -0
  606. /package/dist/{fetch-utils-C0F4eH6S.cjs → fetch-utils-BqMx2KQr.js} +0 -0
  607. /package/dist/{fetch-utils-DlPjrSk2.js → fetch-utils-DeZcERfe.cjs} +0 -0
  608. /package/dist/{index-DVGDAddE.d.ts → index-DE1muTvw.d.ts} +0 -0
  609. /package/dist/{issue-utils-BbCfbiY8.js → issue-utils-BVAB6I-Z.js} +0 -0
  610. /package/dist/{issue-utils-DMKiif6C.cjs → issue-utils-pdbo-5LW.cjs} +0 -0
  611. /package/dist/{types-CCHsZshF.js → search-events-BBFPuvRq.cjs} +0 -0
  612. /package/dist/{types-MYBaygjr.cjs → search-events-bV3-kK78.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"formatting-utils-DgOyTl-m.js","names":["assignedTo: AssignedTo"],"sources":["../src/tools/utils/formatting-utils.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { AssignedToSchema } from \"../../api-client/index\";\n\ntype AssignedTo = z.infer<typeof AssignedToSchema>;\n\n/**\n * Helper function to format assignedTo field for display\n */\nexport function formatAssignedTo(assignedTo: AssignedTo): string {\n if (!assignedTo) {\n return \"Unassigned\";\n }\n\n if (typeof assignedTo === \"string\") {\n return assignedTo;\n }\n\n if (typeof assignedTo === \"object\" && assignedTo.name) {\n return assignedTo.name;\n }\n\n return \"Unknown\";\n}\n"],"mappings":";;;;AAQA,SAAgB,iBAAiBA,YAAgC;AAC/D,MAAK,WACH,QAAO;AAGT,YAAW,eAAe,SACxB,QAAO;AAGT,YAAW,eAAe,YAAY,WAAW,KAC/C,QAAO,WAAW;AAGpB,QAAO;AACR"}
1
+ {"version":3,"file":"formatting-utils-C3sej5ER.js","names":["assignedTo: AssignedTo"],"sources":["../src/tools/utils/formatting-utils.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { AssignedToSchema } from \"../../api-client/index\";\n\ntype AssignedTo = z.infer<typeof AssignedToSchema>;\n\n/**\n * Helper function to format assignedTo field for display\n */\nexport function formatAssignedTo(assignedTo: AssignedTo): string {\n if (!assignedTo) {\n return \"Unassigned\";\n }\n\n if (typeof assignedTo === \"string\") {\n return assignedTo;\n }\n\n if (typeof assignedTo === \"object\" && assignedTo.name) {\n return assignedTo.name;\n }\n\n return \"Unknown\";\n}\n"],"mappings":";;;;AAQA,SAAgB,iBAAiBA,YAAgC;AAC/D,MAAK,WACH,QAAO;AAGT,YAAW,eAAe,SACxB,QAAO;AAGT,YAAW,eAAe,YAAY,WAAW,KAC/C,QAAO,WAAW;AAGpB,QAAO;AACR"}
@@ -17,4 +17,4 @@ Object.defineProperty(exports, 'formatAssignedTo', {
17
17
  return formatAssignedTo;
18
18
  }
19
19
  });
20
- //# sourceMappingURL=formatting-utils-m9R5bsRU.cjs.map
20
+ //# sourceMappingURL=formatting-utils-DDz14xeB.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatting-utils-m9R5bsRU.cjs","names":["assignedTo: AssignedTo"],"sources":["../src/tools/utils/formatting-utils.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { AssignedToSchema } from \"../../api-client/index\";\n\ntype AssignedTo = z.infer<typeof AssignedToSchema>;\n\n/**\n * Helper function to format assignedTo field for display\n */\nexport function formatAssignedTo(assignedTo: AssignedTo): string {\n if (!assignedTo) {\n return \"Unassigned\";\n }\n\n if (typeof assignedTo === \"string\") {\n return assignedTo;\n }\n\n if (typeof assignedTo === \"object\" && assignedTo.name) {\n return assignedTo.name;\n }\n\n return \"Unknown\";\n}\n"],"mappings":";;;;;AAQA,SAAgB,iBAAiBA,YAAgC;AAC/D,MAAK,WACH,QAAO;AAGT,YAAW,eAAe,SACxB,QAAO;AAGT,YAAW,eAAe,YAAY,WAAW,KAC/C,QAAO,WAAW;AAGpB,QAAO;AACR"}
1
+ {"version":3,"file":"formatting-utils-DDz14xeB.cjs","names":["assignedTo: AssignedTo"],"sources":["../src/tools/utils/formatting-utils.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { AssignedToSchema } from \"../../api-client/index\";\n\ntype AssignedTo = z.infer<typeof AssignedToSchema>;\n\n/**\n * Helper function to format assignedTo field for display\n */\nexport function formatAssignedTo(assignedTo: AssignedTo): string {\n if (!assignedTo) {\n return \"Unassigned\";\n }\n\n if (typeof assignedTo === \"string\") {\n return assignedTo;\n }\n\n if (typeof assignedTo === \"object\" && assignedTo.name) {\n return assignedTo.name;\n }\n\n return \"Unknown\";\n}\n"],"mappings":";;;;;AAQA,SAAgB,iBAAiBA,YAAgC;AAC/D,MAAK,WACH,QAAO;AAGT,YAAW,eAAe,SACxB,QAAO;AAGT,YAAW,eAAe,YAAY,WAAW,KAC/C,QAAO,WAAW;AAGpB,QAAO;AACR"}
@@ -1,8 +1,8 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_errors = require('./errors-YmiXLOyx.cjs');
2
+ const require_errors = require('./errors-BtJEw2Z-.cjs');
3
3
  const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
4
- const require_client = require('./client-Dkw5iYu3.cjs');
5
- const require_fetch_utils = require('./fetch-utils-oab6uNp3.cjs');
4
+ const require_client = require('./client-CPrEfAwa.cjs');
5
+ const require_fetch_utils = require('./fetch-utils-DkcYwqBo.cjs');
6
6
  const zod = require_chunk.__toESM(require("zod"));
7
7
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
8
8
 
@@ -83,4 +83,4 @@ Object.defineProperty(exports, 'get_doc_default', {
83
83
  return get_doc_default;
84
84
  }
85
85
  });
86
- //# sourceMappingURL=get-doc-DaTCenOE.cjs.map
86
+ //# sourceMappingURL=get-doc-BfMg0GIa.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-DaTCenOE.cjs","names":["context: ServerContext","UserInputError","ApiError"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { fetchWithTimeout } from \"./utils/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"get_doc\",\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": \"Sentry-MCP/1.0\",\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAQA,sBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,EACX,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,8GACD,CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;AAC5C,4BAAO,YAAY,OAAO,KAAK;EAE/B,IAAI,UAAU;AACd,aAAW,YAAY,OAAO,KAAK;AAGnC,OAAK,OAAO,KAAK,SAAS,MAAM,CAC9B,OAAM,IAAIC,8BACR;EAKJ,MAAM,UAAU;EAGhB,MAAM,SAAS,IAAI,IAAI,OAAO,MAAM;EAGpC,MAAM,iBAAiB,CAAC,kBAAkB,mBAAoB;AAC9D,OAAK,eAAe,SAAS,OAAO,SAAS,CAC3C,OAAM,IAAIA,+BACP,0EAA0E,eAAe,KAAK,KAAK;EAIxG,MAAM,WAAW,MAAM,qCACrB,OAAO,UAAU,EACjB,EACE,SAAS;GACP,QAAQ;GACR,cAAc;EACf,EACF,GACD,KACD;AAED,OAAK,SAAS,IAAI;AAChB,OAAI,SAAS,WAAW,KAAK;AAC3B,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,WAAO;GACR;AAED,SAAM,IAAIC,yBACP,iCAAiC,SAAS,cAC3C,SAAS;EAEZ;EAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAGrC,MACE,QAAQ,MAAM,CAAC,WAAW,YAAY,IACtC,QAAQ,MAAM,CAAC,WAAW,QAAQ,EAClC;AACA,cAAW;AACX,cAAW;AACX,cAAW;AACX,UAAO;EACR;AAGD,YAAU;AACV,YAAU;AACV,YAAU;AAEV,YAAU;AACV,YACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"get-doc-BfMg0GIa.cjs","names":["context: ServerContext","UserInputError","ApiError"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { fetchWithTimeout } from \"./utils/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"get_doc\",\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": \"Sentry-MCP/1.0\",\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAQA,sBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,EACX,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,8GACD,CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;AAC5C,4BAAO,YAAY,OAAO,KAAK;EAE/B,IAAI,UAAU;AACd,aAAW,YAAY,OAAO,KAAK;AAGnC,OAAK,OAAO,KAAK,SAAS,MAAM,CAC9B,OAAM,IAAIC,8BACR;EAKJ,MAAM,UAAU;EAGhB,MAAM,SAAS,IAAI,IAAI,OAAO,MAAM;EAGpC,MAAM,iBAAiB,CAAC,kBAAkB,mBAAoB;AAC9D,OAAK,eAAe,SAAS,OAAO,SAAS,CAC3C,OAAM,IAAIA,+BACP,0EAA0E,eAAe,KAAK,KAAK;EAIxG,MAAM,WAAW,MAAM,qCACrB,OAAO,UAAU,EACjB,EACE,SAAS;GACP,QAAQ;GACR,cAAc;EACf,EACF,GACD,KACD;AAED,OAAK,SAAS,IAAI;AAChB,OAAI,SAAS,WAAW,KAAK;AAC3B,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,WAAO;GACR;AAED,SAAM,IAAIC,yBACP,iCAAiC,SAAS,cAC3C,SAAS;EAEZ;EAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAGrC,MACE,QAAQ,MAAM,CAAC,WAAW,YAAY,IACtC,QAAQ,MAAM,CAAC,WAAW,QAAQ,EAClC;AACA,cAAW;AACX,cAAW;AACX,cAAW;AACX,UAAO;EACR;AAGD,YAAU;AACV,YAAU;AACV,YAAU;AAEV,YAAU;AACV,YACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
@@ -1,7 +1,7 @@
1
- import { UserInputError } from "./errors-CIoxzIug.js";
1
+ import { UserInputError } from "./errors-D_R568zP.js";
2
2
  import { defineTool } from "./defineTool-77H4nSna.js";
3
- import { ApiError } from "./client-DOYWNvVM.js";
4
- import { fetchWithTimeout } from "./fetch-utils-BMKjO-cc.js";
3
+ import { ApiError } from "./client-MaVV1gVC.js";
4
+ import { fetchWithTimeout } from "./fetch-utils-C_Xj921x.js";
5
5
  import { z } from "zod";
6
6
  import { setTag } from "@sentry/core";
7
7
 
@@ -77,4 +77,4 @@ var get_doc_default = defineTool({
77
77
 
78
78
  //#endregion
79
79
  export { get_doc_default };
80
- //# sourceMappingURL=get-doc-YTiQznr1.js.map
80
+ //# sourceMappingURL=get-doc-DyqJe6TP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-doc-YTiQznr1.js","names":["context: ServerContext"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { fetchWithTimeout } from \"./utils/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"get_doc\",\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": \"Sentry-MCP/1.0\",\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAQA,sBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,EACX,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,8GACD,CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;AAC5C,SAAO,YAAY,OAAO,KAAK;EAE/B,IAAI,UAAU;AACd,aAAW,YAAY,OAAO,KAAK;AAGnC,OAAK,OAAO,KAAK,SAAS,MAAM,CAC9B,OAAM,IAAI,eACR;EAKJ,MAAM,UAAU;EAGhB,MAAM,SAAS,IAAI,IAAI,OAAO,MAAM;EAGpC,MAAM,iBAAiB,CAAC,kBAAkB,mBAAoB;AAC9D,OAAK,eAAe,SAAS,OAAO,SAAS,CAC3C,OAAM,IAAI,gBACP,0EAA0E,eAAe,KAAK,KAAK;EAIxG,MAAM,WAAW,MAAM,iBACrB,OAAO,UAAU,EACjB,EACE,SAAS;GACP,QAAQ;GACR,cAAc;EACf,EACF,GACD,KACD;AAED,OAAK,SAAS,IAAI;AAChB,OAAI,SAAS,WAAW,KAAK;AAC3B,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,WAAO;GACR;AAED,SAAM,IAAI,UACP,iCAAiC,SAAS,cAC3C,SAAS;EAEZ;EAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAGrC,MACE,QAAQ,MAAM,CAAC,WAAW,YAAY,IACtC,QAAQ,MAAM,CAAC,WAAW,QAAQ,EAClC;AACA,cAAW;AACX,cAAW;AACX,cAAW;AACX,UAAO;EACR;AAGD,YAAU;AACV,YAAU;AACV,YAAU;AAEV,YAAU;AACV,YACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
1
+ {"version":3,"file":"get-doc-DyqJe6TP.js","names":["context: ServerContext"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { fetchWithTimeout } from \"./utils/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"get_doc\",\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": \"Sentry-MCP/1.0\",\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAQA,sBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,EACX,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,8GACD,CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;AAC5C,SAAO,YAAY,OAAO,KAAK;EAE/B,IAAI,UAAU;AACd,aAAW,YAAY,OAAO,KAAK;AAGnC,OAAK,OAAO,KAAK,SAAS,MAAM,CAC9B,OAAM,IAAI,eACR;EAKJ,MAAM,UAAU;EAGhB,MAAM,SAAS,IAAI,IAAI,OAAO,MAAM;EAGpC,MAAM,iBAAiB,CAAC,kBAAkB,mBAAoB;AAC9D,OAAK,eAAe,SAAS,OAAO,SAAS,CAC3C,OAAM,IAAI,gBACP,0EAA0E,eAAe,KAAK,KAAK;EAIxG,MAAM,WAAW,MAAM,iBACrB,OAAO,UAAU,EACjB,EACE,SAAS;GACP,QAAQ;GACR,cAAc;EACf,EACF,GACD,KACD;AAED,OAAK,SAAS,IAAI;AAChB,OAAI,SAAS,WAAW,KAAK;AAC3B,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,WAAO;GACR;AAED,SAAM,IAAI,UACP,iCAAiC,SAAS,cAC3C,SAAS;EAEZ;EAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAGrC,MACE,QAAQ,MAAM,CAAC,WAAW,YAAY,IACtC,QAAQ,MAAM,CAAC,WAAW,QAAQ,EAClC;AACA,cAAW;AACX,cAAW;AACX,cAAW;AACX,UAAO;EACR;AAGD,YAAU;AACV,YAAU;AACV,YAAU;AAEV,YAAU;AACV,YACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
@@ -1,6 +1,6 @@
1
1
  import { defineTool } from "./defineTool-77H4nSna.js";
2
- import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
3
- import { ParamAttachmentId, ParamEventId, ParamOrganizationSlug, ParamProjectSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
2
+ import { apiServiceFromContext } from "./api-utils-BlUSO8xh.js";
3
+ import { ParamAttachmentId, ParamEventId, ParamOrganizationSlug, ParamProjectSlug, ParamRegionUrl } from "./schema-Bv2fvxgy.js";
4
4
  import { setTag } from "@sentry/core";
5
5
 
6
6
  //#region src/tools/get-event-attachment.ts
@@ -135,4 +135,4 @@ var get_event_attachment_default = defineTool({
135
135
 
136
136
  //#endregion
137
137
  export { get_event_attachment_default };
138
- //# sourceMappingURL=get-event-attachment-DVCPpUMj.js.map
138
+ //# sourceMappingURL=get-event-attachment-B-ElqztF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-event-attachment-DVCPpUMj.js","names":["context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":"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"}
1
+ {"version":3,"file":"get-event-attachment-B-ElqztF.js","names":["context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":"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"}
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
2
  const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
3
- const require_api_utils = require('./api-utils-d36iteNO.cjs');
4
- const require_schema = require('./schema-BpJVmev8.cjs');
3
+ const require_api_utils = require('./api-utils-DFWUfQ83.cjs');
4
+ const require_schema = require('./schema-DPL_hZXP.cjs');
5
5
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
6
6
 
7
7
  //#region src/tools/get-event-attachment.ts
@@ -141,4 +141,4 @@ Object.defineProperty(exports, 'get_event_attachment_default', {
141
141
  return get_event_attachment_default;
142
142
  }
143
143
  });
144
- //# sourceMappingURL=get-event-attachment-C-ig2-3F.cjs.map
144
+ //# sourceMappingURL=get-event-attachment-o0oH43Tv.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-event-attachment-C-ig2-3F.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","ParamEventId","context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":"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"}
1
+ {"version":3,"file":"get-event-attachment-o0oH43Tv.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","ParamEventId","context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":"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"}
@@ -1,10 +1,10 @@
1
1
  const require_chunk = require('./chunk-DWy1uDak.cjs');
2
- const require_errors = require('./errors-YmiXLOyx.cjs');
2
+ const require_errors = require('./errors-BtJEw2Z-.cjs');
3
3
  const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
4
- const require_api_utils = require('./api-utils-d36iteNO.cjs');
5
- const require_schema = require('./schema-BpJVmev8.cjs');
6
- const require_issue_helpers = require('./issue-helpers-DyAIO0w6.cjs');
7
- const require_formatting = require('./formatting-D0Aki7rK.cjs');
4
+ const require_api_utils = require('./api-utils-DFWUfQ83.cjs');
5
+ const require_schema = require('./schema-DPL_hZXP.cjs');
6
+ const require_issue_helpers = require('./issue-helpers-s5fKLwJZ.cjs');
7
+ const require_formatting = require('./formatting-C180PVwd.cjs');
8
8
  const zod = require_chunk.__toESM(require("zod"));
9
9
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
10
10
 
@@ -12,26 +12,30 @@ const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
12
12
  var get_issue_details_default = require_defineTool.defineTool({
13
13
  name: "get_issue_details",
14
14
  description: [
15
- "Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.",
15
+ "Get detailed information about a specific Sentry issue by ID.",
16
16
  "",
17
- "Use this tool when you need to:",
18
- "- View error details, stacktraces, and metadata",
19
- "- Investigate when/where an error occurred",
20
- "- Access raw error information from Sentry",
21
- "- Get comprehensive issue information including any available Seer analysis",
17
+ "🔍 USE THIS TOOL WHEN USERS:",
18
+ "- Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123')",
19
+ "- Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]'",
20
+ "- Want details/stacktrace/analysis for a known issue",
21
+ "- Provide a Sentry issue URL",
22
22
  "",
23
- "Do NOT use this tool when:",
24
- "- User wants root cause analysis → Use `analyze_issue_with_seer`",
23
+ "❌ DO NOT USE for:",
24
+ "- General searching or listing issues (use search_issues)",
25
+ "- Root cause analysis (use analyze_issue_with_seer)",
25
26
  "",
26
- "<examples>",
27
- "### User: \"How do I fix ISSUE-123?\"",
27
+ "TRIGGER PATTERNS:",
28
+ "- 'Explain ISSUE-123' → use get_issue_details",
29
+ "- 'Tell me about PROJECT-456' → use get_issue_details",
30
+ "- 'What happened in [issue URL]' → use get_issue_details",
28
31
  "",
32
+ "<examples>",
33
+ "### Explain specific issue",
29
34
  "```",
30
- "get_issue_details(organizationSlug='my-organization', issueId='ISSUE-123')",
35
+ "get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')",
31
36
  "```",
32
37
  "",
33
- "### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'",
34
- "",
38
+ "### Get details for event ID",
35
39
  "```",
36
40
  "get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')",
37
41
  "```",
@@ -88,7 +92,10 @@ var get_issue_details_default = require_defineTool.defineTool({
88
92
  issueUrl: params.issueUrl
89
93
  });
90
94
  (0, __sentry_core.setTag)("organization.slug", orgSlug);
91
- const issue = await apiService.getIssue({
95
+ const issue = await require_api_utils.withApiErrorHandling(() => apiService.getIssue({
96
+ organizationSlug: orgSlug,
97
+ issueId: parsedIssueId
98
+ }), {
92
99
  organizationSlug: orgSlug,
93
100
  issueId: parsedIssueId
94
101
  });
@@ -120,4 +127,4 @@ Object.defineProperty(exports, 'get_issue_details_default', {
120
127
  return get_issue_details_default;
121
128
  }
122
129
  });
123
- //# sourceMappingURL=get-issue-details-lBrYR9yx.cjs.map
130
+ //# sourceMappingURL=get-issue-details-CP_RyCpt.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-issue-details-CP_RyCpt.cjs","names":["context: ServerContext","orgSlug","UserInputError","issue","event","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined"],"sources":["../src/tools/get-issue-details.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext, withApiErrorHandling } from \"./utils/api-utils\";\nimport { parseIssueParams, formatIssueOutput } from \"./utils/issue-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"get_issue_details\",\n description: [\n \"Get detailed information about a specific Sentry issue by ID.\",\n \"\",\n \"🔍 USE THIS TOOL WHEN USERS:\",\n \"- Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123')\",\n \"- Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]'\",\n \"- Want details/stacktrace/analysis for a known issue\",\n \"- Provide a Sentry issue URL\",\n \"\",\n \"❌ DO NOT USE for:\",\n \"- General searching or listing issues (use search_issues)\",\n \"- Root cause analysis (use analyze_issue_with_seer)\",\n \"\",\n \"TRIGGER PATTERNS:\",\n \"- 'Explain ISSUE-123' → use get_issue_details\",\n \"- 'Tell me about PROJECT-456' → use get_issue_details\",\n \"- 'What happened in [issue URL]' → use get_issue_details\",\n \"\",\n \"<examples>\",\n \"### Explain specific issue\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().trim().describe(\"The ID of the event.\").optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n if (params.eventId) {\n const orgSlug = params.organizationSlug;\n if (!orgSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `eventId`\",\n );\n }\n\n setTag(\"organization.slug\", orgSlug);\n const [issue] = await apiService.listIssues({\n organizationSlug: orgSlug,\n query: params.eventId,\n });\n if (!issue) {\n return `# Event Not Found\\n\\nNo issue found for Event ID: ${params.eventId}`;\n }\n const event = await apiService.getEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId: params.eventId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n }\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n const issue = await withApiErrorHandling(\n () =>\n apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n },\n );\n\n const event = await apiService.getLatestEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n },\n});\n"],"mappings":";;;;;;;;;;;AAcA,gCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;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,SAAS,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;EACtE,UAAU,6BAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,MAAI,OAAO,SAAS;GAClB,MAAMC,YAAU,OAAO;AACvB,QAAKA,UACH,OAAM,IAAIC,8BACR;AAIJ,6BAAO,qBAAqBD,UAAQ;GACpC,MAAM,CAACE,QAAM,GAAG,MAAM,WAAW,WAAW;IAC1C,kBAAkBF;IAClB,OAAO,OAAO;GACf,EAAC;AACF,QAAKE,QACH,SAAQ,oDAAoD,OAAO;GAErE,MAAMC,UAAQ,MAAM,WAAW,iBAAiB;IAC9C,kBAAkBH;IAClB,SAASE,QAAM;IACf,SAAS,OAAO;GACjB,EAAC;GAGF,IAAIE;AAGJ,OAAI;AACF,qBAAe,MAAM,WAAW,gBAAgB;KAC9C,kBAAkBJ;KAClB,SAASE,QAAM;IAChB,EAAC;GACH,SAAQ,OAAO,CAGf;AAED,UAAO,qCAAkB;IACvB,kBAAkBF;IAClB;IACA;IACA;IACA;GACD,EAAC;EACH;AAGD,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAIC,8BACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAIA,8BACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAEpC,MAAM,QAAQ,MAAM,uCAClB,MACE,WAAW,SAAS;GAClB,kBAAkB;GAClB,SAAS;EACV,EAAC,EACJ;GACE,kBAAkB;GAClB,SAAS;EACV,EACF;EAED,MAAM,QAAQ,MAAM,WAAW,uBAAuB;GACpD,kBAAkB;GAClB,SAAS,MAAM;EAChB,EAAC;EAGF,IAAII;AAGJ,MAAI;AACF,kBAAe,MAAM,WAAW,gBAAgB;IAC9C,kBAAkB;IAClB,SAAS,MAAM;GAChB,EAAC;EACH,SAAQ,OAAO,CAGf;AAED,SAAO,qCAAkB;GACvB,kBAAkB;GAClB;GACA;GACA;GACA;EACD,EAAC;CACH;AACF,EAAC"}
@@ -1,9 +1,9 @@
1
- import { UserInputError } from "./errors-CIoxzIug.js";
1
+ import { UserInputError } from "./errors-D_R568zP.js";
2
2
  import { defineTool } from "./defineTool-77H4nSna.js";
3
- import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
4
- import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
5
- import { parseIssueParams } from "./issue-helpers-CqqYnwYE.js";
6
- import { formatIssueOutput } from "./formatting-Bvyded57.js";
3
+ import { apiServiceFromContext, withApiErrorHandling } from "./api-utils-BlUSO8xh.js";
4
+ import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-Bv2fvxgy.js";
5
+ import { parseIssueParams } from "./issue-helpers-CRx45FYG.js";
6
+ import { formatIssueOutput } from "./formatting-DIvCVunN.js";
7
7
  import { z } from "zod";
8
8
  import { setTag } from "@sentry/core";
9
9
 
@@ -11,26 +11,30 @@ import { setTag } from "@sentry/core";
11
11
  var get_issue_details_default = defineTool({
12
12
  name: "get_issue_details",
13
13
  description: [
14
- "Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.",
14
+ "Get detailed information about a specific Sentry issue by ID.",
15
15
  "",
16
- "Use this tool when you need to:",
17
- "- View error details, stacktraces, and metadata",
18
- "- Investigate when/where an error occurred",
19
- "- Access raw error information from Sentry",
20
- "- Get comprehensive issue information including any available Seer analysis",
16
+ "🔍 USE THIS TOOL WHEN USERS:",
17
+ "- Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123')",
18
+ "- Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]'",
19
+ "- Want details/stacktrace/analysis for a known issue",
20
+ "- Provide a Sentry issue URL",
21
21
  "",
22
- "Do NOT use this tool when:",
23
- "- User wants root cause analysis → Use `analyze_issue_with_seer`",
22
+ "❌ DO NOT USE for:",
23
+ "- General searching or listing issues (use search_issues)",
24
+ "- Root cause analysis (use analyze_issue_with_seer)",
24
25
  "",
25
- "<examples>",
26
- "### User: \"How do I fix ISSUE-123?\"",
26
+ "TRIGGER PATTERNS:",
27
+ "- 'Explain ISSUE-123' → use get_issue_details",
28
+ "- 'Tell me about PROJECT-456' → use get_issue_details",
29
+ "- 'What happened in [issue URL]' → use get_issue_details",
27
30
  "",
31
+ "<examples>",
32
+ "### Explain specific issue",
28
33
  "```",
29
- "get_issue_details(organizationSlug='my-organization', issueId='ISSUE-123')",
34
+ "get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')",
30
35
  "```",
31
36
  "",
32
- "### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'",
33
- "",
37
+ "### Get details for event ID",
34
38
  "```",
35
39
  "get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')",
36
40
  "```",
@@ -87,7 +91,10 @@ var get_issue_details_default = defineTool({
87
91
  issueUrl: params.issueUrl
88
92
  });
89
93
  setTag("organization.slug", orgSlug);
90
- const issue = await apiService.getIssue({
94
+ const issue = await withApiErrorHandling(() => apiService.getIssue({
95
+ organizationSlug: orgSlug,
96
+ issueId: parsedIssueId
97
+ }), {
91
98
  organizationSlug: orgSlug,
92
99
  issueId: parsedIssueId
93
100
  });
@@ -114,4 +121,4 @@ var get_issue_details_default = defineTool({
114
121
 
115
122
  //#endregion
116
123
  export { get_issue_details_default };
117
- //# sourceMappingURL=get-issue-details-Dcmzxknx.js.map
124
+ //# sourceMappingURL=get-issue-details-CzroF7HR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-issue-details-CzroF7HR.js","names":["context: ServerContext","orgSlug","issue","event","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined","autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined"],"sources":["../src/tools/get-issue-details.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext, withApiErrorHandling } from \"./utils/api-utils\";\nimport { parseIssueParams, formatIssueOutput } from \"./utils/issue-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"get_issue_details\",\n description: [\n \"Get detailed information about a specific Sentry issue by ID.\",\n \"\",\n \"🔍 USE THIS TOOL WHEN USERS:\",\n \"- Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123')\",\n \"- Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]'\",\n \"- Want details/stacktrace/analysis for a known issue\",\n \"- Provide a Sentry issue URL\",\n \"\",\n \"❌ DO NOT USE for:\",\n \"- General searching or listing issues (use search_issues)\",\n \"- Root cause analysis (use analyze_issue_with_seer)\",\n \"\",\n \"TRIGGER PATTERNS:\",\n \"- 'Explain ISSUE-123' → use get_issue_details\",\n \"- 'Tell me about PROJECT-456' → use get_issue_details\",\n \"- 'What happened in [issue URL]' → use get_issue_details\",\n \"\",\n \"<examples>\",\n \"### Explain specific issue\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().trim().describe(\"The ID of the event.\").optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n if (params.eventId) {\n const orgSlug = params.organizationSlug;\n if (!orgSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `eventId`\",\n );\n }\n\n setTag(\"organization.slug\", orgSlug);\n const [issue] = await apiService.listIssues({\n organizationSlug: orgSlug,\n query: params.eventId,\n });\n if (!issue) {\n return `# Event Not Found\\n\\nNo issue found for Event ID: ${params.eventId}`;\n }\n const event = await apiService.getEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId: params.eventId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n }\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n const issue = await withApiErrorHandling(\n () =>\n apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n },\n );\n\n const event = await apiService.getLatestEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n\n // Try to fetch Seer analysis context (non-blocking)\n let autofixState:\n | Awaited<ReturnType<typeof apiService.getAutofixState>>\n | undefined;\n try {\n autofixState = await apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n } catch (error) {\n // Silently continue if Seer analysis is not available\n // This ensures the tool works even if Seer is not enabled\n }\n\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n autofixState,\n });\n },\n});\n"],"mappings":";;;;;;;;;;AAcA,gCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;EACtE,UAAU,cAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,MAAI,OAAO,SAAS;GAClB,MAAMC,YAAU,OAAO;AACvB,QAAKA,UACH,OAAM,IAAI,eACR;AAIJ,UAAO,qBAAqBA,UAAQ;GACpC,MAAM,CAACC,QAAM,GAAG,MAAM,WAAW,WAAW;IAC1C,kBAAkBD;IAClB,OAAO,OAAO;GACf,EAAC;AACF,QAAKC,QACH,SAAQ,oDAAoD,OAAO;GAErE,MAAMC,UAAQ,MAAM,WAAW,iBAAiB;IAC9C,kBAAkBF;IAClB,SAASC,QAAM;IACf,SAAS,OAAO;GACjB,EAAC;GAGF,IAAIE;AAGJ,OAAI;AACF,qBAAe,MAAM,WAAW,gBAAgB;KAC9C,kBAAkBH;KAClB,SAASC,QAAM;IAChB,EAAC;GACH,SAAQ,OAAO,CAGf;AAED,UAAO,kBAAkB;IACvB,kBAAkBD;IAClB;IACA;IACA;IACA;GACD,EAAC;EACH;AAGD,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAI,eACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAI,eACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,iBAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,SAAO,qBAAqB,QAAQ;EAEpC,MAAM,QAAQ,MAAM,qBAClB,MACE,WAAW,SAAS;GAClB,kBAAkB;GAClB,SAAS;EACV,EAAC,EACJ;GACE,kBAAkB;GAClB,SAAS;EACV,EACF;EAED,MAAM,QAAQ,MAAM,WAAW,uBAAuB;GACpD,kBAAkB;GAClB,SAAS,MAAM;EAChB,EAAC;EAGF,IAAII;AAGJ,MAAI;AACF,kBAAe,MAAM,WAAW,gBAAgB;IAC9C,kBAAkB;IAClB,SAAS,MAAM;GAChB,EAAC;EACH,SAAQ,OAAO,CAGf;AAED,SAAO,kBAAkB;GACvB,kBAAkB;GAClB;GACA;GACA;GACA;EACD,EAAC;CACH;AACF,EAAC"}
@@ -0,0 +1,15 @@
1
+ import { ToolConfig } from "./types-aOEJ0KgQ.cjs";
2
+ import { z } from "zod";
3
+
4
+ //#region src/tools/search-events/handler.d.ts
5
+ declare const _default: ToolConfig<{
6
+ organizationSlug: z.ZodString;
7
+ naturalLanguageQuery: z.ZodString;
8
+ projectSlug: z.ZodOptional<z.ZodString>;
9
+ regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
10
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11
+ includeExplanation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
+ }>;
13
+ //#endregion
14
+ export { _default };
15
+ //# sourceMappingURL=handler-BGhr9FJM.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler-BGhr9FJM.d.cts","names":[],"sources":["../src/tools/search-events/handler.ts"],"sourcesContent":[],"mappings":";;;;cAAwB;;;EAAA,WAAA,eAAA,YAAA,CAAA"}