@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
@@ -1,1298 +0,0 @@
1
- const require_dist = require('./dist-BlIWGSIM.cjs');
2
- const require_vi_bdSIJ99Y = require('./vi.bdSIJ99Y-Dft_B_Ta.cjs');
3
- require('./errors-B9fwS-aP.cjs');
4
- require('./schema-BsvGMALe.cjs');
5
- require('./client-B7vZ6JMk.cjs');
6
- require('./types-MYBaygjr.cjs');
7
- require('./api-client-CL1WDkw9.cjs');
8
- require('./formatting-C2kN0ok6.cjs');
9
- require('./issue-helpers-D712fGT2.cjs');
10
- require('./logging-ByvSjT6V.cjs');
11
- const require_tools = require('./tools-DyOqlsCW.cjs');
12
-
13
- //#region src/tools.test.ts
14
- require_dist.describe("whoami", () => {
15
- require_dist.it("serializes", async () => {
16
- const tool = require_tools.TOOL_HANDLERS.whoami;
17
- const result = await tool({
18
- accessToken: "access-token",
19
- userId: "1",
20
- organizationSlug: null
21
- }, {});
22
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
23
- "You are authenticated as John Doe (john.doe@example.com).
24
-
25
- Your Sentry User ID is 1."
26
- `);
27
- });
28
- });
29
- require_dist.describe("find_organizations", () => {
30
- require_dist.it("serializes", async () => {
31
- const tool = require_tools.TOOL_HANDLERS.find_organizations;
32
- const result = await tool({
33
- accessToken: "access-token",
34
- userId: "1",
35
- organizationSlug: null
36
- }, {});
37
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
38
- "# Organizations
39
-
40
- ## **sentry-mcp-evals**
41
-
42
- **Web URL:** https://sentry.io/sentry-mcp-evals
43
- **Region URL:** https://us.sentry.io
44
-
45
- # Using this information
46
-
47
- - The organization's name is the identifier for the organization, and is used in many tools for \`organizationSlug\`.
48
- - If a tool supports passing in the \`regionUrl\`, you MUST pass in the correct value shown above for each organization.
49
- - For Sentry's Cloud Service (sentry.io), always use the regionUrl to ensure requests go to the correct region.
50
- "
51
- `);
52
- });
53
- require_dist.it("handles empty regionUrl parameter", async () => {
54
- const tool = require_tools.TOOL_HANDLERS.find_organizations;
55
- const result = await tool({
56
- accessToken: "access-token",
57
- userId: "1",
58
- organizationSlug: null
59
- }, { regionUrl: "" });
60
- require_vi_bdSIJ99Y.globalExpect(result).toContain("Organizations");
61
- });
62
- require_dist.it("handles undefined regionUrl parameter", async () => {
63
- const tool = require_tools.TOOL_HANDLERS.find_organizations;
64
- const result = await tool({
65
- accessToken: "access-token",
66
- userId: "1",
67
- organizationSlug: null
68
- }, { regionUrl: void 0 });
69
- require_vi_bdSIJ99Y.globalExpect(result).toContain("Organizations");
70
- });
71
- });
72
- require_dist.describe("find_teams", () => {
73
- require_dist.it("serializes", async () => {
74
- const tool = require_tools.TOOL_HANDLERS.find_teams;
75
- const result = await tool({
76
- accessToken: "access-token",
77
- userId: "1",
78
- organizationSlug: null
79
- }, {
80
- organizationSlug: "sentry-mcp-evals",
81
- regionUrl: void 0
82
- });
83
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
84
- "# Teams in **sentry-mcp-evals**
85
-
86
- - the-goats
87
- "
88
- `);
89
- });
90
- });
91
- require_dist.describe("find_projects", () => {
92
- require_dist.it("serializes", async () => {
93
- const tool = require_tools.TOOL_HANDLERS.find_projects;
94
- const result = await tool({
95
- accessToken: "access-token",
96
- userId: "1",
97
- organizationSlug: null
98
- }, {
99
- organizationSlug: "sentry-mcp-evals",
100
- regionUrl: void 0
101
- });
102
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
103
- "# Projects in **sentry-mcp-evals**
104
-
105
- - **cloudflare-mcp**
106
- "
107
- `);
108
- });
109
- });
110
- require_dist.describe("find_issues", () => {
111
- require_dist.it("serializes with project", async () => {
112
- const tool = require_tools.TOOL_HANDLERS.find_issues;
113
- const result = await tool({
114
- accessToken: "access-token",
115
- userId: "1",
116
- organizationSlug: null
117
- }, {
118
- organizationSlug: "sentry-mcp-evals",
119
- projectSlug: "cloudflare-mcp",
120
- query: void 0,
121
- sortBy: "last_seen",
122
- regionUrl: void 0
123
- });
124
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
125
- "# Issues in **sentry-mcp-evals/cloudflare-mcp**
126
-
127
- ## CLOUDFLARE-MCP-41
128
-
129
- **Description**: Error: Tool list_organizations is already registered
130
- **Culprit**: Object.fetch(index)
131
- **First Seen**: 2025-04-03T22:51:19.403Z
132
- **Last Seen**: 2025-04-12T11:34:11.000Z
133
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
134
-
135
- ## CLOUDFLARE-MCP-42
136
-
137
- **Description**: Error: Tool list_issues is already registered
138
- **Culprit**: Object.fetch(index)
139
- **First Seen**: 2025-04-11T22:51:19.403Z
140
- **Last Seen**: 2025-04-12T11:34:11.000Z
141
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-42
142
-
143
- # Using this information
144
-
145
- - You can reference the Issue ID in commit messages (e.g. \`Fixes <issueID>\`) to automatically close the issue when the commit is merged.
146
- - You can get more details about a specific issue by using the tool: \`get_issue_details(organizationSlug="sentry-mcp-evals", issueId=<issueID>)\`
147
- "
148
- `);
149
- });
150
- require_dist.it("serializes without project", async () => {
151
- const tool = require_tools.TOOL_HANDLERS.find_issues;
152
- const result = await tool({
153
- accessToken: "access-token",
154
- userId: "1",
155
- organizationSlug: null
156
- }, {
157
- organizationSlug: "sentry-mcp-evals",
158
- projectSlug: void 0,
159
- query: void 0,
160
- sortBy: "last_seen",
161
- regionUrl: void 0
162
- });
163
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
164
- "# Issues in **sentry-mcp-evals**
165
-
166
- ## CLOUDFLARE-MCP-41
167
-
168
- **Description**: Error: Tool list_organizations is already registered
169
- **Culprit**: Object.fetch(index)
170
- **First Seen**: 2025-04-03T22:51:19.403Z
171
- **Last Seen**: 2025-04-12T11:34:11.000Z
172
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
173
-
174
- ## CLOUDFLARE-MCP-42
175
-
176
- **Description**: Error: Tool list_issues is already registered
177
- **Culprit**: Object.fetch(index)
178
- **First Seen**: 2025-04-11T22:51:19.403Z
179
- **Last Seen**: 2025-04-12T11:34:11.000Z
180
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-42
181
-
182
- # Using this information
183
-
184
- - You can reference the Issue ID in commit messages (e.g. \`Fixes <issueID>\`) to automatically close the issue when the commit is merged.
185
- - You can get more details about a specific issue by using the tool: \`get_issue_details(organizationSlug="sentry-mcp-evals", issueId=<issueID>)\`
186
- "
187
- `);
188
- });
189
- });
190
- require_dist.describe("find_releases", () => {
191
- require_dist.it("works without project", async () => {
192
- const tool = require_tools.TOOL_HANDLERS.find_releases;
193
- const result = await tool({
194
- accessToken: "access-token",
195
- userId: "1",
196
- organizationSlug: null
197
- }, {
198
- organizationSlug: "sentry-mcp-evals",
199
- projectSlug: void 0,
200
- regionUrl: void 0,
201
- query: void 0
202
- });
203
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
204
- "# Releases in **sentry-mcp-evals**
205
-
206
- ## 8ce89484-0fec-4913-a2cd-e8e2d41dee36
207
-
208
- **Created**: 2025-04-13T19:54:21.764Z
209
- **First Event**: 2025-04-13T19:54:21.000Z
210
- **Last Event**: 2025-04-13T20:28:23.000Z
211
- **New Issues**: 0
212
- **Projects**: cloudflare-mcp
213
-
214
- # Using this information
215
-
216
- - You can reference the Release version in commit messages or documentation.
217
- - You can search for issues in a specific release using the \`find_errors()\` tool with the query \`release:8ce89484-0fec-4913-a2cd-e8e2d41dee36\`.
218
- "
219
- `);
220
- });
221
- require_dist.it("works with project", async () => {
222
- const tool = require_tools.TOOL_HANDLERS.find_releases;
223
- const result = await tool({
224
- accessToken: "access-token",
225
- userId: "1",
226
- organizationSlug: null
227
- }, {
228
- organizationSlug: "sentry-mcp-evals",
229
- projectSlug: "cloudflare-mcp",
230
- regionUrl: void 0,
231
- query: void 0
232
- });
233
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
234
- "# Releases in **sentry-mcp-evals/cloudflare-mcp**
235
-
236
- ## 8ce89484-0fec-4913-a2cd-e8e2d41dee36
237
-
238
- **Created**: 2025-04-13T19:54:21.764Z
239
- **First Event**: 2025-04-13T19:54:21.000Z
240
- **Last Event**: 2025-04-13T20:28:23.000Z
241
- **New Issues**: 0
242
- **Projects**: cloudflare-mcp
243
-
244
- # Using this information
245
-
246
- - You can reference the Release version in commit messages or documentation.
247
- - You can search for issues in a specific release using the \`find_errors()\` tool with the query \`release:8ce89484-0fec-4913-a2cd-e8e2d41dee36\`.
248
- "
249
- `);
250
- });
251
- });
252
- require_dist.describe("find_tags", () => {
253
- require_dist.it("works", async () => {
254
- const tool = require_tools.TOOL_HANDLERS.find_tags;
255
- const result = await tool({
256
- accessToken: "access-token",
257
- userId: "1",
258
- organizationSlug: null
259
- }, {
260
- organizationSlug: "sentry-mcp-evals",
261
- projectSlug: void 0,
262
- regionUrl: void 0
263
- });
264
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
265
- "# Tags in **sentry-mcp-evals**
266
-
267
- - transaction
268
- - runtime.name
269
- - level
270
- - device
271
- - os
272
- - user
273
- - runtime
274
- - release
275
- - url
276
- - uptime_rule
277
- - server_name
278
- - browser
279
- - os.name
280
- - device.family
281
- - replayId
282
- - client_os.name
283
- - environment
284
- - service
285
- - browser.name
286
-
287
- # Using this information
288
-
289
- - You can reference tags in the \`query\` parameter of various tools: \`tagName:tagValue\`.
290
- "
291
- `);
292
- });
293
- });
294
- require_dist.describe("find_errors", () => {
295
- require_dist.it("serializes", async () => {
296
- const tool = require_tools.TOOL_HANDLERS.find_errors;
297
- const result = await tool({
298
- accessToken: "access-token",
299
- userId: "1",
300
- organizationSlug: null
301
- }, {
302
- organizationSlug: "sentry-mcp-evals",
303
- projectSlug: void 0,
304
- filename: void 0,
305
- transaction: void 0,
306
- query: void 0,
307
- sortBy: "count",
308
- regionUrl: void 0
309
- });
310
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
311
- "# Errors in **sentry-mcp-evals**
312
-
313
-
314
- ## CLOUDFLARE-MCP-41
315
-
316
- **Description**: Error: Tool list_organizations is already registered
317
- **Issue ID**: CLOUDFLARE-MCP-41
318
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
319
- **Project**: test-suite
320
- **Last Seen**: 2025-04-07T12:23:39+00:00
321
- **Occurrences**: 2
322
-
323
- # Using this information
324
-
325
- - You can reference the Issue ID in commit messages (e.g. \`Fixes <issueID>\`) to automatically close the issue when the commit is merged.
326
- - You can get more details about an error by using the tool: \`get_issue_details(organizationSlug="sentry-mcp-evals", issueId=<issueID>)\`
327
- "
328
- `);
329
- });
330
- });
331
- require_dist.describe("find_transactions", () => {
332
- require_dist.it("serializes", async () => {
333
- const tool = require_tools.TOOL_HANDLERS.find_transactions;
334
- const result = await tool({
335
- accessToken: "access-token",
336
- userId: "1",
337
- organizationSlug: null
338
- }, {
339
- organizationSlug: "sentry-mcp-evals",
340
- projectSlug: void 0,
341
- transaction: void 0,
342
- query: void 0,
343
- sortBy: "duration",
344
- regionUrl: void 0
345
- });
346
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
347
- "# Transactions in **sentry-mcp-evals**
348
-
349
-
350
- ## \`GET /trpc/bottleList\`
351
-
352
- **Span ID**: 07752c6aeb027c8f
353
- **Trace ID**: 6a477f5b0f31ef7b6b9b5e1dea66c91d
354
- **Span Operation**: http.server
355
- **Span Description**: GET /trpc/bottleList
356
- **Duration**: 12
357
- **Timestamp**: 2025-04-13T14:19:18+00:00
358
- **Project**: peated
359
- **URL**: https://sentry-mcp-evals.sentry.io/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d
360
-
361
- ## \`GET /trpc/bottleList\`
362
-
363
- **Span ID**: 7ab5edf5b3ba42c9
364
- **Trace ID**: 54177131c7b192a446124daba3136045
365
- **Span Operation**: http.server
366
- **Span Description**: GET /trpc/bottleList
367
- **Duration**: 18
368
- **Timestamp**: 2025-04-13T14:19:17+00:00
369
- **Project**: peated
370
- **URL**: https://sentry-mcp-evals.sentry.io/explore/traces/trace/54177131c7b192a446124daba3136045
371
-
372
- "
373
- `);
374
- });
375
- });
376
- require_dist.describe("get_issue_details", () => {
377
- require_dist.it("serializes with issueId", async () => {
378
- const tool = require_tools.TOOL_HANDLERS.get_issue_details;
379
- const result = await tool({
380
- accessToken: "access-token",
381
- userId: "1",
382
- organizationSlug: null
383
- }, {
384
- organizationSlug: "sentry-mcp-evals",
385
- issueId: "CLOUDFLARE-MCP-41",
386
- eventId: void 0,
387
- issueUrl: void 0,
388
- regionUrl: void 0
389
- });
390
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
391
- "# Issue CLOUDFLARE-MCP-41 in **sentry-mcp-evals**
392
-
393
- **Description**: Error: Tool list_organizations is already registered
394
- **Culprit**: Object.fetch(index)
395
- **First Seen**: 2025-04-03T22:51:19.403Z
396
- **Last Seen**: 2025-04-12T11:34:11.000Z
397
- **Occurrences**: 25
398
- **Users Impacted**: 1
399
- **Status**: unresolved
400
- **Platform**: javascript
401
- **Project**: CLOUDFLARE-MCP
402
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
403
-
404
- ## Event Details
405
-
406
- **Event ID**: 7ca573c0f4814912aaa9bdc77d1a7d51
407
- **Occurred At**: 2025-04-08T21:15:04.000Z
408
-
409
- ### Error
410
-
411
- \`\`\`
412
- Error: Tool list_organizations is already registered
413
- \`\`\`
414
-
415
- **Stacktrace:**
416
- \`\`\`
417
- index.js:7809:27
418
- index.js:8029:24 (OAuthProviderImpl.fetch)
419
- index.js:19631:28 (Object.fetch)
420
- \`\`\`
421
-
422
- ### HTTP Request
423
-
424
- **Method:** GET
425
- **URL:** https://mcp.sentry.dev/sse
426
-
427
- ### Additional Context
428
-
429
- These are additional context provided by the user when they're instrumenting their application.
430
-
431
- **cloud_resource**
432
- cloud.provider: "cloudflare"
433
-
434
- **culture**
435
- timezone: "Europe/London"
436
-
437
- **runtime**
438
- name: "cloudflare"
439
-
440
- **trace**
441
- trace_id: "3032af8bcdfe4423b937fc5c041d5d82"
442
- span_id: "953da703d2a6f4c7"
443
- status: "unknown"
444
- client_sample_rate: 1
445
- sampled: true
446
-
447
- # Using this information
448
-
449
- - You can reference the IssueID in commit messages (e.g. \`Fixes CLOUDFLARE-MCP-41\`) to automatically close the issue when the commit is merged.
450
- - The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.
451
- "
452
- `);
453
- });
454
- require_dist.it("serializes with issueUrl", async () => {
455
- const tool = require_tools.TOOL_HANDLERS.get_issue_details;
456
- const result = await tool({
457
- accessToken: "access-token",
458
- userId: "1",
459
- organizationSlug: null
460
- }, {
461
- organizationSlug: void 0,
462
- issueId: void 0,
463
- eventId: void 0,
464
- issueUrl: "https://sentry-mcp-evals.sentry.io/issues/6507376925",
465
- regionUrl: void 0
466
- });
467
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
468
- "# Issue CLOUDFLARE-MCP-41 in **sentry-mcp-evals**
469
-
470
- **Description**: Error: Tool list_organizations is already registered
471
- **Culprit**: Object.fetch(index)
472
- **First Seen**: 2025-04-03T22:51:19.403Z
473
- **Last Seen**: 2025-04-12T11:34:11.000Z
474
- **Occurrences**: 25
475
- **Users Impacted**: 1
476
- **Status**: unresolved
477
- **Platform**: javascript
478
- **Project**: CLOUDFLARE-MCP
479
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
480
-
481
- ## Event Details
482
-
483
- **Event ID**: 7ca573c0f4814912aaa9bdc77d1a7d51
484
- **Occurred At**: 2025-04-08T21:15:04.000Z
485
-
486
- ### Error
487
-
488
- \`\`\`
489
- Error: Tool list_organizations is already registered
490
- \`\`\`
491
-
492
- **Stacktrace:**
493
- \`\`\`
494
- index.js:7809:27
495
- index.js:8029:24 (OAuthProviderImpl.fetch)
496
- index.js:19631:28 (Object.fetch)
497
- \`\`\`
498
-
499
- ### HTTP Request
500
-
501
- **Method:** GET
502
- **URL:** https://mcp.sentry.dev/sse
503
-
504
- ### Additional Context
505
-
506
- These are additional context provided by the user when they're instrumenting their application.
507
-
508
- **cloud_resource**
509
- cloud.provider: "cloudflare"
510
-
511
- **culture**
512
- timezone: "Europe/London"
513
-
514
- **runtime**
515
- name: "cloudflare"
516
-
517
- **trace**
518
- trace_id: "3032af8bcdfe4423b937fc5c041d5d82"
519
- span_id: "953da703d2a6f4c7"
520
- status: "unknown"
521
- client_sample_rate: 1
522
- sampled: true
523
-
524
- # Using this information
525
-
526
- - You can reference the IssueID in commit messages (e.g. \`Fixes CLOUDFLARE-MCP-41\`) to automatically close the issue when the commit is merged.
527
- - The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.
528
- "
529
- `);
530
- });
531
- require_dist.it("serializes with eventId", async () => {
532
- const tool = require_tools.TOOL_HANDLERS.get_issue_details;
533
- const result = await tool({
534
- accessToken: "access-token",
535
- userId: "1",
536
- organizationSlug: null
537
- }, {
538
- organizationSlug: "sentry-mcp-evals",
539
- issueId: void 0,
540
- issueUrl: void 0,
541
- eventId: "7ca573c0f4814912aaa9bdc77d1a7d51",
542
- regionUrl: void 0
543
- });
544
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
545
- "# Issue CLOUDFLARE-MCP-41 in **sentry-mcp-evals**
546
-
547
- **Description**: Error: Tool list_organizations is already registered
548
- **Culprit**: Object.fetch(index)
549
- **First Seen**: 2025-04-03T22:51:19.403Z
550
- **Last Seen**: 2025-04-12T11:34:11.000Z
551
- **Occurrences**: 25
552
- **Users Impacted**: 1
553
- **Status**: unresolved
554
- **Platform**: javascript
555
- **Project**: CLOUDFLARE-MCP
556
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
557
-
558
- ## Event Details
559
-
560
- **Event ID**: 7ca573c0f4814912aaa9bdc77d1a7d51
561
- **Occurred At**: 2025-04-08T21:15:04.000Z
562
-
563
- ### Error
564
-
565
- \`\`\`
566
- Error: Tool list_organizations is already registered
567
- \`\`\`
568
-
569
- **Stacktrace:**
570
- \`\`\`
571
- index.js:7809:27
572
- index.js:8029:24 (OAuthProviderImpl.fetch)
573
- index.js:19631:28 (Object.fetch)
574
- \`\`\`
575
-
576
- ### HTTP Request
577
-
578
- **Method:** GET
579
- **URL:** https://mcp.sentry.dev/sse
580
-
581
- ### Additional Context
582
-
583
- These are additional context provided by the user when they're instrumenting their application.
584
-
585
- **cloud_resource**
586
- cloud.provider: "cloudflare"
587
-
588
- **culture**
589
- timezone: "Europe/London"
590
-
591
- **runtime**
592
- name: "cloudflare"
593
-
594
- **trace**
595
- trace_id: "3032af8bcdfe4423b937fc5c041d5d82"
596
- span_id: "953da703d2a6f4c7"
597
- status: "unknown"
598
- client_sample_rate: 1
599
- sampled: true
600
-
601
- # Using this information
602
-
603
- - You can reference the IssueID in commit messages (e.g. \`Fixes CLOUDFLARE-MCP-41\`) to automatically close the issue when the commit is merged.
604
- - The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.
605
- "
606
- `);
607
- });
608
- });
609
- require_dist.describe("create_team", () => {
610
- require_dist.it("serializes", async () => {
611
- const tool = require_tools.TOOL_HANDLERS.create_team;
612
- const result = await tool({
613
- accessToken: "access-token",
614
- userId: "1",
615
- organizationSlug: null
616
- }, {
617
- organizationSlug: "sentry-mcp-evals",
618
- name: "the-goats",
619
- regionUrl: void 0
620
- });
621
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
622
- "# New Team in **sentry-mcp-evals**
623
-
624
- **ID**: 4509109078196224
625
- **Slug**: the-goats
626
- **Name**: the-goats
627
- # Using this information
628
-
629
- - You should always inform the user of the Team Slug value.
630
- "
631
- `);
632
- });
633
- });
634
- require_dist.describe("create_project", () => {
635
- require_dist.it("serializes", async () => {
636
- const tool = require_tools.TOOL_HANDLERS.create_project;
637
- const result = await tool({
638
- accessToken: "access-token",
639
- userId: "1",
640
- organizationSlug: null
641
- }, {
642
- organizationSlug: "sentry-mcp-evals",
643
- teamSlug: "the-goats",
644
- name: "cloudflare-mcp",
645
- platform: "node",
646
- regionUrl: void 0
647
- });
648
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
649
- "# New Project in **sentry-mcp-evals**
650
-
651
- **ID**: 4509109104082945
652
- **Slug**: cloudflare-mcp
653
- **Name**: cloudflare-mcp
654
- **SENTRY_DSN**: https://d20df0a1ab5031c7f3c7edca9c02814d@o4509106732793856.ingest.us.sentry.io/4509109104082945
655
-
656
- # Using this information
657
-
658
- - You can reference the **SENTRY_DSN** value to initialize Sentry's SDKs.
659
- - You should always inform the user of the **SENTRY_DSN** and Project Slug values.
660
- "
661
- `);
662
- });
663
- });
664
- require_dist.describe("update_project", () => {
665
- require_dist.it("updates project settings", async () => {
666
- const tool = require_tools.TOOL_HANDLERS.update_project;
667
- const result = await tool({
668
- accessToken: "access-token",
669
- userId: "1",
670
- organizationSlug: null
671
- }, {
672
- organizationSlug: "sentry-mcp-evals",
673
- projectSlug: "cloudflare-mcp",
674
- name: "Updated Project Name",
675
- slug: "updated-project-slug",
676
- platform: "python",
677
- teamSlug: void 0,
678
- regionUrl: void 0
679
- });
680
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
681
- "# Updated Project in **sentry-mcp-evals**
682
-
683
- **ID**: 4509109104082945
684
- **Slug**: updated-project-slug
685
- **Name**: Updated Project Name
686
- **Platform**: python
687
-
688
- ## Updates Applied
689
- - Updated name to "Updated Project Name"
690
- - Updated slug to "updated-project-slug"
691
- - Updated platform to "python"
692
-
693
- # Using this information
694
-
695
- - The project is now accessible at slug: \`updated-project-slug\`
696
- "
697
- `);
698
- });
699
- require_dist.it("assigns project to team", async () => {
700
- const tool = require_tools.TOOL_HANDLERS.update_project;
701
- const result = await tool({
702
- accessToken: "access-token",
703
- userId: "1",
704
- organizationSlug: null
705
- }, {
706
- organizationSlug: "sentry-mcp-evals",
707
- projectSlug: "cloudflare-mcp",
708
- teamSlug: "the-goats",
709
- regionUrl: void 0
710
- });
711
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
712
- "# Updated Project in **sentry-mcp-evals**
713
-
714
- **ID**: 4509106749636608
715
- **Slug**: cloudflare-mcp
716
- **Name**: cloudflare-mcp
717
- **Platform**: node
718
-
719
- ## Updates Applied
720
- - Updated team assignment to "the-goats"
721
-
722
- # Using this information
723
-
724
- - The project is now accessible at slug: \`cloudflare-mcp\`
725
- - The project is now assigned to the \`the-goats\` team
726
- "
727
- `);
728
- });
729
- });
730
- require_dist.describe("create_dsn", () => {
731
- require_dist.it("serializes", async () => {
732
- const tool = require_tools.TOOL_HANDLERS.create_dsn;
733
- const result = await tool({
734
- accessToken: "access-token",
735
- userId: "1",
736
- organizationSlug: null
737
- }, {
738
- organizationSlug: "sentry-mcp-evals",
739
- projectSlug: "cloudflare-mcp",
740
- name: "Default",
741
- regionUrl: void 0
742
- });
743
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
744
- "# New DSN in **sentry-mcp-evals/cloudflare-mcp**
745
-
746
- **DSN**: https://d20df0a1ab5031c7f3c7edca9c02814d@o4509106732793856.ingest.us.sentry.io/4509109104082945
747
- **Name**: Default
748
-
749
- # Using this information
750
-
751
- - The \`SENTRY_DSN\` value is a URL that you can use to initialize Sentry's SDKs.
752
- "
753
- `);
754
- });
755
- });
756
- require_dist.describe("find_dsns", () => {
757
- require_dist.it("serializes", async () => {
758
- const tool = require_tools.TOOL_HANDLERS.find_dsns;
759
- const result = await tool({
760
- accessToken: "access-token",
761
- userId: "1",
762
- organizationSlug: null
763
- }, {
764
- organizationSlug: "sentry-mcp-evals",
765
- projectSlug: "cloudflare-mcp",
766
- regionUrl: void 0
767
- });
768
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
769
- "# DSNs in **sentry-mcp-evals/cloudflare-mcp**
770
-
771
- ## Default
772
- **ID**: d20df0a1ab5031c7f3c7edca9c02814d
773
- **DSN**: https://d20df0a1ab5031c7f3c7edca9c02814d@o4509106732793856.ingest.us.sentry.io/4509109104082945
774
-
775
- # Using this information
776
-
777
- - The \`SENTRY_DSN\` value is a URL that you can use to initialize Sentry's SDKs.
778
- "
779
- `);
780
- });
781
- });
782
- require_dist.describe("begin_seer_issue_fix", () => {
783
- require_dist.it("serializes", async () => {
784
- const tool = require_tools.TOOL_HANDLERS.begin_seer_issue_fix;
785
- const result = await tool({
786
- accessToken: "access-token",
787
- userId: "1",
788
- organizationSlug: null
789
- }, {
790
- organizationSlug: "sentry-mcp-evals",
791
- issueId: "PEATED-A8",
792
- issueUrl: void 0,
793
- regionUrl: void 0
794
- });
795
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
796
- "# Issue Fix Started for Issue PEATED-A8
797
-
798
- **Run ID:**: 123
799
-
800
- This operation may take some time, so you should call \`get_seer_issue_fix_status()\` to check the status of the analysis, and repeat the process until its finished.
801
-
802
- You should also inform the user that the operation may take some time, and give them updates whenever you check the status of the operation..
803
-
804
- \`\`\`
805
- get_seer_issue_fix_status(organizationSlug="sentry-mcp-evals", issueId="PEATED-A8")
806
- \`\`\`"
807
- `);
808
- });
809
- });
810
- require_dist.describe("get_seer_issue_fix_status", () => {
811
- require_dist.it("serializes", async () => {
812
- const tool = require_tools.TOOL_HANDLERS.get_seer_issue_fix_status;
813
- const result = await tool({
814
- accessToken: "access-token",
815
- userId: "1",
816
- organizationSlug: null
817
- }, {
818
- organizationSlug: "sentry-mcp-evals",
819
- issueId: "PEATED-A8",
820
- issueUrl: void 0,
821
- regionUrl: void 0
822
- });
823
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
824
- "# Issue Fix Status for Issue PEATED-A8
825
-
826
- ## Analyzing the Issue
827
-
828
- **The \`bottleById\` query fails because the input ID (3216) doesn't exist in the database.
829
- **
830
- The exception details show that the \`input\` value at the time of the \`TRPCError\` in \`bottleById.ts\` was 3216, and the query likely failed because a bottle with ID 3216 was not found in the database.
831
-
832
- \`\`\`
833
- Variable values at the time of the exception::
834
- {
835
- "input": 3216
836
- }
837
- \`\`\`
838
-
839
-
840
- **However, the request also includes a different ID (16720) for \`bottlePriceList\`.
841
- **
842
- The root cause is likely a mismatch of input IDs within the batched TRPC request, where \`bottlePriceList\` expects bottle ID 16720, but \`bottleById\` receives a different ID (3216) leading to the "Bottle not found" error.
843
-
844
- \`\`\`
845
- GET http://api.peated.com/trpc/bottlePriceList,bottleById
846
- \`\`\`
847
-
848
- \`\`\`json
849
- {
850
- "input": 3216
851
- }
852
- \`\`\`
853
-
854
- \`\`\`
855
- TRPCError: Bottle not found. (occurred in: GET /trpc/bottlePriceList,bottleById)
856
- \`\`\`
857
-
858
-
859
- **This suggests a data consistency issue or incorrect client-side request.
860
- **
861
- The \`TRPCError\` originates from \`bottleById.ts\` with the input value being \`3216\`, indicating the procedure failed to find a bottle with that specific ID in the database.
862
-
863
- \`\`\`
864
- <anonymous> in file /app/apps/server/src/trpc/routes/bottleById.ts [Line 33, column 13] (In app)
865
- .select({
866
- ...getTableColumns(bottles),
867
- })
868
- .from(bottleTombstones)
869
- .innerJoin(bottles, eq(bottleTombstones.newBottleId, bottles.id))
870
- .where(eq(bottleTombstones.bottleId, input));
871
- if (!bottle) {
872
- throw new TRPCError({ <-- SUSPECT LINE
873
- message: "Bottle not found.",
874
- code: "NOT_FOUND",
875
- });
876
- }
877
- }
878
-
879
- const createdBy = await db.query.users.findFirst({
880
- ---
881
- Variable values at the time of the exception::
882
- {
883
- "input": 3216
884
- }
885
- \`\`\`
886
-
887
-
888
-
889
- ## Root Cause Analysis
890
-
891
- **The client initiates a batched TRPC request to the \`/trpc/bottlePriceList,bottleById\` endpoint, intending to fetch both the price list and details for a specific bottle.**
892
-
893
- This is the entry point where the client requests data from two different procedures in a single HTTP request. The server needs to correctly route and process the parameters for each procedure.
894
-
895
- **The TRPC server receives the batched request and begins processing the \`bottlePriceList\` procedure, intending to fetch the price list for bottle ID 16720.**
896
-
897
- \`\`\`typescript
898
- // apps/server/src/trpc/routes/bottlePriceList.ts
899
- .input(z.object({ bottle: z.number(), onlyValid: z.boolean().optional() }))
900
- .query(async function ({ input, ctx }) {
901
- const [bottle] = await db.select().from(bottles).where(eq(bottles.id, input.bottle));
902
- if (!bottle) { ... }
903
- \`\`\`
904
- This procedure expects a 'bottle' parameter in the input, which is used to query the database.
905
-
906
- **The TRPC server also processes the \`bottleById\` procedure, but due to a parameter mapping issue or client-side error, it receives bottle ID 3216 as input instead of 16720.**
907
-
908
- \`\`\`typescript
909
- // apps/server/src/trpc/routes/bottleById.ts
910
- export default publicProcedure.input(z.number()).query(async function ({ input, ctx }) {
911
- let [bottle] = await db.select().from(bottles).where(eq(bottles.id, input));
912
- if (!bottle) { ... }
913
- \`\`\`
914
- This procedure expects a numerical ID as input to find the bottle.
915
-
916
- **The \`bottleById\` procedure queries the \`bottles\` table for a bottle with ID 3216, but no such bottle exists.**
917
-
918
- The database query returns no results because bottle ID 3216 is not present in the \`bottles\` table.
919
-
920
- **The \`bottleById\` procedure then checks the \`bottleTombstones\` table to see if bottle ID 3216 has been tombstoned (redirected to a new ID), but no such tombstone exists.**
921
-
922
- The query to \`bottleTombstones\` also returns no results, indicating that bottle ID 3216 has not been redirected.
923
-
924
- **Since the \`bottleById\` procedure cannot find a bottle with ID 3216 in either the \`bottles\` or \`bottleTombstones\` tables, it throws a \`TRPCError\` with the message "Bottle not found."**
925
-
926
- \`\`\`typescript
927
- // apps/server/src/trpc/routes/bottleById.ts
928
- if (!bottle) {
929
- throw new TRPCError({ message: "Bottle not found.", code: "NOT_FOUND" });
930
- }
931
- \`\`\`
932
- This is where the error is thrown, indicating that the bottle could not be found.
933
-
934
-
935
- ## Planning Solution
936
-
937
- **The discrepancy between inputs suggests a potential issue with batch request handling.
938
- **
939
- The \`TRPCError\` occurred in \`bottleById.ts\` with an input of \`3216\`, while the request was initiated with a bottle ID of \`16720\`, indicating a mismatch in the bottle ID being processed.
940
-
941
- \`\`\`
942
- Variable values at the time of the exception::
943
- {
944
- "input": 3216
945
- }
946
- \`\`\`
947
-
948
- \`\`\`
949
- GET http://api.peated.com/trpc/bottlePriceList,bottleById
950
- \`\`\`
951
-
952
-
953
- **The client-side batch request construction is the most likely source of error.
954
- **
955
- The discrepancy between the bottle ID in the error message (16720) and the ID being processed (3216) strongly suggests a client-side parameter mapping issue in the batched TRPC request.
956
-
957
- To fix this, I propose the following steps:
958
-
959
- 1. **Inspect the Client-Side Code:** Identify the code responsible for constructing the TRPC batch request to \`/trpc/bottlePriceList,bottleById\`.
960
-
961
- 2. **Verify Parameter Mapping:** Ensure that both \`bottlePriceList\` and \`bottleById\` are receiving the correct bottle ID (which should be 16720 in this case).
962
-
963
- 3. **Correct Parameter Assignment:** If the parameters are being incorrectly assigned, modify the client-side code to ensure that both procedures receive the same, correct bottle ID.
964
-
965
- 4. **Add Logging (Client-Side):** Add temporary logging to the client-side code to confirm the parameters being sent to each procedure in the batch request. This will help verify the fix.
966
-
967
- \`\`\`typescript
968
- // Example logging (add to the client-side code where the batch request is created)
969
- console.log("bottlePriceList input:", { bottle: 16720 }); // Replace 16720 with the actual ID
970
- console.log("bottleById input:", { bottle: 16720 }); // Replace 16720 with the actual ID
971
- \`\`\`
972
-
973
- 5. **Test the Fix:** After applying the fix, test the affected functionality to ensure that the "Bottle not found" error is resolved and that both procedures are working correctly.
974
-
975
- 6. **Remove Logging:** Once the fix is verified, remove the temporary logging.
976
-
977
- This approach directly addresses the most likely cause of the issue and provides a clear path to resolution.
978
-
979
-
980
- **Ensuring consistent bottle IDs will likely resolve this inconsistency.
981
- **
982
- The error message references bottle ID 16720, but the exception details show the procedure was actually processing ID 3216, indicating a parameter mismatch in the batch request.
983
-
984
- To fix this, I recommend the following steps:
985
-
986
- 1. **Client-Side Investigation**:
987
-
988
- * Examine the client-side code where the TRPC batch request is constructed.
989
- * Verify that the same \`bottleId\` parameter is being passed to both \`bottlePriceList\` and \`bottleById\` procedures.
990
- * If the IDs are being passed correctly, inspect the network request payload to confirm the correct structure of the batched request.
991
-
992
- \`\`\`typescript
993
- // Example (Hypothetical) Client-Side Code
994
- const bottleId = 16720; // Example bottle ID
995
-
996
- // Ensure both procedures receive the same bottleId
997
- const [priceList, bottleDetails] = await trpc.batch(() => [
998
- trpc.bottlePriceList.fetch({ bottle: bottleId }),
999
- trpc.bottleById.fetch(bottleId),
1000
- ]);
1001
- \`\`\`
1002
-
1003
- 2. **Server-Side Logging (Temporary)**:
1004
-
1005
- * Add temporary logging to both \`bottlePriceList\` and \`bottleById\` procedures to log the received \`input\` value.
1006
- * This will help confirm whether the server is receiving the correct IDs from the client.
1007
- * **Important**: Remove these logs after debugging to avoid unnecessary overhead.
1008
-
1009
- \`\`\`typescript
1010
- // apps/server/src/trpc/routes/bottlePriceList.ts
1011
- export default publicProcedure
1012
- .input(
1013
- z.object({
1014
- bottle: z.number(),
1015
- onlyValid: z.boolean().optional(),
1016
- }),
1017
- )
1018
- .query(async function ({ input, ctx }) {
1019
- console.log("bottlePriceList input:", input); // Add this line
1020
- // ... rest of the code
1021
- });
1022
-
1023
- // apps/server/src/trpc/routes/bottleById.ts
1024
- export default publicProcedure.input(z.number()).query(async function ({
1025
- input,
1026
- ctx,
1027
- }) {
1028
- console.log("bottleById input:", input); // Add this line
1029
- // ... rest of the code
1030
- });
1031
- \`\`\`
1032
-
1033
- 3. **TRPC Batch Request Configuration**:
1034
-
1035
- * Review the TRPC batch link configuration on the client-side.
1036
- * Ensure that the batching logic is correctly mapping parameters to the corresponding procedures.
1037
- * If using a custom batching implementation, verify its correctness.
1038
-
1039
- 4. **Data Integrity Check**:
1040
-
1041
- * If the client-side code appears correct, investigate whether bottle ID 3216 should exist in the database.
1042
- * Check the \`bottles\` table and \`bottleTombstones\` table for any entries related to bottle ID 3216.
1043
- * If the bottle should exist but is missing, investigate potential data deletion or migration issues.
1044
-
1045
- 5. **Tombstone Logic**:
1046
-
1047
- * Double-check the logic for creating and using tombstones.
1048
- * Ensure that when a bottle is deleted, a tombstone entry is created correctly, pointing to the new bottle (if any).
1049
-
1050
- 6. **Error Handling**:
1051
-
1052
- * While this isn't the primary fix, consider improving the error message in \`bottleById.ts\` to include more context.
1053
- * Include the original requested bottle ID (if available) in the error message to aid debugging.
1054
-
1055
- 7. **Client-Side Retries**:
1056
-
1057
- * Implement a retry mechanism on the client-side for TRPC requests.
1058
- * If a "Bottle not found" error occurs, retry the request a few times before giving up. This can help mitigate transient issues.
1059
-
1060
- By following these steps, you should be able to identify the root cause of the parameter mismatch and implement a fix that ensures consistent bottle IDs are passed to both TRPC procedures in the batch request.
1061
-
1062
-
1063
-
1064
- ## Solution
1065
-
1066
- Consolidate bottle and price data fetching into a single batched TRPC request using \`Promise.all\` to ensure ID consistency.
1067
-
1068
- **Create a shared utility function to fetch bottle details and price data together.**
1069
- \`\`\`typescript
1070
- // In a shared utility function or component
1071
- export async function getBottleWithPrices(bottleId: number) {
1072
- const trpcClient = await getTrpcClient();
1073
-
1074
- // Use Promise.all to ensure both requests are part of the same batch
1075
- // and receive the same parameters
1076
- const [bottle, priceList] = await Promise.all([
1077
- trpcClient.bottleById.fetch(bottleId),
1078
- trpcClient.bottlePriceList.fetch({ bottle: bottleId }),
1079
- ]);
1080
-
1081
- return { bottle, priceList };
1082
- }
1083
- \`\`\`
1084
- This code creates a function that uses \`Promise.all\` to fetch both bottle details and price data concurrently. This ensures that both TRPC procedures are part of the same batch and receive the same \`bottleId\`.
1085
-
1086
- **Modify the page components to use the shared utility function.**
1087
- \`\`\`typescript
1088
- // Then in the page components:
1089
- const { bottle, priceList } = await getBottleWithPrices(Number(bottleId));
1090
- \`\`\`
1091
- This code replaces the separate calls to \`bottleById\` and \`bottlePriceList\` with a single call to the \`getBottleWithPrices\` function, ensuring that both components receive data for the same bottle.
1092
-
1093
- **Add a unit test that reproduces the issue.**
1094
- null
1095
-
1096
-
1097
- "
1098
- `);
1099
- });
1100
- });
1101
- require_dist.describe("update_issue", () => {
1102
- require_dist.it("updates issue status", async () => {
1103
- const tool = require_tools.TOOL_HANDLERS.update_issue;
1104
- const result = await tool({
1105
- accessToken: "access-token",
1106
- userId: "1",
1107
- organizationSlug: null
1108
- }, {
1109
- organizationSlug: "sentry-mcp-evals",
1110
- issueId: "CLOUDFLARE-MCP-41",
1111
- status: "resolved",
1112
- assignedTo: void 0,
1113
- issueUrl: void 0,
1114
- regionUrl: void 0
1115
- });
1116
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
1117
- "# Issue CLOUDFLARE-MCP-41 Updated in **sentry-mcp-evals**
1118
-
1119
- **Issue**: Error: Tool list_organizations is already registered
1120
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
1121
-
1122
- ## Changes Made
1123
-
1124
- **Status**: unresolved → **resolved**
1125
-
1126
- ## Current Status
1127
-
1128
- **Status**: resolved
1129
- **Assigned To**: Unassigned
1130
-
1131
- # Using this information
1132
-
1133
- - The issue has been successfully updated in Sentry
1134
- - You can view the issue details using: \`get_issue_details(organizationSlug="sentry-mcp-evals", issueId="CLOUDFLARE-MCP-41")\`
1135
- - The issue is now marked as resolved and will no longer generate alerts
1136
- "
1137
- `);
1138
- });
1139
- require_dist.it("updates issue assignment", async () => {
1140
- const tool = require_tools.TOOL_HANDLERS.update_issue;
1141
- const result = await tool({
1142
- accessToken: "access-token",
1143
- userId: "1",
1144
- organizationSlug: null
1145
- }, {
1146
- organizationSlug: "sentry-mcp-evals",
1147
- issueId: "CLOUDFLARE-MCP-41",
1148
- status: void 0,
1149
- assignedTo: "john.doe",
1150
- issueUrl: void 0,
1151
- regionUrl: void 0
1152
- });
1153
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
1154
- "# Issue CLOUDFLARE-MCP-41 Updated in **sentry-mcp-evals**
1155
-
1156
- **Issue**: Error: Tool list_organizations is already registered
1157
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
1158
-
1159
- ## Changes Made
1160
-
1161
- **Assigned To**: Unassigned → **john.doe**
1162
-
1163
- ## Current Status
1164
-
1165
- **Status**: unresolved
1166
- **Assigned To**: john.doe
1167
-
1168
- # Using this information
1169
-
1170
- - The issue has been successfully updated in Sentry
1171
- - You can view the issue details using: \`get_issue_details(organizationSlug="sentry-mcp-evals", issueId="CLOUDFLARE-MCP-41")\`
1172
- "
1173
- `);
1174
- });
1175
- require_dist.it("updates both status and assignment", async () => {
1176
- const tool = require_tools.TOOL_HANDLERS.update_issue;
1177
- const result = await tool({
1178
- accessToken: "access-token",
1179
- userId: "1",
1180
- organizationSlug: null
1181
- }, {
1182
- organizationSlug: "sentry-mcp-evals",
1183
- issueId: "CLOUDFLARE-MCP-41",
1184
- status: "ignored",
1185
- assignedTo: "me",
1186
- issueUrl: void 0,
1187
- regionUrl: void 0
1188
- });
1189
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
1190
- "# Issue CLOUDFLARE-MCP-41 Updated in **sentry-mcp-evals**
1191
-
1192
- **Issue**: Error: Tool list_organizations is already registered
1193
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
1194
-
1195
- ## Changes Made
1196
-
1197
- **Status**: unresolved → **ignored**
1198
- **Assigned To**: Unassigned → **You**
1199
-
1200
- ## Current Status
1201
-
1202
- **Status**: ignored
1203
- **Assigned To**: me
1204
-
1205
- # Using this information
1206
-
1207
- - The issue has been successfully updated in Sentry
1208
- - You can view the issue details using: \`get_issue_details(organizationSlug="sentry-mcp-evals", issueId="CLOUDFLARE-MCP-41")\`
1209
- - The issue is now ignored and will not generate alerts until it escalates
1210
- "
1211
- `);
1212
- });
1213
- require_dist.it("works with issueUrl", async () => {
1214
- const tool = require_tools.TOOL_HANDLERS.update_issue;
1215
- const result = await tool({
1216
- accessToken: "access-token",
1217
- userId: "1",
1218
- organizationSlug: null
1219
- }, {
1220
- organizationSlug: void 0,
1221
- issueId: void 0,
1222
- status: "resolved",
1223
- assignedTo: void 0,
1224
- issueUrl: "https://sentry-mcp-evals.sentry.io/issues/6507376925",
1225
- regionUrl: void 0
1226
- });
1227
- require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`
1228
- "# Issue CLOUDFLARE-MCP-41 Updated in **sentry-mcp-evals**
1229
-
1230
- **Issue**: Error: Tool list_organizations is already registered
1231
- **URL**: https://sentry-mcp-evals.sentry.io/issues/CLOUDFLARE-MCP-41
1232
-
1233
- ## Changes Made
1234
-
1235
- **Status**: unresolved → **resolved**
1236
-
1237
- ## Current Status
1238
-
1239
- **Status**: resolved
1240
- **Assigned To**: Unassigned
1241
-
1242
- # Using this information
1243
-
1244
- - The issue has been successfully updated in Sentry
1245
- - You can view the issue details using: \`get_issue_details(organizationSlug="sentry-mcp-evals", issueId="CLOUDFLARE-MCP-41")\`
1246
- - The issue is now marked as resolved and will no longer generate alerts
1247
- "
1248
- `);
1249
- });
1250
- require_dist.it("validates required parameters", async () => {
1251
- const tool = require_tools.TOOL_HANDLERS.update_issue;
1252
- await require_vi_bdSIJ99Y.globalExpect(tool({
1253
- accessToken: "access-token",
1254
- userId: "1",
1255
- organizationSlug: null
1256
- }, {
1257
- organizationSlug: void 0,
1258
- issueId: void 0,
1259
- status: void 0,
1260
- assignedTo: void 0,
1261
- issueUrl: void 0,
1262
- regionUrl: void 0
1263
- })).rejects.toThrow("Either `issueId` or `issueUrl` must be provided");
1264
- });
1265
- require_dist.it("validates organization slug when using issueId", async () => {
1266
- const tool = require_tools.TOOL_HANDLERS.update_issue;
1267
- await require_vi_bdSIJ99Y.globalExpect(tool({
1268
- accessToken: "access-token",
1269
- userId: "1",
1270
- organizationSlug: null
1271
- }, {
1272
- organizationSlug: void 0,
1273
- issueId: "CLOUDFLARE-MCP-41",
1274
- status: "resolved",
1275
- assignedTo: void 0,
1276
- issueUrl: void 0,
1277
- regionUrl: void 0
1278
- })).rejects.toThrow("`organizationSlug` is required when providing `issueId`");
1279
- });
1280
- require_dist.it("validates update parameters", async () => {
1281
- const tool = require_tools.TOOL_HANDLERS.update_issue;
1282
- await require_vi_bdSIJ99Y.globalExpect(tool({
1283
- accessToken: "access-token",
1284
- userId: "1",
1285
- organizationSlug: null
1286
- }, {
1287
- organizationSlug: "sentry-mcp-evals",
1288
- issueId: "CLOUDFLARE-MCP-41",
1289
- status: void 0,
1290
- assignedTo: void 0,
1291
- issueUrl: void 0,
1292
- regionUrl: void 0
1293
- })).rejects.toThrow("At least one of `status` or `assignedTo` must be provided to update the issue");
1294
- });
1295
- });
1296
-
1297
- //#endregion
1298
- //# sourceMappingURL=tools.test.cjs.map