@sentry/mcp-server 0.12.0 → 0.14.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 (570) hide show
  1. package/README.md +19 -4
  2. package/dist/analyze-issue-with-seer-BsNarzJN.js +163 -0
  3. package/dist/analyze-issue-with-seer-BsNarzJN.js.map +1 -0
  4. package/dist/analyze-issue-with-seer-DbAWpyTC.cjs +169 -0
  5. package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +1 -0
  6. package/dist/api-client/client.cjs +2 -2
  7. package/dist/api-client/client.d.cts +3 -3
  8. package/dist/api-client/client.d.ts +3 -3
  9. package/dist/api-client/client.js +2 -2
  10. package/dist/api-client/index.cjs +9 -2
  11. package/dist/api-client/index.d.cts +4 -4
  12. package/dist/api-client/index.d.ts +5 -5
  13. package/dist/api-client/index.js +5 -5
  14. package/dist/api-client/schema.cjs +8 -1
  15. package/dist/api-client/schema.d.cts +2 -2
  16. package/dist/api-client/schema.d.ts +2 -2
  17. package/dist/api-client/schema.js +2 -2
  18. package/dist/api-client/types.d.cts +3 -3
  19. package/dist/api-client/types.d.ts +3 -3
  20. package/dist/api-client/types.js +1 -1
  21. package/dist/api-utils-C6QJAzFL.js +31 -0
  22. package/dist/api-utils-C6QJAzFL.js.map +1 -0
  23. package/dist/api-utils-d36iteNO.cjs +36 -0
  24. package/dist/api-utils-d36iteNO.cjs.map +1 -0
  25. package/dist/{client-4jq_wVgn.d.ts → client-BCN17Wbp.d.ts} +43 -11
  26. package/dist/client-BCN17Wbp.d.ts.map +1 -0
  27. package/dist/{client-DkY0ifZf.d.cts → client-CILwfx6G.d.cts} +43 -11
  28. package/dist/client-CILwfx6G.d.cts.map +1 -0
  29. package/dist/{client-CAoHZbyK.js → client-DOYWNvVM.js} +75 -18
  30. package/dist/client-DOYWNvVM.js.map +1 -0
  31. package/dist/{client-B7vZ6JMk.cjs → client-Dkw5iYu3.cjs} +75 -18
  32. package/dist/client-Dkw5iYu3.cjs.map +1 -0
  33. package/dist/constants-ClkMK29-.cjs +182 -0
  34. package/dist/constants-ClkMK29-.cjs.map +1 -0
  35. package/dist/constants-S7AU45oQ.js +164 -0
  36. package/dist/constants-S7AU45oQ.js.map +1 -0
  37. package/dist/constants.cjs +5 -0
  38. package/dist/constants.d.cts +23 -0
  39. package/dist/constants.d.cts.map +1 -0
  40. package/dist/constants.d.ts +23 -0
  41. package/dist/constants.d.ts.map +1 -0
  42. package/dist/constants.js +3 -0
  43. package/dist/create-dsn-CDcL2DLD.js +59 -0
  44. package/dist/create-dsn-CDcL2DLD.js.map +1 -0
  45. package/dist/create-dsn-fESUtX3R.cjs +65 -0
  46. package/dist/create-dsn-fESUtX3R.cjs.map +1 -0
  47. package/dist/create-project-Bg5uDkc4.cjs +82 -0
  48. package/dist/create-project-Bg5uDkc4.cjs.map +1 -0
  49. package/dist/create-project-DY5mFznV.js +76 -0
  50. package/dist/create-project-DY5mFznV.js.map +1 -0
  51. package/dist/create-team-5purh64V.cjs +53 -0
  52. package/dist/create-team-5purh64V.cjs.map +1 -0
  53. package/dist/create-team-C2R7EUC3.js +47 -0
  54. package/dist/create-team-C2R7EUC3.js.map +1 -0
  55. package/dist/defineTool-77H4nSna.js +8 -0
  56. package/dist/defineTool-77H4nSna.js.map +1 -0
  57. package/dist/defineTool-lWNTzWl_.cjs +14 -0
  58. package/dist/defineTool-lWNTzWl_.cjs.map +1 -0
  59. package/dist/{errors-BJSrT6Ou.js → errors-CIoxzIug.js} +1 -1
  60. package/dist/{errors-BJSrT6Ou.js.map → errors-CIoxzIug.js.map} +1 -1
  61. package/dist/{errors-B9fwS-aP.cjs → errors-YmiXLOyx.cjs} +1 -1
  62. package/dist/{errors-B9fwS-aP.cjs.map → errors-YmiXLOyx.cjs.map} +1 -1
  63. package/dist/errors.cjs +1 -1
  64. package/dist/errors.js +1 -1
  65. package/dist/fetch-utils-BMKjO-cc.js +29 -0
  66. package/dist/fetch-utils-BMKjO-cc.js.map +1 -0
  67. package/dist/fetch-utils-Bv9WjUp0.d.ts +14 -0
  68. package/dist/fetch-utils-Bv9WjUp0.d.ts.map +1 -0
  69. package/dist/fetch-utils-DlPjrSk2.js +0 -0
  70. package/dist/fetch-utils-DzdRW4Yd.d.cts +14 -0
  71. package/dist/fetch-utils-DzdRW4Yd.d.cts.map +1 -0
  72. package/dist/fetch-utils-oab6uNp3.cjs +35 -0
  73. package/dist/fetch-utils-oab6uNp3.cjs.map +1 -0
  74. package/dist/find-dsns-CvfcLB9Z.js +52 -0
  75. package/dist/find-dsns-CvfcLB9Z.js.map +1 -0
  76. package/dist/find-dsns-ZZ-thiNk.cjs +58 -0
  77. package/dist/find-dsns-ZZ-thiNk.cjs.map +1 -0
  78. package/dist/find-errors-CuRm4PzL.js +91 -0
  79. package/dist/find-errors-CuRm4PzL.js.map +1 -0
  80. package/dist/find-errors-Drzv7hzM.cjs +97 -0
  81. package/dist/find-errors-Drzv7hzM.cjs.map +1 -0
  82. package/dist/find-issues-C3uk59rn.cjs +98 -0
  83. package/dist/find-issues-C3uk59rn.cjs.map +1 -0
  84. package/dist/find-issues-CAtNGBly.js +92 -0
  85. package/dist/find-issues-CAtNGBly.js.map +1 -0
  86. package/dist/find-organizations-BrdMfZRO.cjs +50 -0
  87. package/dist/find-organizations-BrdMfZRO.cjs.map +1 -0
  88. package/dist/find-organizations-ojXwWWzk.js +45 -0
  89. package/dist/find-organizations-ojXwWWzk.js.map +1 -0
  90. package/dist/find-projects-BZWhlYJh.cjs +45 -0
  91. package/dist/find-projects-BZWhlYJh.cjs.map +1 -0
  92. package/dist/find-projects-fcLG4KpT.js +39 -0
  93. package/dist/find-projects-fcLG4KpT.js.map +1 -0
  94. package/dist/find-releases-BUozr0Z-.js +93 -0
  95. package/dist/find-releases-BUozr0Z-.js.map +1 -0
  96. package/dist/find-releases-CZCVEOHZ.cjs +99 -0
  97. package/dist/find-releases-CZCVEOHZ.cjs.map +1 -0
  98. package/dist/find-tags-Byk4d3oZ.cjs +45 -0
  99. package/dist/find-tags-Byk4d3oZ.cjs.map +1 -0
  100. package/dist/find-tags-d-wF1Se8.js +39 -0
  101. package/dist/find-tags-d-wF1Se8.js.map +1 -0
  102. package/dist/find-teams-BZ118EIK.js +39 -0
  103. package/dist/find-teams-BZ118EIK.js.map +1 -0
  104. package/dist/find-teams-CnU5x9rQ.cjs +45 -0
  105. package/dist/find-teams-CnU5x9rQ.cjs.map +1 -0
  106. package/dist/find-transactions-DIJ80wkd.cjs +89 -0
  107. package/dist/find-transactions-DIJ80wkd.cjs.map +1 -0
  108. package/dist/find-transactions-DZCj81jP.js +83 -0
  109. package/dist/find-transactions-DZCj81jP.js.map +1 -0
  110. package/dist/formatting-BlMiQa9i.cjs +388 -0
  111. package/dist/formatting-BlMiQa9i.cjs.map +1 -0
  112. package/dist/formatting-CHh9Q_OW.d.cts +47 -0
  113. package/dist/formatting-CHh9Q_OW.d.cts.map +1 -0
  114. package/dist/formatting-kdIeURER.d.ts +47 -0
  115. package/dist/formatting-kdIeURER.d.ts.map +1 -0
  116. package/dist/formatting-pUm38KOj.js +370 -0
  117. package/dist/formatting-pUm38KOj.js.map +1 -0
  118. package/dist/formatting-utils-C3sej5ER.js +14 -0
  119. package/dist/formatting-utils-C3sej5ER.js.map +1 -0
  120. package/dist/formatting-utils-DDz14xeB.cjs +20 -0
  121. package/dist/formatting-utils-DDz14xeB.cjs.map +1 -0
  122. package/dist/get-doc-DaTCenOE.cjs +86 -0
  123. package/dist/get-doc-DaTCenOE.cjs.map +1 -0
  124. package/dist/get-doc-YTiQznr1.js +80 -0
  125. package/dist/get-doc-YTiQznr1.js.map +1 -0
  126. package/dist/get-event-attachment-ChRw3jlQ.cjs +144 -0
  127. package/dist/get-event-attachment-ChRw3jlQ.cjs.map +1 -0
  128. package/dist/get-event-attachment-CuU-_5T6.js +138 -0
  129. package/dist/get-event-attachment-CuU-_5T6.js.map +1 -0
  130. package/dist/get-issue-details-CxChU4U9.js +104 -0
  131. package/dist/get-issue-details-CxChU4U9.js.map +1 -0
  132. package/dist/get-issue-details-DFwZRbmU.cjs +110 -0
  133. package/dist/get-issue-details-DFwZRbmU.cjs.map +1 -0
  134. package/dist/index.cjs +73 -23
  135. package/dist/index.cjs.map +1 -1
  136. package/dist/index.js +75 -25
  137. package/dist/index.js.map +1 -1
  138. package/dist/internal/fetch-utils.cjs +3 -0
  139. package/dist/internal/fetch-utils.d.cts +2 -0
  140. package/dist/internal/fetch-utils.d.ts +2 -0
  141. package/dist/internal/fetch-utils.js +3 -0
  142. package/dist/internal/formatting.cjs +1 -1
  143. package/dist/internal/formatting.d.cts +5 -25
  144. package/dist/internal/formatting.d.ts +6 -26
  145. package/dist/internal/formatting.js +1 -1
  146. package/dist/internal/issue-helpers.cjs +1 -1
  147. package/dist/internal/issue-helpers.d.cts +2 -52
  148. package/dist/internal/issue-helpers.d.ts +2 -52
  149. package/dist/internal/issue-helpers.js +1 -1
  150. package/dist/internal/test-fixtures.cjs +214 -0
  151. package/dist/internal/test-fixtures.cjs.map +1 -0
  152. package/dist/internal/test-fixtures.d.cts +2138 -0
  153. package/dist/internal/test-fixtures.d.cts.map +1 -0
  154. package/dist/internal/test-fixtures.d.ts +2138 -0
  155. package/dist/internal/test-fixtures.d.ts.map +1 -0
  156. package/dist/internal/test-fixtures.js +205 -0
  157. package/dist/internal/test-fixtures.js.map +1 -0
  158. package/dist/issue-helpers-BJffpNoO.d.ts +52 -0
  159. package/dist/issue-helpers-BJffpNoO.d.ts.map +1 -0
  160. package/dist/{issue-helpers-BMVLc3mR.js → issue-helpers-CqqYnwYE.js} +1 -1
  161. package/dist/{issue-helpers-BMVLc3mR.js.map → issue-helpers-CqqYnwYE.js.map} +1 -1
  162. package/dist/issue-helpers-Cz01Ipvl.d.cts +52 -0
  163. package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -0
  164. package/dist/{issue-helpers-D712fGT2.cjs → issue-helpers-DyAIO0w6.cjs} +1 -1
  165. package/dist/{issue-helpers-D712fGT2.cjs.map → issue-helpers-DyAIO0w6.cjs.map} +1 -1
  166. package/dist/issue-utils-BVAB6I-Z.js +0 -0
  167. package/dist/issue-utils-pdbo-5LW.cjs +0 -0
  168. package/dist/{logging-CXLD0FFB.js → logging-LnQMFw-_.js} +1 -1
  169. package/dist/{logging-CXLD0FFB.js.map → logging-LnQMFw-_.js.map} +1 -1
  170. package/dist/{logging-ByvSjT6V.cjs → logging-oIouXrcb.cjs} +1 -1
  171. package/dist/{logging-ByvSjT6V.cjs.map → logging-oIouXrcb.cjs.map} +1 -1
  172. package/dist/logging.cjs +1 -1
  173. package/dist/logging.js +1 -1
  174. package/dist/{promptDefinitions-BTLIBcGt.cjs → promptDefinitions-C29BWGYg.cjs} +4 -4
  175. package/dist/promptDefinitions-C29BWGYg.cjs.map +1 -0
  176. package/dist/{promptDefinitions-D8yow1m0.js → promptDefinitions-CSKE8T0a.js} +4 -4
  177. package/dist/{promptDefinitions-D8yow1m0.js.map → promptDefinitions-CSKE8T0a.js.map} +1 -1
  178. package/dist/{promptDefinitions-CF2VWdQ6.d.cts → promptDefinitions-CVHtYaj8.d.cts} +3 -3
  179. package/dist/promptDefinitions-CVHtYaj8.d.cts.map +1 -0
  180. package/dist/{promptDefinitions-D5FSQckL.d.ts → promptDefinitions-D3GTBGLr.d.ts} +3 -3
  181. package/dist/promptDefinitions-D3GTBGLr.d.ts.map +1 -0
  182. package/dist/promptDefinitions.cjs +3 -2
  183. package/dist/promptDefinitions.d.cts +1 -1
  184. package/dist/promptDefinitions.d.ts +1 -1
  185. package/dist/promptDefinitions.js +3 -2
  186. package/dist/{prompts-Dt3A8Qfl.js → prompts-C8Y9w5c4.js} +7 -7
  187. package/dist/{prompts-Dt3A8Qfl.js.map → prompts-C8Y9w5c4.js.map} +1 -1
  188. package/dist/{prompts-CDbQrutV.cjs → prompts-Df3i1XSB.cjs} +7 -7
  189. package/dist/{prompts-CDbQrutV.cjs.map → prompts-Df3i1XSB.cjs.map} +1 -1
  190. package/dist/prompts.cjs +2 -2
  191. package/dist/prompts.d.cts +4 -5
  192. package/dist/prompts.d.cts.map +1 -1
  193. package/dist/prompts.d.ts +4 -5
  194. package/dist/prompts.d.ts.map +1 -1
  195. package/dist/prompts.js +2 -2
  196. package/dist/resources-BHF8a1ZB.js +92 -0
  197. package/dist/resources-BHF8a1ZB.js.map +1 -0
  198. package/dist/resources-BM_YQGcb.cjs +104 -0
  199. package/dist/resources-BM_YQGcb.cjs.map +1 -0
  200. package/dist/resources.cjs +5 -2
  201. package/dist/resources.d.cts +26 -12
  202. package/dist/resources.d.cts.map +1 -1
  203. package/dist/resources.d.ts +26 -12
  204. package/dist/resources.d.ts.map +1 -1
  205. package/dist/resources.js +4 -2
  206. package/dist/{schema-BnxGHL_i.d.ts → schema--5m4KI84.d.ts} +3678 -619
  207. package/dist/schema--5m4KI84.d.ts.map +1 -0
  208. package/dist/{schema-BsvGMALe.cjs → schema-B_cMyyJJ.cjs} +94 -8
  209. package/dist/schema-B_cMyyJJ.cjs.map +1 -0
  210. package/dist/{schema-BTfISwFu.cjs → schema-BpJVmev8.cjs} +23 -1
  211. package/dist/{schema-Dv6aLZgz.js.map → schema-BpJVmev8.cjs.map} +1 -1
  212. package/dist/{schema-Dv6aLZgz.js → schema-DtsnsxMl.js} +6 -2
  213. package/dist/schema-DtsnsxMl.js.map +1 -0
  214. package/dist/{schema-C_hp0BR7.js → schema-WDk5Yqww.js} +53 -9
  215. package/dist/schema-WDk5Yqww.js.map +1 -0
  216. package/dist/{schema-BJv7kREf.d.cts → schema-ya35hkEL.d.cts} +3614 -555
  217. package/dist/schema-ya35hkEL.d.cts.map +1 -0
  218. package/dist/schema.cjs +5 -1
  219. package/dist/schema.d.cts +4 -1
  220. package/dist/schema.d.cts.map +1 -1
  221. package/dist/schema.d.ts +4 -1
  222. package/dist/schema.d.ts.map +1 -1
  223. package/dist/schema.js +3 -2
  224. package/dist/search-docs-BLbB_GV2.js +102 -0
  225. package/dist/search-docs-BLbB_GV2.js.map +1 -0
  226. package/dist/search-docs-D5Foht_0.cjs +108 -0
  227. package/dist/search-docs-D5Foht_0.cjs.map +1 -0
  228. package/dist/seer-utils-Ckr8nYlz.js +87 -0
  229. package/dist/seer-utils-Ckr8nYlz.js.map +1 -0
  230. package/dist/seer-utils-CzYEEZb2.cjs +129 -0
  231. package/dist/seer-utils-CzYEEZb2.cjs.map +1 -0
  232. package/dist/{server-DeutbO8v.cjs → server-BpEIZVaZ.cjs} +104 -57
  233. package/dist/server-BpEIZVaZ.cjs.map +1 -0
  234. package/dist/{server-C7cHq_pc.js → server-DOy-M9Ko.js} +104 -57
  235. package/dist/server-DOy-M9Ko.js.map +1 -0
  236. package/dist/server.cjs +40 -13
  237. package/dist/server.d.cts +2 -3
  238. package/dist/server.d.cts.map +1 -1
  239. package/dist/server.d.ts +2 -3
  240. package/dist/server.d.ts.map +1 -1
  241. package/dist/server.js +42 -15
  242. package/dist/{stdio-ZQLC-i5Q.js → stdio-B2NDq7Ax.js} +17 -7
  243. package/dist/stdio-B2NDq7Ax.js.map +1 -0
  244. package/dist/{stdio-B73CCTly.cjs → stdio-DMEgJ_fG.cjs} +17 -7
  245. package/dist/stdio-DMEgJ_fG.cjs.map +1 -0
  246. package/dist/test-setup.cjs +1420 -1230
  247. package/dist/test-setup.cjs.map +1 -1
  248. package/dist/test-setup.js +1262 -1045
  249. package/dist/test-setup.js.map +1 -1
  250. package/dist/toolDefinitions.d.ts +25 -2
  251. package/dist/toolDefinitions.js +1059 -4
  252. package/dist/tools/analyze-issue-with-seer.cjs +16 -0
  253. package/dist/tools/analyze-issue-with-seer.d.cts +16 -0
  254. package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -0
  255. package/dist/tools/analyze-issue-with-seer.d.ts +16 -0
  256. package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -0
  257. package/dist/tools/analyze-issue-with-seer.js +16 -0
  258. package/dist/tools/create-dsn.cjs +12 -0
  259. package/dist/tools/create-dsn.d.cts +15 -0
  260. package/dist/tools/create-dsn.d.cts.map +1 -0
  261. package/dist/tools/create-dsn.d.ts +15 -0
  262. package/dist/tools/create-dsn.d.ts.map +1 -0
  263. package/dist/tools/create-dsn.js +12 -0
  264. package/dist/tools/create-project.cjs +13 -0
  265. package/dist/tools/create-project.d.cts +16 -0
  266. package/dist/tools/create-project.d.cts.map +1 -0
  267. package/dist/tools/create-project.d.ts +16 -0
  268. package/dist/tools/create-project.d.ts.map +1 -0
  269. package/dist/tools/create-project.js +13 -0
  270. package/dist/tools/create-team.cjs +12 -0
  271. package/dist/tools/create-team.d.cts +14 -0
  272. package/dist/tools/create-team.d.cts.map +1 -0
  273. package/dist/tools/create-team.d.ts +14 -0
  274. package/dist/tools/create-team.d.ts.map +1 -0
  275. package/dist/tools/create-team.js +12 -0
  276. package/dist/tools/find-dsns.cjs +12 -0
  277. package/dist/tools/find-dsns.d.cts +14 -0
  278. package/dist/tools/find-dsns.d.cts.map +1 -0
  279. package/dist/tools/find-dsns.d.ts +14 -0
  280. package/dist/tools/find-dsns.d.ts.map +1 -0
  281. package/dist/tools/find-dsns.js +12 -0
  282. package/dist/tools/find-errors.cjs +12 -0
  283. package/dist/tools/find-errors.d.cts +18 -0
  284. package/dist/tools/find-errors.d.cts.map +1 -0
  285. package/dist/tools/find-errors.d.ts +18 -0
  286. package/dist/tools/find-errors.d.ts.map +1 -0
  287. package/dist/tools/find-errors.js +12 -0
  288. package/dist/tools/find-issues.cjs +12 -0
  289. package/dist/tools/find-issues.d.cts +16 -0
  290. package/dist/tools/find-issues.d.cts.map +1 -0
  291. package/dist/tools/find-issues.d.ts +16 -0
  292. package/dist/tools/find-issues.d.ts.map +1 -0
  293. package/dist/tools/find-issues.js +12 -0
  294. package/dist/tools/find-organizations.cjs +10 -0
  295. package/dist/tools/find-organizations.d.cts +9 -0
  296. package/dist/tools/find-organizations.d.cts.map +1 -0
  297. package/dist/tools/find-organizations.d.ts +9 -0
  298. package/dist/tools/find-organizations.d.ts.map +1 -0
  299. package/dist/tools/find-organizations.js +10 -0
  300. package/dist/tools/find-projects.cjs +12 -0
  301. package/dist/tools/find-projects.d.cts +13 -0
  302. package/dist/tools/find-projects.d.cts.map +1 -0
  303. package/dist/tools/find-projects.d.ts +13 -0
  304. package/dist/tools/find-projects.d.ts.map +1 -0
  305. package/dist/tools/find-projects.js +12 -0
  306. package/dist/tools/find-releases.cjs +12 -0
  307. package/dist/tools/find-releases.d.cts +15 -0
  308. package/dist/tools/find-releases.d.cts.map +1 -0
  309. package/dist/tools/find-releases.d.ts +15 -0
  310. package/dist/tools/find-releases.d.ts.map +1 -0
  311. package/dist/tools/find-releases.js +12 -0
  312. package/dist/tools/find-tags.cjs +12 -0
  313. package/dist/tools/find-tags.d.cts +13 -0
  314. package/dist/tools/find-tags.d.cts.map +1 -0
  315. package/dist/tools/find-tags.d.ts +13 -0
  316. package/dist/tools/find-tags.d.ts.map +1 -0
  317. package/dist/tools/find-tags.js +12 -0
  318. package/dist/tools/find-teams.cjs +12 -0
  319. package/dist/tools/find-teams.d.cts +13 -0
  320. package/dist/tools/find-teams.d.cts.map +1 -0
  321. package/dist/tools/find-teams.d.ts +13 -0
  322. package/dist/tools/find-teams.d.ts.map +1 -0
  323. package/dist/tools/find-teams.js +12 -0
  324. package/dist/tools/find-transactions.cjs +12 -0
  325. package/dist/tools/find-transactions.d.cts +17 -0
  326. package/dist/tools/find-transactions.d.cts.map +1 -0
  327. package/dist/tools/find-transactions.d.ts +17 -0
  328. package/dist/tools/find-transactions.d.ts.map +1 -0
  329. package/dist/tools/find-transactions.js +12 -0
  330. package/dist/tools/get-doc.cjs +11 -0
  331. package/dist/tools/get-doc.d.cts +12 -0
  332. package/dist/tools/get-doc.d.cts.map +1 -0
  333. package/dist/tools/get-doc.d.ts +12 -0
  334. package/dist/tools/get-doc.d.ts.map +1 -0
  335. package/dist/tools/get-doc.js +11 -0
  336. package/dist/tools/get-event-attachment.cjs +12 -0
  337. package/dist/tools/get-event-attachment.d.cts +16 -0
  338. package/dist/tools/get-event-attachment.d.cts.map +1 -0
  339. package/dist/tools/get-event-attachment.d.ts +16 -0
  340. package/dist/tools/get-event-attachment.d.ts.map +1 -0
  341. package/dist/tools/get-event-attachment.js +12 -0
  342. package/dist/tools/get-issue-details.cjs +15 -0
  343. package/dist/tools/get-issue-details.d.cts +16 -0
  344. package/dist/tools/get-issue-details.d.cts.map +1 -0
  345. package/dist/tools/get-issue-details.d.ts +16 -0
  346. package/dist/tools/get-issue-details.d.ts.map +1 -0
  347. package/dist/tools/get-issue-details.js +15 -0
  348. package/dist/tools/index.cjs +40 -0
  349. package/dist/tools/index.d.cts +127 -0
  350. package/dist/tools/index.d.cts.map +1 -0
  351. package/dist/tools/index.d.ts +127 -0
  352. package/dist/tools/index.d.ts.map +1 -0
  353. package/dist/tools/index.js +40 -0
  354. package/dist/tools/search-docs.cjs +12 -0
  355. package/dist/tools/search-docs.d.cts +14 -0
  356. package/dist/tools/search-docs.d.cts.map +1 -0
  357. package/dist/tools/search-docs.d.ts +14 -0
  358. package/dist/tools/search-docs.d.ts.map +1 -0
  359. package/dist/tools/search-docs.js +12 -0
  360. package/dist/tools/types.cjs +0 -0
  361. package/dist/tools/types.d.cts +4 -0
  362. package/dist/tools/types.d.ts +4 -0
  363. package/dist/tools/types.js +0 -0
  364. package/dist/tools/update-issue.cjs +16 -0
  365. package/dist/tools/update-issue.d.cts +17 -0
  366. package/dist/tools/update-issue.d.cts.map +1 -0
  367. package/dist/tools/update-issue.d.ts +17 -0
  368. package/dist/tools/update-issue.d.ts.map +1 -0
  369. package/dist/tools/update-issue.js +16 -0
  370. package/dist/tools/update-project.cjs +13 -0
  371. package/dist/tools/update-project.d.cts +18 -0
  372. package/dist/tools/update-project.d.cts.map +1 -0
  373. package/dist/tools/update-project.d.ts +18 -0
  374. package/dist/tools/update-project.d.ts.map +1 -0
  375. package/dist/tools/update-project.js +13 -0
  376. package/dist/tools/utils/api-utils.cjs +8 -0
  377. package/dist/tools/utils/api-utils.d.cts +24 -0
  378. package/dist/tools/utils/api-utils.d.cts.map +1 -0
  379. package/dist/tools/utils/api-utils.d.ts +24 -0
  380. package/dist/tools/utils/api-utils.d.ts.map +1 -0
  381. package/dist/tools/utils/api-utils.js +8 -0
  382. package/dist/tools/utils/defineTool.cjs +3 -0
  383. package/dist/tools/utils/defineTool.d.cts +12 -0
  384. package/dist/tools/utils/defineTool.d.cts.map +1 -0
  385. package/dist/tools/utils/defineTool.d.ts +12 -0
  386. package/dist/tools/utils/defineTool.d.ts.map +1 -0
  387. package/dist/tools/utils/defineTool.js +3 -0
  388. package/dist/tools/utils/fetch-utils.cjs +4 -0
  389. package/dist/tools/utils/fetch-utils.d.cts +2 -0
  390. package/dist/tools/utils/fetch-utils.d.ts +2 -0
  391. package/dist/tools/utils/fetch-utils.js +4 -0
  392. package/dist/tools/utils/formatting-utils.cjs +3 -0
  393. package/dist/tools/utils/formatting-utils.d.cts +15 -0
  394. package/dist/tools/utils/formatting-utils.d.cts.map +1 -0
  395. package/dist/tools/utils/formatting-utils.d.ts +15 -0
  396. package/dist/tools/utils/formatting-utils.d.ts.map +1 -0
  397. package/dist/tools/utils/formatting-utils.js +3 -0
  398. package/dist/tools/utils/issue-utils.cjs +6 -0
  399. package/dist/tools/utils/issue-utils.d.cts +7 -0
  400. package/dist/tools/utils/issue-utils.d.ts +7 -0
  401. package/dist/tools/utils/issue-utils.js +5 -0
  402. package/dist/tools/utils/seer-utils.cjs +9 -0
  403. package/dist/tools/utils/seer-utils.d.cts +28 -0
  404. package/dist/tools/utils/seer-utils.d.cts.map +1 -0
  405. package/dist/tools/utils/seer-utils.d.ts +28 -0
  406. package/dist/tools/utils/seer-utils.d.ts.map +1 -0
  407. package/dist/tools/utils/seer-utils.js +3 -0
  408. package/dist/tools/whoami.cjs +10 -0
  409. package/dist/tools/whoami.d.cts +9 -0
  410. package/dist/tools/whoami.d.cts.map +1 -0
  411. package/dist/tools/whoami.d.ts +9 -0
  412. package/dist/tools/whoami.d.ts.map +1 -0
  413. package/dist/tools/whoami.js +10 -0
  414. package/dist/tools-19Ms1kck.cjs +53 -0
  415. package/dist/tools-19Ms1kck.cjs.map +1 -0
  416. package/dist/tools-mThAUo_3.js +48 -0
  417. package/dist/tools-mThAUo_3.js.map +1 -0
  418. package/dist/transports/stdio.cjs +42 -14
  419. package/dist/transports/stdio.d.cts +2 -3
  420. package/dist/transports/stdio.d.cts.map +1 -1
  421. package/dist/transports/stdio.d.ts +2 -3
  422. package/dist/transports/stdio.d.ts.map +1 -1
  423. package/dist/transports/stdio.js +44 -16
  424. package/dist/{types-NIQW7KyF.d.cts → types-Bg17IGWJ.d.cts} +5 -3
  425. package/dist/types-Bg17IGWJ.d.cts.map +1 -0
  426. package/dist/types-CCHsZshF.js +0 -0
  427. package/dist/types-CUN-2OSS.d.cts +29 -0
  428. package/dist/types-CUN-2OSS.d.cts.map +1 -0
  429. package/dist/{types-Daq2fm0E.d.ts → types-CtTBwGbw.d.ts} +5 -3
  430. package/dist/types-CtTBwGbw.d.ts.map +1 -0
  431. package/dist/types-D_mx318Q.d.cts +29 -0
  432. package/dist/types-D_mx318Q.d.cts.map +1 -0
  433. package/dist/types-DkJtNDXU.d.ts +29 -0
  434. package/dist/types-DkJtNDXU.d.ts.map +1 -0
  435. package/dist/types-qB8a4WQT.d.ts +29 -0
  436. package/dist/types-qB8a4WQT.d.ts.map +1 -0
  437. package/dist/types.d.cts +3 -4
  438. package/dist/types.d.ts +3 -4
  439. package/dist/update-issue-B6eZhAPJ.cjs +115 -0
  440. package/dist/update-issue-B6eZhAPJ.cjs.map +1 -0
  441. package/dist/update-issue-DmLElHPS.js +109 -0
  442. package/dist/update-issue-DmLElHPS.js.map +1 -0
  443. package/dist/update-project-BNPev7W8.js +120 -0
  444. package/dist/update-project-BNPev7W8.js.map +1 -0
  445. package/dist/update-project-CijYCtG1.cjs +126 -0
  446. package/dist/update-project-CijYCtG1.cjs.map +1 -0
  447. package/dist/url-utils-C9hykWmk.cjs +106 -0
  448. package/dist/url-utils-C9hykWmk.cjs.map +1 -0
  449. package/dist/url-utils-DvZYfzPM.js +82 -0
  450. package/dist/url-utils-DvZYfzPM.js.map +1 -0
  451. package/dist/utils/url-utils.cjs +6 -0
  452. package/dist/utils/url-utils.d.cts +37 -0
  453. package/dist/utils/url-utils.d.cts.map +1 -0
  454. package/dist/utils/url-utils.d.ts +37 -0
  455. package/dist/utils/url-utils.d.ts.map +1 -0
  456. package/dist/utils/url-utils.js +3 -0
  457. package/dist/version-C4uvMmw0.js +6 -0
  458. package/dist/version-C4uvMmw0.js.map +1 -0
  459. package/dist/{version-BNmubeQI.cjs → version-Ddz4xg_q.cjs} +2 -2
  460. package/dist/version-Ddz4xg_q.cjs.map +1 -0
  461. package/dist/version.cjs +1 -1
  462. package/dist/version.js +1 -1
  463. package/dist/whoami-CEgbTUqt.cjs +28 -0
  464. package/dist/whoami-CEgbTUqt.cjs.map +1 -0
  465. package/dist/whoami-DesNZnaQ.js +23 -0
  466. package/dist/whoami-DesNZnaQ.js.map +1 -0
  467. package/package.json +24 -14
  468. package/dist/api-client/client.test.cjs +0 -33
  469. package/dist/api-client/client.test.cjs.map +0 -1
  470. package/dist/api-client/client.test.d.ts +0 -1
  471. package/dist/api-client/client.test.js +0 -33
  472. package/dist/api-client/client.test.js.map +0 -1
  473. package/dist/chunk-BLXvPPr8.js +0 -30
  474. package/dist/client-4jq_wVgn.d.ts.map +0 -1
  475. package/dist/client-B7vZ6JMk.cjs.map +0 -1
  476. package/dist/client-CAoHZbyK.js.map +0 -1
  477. package/dist/client-DkY0ifZf.d.cts.map +0 -1
  478. package/dist/dist-BlIWGSIM.cjs +0 -8197
  479. package/dist/dist-BlIWGSIM.cjs.map +0 -1
  480. package/dist/dist-DDpQABxe.js +0 -8054
  481. package/dist/dist-DDpQABxe.js.map +0 -1
  482. package/dist/errors.test.cjs +0 -24
  483. package/dist/errors.test.cjs.map +0 -1
  484. package/dist/errors.test.d.cts +0 -1
  485. package/dist/errors.test.d.ts +0 -1
  486. package/dist/errors.test.js +0 -24
  487. package/dist/errors.test.js.map +0 -1
  488. package/dist/formatting-BaARL2gT.js +0 -68
  489. package/dist/formatting-BaARL2gT.js.map +0 -1
  490. package/dist/formatting-C2kN0ok6.cjs +0 -86
  491. package/dist/formatting-C2kN0ok6.cjs.map +0 -1
  492. package/dist/index-h64gcVNJ.d.ts +0 -1
  493. package/dist/internal/formatting.d.cts.map +0 -1
  494. package/dist/internal/formatting.d.ts.map +0 -1
  495. package/dist/internal/issue-helpers.d.cts.map +0 -1
  496. package/dist/internal/issue-helpers.d.ts.map +0 -1
  497. package/dist/internal/issue-helpers.test.cjs +0 -110
  498. package/dist/internal/issue-helpers.test.cjs.map +0 -1
  499. package/dist/internal/issue-helpers.test.d.cts +0 -1
  500. package/dist/internal/issue-helpers.test.d.ts +0 -1
  501. package/dist/internal/issue-helpers.test.js +0 -110
  502. package/dist/internal/issue-helpers.test.js.map +0 -1
  503. package/dist/magic-string.es-CybcVAw7.cjs +0 -1016
  504. package/dist/magic-string.es-CybcVAw7.cjs.map +0 -1
  505. package/dist/magic-string.es-DY8GVHw9.js +0 -1015
  506. package/dist/magic-string.es-DY8GVHw9.js.map +0 -1
  507. package/dist/promptDefinitions-BTLIBcGt.cjs.map +0 -1
  508. package/dist/promptDefinitions-CF2VWdQ6.d.cts.map +0 -1
  509. package/dist/promptDefinitions-D5FSQckL.d.ts.map +0 -1
  510. package/dist/resources-Bol20Xuo.js +0 -38
  511. package/dist/resources-Bol20Xuo.js.map +0 -1
  512. package/dist/resources-DNyoutxH.cjs +0 -44
  513. package/dist/resources-DNyoutxH.cjs.map +0 -1
  514. package/dist/schema-BJv7kREf.d.cts.map +0 -1
  515. package/dist/schema-BTfISwFu.cjs.map +0 -1
  516. package/dist/schema-BnxGHL_i.d.ts.map +0 -1
  517. package/dist/schema-BsvGMALe.cjs.map +0 -1
  518. package/dist/schema-C_hp0BR7.js.map +0 -1
  519. package/dist/server-C7cHq_pc.js.map +0 -1
  520. package/dist/server-DeutbO8v.cjs.map +0 -1
  521. package/dist/stdio-B73CCTly.cjs.map +0 -1
  522. package/dist/stdio-ZQLC-i5Q.js.map +0 -1
  523. package/dist/toolDefinitions-BOMF-zIC.d.ts +0 -394
  524. package/dist/toolDefinitions-BOMF-zIC.d.ts.map +0 -1
  525. package/dist/toolDefinitions-CUegGcWU.cjs +0 -547
  526. package/dist/toolDefinitions-CUegGcWU.cjs.map +0 -1
  527. package/dist/toolDefinitions-DFAxp3nr.js +0 -541
  528. package/dist/toolDefinitions-DFAxp3nr.js.map +0 -1
  529. package/dist/toolDefinitions-Ipvr4Acw.d.cts +0 -394
  530. package/dist/toolDefinitions-Ipvr4Acw.d.cts.map +0 -1
  531. package/dist/toolDefinitions.cjs +0 -4
  532. package/dist/toolDefinitions.d.cts +0 -2
  533. package/dist/toolDefinitions.test.cjs +0 -15
  534. package/dist/toolDefinitions.test.cjs.map +0 -1
  535. package/dist/toolDefinitions.test.d.cts +0 -1
  536. package/dist/toolDefinitions.test.d.ts +0 -1
  537. package/dist/toolDefinitions.test.js +0 -15
  538. package/dist/toolDefinitions.test.js.map +0 -1
  539. package/dist/tools-DpiQwSTY.js +0 -596
  540. package/dist/tools-DpiQwSTY.js.map +0 -1
  541. package/dist/tools-DyOqlsCW.cjs +0 -602
  542. package/dist/tools-DyOqlsCW.cjs.map +0 -1
  543. package/dist/tools.cjs +0 -11
  544. package/dist/tools.d.cts +0 -335
  545. package/dist/tools.d.cts.map +0 -1
  546. package/dist/tools.d.ts +0 -335
  547. package/dist/tools.d.ts.map +0 -1
  548. package/dist/tools.js +0 -11
  549. package/dist/tools.test.cjs +0 -1298
  550. package/dist/tools.test.cjs.map +0 -1
  551. package/dist/tools.test.d.cts +0 -1
  552. package/dist/tools.test.d.ts +0 -1
  553. package/dist/tools.test.js +0 -1298
  554. package/dist/tools.test.js.map +0 -1
  555. package/dist/types-D5TPcOfv.d.ts +0 -39
  556. package/dist/types-D5TPcOfv.d.ts.map +0 -1
  557. package/dist/types-DRF2IoP_.d.cts +0 -39
  558. package/dist/types-DRF2IoP_.d.cts.map +0 -1
  559. package/dist/types-Daq2fm0E.d.ts.map +0 -1
  560. package/dist/types-NIQW7KyF.d.cts.map +0 -1
  561. package/dist/version-BNmubeQI.cjs.map +0 -1
  562. package/dist/version-CRto5Sn_.js +0 -6
  563. package/dist/version-CRto5Sn_.js.map +0 -1
  564. package/dist/vi.bdSIJ99Y-BfJr7I2s.js +0 -6349
  565. package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +0 -1
  566. package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs +0 -6355
  567. package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +0 -1
  568. /package/dist/{api-client-CNv_hbPO.js → api-client-ChL_0F2u.js} +0 -0
  569. /package/dist/{types-6zHoEWAx.js → fetch-utils-C0F4eH6S.cjs} +0 -0
  570. /package/dist/{api-client/client.test.d.cts → index-DVGDAddE.d.ts} +0 -0
@@ -0,0 +1,106 @@
1
+
2
+ //#region src/utils/url-utils.ts
3
+ /**
4
+ * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
5
+ * Throws an error if validation fails instead of exiting the process.
6
+ *
7
+ * @param host The hostname to validate
8
+ * @throws {Error} If the host contains a protocol
9
+ */
10
+ function _validateSentryHostInternal(host) {
11
+ if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
12
+ }
13
+ /**
14
+ * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
15
+ * Throws an error if validation fails instead of exiting the process.
16
+ *
17
+ * @param url The HTTPS URL to validate and parse
18
+ * @returns The extracted hostname from the URL
19
+ * @throws {Error} If the URL is invalid or not HTTPS
20
+ */
21
+ function _validateAndParseSentryUrlInternal(url) {
22
+ if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
23
+ try {
24
+ const parsedUrl = new URL(url);
25
+ return parsedUrl.host;
26
+ } catch (error) {
27
+ throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
28
+ }
29
+ }
30
+ /**
31
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
32
+ * Exits the process with error code 1 if validation fails (CLI behavior).
33
+ *
34
+ * @param host The hostname to validate
35
+ */
36
+ function validateSentryHost(host) {
37
+ try {
38
+ _validateSentryHostInternal(host);
39
+ } catch (error) {
40
+ console.error(`Error: ${error.message}`);
41
+ process.exit(1);
42
+ }
43
+ }
44
+ /**
45
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
46
+ * Exits the process with error code 1 if validation fails (CLI behavior).
47
+ *
48
+ * @param url The HTTPS URL to validate and parse
49
+ * @returns The extracted hostname from the URL
50
+ */
51
+ function validateAndParseSentryUrl(url) {
52
+ try {
53
+ return _validateAndParseSentryUrlInternal(url);
54
+ } catch (error) {
55
+ console.error(`Error: ${error.message}`);
56
+ process.exit(1);
57
+ }
58
+ }
59
+ /**
60
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
61
+ * Throws an error instead of exiting the process (for testing).
62
+ *
63
+ * @param host The hostname to validate
64
+ * @throws {Error} If the host contains a protocol
65
+ */
66
+ function validateSentryHostThrows(host) {
67
+ _validateSentryHostInternal(host);
68
+ }
69
+ /**
70
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
71
+ * Throws an error instead of exiting the process (for testing).
72
+ *
73
+ * @param url The HTTPS URL to validate and parse
74
+ * @returns The extracted hostname from the URL
75
+ * @throws {Error} If the URL is invalid or not HTTPS
76
+ */
77
+ function validateAndParseSentryUrlThrows(url) {
78
+ return _validateAndParseSentryUrlInternal(url);
79
+ }
80
+
81
+ //#endregion
82
+ Object.defineProperty(exports, 'validateAndParseSentryUrl', {
83
+ enumerable: true,
84
+ get: function () {
85
+ return validateAndParseSentryUrl;
86
+ }
87
+ });
88
+ Object.defineProperty(exports, 'validateAndParseSentryUrlThrows', {
89
+ enumerable: true,
90
+ get: function () {
91
+ return validateAndParseSentryUrlThrows;
92
+ }
93
+ });
94
+ Object.defineProperty(exports, 'validateSentryHost', {
95
+ enumerable: true,
96
+ get: function () {
97
+ return validateSentryHost;
98
+ }
99
+ });
100
+ Object.defineProperty(exports, 'validateSentryHostThrows', {
101
+ enumerable: true,
102
+ get: function () {
103
+ return validateSentryHostThrows;
104
+ }
105
+ });
106
+ //# sourceMappingURL=url-utils-C9hykWmk.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-utils-C9hykWmk.cjs","names":["host: string","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n"],"mappings":";;;;;;;;;AAOA,SAAS,4BAA4BA,MAAoB;AACvD,KAAI,KAAK,WAAW,UAAU,IAAI,KAAK,WAAW,WAAW,CAC3D,OAAM,IAAI,MACR;AAGL;;;;;;;;;AAUD,SAAS,mCAAmCC,KAAqB;AAC/D,MAAK,IAAI,WAAW,WAAW,CAC7B,OAAM,IAAI,MACR;AAIJ,KAAI;EACF,MAAM,YAAY,IAAI,IAAI;AAC1B,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,QAAM,IAAI,MACR;CAEH;AACF;;;;;;;AAQD,SAAgB,mBAAmBD,MAAoB;AACrD,KAAI;AACF,8BAA4B,KAAK;CAClC,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,0BAA0BC,KAAqB;AAC7D,KAAI;AACF,SAAO,mCAAmC,IAAI;CAC/C,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,yBAAyBD,MAAoB;AAC3D,6BAA4B,KAAK;AAClC;;;;;;;;;AAUD,SAAgB,gCAAgCC,KAAqB;AACnE,QAAO,mCAAmC,IAAI;AAC/C"}
@@ -0,0 +1,82 @@
1
+ //#region src/utils/url-utils.ts
2
+ /**
3
+ * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
4
+ * Throws an error if validation fails instead of exiting the process.
5
+ *
6
+ * @param host The hostname to validate
7
+ * @throws {Error} If the host contains a protocol
8
+ */
9
+ function _validateSentryHostInternal(host) {
10
+ if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
11
+ }
12
+ /**
13
+ * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
14
+ * Throws an error if validation fails instead of exiting the process.
15
+ *
16
+ * @param url The HTTPS URL to validate and parse
17
+ * @returns The extracted hostname from the URL
18
+ * @throws {Error} If the URL is invalid or not HTTPS
19
+ */
20
+ function _validateAndParseSentryUrlInternal(url) {
21
+ if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
22
+ try {
23
+ const parsedUrl = new URL(url);
24
+ return parsedUrl.host;
25
+ } catch (error) {
26
+ throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
27
+ }
28
+ }
29
+ /**
30
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
31
+ * Exits the process with error code 1 if validation fails (CLI behavior).
32
+ *
33
+ * @param host The hostname to validate
34
+ */
35
+ function validateSentryHost(host) {
36
+ try {
37
+ _validateSentryHostInternal(host);
38
+ } catch (error) {
39
+ console.error(`Error: ${error.message}`);
40
+ process.exit(1);
41
+ }
42
+ }
43
+ /**
44
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
45
+ * Exits the process with error code 1 if validation fails (CLI behavior).
46
+ *
47
+ * @param url The HTTPS URL to validate and parse
48
+ * @returns The extracted hostname from the URL
49
+ */
50
+ function validateAndParseSentryUrl(url) {
51
+ try {
52
+ return _validateAndParseSentryUrlInternal(url);
53
+ } catch (error) {
54
+ console.error(`Error: ${error.message}`);
55
+ process.exit(1);
56
+ }
57
+ }
58
+ /**
59
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
60
+ * Throws an error instead of exiting the process (for testing).
61
+ *
62
+ * @param host The hostname to validate
63
+ * @throws {Error} If the host contains a protocol
64
+ */
65
+ function validateSentryHostThrows(host) {
66
+ _validateSentryHostInternal(host);
67
+ }
68
+ /**
69
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
70
+ * Throws an error instead of exiting the process (for testing).
71
+ *
72
+ * @param url The HTTPS URL to validate and parse
73
+ * @returns The extracted hostname from the URL
74
+ * @throws {Error} If the URL is invalid or not HTTPS
75
+ */
76
+ function validateAndParseSentryUrlThrows(url) {
77
+ return _validateAndParseSentryUrlInternal(url);
78
+ }
79
+
80
+ //#endregion
81
+ export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
82
+ //# sourceMappingURL=url-utils-DvZYfzPM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-utils-DvZYfzPM.js","names":["host: string","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n"],"mappings":";;;;;;;;AAOA,SAAS,4BAA4BA,MAAoB;AACvD,KAAI,KAAK,WAAW,UAAU,IAAI,KAAK,WAAW,WAAW,CAC3D,OAAM,IAAI,MACR;AAGL;;;;;;;;;AAUD,SAAS,mCAAmCC,KAAqB;AAC/D,MAAK,IAAI,WAAW,WAAW,CAC7B,OAAM,IAAI,MACR;AAIJ,KAAI;EACF,MAAM,YAAY,IAAI,IAAI;AAC1B,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,QAAM,IAAI,MACR;CAEH;AACF;;;;;;;AAQD,SAAgB,mBAAmBD,MAAoB;AACrD,KAAI;AACF,8BAA4B,KAAK;CAClC,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,0BAA0BC,KAAqB;AAC7D,KAAI;AACF,SAAO,mCAAmC,IAAI;CAC/C,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,yBAAyBD,MAAoB;AAC3D,6BAA4B,KAAK;AAClC;;;;;;;;;AAUD,SAAgB,gCAAgCC,KAAqB;AACnE,QAAO,mCAAmC,IAAI;AAC/C"}
@@ -0,0 +1,6 @@
1
+ const require_url_utils = require('../url-utils-C9hykWmk.cjs');
2
+
3
+ exports.validateAndParseSentryUrl = require_url_utils.validateAndParseSentryUrl;
4
+ exports.validateAndParseSentryUrlThrows = require_url_utils.validateAndParseSentryUrlThrows;
5
+ exports.validateSentryHost = require_url_utils.validateSentryHost;
6
+ exports.validateSentryHostThrows = require_url_utils.validateSentryHostThrows;
@@ -0,0 +1,37 @@
1
+ //#region src/utils/url-utils.d.ts
2
+ /**
3
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
4
+ * Exits the process with error code 1 if validation fails (CLI behavior).
5
+ *
6
+ * @param host The hostname to validate
7
+ */
8
+ declare function validateSentryHost(host: string): void;
9
+ /**
10
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
11
+ * Exits the process with error code 1 if validation fails (CLI behavior).
12
+ *
13
+ * @param url The HTTPS URL to validate and parse
14
+ * @returns The extracted hostname from the URL
15
+ */
16
+ declare function validateAndParseSentryUrl(url: string): string;
17
+ /**
18
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
19
+ * Throws an error instead of exiting the process (for testing).
20
+ *
21
+ * @param host The hostname to validate
22
+ * @throws {Error} If the host contains a protocol
23
+ */
24
+ declare function validateSentryHostThrows(host: string): void;
25
+ /**
26
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
27
+ * Throws an error instead of exiting the process (for testing).
28
+ *
29
+ * @param url The HTTPS URL to validate and parse
30
+ * @returns The extracted hostname from the URL
31
+ * @throws {Error} If the URL is invalid or not HTTPS
32
+ */
33
+ declare function validateAndParseSentryUrlThrows(url: string): string;
34
+ //# sourceMappingURL=url-utils.d.ts.map
35
+ //#endregion
36
+ export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
37
+ //# sourceMappingURL=url-utils.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-utils.d.cts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AA8CA;AAgBA;AAgBA;AAYA;;iBA5CgB,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA"}
@@ -0,0 +1,37 @@
1
+ //#region src/utils/url-utils.d.ts
2
+ /**
3
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
4
+ * Exits the process with error code 1 if validation fails (CLI behavior).
5
+ *
6
+ * @param host The hostname to validate
7
+ */
8
+ declare function validateSentryHost(host: string): void;
9
+ /**
10
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
11
+ * Exits the process with error code 1 if validation fails (CLI behavior).
12
+ *
13
+ * @param url The HTTPS URL to validate and parse
14
+ * @returns The extracted hostname from the URL
15
+ */
16
+ declare function validateAndParseSentryUrl(url: string): string;
17
+ /**
18
+ * Validates that a SENTRY_HOST value contains only hostname (no protocol).
19
+ * Throws an error instead of exiting the process (for testing).
20
+ *
21
+ * @param host The hostname to validate
22
+ * @throws {Error} If the host contains a protocol
23
+ */
24
+ declare function validateSentryHostThrows(host: string): void;
25
+ /**
26
+ * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
27
+ * Throws an error instead of exiting the process (for testing).
28
+ *
29
+ * @param url The HTTPS URL to validate and parse
30
+ * @returns The extracted hostname from the URL
31
+ * @throws {Error} If the URL is invalid or not HTTPS
32
+ */
33
+ declare function validateAndParseSentryUrlThrows(url: string): string;
34
+ //# sourceMappingURL=url-utils.d.ts.map
35
+ //#endregion
36
+ export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
37
+ //# sourceMappingURL=url-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-utils.d.ts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AA8CA;AAgBA;AAgBA;AAYA;;iBA5CgB,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA"}
@@ -0,0 +1,3 @@
1
+ import { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows } from "../url-utils-DvZYfzPM.js";
2
+
3
+ export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
@@ -0,0 +1,6 @@
1
+ //#region src/version.ts
2
+ const LIB_VERSION = typeof process !== "undefined" && "0.14.0" || "0.0.0";
3
+
4
+ //#endregion
5
+ export { LIB_VERSION };
6
+ //# sourceMappingURL=version-C4uvMmw0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-C4uvMmw0.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["export const LIB_VERSION =\n (typeof process !== \"undefined\" && process.env?.npm_package_version) ||\n \"0.0.0\";\n"],"mappings":";AAAA,MAAa,qBACH,YAAY,2BACpB"}
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region src/version.ts
3
- const LIB_VERSION = "0.12.0";
3
+ const LIB_VERSION = typeof process !== "undefined" && "0.14.0" || "0.0.0";
4
4
 
5
5
  //#endregion
6
6
  Object.defineProperty(exports, 'LIB_VERSION', {
@@ -9,4 +9,4 @@ Object.defineProperty(exports, 'LIB_VERSION', {
9
9
  return LIB_VERSION;
10
10
  }
11
11
  });
12
- //# sourceMappingURL=version-BNmubeQI.cjs.map
12
+ //# sourceMappingURL=version-Ddz4xg_q.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version-Ddz4xg_q.cjs","names":[],"sources":["../src/version.ts"],"sourcesContent":["export const LIB_VERSION =\n (typeof process !== \"undefined\" && process.env?.npm_package_version) ||\n \"0.0.0\";\n"],"mappings":";;AAAA,MAAa,qBACH,YAAY,2BACpB"}
package/dist/version.cjs CHANGED
@@ -1,3 +1,3 @@
1
- const require_version = require('./version-BNmubeQI.cjs');
1
+ const require_version = require('./version-Ddz4xg_q.cjs');
2
2
 
3
3
  exports.LIB_VERSION = require_version.LIB_VERSION;
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
- import { LIB_VERSION } from "./version-CRto5Sn_.js";
1
+ import { LIB_VERSION } from "./version-C4uvMmw0.js";
2
2
 
3
3
  export { LIB_VERSION };
@@ -0,0 +1,28 @@
1
+ const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
2
+ const require_api_utils = require('./api-utils-d36iteNO.cjs');
3
+
4
+ //#region src/tools/whoami.ts
5
+ var whoami_default = require_defineTool.defineTool({
6
+ name: "whoami",
7
+ description: [
8
+ "Identify the authenticated user in Sentry.",
9
+ "",
10
+ "Use this tool when you need to:",
11
+ "- Get the user's name and email address."
12
+ ].join("\n"),
13
+ inputSchema: {},
14
+ async handler(params, context) {
15
+ const apiService = require_api_utils.apiServiceFromContext(context);
16
+ const user = await apiService.getAuthenticatedUser();
17
+ return `You are authenticated as ${user.name} (${user.email}).\n\nYour Sentry User ID is ${user.id}.`;
18
+ }
19
+ });
20
+
21
+ //#endregion
22
+ Object.defineProperty(exports, 'whoami_default', {
23
+ enumerable: true,
24
+ get: function () {
25
+ return whoami_default;
26
+ }
27
+ });
28
+ //# sourceMappingURL=whoami-CEgbTUqt.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whoami-CEgbTUqt.cjs","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"whoami\",\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n inputSchema: {},\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n const user = await apiService.getAuthenticatedUser();\n return `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n },\n});\n"],"mappings":";;;;AAKA,qBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,wCAAsB,QAAQ;EACjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,UAAQ,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;CACpG;AACF,EAAC"}
@@ -0,0 +1,23 @@
1
+ import { defineTool } from "./defineTool-77H4nSna.js";
2
+ import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
3
+
4
+ //#region src/tools/whoami.ts
5
+ var whoami_default = defineTool({
6
+ name: "whoami",
7
+ description: [
8
+ "Identify the authenticated user in Sentry.",
9
+ "",
10
+ "Use this tool when you need to:",
11
+ "- Get the user's name and email address."
12
+ ].join("\n"),
13
+ inputSchema: {},
14
+ async handler(params, context) {
15
+ const apiService = apiServiceFromContext(context);
16
+ const user = await apiService.getAuthenticatedUser();
17
+ return `You are authenticated as ${user.name} (${user.email}).\n\nYour Sentry User ID is ${user.id}.`;
18
+ }
19
+ });
20
+
21
+ //#endregion
22
+ export { whoami_default };
23
+ //# sourceMappingURL=whoami-DesNZnaQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whoami-DesNZnaQ.js","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"whoami\",\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n inputSchema: {},\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n const user = await apiService.getAuthenticatedUser();\n return `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n },\n});\n"],"mappings":";;;;AAKA,qBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,sBAAsB,QAAQ;EACjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,UAAQ,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;CACpG;AACF,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/mcp-server",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -37,6 +37,10 @@
37
37
  "types": "./dist/api-client/index.ts",
38
38
  "default": "./dist/api-client/index.js"
39
39
  },
40
+ "./constants": {
41
+ "types": "./dist/constants.ts",
42
+ "default": "./dist/constants.js"
43
+ },
40
44
  "./logging": {
41
45
  "types": "./dist/logging.ts",
42
46
  "default": "./dist/logging.js"
@@ -53,12 +57,15 @@
53
57
  "types": "./dist/promptDefinitions.ts",
54
58
  "default": "./dist/promptDefinitions.js"
55
59
  },
60
+ "./prompts": {
61
+ "types": "./dist/prompts.ts",
62
+ "default": "./dist/prompts.js"
63
+ },
56
64
  "./resources": {
57
65
  "types": "./dist/resources.ts",
58
66
  "default": "./dist/resources.js"
59
67
  },
60
68
  "./toolDefinitions": {
61
- "types": "./dist/toolDefinitions.ts",
62
69
  "default": "./dist/toolDefinitions.js"
63
70
  },
64
71
  "./types": {
@@ -71,22 +78,25 @@
71
78
  }
72
79
  },
73
80
  "devDependencies": {
74
- "msw": "^2.8.7",
75
- "@sentry/mcp-server-mocks": "0.12.0",
76
- "@sentry/mcp-server-tsconfig": "0.12.0"
81
+ "msw": "^2.10.2",
82
+ "zod-to-json-schema": "^3.24.6",
83
+ "@sentry/mcp-server-mocks": "0.14.0",
84
+ "@sentry/mcp-server-tsconfig": "0.14.0"
77
85
  },
78
86
  "dependencies": {
79
- "@modelcontextprotocol/sdk": "^1.12.1",
80
- "@sentry/core": "^9.24.0",
81
- "@sentry/node": "^9.24.0",
82
- "zod": "^3.25.48"
87
+ "@modelcontextprotocol/sdk": "^1.13.2",
88
+ "@sentry/core": "^9.33.0",
89
+ "@sentry/node": "^9.33.0",
90
+ "zod": "^3.25.67"
83
91
  },
84
92
  "scripts": {
85
- "build": "tsdown",
86
- "dev": "tsc -w",
93
+ "build": "tsdown && pnpm run generate-tool-definitions",
94
+ "dev": "pnpm run generate-tool-definitions && tsc -w",
87
95
  "start": "tsx src/index.ts",
88
- "test": "vitest",
89
- "test:ci": "vitest run --coverage --reporter=junit --outputFile=tests.junit.xml",
90
- "test:watch": "vitest watch"
96
+ "test": "pnpm run generate-tool-definitions && vitest",
97
+ "test:ci": "pnpm run generate-tool-definitions && vitest run --coverage --reporter=junit --outputFile=tests.junit.xml",
98
+ "tsc": "tsc --noEmit",
99
+ "test:watch": "vitest watch",
100
+ "generate-tool-definitions": "tsx scripts/generate-tool-definitions.ts"
91
101
  }
92
102
  }
@@ -1,33 +0,0 @@
1
- const require_dist = require('../dist-BlIWGSIM.cjs');
2
- const require_vi_bdSIJ99Y = require('../vi.bdSIJ99Y-Dft_B_Ta.cjs');
3
- require('../schema-BsvGMALe.cjs');
4
- const require_client = require('../client-B7vZ6JMk.cjs');
5
-
6
- //#region src/api-client/client.test.ts
7
- require_dist.describe("getIssueUrl", () => {
8
- require_dist.it("should work with sentry.io", () => {
9
- const apiService = new require_client.SentryApiService({ host: "sentry.io" });
10
- const result = apiService.getIssueUrl("sentry-mcp", "123456");
11
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`"https://sentry-mcp.sentry.io/issues/123456"`);
12
- });
13
- require_dist.it("should work with self-hosted", () => {
14
- const apiService = new require_client.SentryApiService({ host: "sentry.example.com" });
15
- const result = apiService.getIssueUrl("sentry-mcp", "123456");
16
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`"https://sentry.example.com/organizations/sentry-mcp/issues/123456"`);
17
- });
18
- });
19
- require_dist.describe("getTraceUrl", () => {
20
- require_dist.it("should work with sentry.io", () => {
21
- const apiService = new require_client.SentryApiService({ host: "sentry.io" });
22
- const result = apiService.getTraceUrl("sentry-mcp", "6a477f5b0f31ef7b6b9b5e1dea66c91d");
23
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`"https://sentry-mcp.sentry.io/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d"`);
24
- });
25
- require_dist.it("should work with self-hosted", () => {
26
- const apiService = new require_client.SentryApiService({ host: "sentry.example.com" });
27
- const result = apiService.getTraceUrl("sentry-mcp", "6a477f5b0f31ef7b6b9b5e1dea66c91d");
28
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`"https://sentry.example.com/organizations/sentry-mcp/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d"`);
29
- });
30
- });
31
-
32
- //#endregion
33
- //# sourceMappingURL=client.test.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.test.cjs","names":["SentryApiService"],"sources":["../../src/api-client/client.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { SentryApiService } from \"./client.js\";\n\ndescribe(\"getIssueUrl\", () => {\n it(\"should work with sentry.io\", () => {\n const apiService = new SentryApiService({ host: \"sentry.io\" });\n const result = apiService.getIssueUrl(\"sentry-mcp\", \"123456\");\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry-mcp.sentry.io/issues/123456\"`,\n );\n });\n it(\"should work with self-hosted\", () => {\n const apiService = new SentryApiService({ host: \"sentry.example.com\" });\n const result = apiService.getIssueUrl(\"sentry-mcp\", \"123456\");\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry.example.com/organizations/sentry-mcp/issues/123456\"`,\n );\n });\n});\n\ndescribe(\"getTraceUrl\", () => {\n it(\"should work with sentry.io\", () => {\n const apiService = new SentryApiService({ host: \"sentry.io\" });\n const result = apiService.getTraceUrl(\n \"sentry-mcp\",\n \"6a477f5b0f31ef7b6b9b5e1dea66c91d\",\n );\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry-mcp.sentry.io/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d\"`,\n );\n });\n it(\"should work with self-hosted\", () => {\n const apiService = new SentryApiService({ host: \"sentry.example.com\" });\n const result = apiService.getTraceUrl(\n \"sentry-mcp\",\n \"6a477f5b0f31ef7b6b9b5e1dea66c91d\",\n );\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry.example.com/organizations/sentry-mcp/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d\"`,\n );\n });\n});\n"],"mappings":";;;;;;AAGA,sBAAS,eAAe,MAAM;AAC5B,iBAAG,8BAA8B,MAAM;EACrC,MAAM,aAAa,IAAIA,gCAAiB,EAAE,MAAM,YAAa;EAC7D,MAAM,SAAS,WAAW,YAAY,cAAc,SAAS;AAC7D,mCAAO,OAAO,CAAC,uBACZ,8CACF;CACF,EAAC;AACF,iBAAG,gCAAgC,MAAM;EACvC,MAAM,aAAa,IAAIA,gCAAiB,EAAE,MAAM,qBAAsB;EACtE,MAAM,SAAS,WAAW,YAAY,cAAc,SAAS;AAC7D,mCAAO,OAAO,CAAC,uBACZ,qEACF;CACF,EAAC;AACH,EAAC;AAEF,sBAAS,eAAe,MAAM;AAC5B,iBAAG,8BAA8B,MAAM;EACrC,MAAM,aAAa,IAAIA,gCAAiB,EAAE,MAAM,YAAa;EAC7D,MAAM,SAAS,WAAW,YACxB,cACA,mCACD;AACD,mCAAO,OAAO,CAAC,uBACZ,sFACF;CACF,EAAC;AACF,iBAAG,gCAAgC,MAAM;EACvC,MAAM,aAAa,IAAIA,gCAAiB,EAAE,MAAM,qBAAsB;EACtE,MAAM,SAAS,WAAW,YACxB,cACA,mCACD;AACD,mCAAO,OAAO,CAAC,uBACZ,6GACF;CACF,EAAC;AACH,EAAC"}
@@ -1 +0,0 @@
1
- export { };
@@ -1,33 +0,0 @@
1
- import { describe, it } from "../dist-DDpQABxe.js";
2
- import { globalExpect } from "../vi.bdSIJ99Y-BfJr7I2s.js";
3
- import "../schema-C_hp0BR7.js";
4
- import { SentryApiService } from "../client-CAoHZbyK.js";
5
-
6
- //#region src/api-client/client.test.ts
7
- describe("getIssueUrl", () => {
8
- it("should work with sentry.io", () => {
9
- const apiService = new SentryApiService({ host: "sentry.io" });
10
- const result = apiService.getIssueUrl("sentry-mcp", "123456");
11
- globalExpect(result).toMatchInlineSnapshot(`"https://sentry-mcp.sentry.io/issues/123456"`);
12
- });
13
- it("should work with self-hosted", () => {
14
- const apiService = new SentryApiService({ host: "sentry.example.com" });
15
- const result = apiService.getIssueUrl("sentry-mcp", "123456");
16
- globalExpect(result).toMatchInlineSnapshot(`"https://sentry.example.com/organizations/sentry-mcp/issues/123456"`);
17
- });
18
- });
19
- describe("getTraceUrl", () => {
20
- it("should work with sentry.io", () => {
21
- const apiService = new SentryApiService({ host: "sentry.io" });
22
- const result = apiService.getTraceUrl("sentry-mcp", "6a477f5b0f31ef7b6b9b5e1dea66c91d");
23
- globalExpect(result).toMatchInlineSnapshot(`"https://sentry-mcp.sentry.io/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d"`);
24
- });
25
- it("should work with self-hosted", () => {
26
- const apiService = new SentryApiService({ host: "sentry.example.com" });
27
- const result = apiService.getTraceUrl("sentry-mcp", "6a477f5b0f31ef7b6b9b5e1dea66c91d");
28
- globalExpect(result).toMatchInlineSnapshot(`"https://sentry.example.com/organizations/sentry-mcp/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d"`);
29
- });
30
- });
31
-
32
- //#endregion
33
- //# sourceMappingURL=client.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.test.js","names":[],"sources":["../../src/api-client/client.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { SentryApiService } from \"./client.js\";\n\ndescribe(\"getIssueUrl\", () => {\n it(\"should work with sentry.io\", () => {\n const apiService = new SentryApiService({ host: \"sentry.io\" });\n const result = apiService.getIssueUrl(\"sentry-mcp\", \"123456\");\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry-mcp.sentry.io/issues/123456\"`,\n );\n });\n it(\"should work with self-hosted\", () => {\n const apiService = new SentryApiService({ host: \"sentry.example.com\" });\n const result = apiService.getIssueUrl(\"sentry-mcp\", \"123456\");\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry.example.com/organizations/sentry-mcp/issues/123456\"`,\n );\n });\n});\n\ndescribe(\"getTraceUrl\", () => {\n it(\"should work with sentry.io\", () => {\n const apiService = new SentryApiService({ host: \"sentry.io\" });\n const result = apiService.getTraceUrl(\n \"sentry-mcp\",\n \"6a477f5b0f31ef7b6b9b5e1dea66c91d\",\n );\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry-mcp.sentry.io/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d\"`,\n );\n });\n it(\"should work with self-hosted\", () => {\n const apiService = new SentryApiService({ host: \"sentry.example.com\" });\n const result = apiService.getTraceUrl(\n \"sentry-mcp\",\n \"6a477f5b0f31ef7b6b9b5e1dea66c91d\",\n );\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry.example.com/organizations/sentry-mcp/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d\"`,\n );\n });\n});\n"],"mappings":";;;;;;AAGA,SAAS,eAAe,MAAM;AAC5B,IAAG,8BAA8B,MAAM;EACrC,MAAM,aAAa,IAAI,iBAAiB,EAAE,MAAM,YAAa;EAC7D,MAAM,SAAS,WAAW,YAAY,cAAc,SAAS;AAC7D,eAAO,OAAO,CAAC,uBACZ,8CACF;CACF,EAAC;AACF,IAAG,gCAAgC,MAAM;EACvC,MAAM,aAAa,IAAI,iBAAiB,EAAE,MAAM,qBAAsB;EACtE,MAAM,SAAS,WAAW,YAAY,cAAc,SAAS;AAC7D,eAAO,OAAO,CAAC,uBACZ,qEACF;CACF,EAAC;AACH,EAAC;AAEF,SAAS,eAAe,MAAM;AAC5B,IAAG,8BAA8B,MAAM;EACrC,MAAM,aAAa,IAAI,iBAAiB,EAAE,MAAM,YAAa;EAC7D,MAAM,SAAS,WAAW,YACxB,cACA,mCACD;AACD,eAAO,OAAO,CAAC,uBACZ,sFACF;CACF,EAAC;AACF,IAAG,gCAAgC,MAAM;EACvC,MAAM,aAAa,IAAI,iBAAiB,EAAE,MAAM,qBAAsB;EACtE,MAAM,SAAS,WAAW,YACxB,cACA,mCACD;AACD,eAAO,OAAO,CAAC,uBACZ,6GACF;CACF,EAAC;AACH,EAAC"}
@@ -1,30 +0,0 @@
1
- import { createRequire } from "node:module";
2
-
3
- //#region rolldown:runtime
4
- var __create = Object.create;
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __commonJS = (cb, mod) => function() {
11
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
- key = keys[i];
16
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
- get: ((k) => from[k]).bind(null, key),
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- }
21
- return to;
22
- };
23
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
- value: mod,
25
- enumerable: true
26
- }) : target, mod));
27
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
28
-
29
- //#endregion
30
- export { __commonJS, __require, __toESM };
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-4jq_wVgn.d.ts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AA2DA;AAkBC;AAiDD;;;;;;;;;;;;;AAoPM,cAvTO,QAAA,SAAiB,KAAK,CAuT7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KAzSN,cAAA,GA0SA;EAAO,IAsBD,CAAA,EAAA,MAAA;CAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgVnB,cAjmBO,gBAAA,CAimBP;EAAgB,QAChB,WAAA;EAAW,UACX,IAAA,EAAA,MAAA;EAAK,UACL,SAAA,EAAA,MAAA;EAAM;;;;;;;EA0CM,WAAb,CAAA;IAAA,WAAA;IAAA;EAcQ,CAdR,EAAA;IAaC,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;IACA,IAAA,CAAA,EAAA,MAAA;EAAO,CAAA;EACA;;;;;;;EA2BK,OAAb,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAO;;;;;;;;;;;;;;;;EAuHU,QAChB,OAAA;EAAW;;;;;;;;;;;;;;;;;AA6FL;;;;;;;;;;;;;;;;;;;;;;;8BAzuBwB,iBAAiB,QAAQ;;;;;;;;;;;;;;;;;;;2BAwB5B,iBAAiB,QAAQ;;;;;;;;6CAgC/C,iBACN,QAAQ;;;;;;;;;;;;;;;;;YA6BF,iBACN,QAAQ;;;;;;;;gDAsBF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;YAkCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;YAyCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;YAoCF,iBACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CM,iBACN,QAAQ;;;;;;;;;;;;;;;;YA+BF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgDF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8DF,iBACN,QAAQ;;;;;;;YAiCF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;YAmBF,iBACN,QAAQ;;;;;;;;;;;YAuBF,iBACN,QAAQ;;;;;;;;;;;;;;;YAkDF,iBAAc;;;;;;;;;;;;;;;;;;;;YAyDd,iBAAc;;;;;;;;;;;;;;;;;;;;YAuDd,iBACN,QAAQ;;;;;;;YAyBF,iBACN,QAAQ"}