@sentry/mcp-server 0.22.0 → 0.23.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 (430) hide show
  1. package/README.md +9 -0
  2. package/dist/{agent-0WAnUgat.js → agent-9s0S2VUD.js} +2 -2
  3. package/dist/{agent-0WAnUgat.js.map → agent-9s0S2VUD.js.map} +1 -1
  4. package/dist/{agent-Cu85yHYm.d.ts → agent-BI-VWYjJ.d.ts} +14 -14
  5. package/dist/agent-BI-VWYjJ.d.ts.map +1 -0
  6. package/dist/{agent-DYfi9MFV.d.cts → agent-BmPRmM9x.d.cts} +6 -6
  7. package/dist/{agent-DYfi9MFV.d.cts.map → agent-BmPRmM9x.d.cts.map} +1 -1
  8. package/dist/{agent-Dkgkv7Iz.js → agent-BsCC60AU.js} +2 -2
  9. package/dist/{agent-Dkgkv7Iz.js.map → agent-BsCC60AU.js.map} +1 -1
  10. package/dist/{agent-CyyRLYbF.cjs → agent-CirZFiaJ.cjs} +2 -2
  11. package/dist/{agent-CyyRLYbF.cjs.map → agent-CirZFiaJ.cjs.map} +1 -1
  12. package/dist/{agent-Cm9hEq5d.cjs → agent-CnHO6uyy.cjs} +2 -2
  13. package/dist/{agent-Cm9hEq5d.cjs.map → agent-CnHO6uyy.cjs.map} +1 -1
  14. package/dist/{agent-TEZG63ug.d.cts → agent-D8Mz9ung.d.cts} +2 -2
  15. package/dist/{agent-TEZG63ug.d.cts.map → agent-D8Mz9ung.d.cts.map} +1 -1
  16. package/dist/{agent-C1Ros3Xx.js → agent-DD0p64Dq.js} +2 -2
  17. package/dist/{agent-C1Ros3Xx.js.map → agent-DD0p64Dq.js.map} +1 -1
  18. package/dist/{agent-BeTXxskw.d.ts → agent-DQdvMLcG.d.ts} +4 -4
  19. package/dist/{agent-BeTXxskw.d.ts.map → agent-DQdvMLcG.d.ts.map} +1 -1
  20. package/dist/{agent-DtCRTWPZ.cjs → agent-DaUNg6Ut.cjs} +2 -2
  21. package/dist/{agent-DtCRTWPZ.cjs.map → agent-DaUNg6Ut.cjs.map} +1 -1
  22. package/dist/{analyze-issue-with-seer-Ji3KDm0O.js → analyze-issue-with-seer-6OwT1RJP.js} +3 -3
  23. package/dist/analyze-issue-with-seer-6OwT1RJP.js.map +1 -0
  24. package/dist/{analyze-issue-with-seer-B90r4g5J.cjs → analyze-issue-with-seer-wsCEFdZs.cjs} +3 -3
  25. package/dist/{analyze-issue-with-seer-Ji3KDm0O.js.map → analyze-issue-with-seer-wsCEFdZs.cjs.map} +1 -1
  26. package/dist/{api-CBHyxA3Q.js → api-BCICbJoI.js} +2 -2
  27. package/dist/{api-CBHyxA3Q.js.map → api-BCICbJoI.js.map} +1 -1
  28. package/dist/{api-CHgBJOv9.cjs → api-CfzBwheo.cjs} +2 -2
  29. package/dist/{api-CHgBJOv9.cjs.map → api-CfzBwheo.cjs.map} +1 -1
  30. package/dist/api-client/client.cjs +3 -3
  31. package/dist/api-client/client.d.cts +3 -3
  32. package/dist/api-client/client.d.ts +3 -3
  33. package/dist/api-client/client.js +3 -3
  34. package/dist/api-client/index.cjs +6 -3
  35. package/dist/api-client/index.d.cts +4 -4
  36. package/dist/api-client/index.d.ts +4 -4
  37. package/dist/api-client/index.js +4 -4
  38. package/dist/api-client/schema.cjs +4 -1
  39. package/dist/api-client/schema.d.cts +2 -2
  40. package/dist/api-client/schema.d.ts +2 -2
  41. package/dist/api-client/schema.js +2 -2
  42. package/dist/api-client/types.d.cts +3 -3
  43. package/dist/api-client/types.d.ts +3 -3
  44. package/dist/{callEmbeddedAgent-BPS472yg.cjs → callEmbeddedAgent-COB8Jrcn.cjs} +3 -2
  45. package/dist/{callEmbeddedAgent-BPS472yg.cjs.map → callEmbeddedAgent-COB8Jrcn.cjs.map} +1 -1
  46. package/dist/{callEmbeddedAgent-DavTx3Qo.js → callEmbeddedAgent-rEUWAl2g.js} +3 -2
  47. package/dist/{callEmbeddedAgent-DavTx3Qo.js.map → callEmbeddedAgent-rEUWAl2g.js.map} +1 -1
  48. package/dist/{client-0n2-4zOO.d.cts → client-8_aKE-B-.d.cts} +25 -18
  49. package/dist/client-8_aKE-B-.d.cts.map +1 -0
  50. package/dist/{client-ByOC8aCf.d.ts → client-BGVY6gBL.d.ts} +24 -17
  51. package/dist/client-BGVY6gBL.d.ts.map +1 -0
  52. package/dist/{client-B7hvqupZ.js → client-Be1DR1al.js} +33 -16
  53. package/dist/client-Be1DR1al.js.map +1 -0
  54. package/dist/{client-cC79LUJ5.cjs → client-DSxCsnqO.cjs} +32 -15
  55. package/dist/client-DSxCsnqO.cjs.map +1 -0
  56. package/dist/{create-dsn-9yIHr10B.cjs → create-dsn-C5vd9Btg.cjs} +5 -5
  57. package/dist/create-dsn-C5vd9Btg.cjs.map +1 -0
  58. package/dist/{create-dsn-p2Ep6zDn.js → create-dsn-DBqCDM_6.js} +5 -5
  59. package/dist/create-dsn-DBqCDM_6.js.map +1 -0
  60. package/dist/{create-project-CN0UneBm.js → create-project-BsN4Q0cl.js} +6 -6
  61. package/dist/create-project-BsN4Q0cl.js.map +1 -0
  62. package/dist/{create-project-BQQx1iLm.cjs → create-project-D4W66CxU.cjs} +6 -6
  63. package/dist/create-project-D4W66CxU.cjs.map +1 -0
  64. package/dist/{create-team-CzFrsVdw.js → create-team-DUBAEGGr.js} +4 -4
  65. package/dist/create-team-DUBAEGGr.js.map +1 -0
  66. package/dist/{create-team-DFSriKVL.cjs → create-team-DV6XmZkb.cjs} +4 -4
  67. package/dist/create-team-DV6XmZkb.cjs.map +1 -0
  68. package/dist/{find-dsns-DhHHtvpj.cjs → find-dsns-BabAfVEt.cjs} +3 -3
  69. package/dist/find-dsns-BabAfVEt.cjs.map +1 -0
  70. package/dist/{find-dsns-BzfYjE06.js → find-dsns-C-Q6yJT5.js} +3 -3
  71. package/dist/find-dsns-C-Q6yJT5.js.map +1 -0
  72. package/dist/{find-organizations-BJFAElbh.js → find-organizations-Bo-JdU-R.js} +3 -3
  73. package/dist/{find-organizations-7ooGnnmP.cjs.map → find-organizations-Bo-JdU-R.js.map} +1 -1
  74. package/dist/{find-organizations-7ooGnnmP.cjs → find-organizations-CEEqa1an.cjs} +3 -3
  75. package/dist/find-organizations-CEEqa1an.cjs.map +1 -0
  76. package/dist/{find-projects-BpEGRZya.cjs → find-projects-BWyvosHM.cjs} +4 -4
  77. package/dist/find-projects-BWyvosHM.cjs.map +1 -0
  78. package/dist/{find-projects-E5CMFbwU.js → find-projects-zM4CM_xX.js} +4 -4
  79. package/dist/find-projects-zM4CM_xX.js.map +1 -0
  80. package/dist/{find-releases-Du5euXKS.cjs → find-releases-DMJrj5wz.cjs} +5 -5
  81. package/dist/find-releases-DMJrj5wz.cjs.map +1 -0
  82. package/dist/{find-releases-DWWonhlV.js → find-releases-DzdGLPSN.js} +5 -5
  83. package/dist/find-releases-DzdGLPSN.js.map +1 -0
  84. package/dist/{find-teams-BM4yWKe_.js → find-teams-CR_hdlun.js} +4 -4
  85. package/dist/find-teams-CR_hdlun.js.map +1 -0
  86. package/dist/{find-teams-Bp6-Iu62.cjs → find-teams-lOqS_719.cjs} +4 -4
  87. package/dist/find-teams-lOqS_719.cjs.map +1 -0
  88. package/dist/{formatting-5u-ZFz8H.cjs → formatting-BatGC-29.cjs} +89 -2
  89. package/dist/formatting-BatGC-29.cjs.map +1 -0
  90. package/dist/{formatting-ClM7RU4L.d.ts → formatting-Bm1GxhEu.d.ts} +4 -4
  91. package/dist/formatting-Bm1GxhEu.d.ts.map +1 -0
  92. package/dist/{formatting-BEgp4WO_.js → formatting-DUODx6N5.js} +89 -2
  93. package/dist/formatting-DUODx6N5.js.map +1 -0
  94. package/dist/{formatting-Bw0FWiCH.d.cts → formatting-GZdM57wq.d.cts} +4 -4
  95. package/dist/formatting-GZdM57wq.d.cts.map +1 -0
  96. package/dist/{get-doc-DsOaSMIe.cjs → get-doc-CbVw4ada.cjs} +2 -2
  97. package/dist/{get-doc-DsOaSMIe.cjs.map → get-doc-CbVw4ada.cjs.map} +1 -1
  98. package/dist/{get-doc-CWhlUoJe.js → get-doc-FuILofQP.js} +2 -2
  99. package/dist/{get-doc-CWhlUoJe.js.map → get-doc-FuILofQP.js.map} +1 -1
  100. package/dist/{get-event-attachment-CTF-k6op.cjs → get-event-attachment-DuyBT68p.cjs} +4 -4
  101. package/dist/get-event-attachment-DuyBT68p.cjs.map +1 -0
  102. package/dist/{get-event-attachment-DDvsu6IQ.js → get-event-attachment-Dzg2R7ng.js} +4 -4
  103. package/dist/get-event-attachment-Dzg2R7ng.js.map +1 -0
  104. package/dist/{get-issue-details-CIZSksmd.cjs → get-issue-details-BY7S1YyX.cjs} +6 -6
  105. package/dist/get-issue-details-BY7S1YyX.cjs.map +1 -0
  106. package/dist/{get-issue-details-Bsax2jTY.js → get-issue-details-BxJzOzFQ.js} +6 -6
  107. package/dist/get-issue-details-BxJzOzFQ.js.map +1 -0
  108. package/dist/{get-trace-details-Bc9GgkSs.cjs → get-trace-details-DD0p3apU.cjs} +5 -5
  109. package/dist/get-trace-details-DD0p3apU.cjs.map +1 -0
  110. package/dist/{get-trace-details-Bkilw5oH.js → get-trace-details-Dv2FB534.js} +5 -5
  111. package/dist/get-trace-details-Dv2FB534.js.map +1 -0
  112. package/dist/{handler-D6OGs2Ok.d.cts → handler-0iIvlYwy.d.cts} +2 -2
  113. package/dist/handler-0iIvlYwy.d.cts.map +1 -0
  114. package/dist/{handler-CZEMKP9p.d.cts → handler-8JzODzam.d.cts} +3 -3
  115. package/dist/handler-8JzODzam.d.cts.map +1 -0
  116. package/dist/{handler-Cs5DcdpF.d.ts → handler-9UUkphzv.d.ts} +3 -3
  117. package/dist/handler-9UUkphzv.d.ts.map +1 -0
  118. package/dist/{handler-y6EMhG0y.js → handler-BfTAwyrq.js} +9 -9
  119. package/dist/handler-BfTAwyrq.js.map +1 -0
  120. package/dist/{handler-bf2qu8DQ.js → handler-BhjeSo2N.js} +8 -8
  121. package/dist/handler-BhjeSo2N.js.map +1 -0
  122. package/dist/{handler-DQbc5eAJ.cjs → handler-BjTPOR8v.cjs} +8 -8
  123. package/dist/handler-BjTPOR8v.cjs.map +1 -0
  124. package/dist/{handler-ChOaafS-.cjs → handler-C5Tgh1wj.cjs} +9 -9
  125. package/dist/handler-C5Tgh1wj.cjs.map +1 -0
  126. package/dist/{handler-CmTBmIt9.d.cts → handler-ClZBIn0B.d.cts} +3 -3
  127. package/dist/handler-ClZBIn0B.d.cts.map +1 -0
  128. package/dist/{handler-CASDrJ7z.d.ts → handler-CmAbLcaV.d.ts} +3 -3
  129. package/dist/handler-CmAbLcaV.d.ts.map +1 -0
  130. package/dist/{handler-CXY05zhR.d.ts → handler-DbUy8Z54.d.ts} +2 -2
  131. package/dist/handler-DbUy8Z54.d.ts.map +1 -0
  132. package/dist/index.cjs +32 -32
  133. package/dist/index.js +32 -32
  134. package/dist/internal/agents/callEmbeddedAgent.cjs +3 -3
  135. package/dist/internal/agents/callEmbeddedAgent.js +3 -3
  136. package/dist/internal/agents/openai-provider.cjs +2 -2
  137. package/dist/internal/agents/openai-provider.js +2 -2
  138. package/dist/internal/agents/tools/dataset-fields.cjs +3 -3
  139. package/dist/internal/agents/tools/dataset-fields.d.cts +7 -7
  140. package/dist/internal/agents/tools/dataset-fields.d.ts +7 -7
  141. package/dist/internal/agents/tools/dataset-fields.d.ts.map +1 -1
  142. package/dist/internal/agents/tools/dataset-fields.js +3 -3
  143. package/dist/internal/agents/tools/otel-semantics.cjs +3 -3
  144. package/dist/internal/agents/tools/otel-semantics.d.cts +10 -10
  145. package/dist/internal/agents/tools/otel-semantics.d.cts.map +1 -1
  146. package/dist/internal/agents/tools/otel-semantics.d.ts +10 -10
  147. package/dist/internal/agents/tools/otel-semantics.d.ts.map +1 -1
  148. package/dist/internal/agents/tools/otel-semantics.js +3 -3
  149. package/dist/internal/agents/tools/utils.cjs +3 -3
  150. package/dist/internal/agents/tools/utils.d.cts +1 -1
  151. package/dist/internal/agents/tools/utils.d.ts +1 -1
  152. package/dist/internal/agents/tools/utils.js +3 -3
  153. package/dist/internal/agents/tools/whoami.cjs +3 -3
  154. package/dist/internal/agents/tools/whoami.d.cts +7 -7
  155. package/dist/internal/agents/tools/whoami.d.ts +7 -7
  156. package/dist/internal/agents/tools/whoami.d.ts.map +1 -1
  157. package/dist/internal/agents/tools/whoami.js +3 -3
  158. package/dist/internal/error-handling.cjs +3 -3
  159. package/dist/internal/error-handling.d.cts +3 -3
  160. package/dist/internal/error-handling.d.ts +3 -3
  161. package/dist/internal/error-handling.js +3 -3
  162. package/dist/internal/formatting.cjs +2 -1
  163. package/dist/internal/formatting.d.cts +4 -4
  164. package/dist/internal/formatting.d.ts +4 -4
  165. package/dist/internal/formatting.js +2 -1
  166. package/dist/internal/test-fixtures.d.cts +2 -2
  167. package/dist/internal/test-fixtures.d.ts +2 -2
  168. package/dist/internal/tool-helpers/api.cjs +4 -4
  169. package/dist/internal/tool-helpers/api.d.cts +3 -3
  170. package/dist/internal/tool-helpers/api.d.ts +3 -3
  171. package/dist/internal/tool-helpers/api.js +4 -4
  172. package/dist/internal/tool-helpers/enhance-error.cjs +3 -3
  173. package/dist/internal/tool-helpers/enhance-error.d.cts +3 -3
  174. package/dist/internal/tool-helpers/enhance-error.d.ts +3 -3
  175. package/dist/internal/tool-helpers/enhance-error.js +3 -3
  176. package/dist/internal/tool-helpers/formatting.d.cts +3 -3
  177. package/dist/internal/tool-helpers/formatting.d.ts +3 -3
  178. package/dist/internal/tool-helpers/issue.cjs +2 -1
  179. package/dist/internal/tool-helpers/issue.d.cts +4 -4
  180. package/dist/internal/tool-helpers/issue.d.ts +4 -4
  181. package/dist/internal/tool-helpers/issue.js +2 -1
  182. package/dist/internal/tool-helpers/seer.d.cts +3 -3
  183. package/dist/internal/tool-helpers/seer.d.ts +3 -3
  184. package/dist/{openai-provider-DphaqrmX.js → openai-provider-BsMAb6zY.js} +2 -2
  185. package/dist/{openai-provider-DphaqrmX.js.map → openai-provider-BsMAb6zY.js.map} +1 -1
  186. package/dist/{openai-provider-B7uvGxoI.cjs → openai-provider-BycgrQgi.cjs} +2 -2
  187. package/dist/{openai-provider-B7uvGxoI.cjs.map → openai-provider-BycgrQgi.cjs.map} +1 -1
  188. package/dist/{schema-DE4JpUSi.cjs → schema-1xQ4asuW.cjs} +64 -7
  189. package/dist/schema-1xQ4asuW.cjs.map +1 -0
  190. package/dist/{schema-Cp8XI7-D.d.ts → schema-CZXkkfj-.d.cts} +3374 -803
  191. package/dist/schema-CZXkkfj-.d.cts.map +1 -0
  192. package/dist/{schema-D5oT-Zi7.d.cts → schema-Cfvy5rTy.d.ts} +3287 -716
  193. package/dist/schema-Cfvy5rTy.d.ts.map +1 -0
  194. package/dist/{schema-DkZXVCQJ.js → schema-oeFNxyo_.js} +47 -8
  195. package/dist/schema-oeFNxyo_.js.map +1 -0
  196. package/dist/{search-docs-DdOFZY3t.cjs → search-docs-C5x-ZRhd.cjs} +3 -3
  197. package/dist/{search-docs-DdOFZY3t.cjs.map → search-docs-C5x-ZRhd.cjs.map} +1 -1
  198. package/dist/{search-docs-YYBTOWY5.js → search-docs-UCe9oXQt.js} +3 -3
  199. package/dist/{search-docs-YYBTOWY5.js.map → search-docs-UCe9oXQt.js.map} +1 -1
  200. package/dist/{server-BVqPcPfx.js → server-BbJwtfJr.js} +24 -23
  201. package/dist/server-BbJwtfJr.js.map +1 -0
  202. package/dist/{server-BQBA0VNe.cjs → server-OW--pQOQ.cjs} +24 -23
  203. package/dist/server-OW--pQOQ.cjs.map +1 -0
  204. package/dist/server.cjs +30 -30
  205. package/dist/server.js +30 -30
  206. package/dist/skillDefinitions.cjs +210 -5
  207. package/dist/skillDefinitions.cjs.map +1 -1
  208. package/dist/skillDefinitions.d.cts +5 -0
  209. package/dist/skillDefinitions.d.cts.map +1 -1
  210. package/dist/skillDefinitions.d.ts +5 -0
  211. package/dist/skillDefinitions.d.ts.map +1 -1
  212. package/dist/skillDefinitions.js +210 -5
  213. package/dist/skillDefinitions.js.map +1 -1
  214. package/dist/{stdio-YKMCj_QV.js → stdio-2BaHF2h-.js} +2 -2
  215. package/dist/{stdio-YKMCj_QV.js.map → stdio-2BaHF2h-.js.map} +1 -1
  216. package/dist/{stdio-DPvrKLnJ.cjs → stdio-DL-ID7Q4.cjs} +2 -2
  217. package/dist/{stdio-DPvrKLnJ.cjs.map → stdio-DL-ID7Q4.cjs.map} +1 -1
  218. package/dist/toolDefinitions.cjs +307 -193
  219. package/dist/toolDefinitions.cjs.map +1 -1
  220. package/dist/toolDefinitions.js +307 -193
  221. package/dist/toolDefinitions.js.map +1 -1
  222. package/dist/tools/analyze-issue-with-seer.cjs +6 -6
  223. package/dist/tools/analyze-issue-with-seer.d.cts +1 -1
  224. package/dist/tools/analyze-issue-with-seer.d.ts +1 -1
  225. package/dist/tools/analyze-issue-with-seer.js +6 -6
  226. package/dist/tools/create-dsn.cjs +5 -5
  227. package/dist/tools/create-dsn.d.cts +1 -1
  228. package/dist/tools/create-dsn.d.ts +1 -1
  229. package/dist/tools/create-dsn.js +5 -5
  230. package/dist/tools/create-project.cjs +5 -5
  231. package/dist/tools/create-project.d.cts +2 -2
  232. package/dist/tools/create-project.d.ts +2 -2
  233. package/dist/tools/create-project.js +5 -5
  234. package/dist/tools/create-team.cjs +5 -5
  235. package/dist/tools/create-team.d.cts +1 -1
  236. package/dist/tools/create-team.d.ts +1 -1
  237. package/dist/tools/create-team.js +5 -5
  238. package/dist/tools/find-dsns.cjs +5 -5
  239. package/dist/tools/find-dsns.d.cts +4 -4
  240. package/dist/tools/find-dsns.d.ts +4 -4
  241. package/dist/tools/find-dsns.js +5 -5
  242. package/dist/tools/find-organizations.cjs +5 -5
  243. package/dist/tools/find-organizations.d.cts +2 -2
  244. package/dist/tools/find-organizations.d.ts +2 -2
  245. package/dist/tools/find-organizations.js +5 -5
  246. package/dist/tools/find-projects.cjs +5 -5
  247. package/dist/tools/find-projects.d.cts +4 -4
  248. package/dist/tools/find-projects.d.ts +4 -4
  249. package/dist/tools/find-projects.js +5 -5
  250. package/dist/tools/find-releases.cjs +5 -5
  251. package/dist/tools/find-releases.d.cts +3 -3
  252. package/dist/tools/find-releases.d.ts +3 -3
  253. package/dist/tools/find-releases.js +5 -5
  254. package/dist/tools/find-teams.cjs +5 -5
  255. package/dist/tools/find-teams.d.cts +4 -4
  256. package/dist/tools/find-teams.d.ts +4 -4
  257. package/dist/tools/find-teams.js +5 -5
  258. package/dist/tools/get-doc.cjs +4 -4
  259. package/dist/tools/get-doc.js +4 -4
  260. package/dist/tools/get-event-attachment.cjs +5 -5
  261. package/dist/tools/get-event-attachment.d.cts +6 -6
  262. package/dist/tools/get-event-attachment.d.ts +6 -6
  263. package/dist/tools/get-event-attachment.js +5 -5
  264. package/dist/tools/get-issue-details.cjs +6 -6
  265. package/dist/tools/get-issue-details.d.cts +1 -1
  266. package/dist/tools/get-issue-details.d.ts +1 -1
  267. package/dist/tools/get-issue-details.js +6 -6
  268. package/dist/tools/get-trace-details.cjs +5 -5
  269. package/dist/tools/get-trace-details.d.cts +4 -4
  270. package/dist/tools/get-trace-details.d.ts +4 -4
  271. package/dist/tools/get-trace-details.js +5 -5
  272. package/dist/tools/index.cjs +30 -30
  273. package/dist/tools/index.d.cts +76 -76
  274. package/dist/tools/index.d.cts.map +1 -1
  275. package/dist/tools/index.d.ts +76 -76
  276. package/dist/tools/index.d.ts.map +1 -1
  277. package/dist/tools/index.js +30 -30
  278. package/dist/tools/search-docs.cjs +4 -4
  279. package/dist/tools/search-docs.d.cts +2 -2
  280. package/dist/tools/search-docs.d.ts +2 -2
  281. package/dist/tools/search-docs.js +4 -4
  282. package/dist/tools/search-events/agent.cjs +6 -6
  283. package/dist/tools/search-events/agent.d.cts +4 -4
  284. package/dist/tools/search-events/agent.d.ts +4 -4
  285. package/dist/tools/search-events/agent.js +6 -6
  286. package/dist/tools/search-events/formatters.cjs +3 -3
  287. package/dist/tools/search-events/formatters.d.cts +5 -5
  288. package/dist/tools/search-events/formatters.d.ts +5 -5
  289. package/dist/tools/search-events/formatters.js +3 -3
  290. package/dist/tools/search-events/handler.cjs +8 -8
  291. package/dist/tools/search-events/handler.d.cts +1 -1
  292. package/dist/tools/search-events/handler.d.ts +1 -1
  293. package/dist/tools/search-events/handler.js +8 -8
  294. package/dist/tools/search-events/index.cjs +8 -8
  295. package/dist/tools/search-events/index.d.cts +5 -5
  296. package/dist/tools/search-events/index.d.ts +5 -5
  297. package/dist/tools/search-events/index.js +8 -8
  298. package/dist/tools/search-events/utils.cjs +3 -3
  299. package/dist/tools/search-events/utils.d.cts +5 -5
  300. package/dist/tools/search-events/utils.d.ts +5 -5
  301. package/dist/tools/search-events/utils.js +3 -3
  302. package/dist/tools/search-issues/agent.cjs +6 -6
  303. package/dist/tools/search-issues/agent.d.cts +4 -4
  304. package/dist/tools/search-issues/agent.d.ts +4 -4
  305. package/dist/tools/search-issues/agent.js +6 -6
  306. package/dist/tools/search-issues/formatters.d.cts +3 -3
  307. package/dist/tools/search-issues/formatters.d.ts +3 -3
  308. package/dist/tools/search-issues/handler.cjs +8 -8
  309. package/dist/tools/search-issues/handler.d.cts +1 -1
  310. package/dist/tools/search-issues/handler.d.ts +1 -1
  311. package/dist/tools/search-issues/handler.js +8 -8
  312. package/dist/tools/search-issues/index.cjs +8 -8
  313. package/dist/tools/search-issues/index.d.cts +5 -5
  314. package/dist/tools/search-issues/index.d.ts +5 -5
  315. package/dist/tools/search-issues/index.js +8 -8
  316. package/dist/tools/update-issue.cjs +6 -6
  317. package/dist/tools/update-issue.d.cts +7 -7
  318. package/dist/tools/update-issue.d.ts +7 -7
  319. package/dist/tools/update-issue.js +6 -6
  320. package/dist/tools/update-project.cjs +5 -5
  321. package/dist/tools/update-project.d.cts +5 -5
  322. package/dist/tools/update-project.d.cts.map +1 -1
  323. package/dist/tools/update-project.d.ts +5 -5
  324. package/dist/tools/update-project.d.ts.map +1 -1
  325. package/dist/tools/update-project.js +5 -5
  326. package/dist/tools/use-sentry/agent.cjs +4 -4
  327. package/dist/tools/use-sentry/agent.js +4 -4
  328. package/dist/tools/use-sentry/handler.cjs +30 -30
  329. package/dist/tools/use-sentry/handler.d.cts +1 -1
  330. package/dist/tools/use-sentry/handler.d.ts +1 -1
  331. package/dist/tools/use-sentry/handler.js +30 -30
  332. package/dist/tools/use-sentry/index.cjs +30 -30
  333. package/dist/tools/use-sentry/index.d.cts +1 -1
  334. package/dist/tools/use-sentry/index.d.ts +1 -1
  335. package/dist/tools/use-sentry/index.js +30 -30
  336. package/dist/tools/use-sentry/tool-wrapper.cjs +3 -3
  337. package/dist/tools/use-sentry/tool-wrapper.d.cts +4 -4
  338. package/dist/tools/use-sentry/tool-wrapper.d.cts.map +1 -1
  339. package/dist/tools/use-sentry/tool-wrapper.d.ts +4 -4
  340. package/dist/tools/use-sentry/tool-wrapper.d.ts.map +1 -1
  341. package/dist/tools/use-sentry/tool-wrapper.js +3 -3
  342. package/dist/tools/whoami.cjs +5 -5
  343. package/dist/tools/whoami.js +5 -5
  344. package/dist/transports/stdio.cjs +2 -2
  345. package/dist/transports/stdio.js +2 -2
  346. package/dist/{types-CZI-5yyV.d.cts → types-Cet6uyS6.d.ts} +5 -4
  347. package/dist/types-Cet6uyS6.d.ts.map +1 -0
  348. package/dist/{types-WcBA7ZSQ.d.ts → types-D1CEiyup.d.cts} +5 -4
  349. package/dist/types-D1CEiyup.d.cts.map +1 -0
  350. package/dist/{update-issue-B35n8MDT.js → update-issue-BGm8g4G0.js} +3 -3
  351. package/dist/update-issue-BGm8g4G0.js.map +1 -0
  352. package/dist/{update-issue-DOVD2zXD.cjs → update-issue-Dx2EZ5pY.cjs} +3 -3
  353. package/dist/update-issue-Dx2EZ5pY.cjs.map +1 -0
  354. package/dist/{update-project-D361nWlU.js → update-project-B0clXxii.js} +7 -7
  355. package/dist/update-project-B0clXxii.js.map +1 -0
  356. package/dist/{update-project-DG3bwhNA.cjs → update-project-BJkzcapF.cjs} +7 -7
  357. package/dist/update-project-BJkzcapF.cjs.map +1 -0
  358. package/dist/{utils-CrKFhSC3.d.ts → utils-C7sQWgE3.d.cts} +9 -9
  359. package/dist/{utils-C5oiuqkh.d.cts.map → utils-C7sQWgE3.d.cts.map} +1 -1
  360. package/dist/{utils-C5oiuqkh.d.cts → utils-CmH2wxA_.d.ts} +9 -9
  361. package/dist/{utils-CrKFhSC3.d.ts.map → utils-CmH2wxA_.d.ts.map} +1 -1
  362. package/dist/{utils-CAWsA9Cl.d.cts → utils-R15EJutP.d.ts} +4 -4
  363. package/dist/utils-R15EJutP.d.ts.map +1 -0
  364. package/dist/{utils-Bzaer0D1.d.ts → utils-RPc9DHgJ.d.cts} +4 -4
  365. package/dist/{utils-CAWsA9Cl.d.cts.map → utils-RPc9DHgJ.d.cts.map} +1 -1
  366. package/dist/{version-CPcX-30c.cjs → version-CaFsr_xb.cjs} +2 -2
  367. package/dist/{version-CPcX-30c.cjs.map → version-CaFsr_xb.cjs.map} +1 -1
  368. package/dist/{version-CCICHYna.js → version-DY1nl1TZ.js} +2 -2
  369. package/dist/{version-CCICHYna.js.map → version-DY1nl1TZ.js.map} +1 -1
  370. package/dist/version.cjs +1 -1
  371. package/dist/version.js +1 -1
  372. package/dist/{whoami-CRF9Ws25.cjs → whoami-DRDjyhDL.cjs} +2 -2
  373. package/dist/{whoami-CRF9Ws25.cjs.map → whoami-DRDjyhDL.cjs.map} +1 -1
  374. package/dist/{whoami-DCZN-m7R.js → whoami-FliA3IrX.js} +2 -2
  375. package/dist/{whoami-DCZN-m7R.js.map → whoami-FliA3IrX.js.map} +1 -1
  376. package/package.json +3 -3
  377. package/dist/agent-Cu85yHYm.d.ts.map +0 -1
  378. package/dist/analyze-issue-with-seer-B90r4g5J.cjs.map +0 -1
  379. package/dist/client-0n2-4zOO.d.cts.map +0 -1
  380. package/dist/client-B7hvqupZ.js.map +0 -1
  381. package/dist/client-ByOC8aCf.d.ts.map +0 -1
  382. package/dist/client-cC79LUJ5.cjs.map +0 -1
  383. package/dist/create-dsn-9yIHr10B.cjs.map +0 -1
  384. package/dist/create-dsn-p2Ep6zDn.js.map +0 -1
  385. package/dist/create-project-BQQx1iLm.cjs.map +0 -1
  386. package/dist/create-project-CN0UneBm.js.map +0 -1
  387. package/dist/create-team-CzFrsVdw.js.map +0 -1
  388. package/dist/create-team-DFSriKVL.cjs.map +0 -1
  389. package/dist/find-dsns-BzfYjE06.js.map +0 -1
  390. package/dist/find-dsns-DhHHtvpj.cjs.map +0 -1
  391. package/dist/find-organizations-BJFAElbh.js.map +0 -1
  392. package/dist/find-projects-BpEGRZya.cjs.map +0 -1
  393. package/dist/find-projects-E5CMFbwU.js.map +0 -1
  394. package/dist/find-releases-DWWonhlV.js.map +0 -1
  395. package/dist/find-releases-Du5euXKS.cjs.map +0 -1
  396. package/dist/find-teams-BM4yWKe_.js.map +0 -1
  397. package/dist/find-teams-Bp6-Iu62.cjs.map +0 -1
  398. package/dist/formatting-5u-ZFz8H.cjs.map +0 -1
  399. package/dist/formatting-BEgp4WO_.js.map +0 -1
  400. package/dist/formatting-Bw0FWiCH.d.cts.map +0 -1
  401. package/dist/formatting-ClM7RU4L.d.ts.map +0 -1
  402. package/dist/get-event-attachment-CTF-k6op.cjs.map +0 -1
  403. package/dist/get-event-attachment-DDvsu6IQ.js.map +0 -1
  404. package/dist/get-issue-details-Bsax2jTY.js.map +0 -1
  405. package/dist/get-issue-details-CIZSksmd.cjs.map +0 -1
  406. package/dist/get-trace-details-Bc9GgkSs.cjs.map +0 -1
  407. package/dist/get-trace-details-Bkilw5oH.js.map +0 -1
  408. package/dist/handler-CASDrJ7z.d.ts.map +0 -1
  409. package/dist/handler-CXY05zhR.d.ts.map +0 -1
  410. package/dist/handler-CZEMKP9p.d.cts.map +0 -1
  411. package/dist/handler-ChOaafS-.cjs.map +0 -1
  412. package/dist/handler-CmTBmIt9.d.cts.map +0 -1
  413. package/dist/handler-Cs5DcdpF.d.ts.map +0 -1
  414. package/dist/handler-D6OGs2Ok.d.cts.map +0 -1
  415. package/dist/handler-DQbc5eAJ.cjs.map +0 -1
  416. package/dist/handler-bf2qu8DQ.js.map +0 -1
  417. package/dist/handler-y6EMhG0y.js.map +0 -1
  418. package/dist/schema-Cp8XI7-D.d.ts.map +0 -1
  419. package/dist/schema-D5oT-Zi7.d.cts.map +0 -1
  420. package/dist/schema-DE4JpUSi.cjs.map +0 -1
  421. package/dist/schema-DkZXVCQJ.js.map +0 -1
  422. package/dist/server-BQBA0VNe.cjs.map +0 -1
  423. package/dist/server-BVqPcPfx.js.map +0 -1
  424. package/dist/types-CZI-5yyV.d.cts.map +0 -1
  425. package/dist/types-WcBA7ZSQ.d.ts.map +0 -1
  426. package/dist/update-issue-B35n8MDT.js.map +0 -1
  427. package/dist/update-issue-DOVD2zXD.cjs.map +0 -1
  428. package/dist/update-project-D361nWlU.js.map +0 -1
  429. package/dist/update-project-DG3bwhNA.cjs.map +0 -1
  430. package/dist/utils-Bzaer0D1.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-OW--pQOQ.cjs","names":["toolCalls: ToolCall[]","context: ServerContext","tools","findOrganizations","findTeams","findProjects","findReleases","getIssueDetails","getTraceDetails","getEventAttachment","updateIssue","searchEvents","createTeam","createProject","updateProject","createDsn","findDsns","analyzeIssueWithSeer","searchDocs","getDoc","searchIssues","useSentry","args: Record<string, unknown>","McpServer","MCP_SERVER_NAME","LIB_VERSION","tools","grantedSkills: Set<Skill> | undefined","grantedScopes: Set<Scope> | undefined","transportLogOptions: LogIssueOptions","params: any","extra: RequestHandlerExtra<ServerRequest, ServerNotification>"],"sources":["../src/tools/use-sentry/handler.ts","../src/tools/index.ts","../src/server.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { InMemoryTransport } from \"@modelcontextprotocol/sdk/inMemory.js\";\nimport { experimental_createMCPClient } from \"ai\";\nimport { defineTool } from \"../../internal/tool-helpers/define\";\nimport type { ServerContext } from \"../../types\";\nimport { useSentryAgent } from \"./agent\";\nimport { buildServer } from \"../../server\";\nimport tools from \"../index\";\nimport type { ToolCall } from \"../../internal/agents/callEmbeddedAgent\";\n\n/**\n * Format tool calls into a readable trace\n */\nfunction formatToolCallTrace(toolCalls: ToolCall[]): string {\n let trace = \"\";\n\n for (let i = 0; i < toolCalls.length; i++) {\n const call = toolCalls[i];\n trace += `### ${i + 1}. ${call.toolName}\\n\\n`;\n\n // Type assertion is safe: AI SDK guarantees args is always a JSON-serializable object\n const args = call.args as Record<string, unknown>;\n\n // Format arguments\n if (Object.keys(args).length === 0) {\n trace += \"_No arguments_\\n\\n\";\n } else {\n trace += \"**Arguments:**\\n```json\\n\";\n trace += JSON.stringify(args, null, 2);\n trace += \"\\n```\\n\\n\";\n }\n }\n\n return trace;\n}\n\nexport default defineTool({\n name: \"use_sentry\",\n requiredSkills: [], // Only available in agent mode - bypasses authorization\n requiredScopes: [], // No specific scopes - uses authentication token\n description: [\n \"Natural language interface to Sentry via an embedded AI agent.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Perform complex multi-step operations\",\n \"- Explore and analyze Sentry data with natural language\",\n \"- Chain multiple operations automatically\",\n \"\",\n \"Capabilities depend on granted skills:\",\n \"- inspect: Search errors/events, analyze traces, explore issues and projects\",\n \"- seer: Get AI-powered debugging insights and root cause analysis\",\n \"- docs: Search and retrieve Sentry documentation\",\n \"- triage: Resolve, assign, comment on, and update issues\",\n \"- project-management: Create/modify teams, projects, and configure DSNs\",\n \"\",\n \"<examples>\",\n \"use_sentry(request='find unresolved errors from yesterday')\",\n \"use_sentry(request='analyze the top 3 performance issues')\",\n \"use_sentry(request='create a backend team and assign them to API project')\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If user asks to 'use Sentry' for something, they always mean to call this tool\",\n \"- Pass the user's request verbatim - do not interpret or rephrase\",\n \"- The agent can chain multiple tool calls automatically\",\n \"- Use trace=true parameter to see which tools were called\",\n \"- For simple single-tool operations, consider calling tools directly instead\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n request: z\n .string()\n .trim()\n .min(1)\n .describe(\n \"The user's raw input. Do not interpret the prompt in any way. Do not add any additional information to the prompt.\",\n ),\n trace: z\n .boolean()\n .nullable()\n .default(null)\n .describe(\n \"Enable tracing to see all tool calls made by the agent. Useful for debugging.\",\n ),\n },\n annotations: {\n readOnlyHint: true, // Will be adjusted based on actual implementation\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n // Create linked pair of in-memory transports for client-server communication\n const [clientTransport, serverTransport] =\n InMemoryTransport.createLinkedPair();\n\n // Exclude use_sentry from tools to prevent recursion\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { use_sentry, ...toolsForAgent } = tools;\n\n // Build internal MCP server with the provided context\n // Context is captured in tool handler closures during buildServer()\n const server = buildServer({\n context,\n tools: toolsForAgent,\n });\n\n // Connect server to its transport\n await server.server.connect(serverTransport);\n\n // Create MCP client with the other end of the transport\n const mcpClient = await experimental_createMCPClient({\n name: \"mcp.sentry.dev (use-sentry)\",\n transport: clientTransport,\n });\n\n try {\n // Get tools from MCP server (returns Vercel AI SDK compatible tools)\n const mcpTools = await mcpClient.tools();\n\n // Call the embedded agent with MCP tools and the user's request\n const agentResult = await useSentryAgent({\n request: params.request,\n tools: mcpTools,\n });\n\n let output = agentResult.result.result;\n\n // If tracing is enabled, append the tool call trace\n if (params.trace && agentResult.toolCalls.length > 0) {\n output += \"\\n\\n---\\n\\n## Tool Call Trace\\n\\n\";\n output += formatToolCallTrace(agentResult.toolCalls);\n }\n\n return output;\n } finally {\n // Clean up connections\n await mcpClient.close();\n await server.server.close();\n }\n },\n});\n","import whoami from \"./whoami\";\nimport findOrganizations from \"./find-organizations\";\nimport findTeams from \"./find-teams\";\nimport findProjects from \"./find-projects\";\nimport findReleases from \"./find-releases\";\nimport getIssueDetails from \"./get-issue-details\";\nimport getTraceDetails from \"./get-trace-details\";\nimport getEventAttachment from \"./get-event-attachment\";\nimport updateIssue from \"./update-issue\";\nimport searchEvents from \"./search-events\";\nimport createTeam from \"./create-team\";\nimport createProject from \"./create-project\";\nimport updateProject from \"./update-project\";\nimport createDsn from \"./create-dsn\";\nimport findDsns from \"./find-dsns\";\nimport analyzeIssueWithSeer from \"./analyze-issue-with-seer\";\nimport searchDocs from \"./search-docs\";\nimport getDoc from \"./get-doc\";\nimport searchIssues from \"./search-issues\";\nimport useSentry from \"./use-sentry\";\n\n// Default export: object mapping tool names to tools\nexport default {\n whoami,\n find_organizations: findOrganizations,\n find_teams: findTeams,\n find_projects: findProjects,\n find_releases: findReleases,\n get_issue_details: getIssueDetails,\n get_trace_details: getTraceDetails,\n get_event_attachment: getEventAttachment,\n update_issue: updateIssue,\n search_events: searchEvents,\n create_team: createTeam,\n create_project: createProject,\n update_project: updateProject,\n create_dsn: createDsn,\n find_dsns: findDsns,\n analyze_issue_with_seer: analyzeIssueWithSeer,\n search_docs: searchDocs,\n get_doc: getDoc,\n search_issues: searchIssues,\n use_sentry: useSentry,\n} as const;\n\n// Type export\nexport type ToolName = keyof typeof import(\"./index\").default;\n","/**\n * MCP Server Configuration and Request Handling Infrastructure.\n *\n * This module orchestrates tool execution and telemetry collection\n * in a unified server interface for LLMs.\n *\n * **Configuration Example:**\n * ```typescript\n * const server = buildServer({\n * context: {\n * accessToken: \"your-sentry-token\",\n * sentryHost: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"mcp-client\",\n * constraints: {}\n * },\n * wrapWithSentry: (s) => Sentry.wrapMcpServerWithSentry(s),\n * });\n * ```\n */\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport type {\n ServerRequest,\n ServerNotification,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport tools from \"./tools/index\";\nimport type { ToolConfig } from \"./tools/types\";\nimport type { ServerContext } from \"./types\";\nimport {\n setTag,\n setUser,\n startNewTrace,\n startSpan,\n wrapMcpServerWithSentry,\n} from \"@sentry/core\";\nimport { logIssue, type LogIssueOptions } from \"./telem/logging\";\nimport { formatErrorForUser } from \"./internal/error-handling\";\nimport { LIB_VERSION } from \"./version\";\nimport { MCP_SERVER_NAME } from \"./constants\";\nimport { isToolAllowed, type Scope } from \"./permissions\";\nimport { hasRequiredSkills, type Skill } from \"./skills\";\nimport {\n getConstraintParametersToInject,\n getConstraintKeysToFilter,\n} from \"./internal/constraint-helpers\";\n\n/**\n * Extracts MCP request parameters for OpenTelemetry attributes.\n *\n * @example Parameter Transformation\n * ```typescript\n * const input = { organizationSlug: \"my-org\", query: \"is:unresolved\" };\n * const output = extractMcpParameters(input);\n * // { \"mcp.request.argument.organizationSlug\": \"\\\"my-org\\\"\", \"mcp.request.argument.query\": \"\\\"is:unresolved\\\"\" }\n * ```\n */\nfunction extractMcpParameters(args: Record<string, unknown>) {\n return Object.fromEntries(\n Object.entries(args).map(([key, value]) => {\n return [`mcp.request.argument.${key}`, JSON.stringify(value)];\n }),\n );\n}\n\n/**\n * Creates and configures a complete MCP server with Sentry instrumentation.\n *\n * The server is built with tools filtered based on the granted scopes in the context.\n * Context is captured in tool handler closures and passed directly to handlers.\n *\n * @example Usage with stdio transport\n * ```typescript\n * import { buildServer } from \"@sentry/mcp-server/server\";\n * import { startStdio } from \"@sentry/mcp-server/transports/stdio\";\n *\n * const context = {\n * accessToken: process.env.SENTRY_TOKEN,\n * sentryHost: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"cursor-ide\",\n * constraints: {}\n * };\n *\n * const server = buildServer({ context });\n * await startStdio(server, context);\n * ```\n *\n * @example Usage with Cloudflare Workers\n * ```typescript\n * import { buildServer } from \"@sentry/mcp-server/server\";\n * import { experimental_createMcpHandler as createMcpHandler } from \"agents/mcp\";\n *\n * const serverContext = buildContextFromOAuth();\n * // Context is captured in closures during buildServer()\n * const server = buildServer({ context: serverContext });\n *\n * // Context already available to tool handlers via closures\n * return createMcpHandler(server, { route: \"/mcp\" })(request, env, ctx);\n * ```\n */\nexport function buildServer({\n context,\n onToolComplete,\n agentMode = false,\n tools: customTools,\n}: {\n context: ServerContext;\n onToolComplete?: () => void;\n agentMode?: boolean;\n tools?: Record<string, ToolConfig<any>>;\n}): McpServer {\n const server = new McpServer({\n name: MCP_SERVER_NAME,\n version: LIB_VERSION,\n });\n\n configureServer({\n server,\n context,\n onToolComplete,\n agentMode,\n tools: customTools,\n });\n\n return wrapMcpServerWithSentry(server);\n}\n\n/**\n * Configures an MCP server with tools filtered by granted skills or scopes.\n *\n * Internal function used by buildServer(). Use buildServer() instead for most cases.\n * Tools are filtered at registration time based on grantedSkills OR grantedScopes\n * (either system can grant access), and context is captured in closures for tool handler execution.\n *\n * In agent mode, only the use_sentry tool is registered, bypassing authorization checks.\n */\nfunction configureServer({\n server,\n context,\n onToolComplete,\n agentMode = false,\n tools: customTools,\n}: {\n server: McpServer;\n context: ServerContext;\n onToolComplete?: () => void;\n agentMode?: boolean;\n tools?: Record<string, ToolConfig<any>>;\n}) {\n // Determine which tools to register:\n // - Agent mode: only use_sentry\n // - Custom tools provided: use those\n // - Default: all standard tools\n const toolsToRegister = agentMode\n ? { use_sentry: tools.use_sentry }\n : (customTools ?? tools);\n\n // Get granted skills and scopes from context for tool filtering\n const grantedSkills: Set<Skill> | undefined = context.grantedSkills\n ? new Set<Skill>(context.grantedSkills)\n : undefined;\n\n const grantedScopes: Set<Scope> | undefined = context.grantedScopes\n ? new Set<Scope>(context.grantedScopes)\n : undefined;\n\n server.server.onerror = (error) => {\n const transportLogOptions: LogIssueOptions = {\n loggerScope: [\"server\", \"transport\"] as const,\n contexts: {\n transport: {\n phase: \"server.onerror\",\n },\n },\n };\n\n logIssue(error, transportLogOptions);\n };\n\n for (const [toolKey, tool] of Object.entries(toolsToRegister)) {\n /**\n * Authorization System Precedence\n * ================================\n *\n * The server supports two authorization systems:\n * 1. **Skills System (NEW)** - User-facing permission groups (inspect, triage, etc.)\n * 2. **Scopes System (LEGACY)** - Low-level API permissions (event:read, project:write, etc.)\n *\n * IMPORTANT: These systems are **MUTUALLY EXCLUSIVE** - only one is active per session:\n *\n * ## Skills Mode (when grantedSkills is set):\n * - ONLY skills are checked (scopes are ignored)\n * - Tool must have non-empty `requiredSkills` array to be exposed\n * - Empty `requiredSkills: []` means intentionally excluded from skills system\n * - Authorization: `allowed = hasRequiredSkills(grantedSkills, tool.requiredSkills)`\n *\n * ## Scopes Mode (when grantedSkills is NOT set, but grantedScopes is set):\n * - Falls back to legacy scope checking\n * - Empty `requiredScopes: []` means no scopes required (always allowed)\n * - Authorization: `allowed = isToolAllowed(tool.requiredScopes, grantedScopes)`\n *\n * ## Tool Visibility:\n * - If not allowed by active authorization system: tool is NOT registered\n * - Only registered tools are visible to MCP clients\n *\n * ## Examples:\n * ```typescript\n * // Tool available in \"triage\" skill only:\n * { requiredSkills: [\"triage\"], requiredScopes: [\"event:write\"] }\n *\n * // Tool available to ALL skills (foundational tool like whoami):\n * { requiredSkills: ALL_SKILLS, requiredScopes: [] }\n *\n * // Tool excluded from skills system (like use_sentry in agent mode):\n * { requiredSkills: [], requiredScopes: [] }\n * ```\n */\n let allowed = false;\n\n // In agent mode, skip authorization - use_sentry handles it internally\n if (agentMode) {\n allowed = true;\n }\n // Skills system takes precedence when set\n else if (grantedSkills) {\n // Tool must have non-empty requiredSkills to be exposed in skills mode\n if (tool.requiredSkills && tool.requiredSkills.length > 0) {\n allowed = hasRequiredSkills(grantedSkills, tool.requiredSkills);\n }\n // Empty requiredSkills means NOT exposed via skills system\n }\n // Legacy fallback: Check scopes if not using skills\n else if (grantedScopes) {\n // isToolAllowed handles empty requiredScopes correctly (returns true)\n allowed = isToolAllowed(tool.requiredScopes, grantedScopes);\n }\n\n // Skip tool if not allowed by active authorization system\n if (!allowed) {\n continue;\n }\n\n // Skip list tools when context is constrained to a specific tenant/project\n // When organizationSlug is constrained, find_organizations is not useful\n // When projectSlug is constrained, find_projects is not useful\n if (\n (toolKey === \"find_organizations\" &&\n context.constraints.organizationSlug) ||\n (toolKey === \"find_projects\" && context.constraints.projectSlug)\n ) {\n continue;\n }\n\n // Filter out constraint parameters from schema that will be auto-injected\n // Only filter parameters that are ACTUALLY constrained in the current context\n // to avoid breaking tools when constraints are not set\n const constraintKeysToFilter = new Set(\n getConstraintKeysToFilter(context.constraints, tool.inputSchema),\n );\n const filteredInputSchema = Object.fromEntries(\n Object.entries(tool.inputSchema).filter(\n ([key]) => !constraintKeysToFilter.has(key),\n ),\n ) as typeof tool.inputSchema;\n\n server.tool(\n tool.name,\n tool.description,\n filteredInputSchema,\n tool.annotations,\n async (\n params: any,\n extra: RequestHandlerExtra<ServerRequest, ServerNotification>,\n ) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `tools/call ${tool.name}`,\n attributes: {\n \"mcp.tool.name\": tool.name,\n \"mcp.server.name\": MCP_SERVER_NAME,\n \"mcp.server.version\": LIB_VERSION,\n ...extractMcpParameters(params || {}),\n },\n },\n async (span) => {\n // Add constraint attributes to span\n if (context.constraints.organizationSlug) {\n span.setAttribute(\n \"sentry-mcp.constraint-organization\",\n context.constraints.organizationSlug,\n );\n }\n if (context.constraints.projectSlug) {\n span.setAttribute(\n \"sentry-mcp.constraint-project\",\n context.constraints.projectSlug,\n );\n }\n\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\n }\n\n try {\n // Apply constraints as parameters, handling aliases (e.g., projectSlug → projectSlugOrId)\n const applicableConstraints = getConstraintParametersToInject(\n context.constraints,\n tool.inputSchema,\n );\n\n const paramsWithConstraints = {\n ...params,\n ...applicableConstraints,\n };\n\n // Execute tool handler with context passed directly\n // Context is available via the closure and as a parameter\n const output = await tool.handler(\n paramsWithConstraints,\n context,\n );\n span.setStatus({\n code: 1, // ok\n });\n // if the tool returns a string, assume it's a message\n if (typeof output === \"string\") {\n return {\n content: [\n {\n type: \"text\" as const,\n text: output,\n },\n ],\n };\n }\n // if the tool returns a list, assume it's a content list\n if (Array.isArray(output)) {\n return {\n content: output,\n };\n }\n throw new Error(`Invalid tool output: ${output}`);\n } catch (error) {\n span.setStatus({\n code: 2, // error\n });\n\n // CRITICAL: Tool errors MUST be returned as formatted text responses,\n // NOT thrown as exceptions. This ensures consistent error handling\n // and prevents the MCP client from receiving raw error objects.\n //\n // The logAndFormatError function provides user-friendly error messages\n // with appropriate formatting for different error types:\n // - UserInputError: Clear guidance for fixing input problems\n // - ConfigurationError: Clear guidance for fixing configuration issues\n // - ApiError: HTTP status context with helpful messaging\n // - System errors: Sentry event IDs for debugging\n //\n // DO NOT change this to throw error - it breaks error handling!\n return {\n content: [\n {\n type: \"text\" as const,\n text: await formatErrorForUser(error),\n },\n ],\n isError: true,\n };\n }\n },\n );\n });\n } finally {\n onToolComplete?.();\n }\n },\n );\n }\n}\n"],"mappings":"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"}
package/dist/server.cjs CHANGED
@@ -4,60 +4,60 @@ require('./errors-umQzF_vW.cjs');
4
4
  require('./define-CLp6EtpZ.cjs');
5
5
  require('./url-utils-CbcNJVYS.cjs');
6
6
  require('./logging-C-ST7-Ow.cjs');
7
- require('./schema-DE4JpUSi.cjs');
7
+ require('./schema-1xQ4asuW.cjs');
8
8
  require('./errors-DWysOIMw.cjs');
9
- require('./version-CPcX-30c.cjs');
10
- require('./client-cC79LUJ5.cjs');
9
+ require('./version-CaFsr_xb.cjs');
10
+ require('./client-DSxCsnqO.cjs');
11
11
  require('./types-n3wuZu5X.cjs');
12
12
  require('./api-client-BGgaBFuD.cjs');
13
13
  require('./validate-region-url-BvT-IgKg.cjs');
14
- require('./api-CHgBJOv9.cjs');
15
- require('./whoami-CRF9Ws25.cjs');
14
+ require('./api-CfzBwheo.cjs');
15
+ require('./whoami-DRDjyhDL.cjs');
16
16
  require('./slug-validation-D5VJqMwH.cjs');
17
17
  require('./schema-BGVOjcD7.cjs');
18
- require('./find-organizations-7ooGnnmP.cjs');
19
- require('./find-teams-Bp6-Iu62.cjs');
20
- require('./find-projects-BpEGRZya.cjs');
21
- require('./find-releases-Du5euXKS.cjs');
18
+ require('./find-organizations-CEEqa1an.cjs');
19
+ require('./find-teams-lOqS_719.cjs');
20
+ require('./find-projects-BWyvosHM.cjs');
21
+ require('./find-releases-DMJrj5wz.cjs');
22
22
  require('./issue-helpers-D-hBnXTk.cjs');
23
23
  require('./seer-sA1asAZs.cjs');
24
- require('./formatting-5u-ZFz8H.cjs');
24
+ require('./formatting-BatGC-29.cjs');
25
25
  require('./issue-ChNk4cuO.cjs');
26
26
  require('./enhance-error-vihkdCX5.cjs');
27
- require('./get-issue-details-CIZSksmd.cjs');
28
- require('./get-trace-details-Bc9GgkSs.cjs');
29
- require('./get-event-attachment-CTF-k6op.cjs');
27
+ require('./get-issue-details-BY7S1YyX.cjs');
28
+ require('./get-trace-details-DD0p3apU.cjs');
29
+ require('./get-event-attachment-DuyBT68p.cjs');
30
30
  require('./formatting-C6hyL-Yv.cjs');
31
- require('./update-issue-DOVD2zXD.cjs');
32
- require('./openai-provider-B7uvGxoI.cjs');
33
- require('./callEmbeddedAgent-BPS472yg.cjs');
31
+ require('./update-issue-Dx2EZ5pY.cjs');
32
+ require('./openai-provider-BycgrQgi.cjs');
33
+ require('./callEmbeddedAgent-COB8Jrcn.cjs');
34
34
  require('./utils-DJIwl8YR.cjs');
35
35
  require('./otel-semantics-n8_5Ib9C.cjs');
36
36
  require('./whoami-9JymZ3NV.cjs');
37
37
  require('./utils-CIt6Amml.cjs');
38
38
  require('./config-2JTOC4-d.cjs');
39
- require('./agent-Cm9hEq5d.cjs');
39
+ require('./agent-CnHO6uyy.cjs');
40
40
  require('./formatters-ObdzRwld.cjs');
41
- require('./handler-ChOaafS-.cjs');
41
+ require('./handler-C5Tgh1wj.cjs');
42
42
  require('./search-events-BrEw3wC-.cjs');
43
- require('./create-team-DFSriKVL.cjs');
44
- require('./create-project-BQQx1iLm.cjs');
45
- require('./update-project-DG3bwhNA.cjs');
46
- require('./create-dsn-9yIHr10B.cjs');
47
- require('./find-dsns-DhHHtvpj.cjs');
43
+ require('./create-team-DV6XmZkb.cjs');
44
+ require('./create-project-D4W66CxU.cjs');
45
+ require('./update-project-BJkzcapF.cjs');
46
+ require('./create-dsn-C5vd9Btg.cjs');
47
+ require('./find-dsns-BabAfVEt.cjs');
48
48
  require('./fetch-utils-DRgOJp3e.cjs');
49
- require('./analyze-issue-with-seer-B90r4g5J.cjs');
50
- require('./search-docs-DdOFZY3t.cjs');
51
- require('./get-doc-DsOaSMIe.cjs');
49
+ require('./analyze-issue-with-seer-wsCEFdZs.cjs');
50
+ require('./search-docs-C5x-ZRhd.cjs');
51
+ require('./get-doc-CbVw4ada.cjs');
52
52
  require('./dataset-fields-Bp_g-sD6.cjs');
53
53
  require('./config-BacDkkdz.cjs');
54
- require('./agent-CyyRLYbF.cjs');
54
+ require('./agent-CirZFiaJ.cjs');
55
55
  require('./formatters-B6H5qTFe.cjs');
56
- require('./handler-DQbc5eAJ.cjs');
56
+ require('./handler-BjTPOR8v.cjs');
57
57
  require('./search-issues-C7Zs6rFB.cjs');
58
58
  require('./config-BMLvvgGQ.cjs');
59
- require('./agent-DtCRTWPZ.cjs');
60
- const require_server = require('./server-BQBA0VNe.cjs');
59
+ require('./agent-DaUNg6Ut.cjs');
60
+ const require_server = require('./server-OW--pQOQ.cjs');
61
61
  require('./error-handling-FGjcJT8U.cjs');
62
62
  require('./permissions-Berbg2vC.cjs');
63
63
  require('./constraint-helpers-UEovDW_M.cjs');
package/dist/server.js CHANGED
@@ -4,60 +4,60 @@ import "./errors-BXmNwD2K.js";
4
4
  import "./define-vA6uuVue.js";
5
5
  import "./url-utils-CfKwo6s5.js";
6
6
  import "./logging-ChQnSEmD.js";
7
- import "./schema-DkZXVCQJ.js";
7
+ import "./schema-oeFNxyo_.js";
8
8
  import "./errors-DUEMWOr1.js";
9
- import "./version-CCICHYna.js";
10
- import "./client-B7hvqupZ.js";
9
+ import "./version-DY1nl1TZ.js";
10
+ import "./client-Be1DR1al.js";
11
11
  import "./types-D670-rDz.js";
12
12
  import "./api-client-CSLxiNP9.js";
13
13
  import "./validate-region-url-Bdokgz65.js";
14
- import "./api-CBHyxA3Q.js";
15
- import "./whoami-DCZN-m7R.js";
14
+ import "./api-BCICbJoI.js";
15
+ import "./whoami-FliA3IrX.js";
16
16
  import "./slug-validation-Bkteg65O.js";
17
17
  import "./schema-ChlpIaqA.js";
18
- import "./find-organizations-BJFAElbh.js";
19
- import "./find-teams-BM4yWKe_.js";
20
- import "./find-projects-E5CMFbwU.js";
21
- import "./find-releases-DWWonhlV.js";
18
+ import "./find-organizations-Bo-JdU-R.js";
19
+ import "./find-teams-CR_hdlun.js";
20
+ import "./find-projects-zM4CM_xX.js";
21
+ import "./find-releases-DzdGLPSN.js";
22
22
  import "./issue-helpers-DtCbXiRZ.js";
23
23
  import "./seer-CSFgx4AP.js";
24
- import "./formatting-BEgp4WO_.js";
24
+ import "./formatting-DUODx6N5.js";
25
25
  import "./issue-1C6txnk3.js";
26
26
  import "./enhance-error-BULHg3Tl.js";
27
- import "./get-issue-details-Bsax2jTY.js";
28
- import "./get-trace-details-Bkilw5oH.js";
29
- import "./get-event-attachment-DDvsu6IQ.js";
27
+ import "./get-issue-details-BxJzOzFQ.js";
28
+ import "./get-trace-details-Dv2FB534.js";
29
+ import "./get-event-attachment-Dzg2R7ng.js";
30
30
  import "./formatting-DJFcfTJG.js";
31
- import "./update-issue-B35n8MDT.js";
32
- import "./openai-provider-DphaqrmX.js";
33
- import "./callEmbeddedAgent-DavTx3Qo.js";
31
+ import "./update-issue-BGm8g4G0.js";
32
+ import "./openai-provider-BsMAb6zY.js";
33
+ import "./callEmbeddedAgent-rEUWAl2g.js";
34
34
  import "./utils-DOb7bs5_.js";
35
35
  import "./otel-semantics-CWWWmiNy.js";
36
36
  import "./whoami-BsX-LoXG.js";
37
37
  import "./utils-CaNeCYCH.js";
38
38
  import "./config-jAHLRqMZ.js";
39
- import "./agent-Dkgkv7Iz.js";
39
+ import "./agent-BsCC60AU.js";
40
40
  import "./formatters-BOJNlDKG.js";
41
- import "./handler-y6EMhG0y.js";
41
+ import "./handler-BfTAwyrq.js";
42
42
  import "./search-events-B-MXKSB_.js";
43
- import "./create-team-CzFrsVdw.js";
44
- import "./create-project-CN0UneBm.js";
45
- import "./update-project-D361nWlU.js";
46
- import "./create-dsn-p2Ep6zDn.js";
47
- import "./find-dsns-BzfYjE06.js";
43
+ import "./create-team-DUBAEGGr.js";
44
+ import "./create-project-BsN4Q0cl.js";
45
+ import "./update-project-B0clXxii.js";
46
+ import "./create-dsn-DBqCDM_6.js";
47
+ import "./find-dsns-C-Q6yJT5.js";
48
48
  import "./fetch-utils-C6qSgZai.js";
49
- import "./analyze-issue-with-seer-Ji3KDm0O.js";
50
- import "./search-docs-YYBTOWY5.js";
51
- import "./get-doc-CWhlUoJe.js";
49
+ import "./analyze-issue-with-seer-6OwT1RJP.js";
50
+ import "./search-docs-UCe9oXQt.js";
51
+ import "./get-doc-FuILofQP.js";
52
52
  import "./dataset-fields-dZ43jEgF.js";
53
53
  import "./config-BFaJp4hW.js";
54
- import "./agent-0WAnUgat.js";
54
+ import "./agent-9s0S2VUD.js";
55
55
  import "./formatters-C9MhdNDX.js";
56
- import "./handler-bf2qu8DQ.js";
56
+ import "./handler-BhjeSo2N.js";
57
57
  import "./search-issues-DUSkomYp.js";
58
58
  import "./config-Dh25cVhL.js";
59
- import "./agent-C1Ros3Xx.js";
60
- import { buildServer } from "./server-BVqPcPfx.js";
59
+ import "./agent-DD0p64Dq.js";
60
+ import { buildServer } from "./server-BbJwtfJr.js";
61
61
  import "./error-handling-CLnyY1TR.js";
62
62
  import "./permissions-DvkVlUJ1.js";
63
63
  import "./constraint-helpers-CBddlAo8.js";
@@ -7,7 +7,59 @@ var skillDefinitions_default$1 = [
7
7
  "description": "Search for errors, analyze traces, and explore event details",
8
8
  "defaultEnabled": true,
9
9
  "order": 1,
10
- "toolCount": 10
10
+ "toolCount": 10,
11
+ "tools": [
12
+ {
13
+ "name": "find_organizations",
14
+ "description": "Find organizations that the user has access to in Sentry.\n\nUse this tool when you need to:\n- View organizations in Sentry\n- Find an organization's slug to aid other tool requests\n- Search for specific organizations by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
15
+ "requiredScopes": ["org:read"]
16
+ },
17
+ {
18
+ "name": "find_projects",
19
+ "description": "Find projects in Sentry.\n\nUse this tool when you need to:\n- View projects in a Sentry organization\n- Find a project's slug to aid other tool requests\n- Search for specific projects by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
20
+ "requiredScopes": ["project:read"]
21
+ },
22
+ {
23
+ "name": "find_releases",
24
+ "description": "Find releases in Sentry.\n\nUse this tool when you need to:\n- Find recent releases in a Sentry organization\n- Find the most recent version released of a specific project\n- Determine when a release was deployed to an environment\n\n<examples>\n### Find the most recent releases in the 'my-organization' organization\n\n```\nfind_releases(organizationSlug='my-organization')\n```\n\n### Find releases matching '2ce6a27' in the 'my-organization' organization\n\n```\nfind_releases(organizationSlug='my-organization', query='2ce6a27')\n```\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\n</hints>",
25
+ "requiredScopes": ["project:read"]
26
+ },
27
+ {
28
+ "name": "find_teams",
29
+ "description": "Find teams in an organization in Sentry.\n\nUse this tool when you need to:\n- View teams in a Sentry organization\n- Find a team's slug to aid other tool requests\n- Search for specific teams by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
30
+ "requiredScopes": ["team:read"]
31
+ },
32
+ {
33
+ "name": "get_event_attachment",
34
+ "description": "Download attachments from a Sentry event.\n\nUse this tool when you need to:\n- Download files attached to a specific event\n- Access screenshots, log files, or other attachments uploaded with an error report\n- Retrieve attachment metadata and download URLs\n\n<examples>\n### Download a specific attachment by ID\n\n```\nget_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\n```\n\n### List all attachments for an event\n\n```\nget_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\n```\n\n</examples>\n\n<hints>\n- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\n- If `attachmentId` is omitted, all attachments for the event will be listed with download information\n- The `projectSlug` is required to identify which project the event belongs to\n</hints>",
35
+ "requiredScopes": ["event:read"]
36
+ },
37
+ {
38
+ "name": "get_issue_details",
39
+ "description": "Get detailed information about a specific Sentry issue by ID.\n\nUSE THIS TOOL WHEN USERS:\n- Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123')\n- Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]'\n- Want details/stacktrace/analysis for a known issue\n- Provide a Sentry issue URL\n\nDO NOT USE for:\n- General searching or listing issues (use search_issues)\n- Root cause analysis (use analyze_issue_with_seer)\n\nTRIGGER PATTERNS:\n- 'Explain ISSUE-123' → use get_issue_details\n- 'Tell me about PROJECT-456' → use get_issue_details\n- 'What happened in [issue URL]' → use get_issue_details\n\n<examples>\n### With Sentry URL (recommended - simplest approach)\n```\nget_issue_details(issueUrl='https://sentry.sentry.io/issues/6916805731/?project=4509062593708032&query=is%3Aunresolved')\n```\n\n### With issue ID and organization\n```\nget_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\n```\n\n### With event ID and organization\n```\nget_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\n```\n</examples>\n\n<hints>\n- **IMPORTANT**: If user provides a Sentry URL, pass the ENTIRE URL to issueUrl parameter unchanged\n- When using issueUrl, all other parameters are automatically extracted - don't provide them separately\n- If using issueId (not URL), then organizationSlug is required\n</hints>",
40
+ "requiredScopes": ["event:read"]
41
+ },
42
+ {
43
+ "name": "get_trace_details",
44
+ "description": "Get detailed information about a specific Sentry trace by ID.\n\nUSE THIS TOOL WHEN USERS:\n- Provide a specific trace ID (e.g., 'a4d1aae7216b47ff8117cf4e09ce9d0a')\n- Ask to 'show me trace [TRACE-ID]', 'explain trace [TRACE-ID]'\n- Want high-level overview and link to view trace details in Sentry\n- Need trace statistics and span breakdown\n\nDO NOT USE for:\n- General searching for traces (use search_events with trace queries)\n- Individual span details (this shows trace overview)\n\nTRIGGER PATTERNS:\n- 'Show me trace abc123' → use get_trace_details\n- 'Explain trace a4d1aae7216b47ff8117cf4e09ce9d0a' → use get_trace_details\n- 'What is trace [trace-id]' → use get_trace_details\n\n<examples>\n### Get trace overview\n```\nget_trace_details(organizationSlug='my-organization', traceId='a4d1aae7216b47ff8117cf4e09ce9d0a')\n```\n</examples>\n\n<hints>\n- Trace IDs are 32-character hexadecimal strings\n</hints>",
45
+ "requiredScopes": ["event:read"]
46
+ },
47
+ {
48
+ "name": "search_events",
49
+ "description": "Search for events AND perform counts/aggregations - the ONLY tool for statistics and counts.\n\nSupports TWO query types:\n1. AGGREGATIONS (counts, sums, averages): 'how many errors', 'count of issues', 'total tokens'\n2. Individual events with timestamps: 'show me error logs from last hour'\n\nUSE THIS FOR ALL COUNTS/STATISTICS:\n- 'how many errors today' → returns count\n- 'count of database failures' → returns count\n- 'total number of issues' → returns count\n- 'average response time' → returns avg()\n- 'sum of tokens used' → returns sum()\n\nALSO USE FOR INDIVIDUAL EVENTS:\n- 'error logs from last hour' → returns event list\n- 'database errors with timestamps' → returns event list\n- 'trace spans for slow API calls' → returns span list\n\nDataset Selection (AI automatically chooses):\n- errors: Exception/crash events\n- logs: Log entries\n- spans: Performance data, AI/LLM calls, token usage\n\nDO NOT USE for grouped issue lists → use search_issues\n\n<examples>\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='how many errors today')\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='count of database failures this week')\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='total tokens used by model')\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='error logs from the last hour')\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.\n- Parse org/project notation directly without calling find_organizations or find_projects.\n</hints>",
50
+ "requiredScopes": ["event:read"]
51
+ },
52
+ {
53
+ "name": "search_issues",
54
+ "description": "Search for grouped issues/problems in Sentry - returns a LIST of issues, NOT counts or aggregations.\n\nUses AI to translate natural language queries into Sentry issue search syntax.\nReturns grouped issues with metadata like title, status, and user count.\n\nUSE THIS TOOL WHEN USERS WANT:\n- A LIST of issues: 'show me issues', 'what problems do we have'\n- Filtered issue lists: 'unresolved issues', 'critical bugs'\n- Issues by impact: 'errors affecting more than 100 users'\n- Issues by assignment: 'issues assigned to me'\n\nDO NOT USE FOR COUNTS/AGGREGATIONS:\n- 'how many errors' → use search_events\n- 'count of issues' → use search_events\n- 'total number of errors today' → use search_events\n- 'sum/average/statistics' → use search_events\n\nALSO DO NOT USE FOR:\n- Individual error events with timestamps → use search_events\n- Details about a specific issue ID → use get_issue_details\n\nREMEMBER: This tool returns a LIST of issues, not counts or statistics!\n\n<examples>\nsearch_issues(organizationSlug='my-org', naturalLanguageQuery='critical bugs from last week')\nsearch_issues(organizationSlug='my-org', naturalLanguageQuery='unhandled errors affecting 100+ users')\nsearch_issues(organizationSlug='my-org', naturalLanguageQuery='issues assigned to me')\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlugOrId>.\n- Parse org/project notation directly without calling find_organizations or find_projects.\n- The projectSlugOrId parameter accepts both project slugs (e.g., 'my-project') and numeric IDs (e.g., '123456').\n</hints>",
55
+ "requiredScopes": ["event:read"]
56
+ },
57
+ {
58
+ "name": "whoami",
59
+ "description": "Identify the authenticated user in Sentry.\n\nUse this tool when you need to:\n- Get the user's name and email address.",
60
+ "requiredScopes": []
61
+ }
62
+ ]
11
63
  },
12
64
  {
13
65
  "id": "seer",
@@ -15,7 +67,44 @@ var skillDefinitions_default$1 = [
15
67
  "description": "Sentry's AI debugger that helps you analyze, root cause, and fix issues",
16
68
  "defaultEnabled": true,
17
69
  "order": 2,
18
- "toolCount": 7
70
+ "toolCount": 7,
71
+ "tools": [
72
+ {
73
+ "name": "analyze_issue_with_seer",
74
+ "description": "Use Seer to analyze production errors and get detailed root cause analysis with specific code fixes.\n\nUse this tool when you need:\n- Detailed AI-powered root cause analysis\n- Specific code fixes and implementation guidance\n- Step-by-step troubleshooting for complex issues\n- Understanding why an error is happening in production\n\nWhat this tool provides:\n- Root cause analysis with code-level explanations\n- Specific file locations and line numbers where errors occur\n- Concrete code fixes you can apply\n- Step-by-step implementation guidance\n\nThis tool automatically:\n1. Checks if analysis already exists (instant results)\n2. Starts new AI analysis if needed (~2-5 minutes)\n3. Returns complete fix recommendations\n\n<examples>\n### User: \"What's causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"\n\n```\nanalyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\n```\n\n### User: \"Can you help me understand why this is failing in production?\"\n\n```\nanalyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\n```\n</examples>\n\n<hints>\n- Use this tool when you need deeper analysis beyond basic issue details\n- If the user provides an issueUrl, extract it and use that parameter alone\n- The analysis includes actual code snippets and fixes, not just error descriptions\n- Results are cached - subsequent calls return instantly\n</hints>",
75
+ "requiredScopes": []
76
+ },
77
+ {
78
+ "name": "find_organizations",
79
+ "description": "Find organizations that the user has access to in Sentry.\n\nUse this tool when you need to:\n- View organizations in Sentry\n- Find an organization's slug to aid other tool requests\n- Search for specific organizations by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
80
+ "requiredScopes": ["org:read"]
81
+ },
82
+ {
83
+ "name": "find_projects",
84
+ "description": "Find projects in Sentry.\n\nUse this tool when you need to:\n- View projects in a Sentry organization\n- Find a project's slug to aid other tool requests\n- Search for specific projects by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
85
+ "requiredScopes": ["project:read"]
86
+ },
87
+ {
88
+ "name": "get_issue_details",
89
+ "description": "Get detailed information about a specific Sentry issue by ID.\n\nUSE THIS TOOL WHEN USERS:\n- Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123')\n- Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]'\n- Want details/stacktrace/analysis for a known issue\n- Provide a Sentry issue URL\n\nDO NOT USE for:\n- General searching or listing issues (use search_issues)\n- Root cause analysis (use analyze_issue_with_seer)\n\nTRIGGER PATTERNS:\n- 'Explain ISSUE-123' → use get_issue_details\n- 'Tell me about PROJECT-456' → use get_issue_details\n- 'What happened in [issue URL]' → use get_issue_details\n\n<examples>\n### With Sentry URL (recommended - simplest approach)\n```\nget_issue_details(issueUrl='https://sentry.sentry.io/issues/6916805731/?project=4509062593708032&query=is%3Aunresolved')\n```\n\n### With issue ID and organization\n```\nget_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\n```\n\n### With event ID and organization\n```\nget_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\n```\n</examples>\n\n<hints>\n- **IMPORTANT**: If user provides a Sentry URL, pass the ENTIRE URL to issueUrl parameter unchanged\n- When using issueUrl, all other parameters are automatically extracted - don't provide them separately\n- If using issueId (not URL), then organizationSlug is required\n</hints>",
90
+ "requiredScopes": ["event:read"]
91
+ },
92
+ {
93
+ "name": "search_events",
94
+ "description": "Search for events AND perform counts/aggregations - the ONLY tool for statistics and counts.\n\nSupports TWO query types:\n1. AGGREGATIONS (counts, sums, averages): 'how many errors', 'count of issues', 'total tokens'\n2. Individual events with timestamps: 'show me error logs from last hour'\n\nUSE THIS FOR ALL COUNTS/STATISTICS:\n- 'how many errors today' → returns count\n- 'count of database failures' → returns count\n- 'total number of issues' → returns count\n- 'average response time' → returns avg()\n- 'sum of tokens used' → returns sum()\n\nALSO USE FOR INDIVIDUAL EVENTS:\n- 'error logs from last hour' → returns event list\n- 'database errors with timestamps' → returns event list\n- 'trace spans for slow API calls' → returns span list\n\nDataset Selection (AI automatically chooses):\n- errors: Exception/crash events\n- logs: Log entries\n- spans: Performance data, AI/LLM calls, token usage\n\nDO NOT USE for grouped issue lists → use search_issues\n\n<examples>\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='how many errors today')\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='count of database failures this week')\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='total tokens used by model')\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='error logs from the last hour')\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.\n- Parse org/project notation directly without calling find_organizations or find_projects.\n</hints>",
95
+ "requiredScopes": ["event:read"]
96
+ },
97
+ {
98
+ "name": "search_issues",
99
+ "description": "Search for grouped issues/problems in Sentry - returns a LIST of issues, NOT counts or aggregations.\n\nUses AI to translate natural language queries into Sentry issue search syntax.\nReturns grouped issues with metadata like title, status, and user count.\n\nUSE THIS TOOL WHEN USERS WANT:\n- A LIST of issues: 'show me issues', 'what problems do we have'\n- Filtered issue lists: 'unresolved issues', 'critical bugs'\n- Issues by impact: 'errors affecting more than 100 users'\n- Issues by assignment: 'issues assigned to me'\n\nDO NOT USE FOR COUNTS/AGGREGATIONS:\n- 'how many errors' → use search_events\n- 'count of issues' → use search_events\n- 'total number of errors today' → use search_events\n- 'sum/average/statistics' → use search_events\n\nALSO DO NOT USE FOR:\n- Individual error events with timestamps → use search_events\n- Details about a specific issue ID → use get_issue_details\n\nREMEMBER: This tool returns a LIST of issues, not counts or statistics!\n\n<examples>\nsearch_issues(organizationSlug='my-org', naturalLanguageQuery='critical bugs from last week')\nsearch_issues(organizationSlug='my-org', naturalLanguageQuery='unhandled errors affecting 100+ users')\nsearch_issues(organizationSlug='my-org', naturalLanguageQuery='issues assigned to me')\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlugOrId>.\n- Parse org/project notation directly without calling find_organizations or find_projects.\n- The projectSlugOrId parameter accepts both project slugs (e.g., 'my-project') and numeric IDs (e.g., '123456').\n</hints>",
100
+ "requiredScopes": ["event:read"]
101
+ },
102
+ {
103
+ "name": "whoami",
104
+ "description": "Identify the authenticated user in Sentry.\n\nUse this tool when you need to:\n- Get the user's name and email address.",
105
+ "requiredScopes": []
106
+ }
107
+ ]
19
108
  },
20
109
  {
21
110
  "id": "docs",
@@ -23,7 +112,34 @@ var skillDefinitions_default$1 = [
23
112
  "description": "Search and read Sentry SDK documentation",
24
113
  "defaultEnabled": false,
25
114
  "order": 3,
26
- "toolCount": 5
115
+ "toolCount": 5,
116
+ "tools": [
117
+ {
118
+ "name": "find_organizations",
119
+ "description": "Find organizations that the user has access to in Sentry.\n\nUse this tool when you need to:\n- View organizations in Sentry\n- Find an organization's slug to aid other tool requests\n- Search for specific organizations by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
120
+ "requiredScopes": ["org:read"]
121
+ },
122
+ {
123
+ "name": "find_projects",
124
+ "description": "Find projects in Sentry.\n\nUse this tool when you need to:\n- View projects in a Sentry organization\n- Find a project's slug to aid other tool requests\n- Search for specific projects by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
125
+ "requiredScopes": ["project:read"]
126
+ },
127
+ {
128
+ "name": "get_doc",
129
+ "description": "Fetch the full markdown content of a Sentry documentation page.\n\nUse this tool when you need to:\n- Read the complete documentation for a specific topic\n- Get detailed implementation examples or code snippets\n- Access the full context of a documentation page\n- Extract specific sections from documentation\n\n<examples>\n### Get the Next.js integration guide\n\n```\nget_doc(path='/platforms/javascript/guides/nextjs.md')\n```\n</examples>\n\n<hints>\n- Use the path from search_docs results for accurate fetching\n- Paths should end with .md extension\n</hints>",
130
+ "requiredScopes": []
131
+ },
132
+ {
133
+ "name": "search_docs",
134
+ "description": "Search Sentry documentation for SDK setup, instrumentation, and configuration guidance.\n\nUse this tool when you need to:\n- Set up Sentry SDK or framework integrations (Django, Flask, Express, Next.js, etc.)\n- Configure features like performance monitoring, error sampling, or release tracking\n- Implement custom instrumentation (spans, transactions, breadcrumbs)\n- Configure data scrubbing, filtering, or sampling rules\n\nReturns snippets only. Use `get_doc(path='...')` to fetch full documentation content.\n\n<examples>\n```\nsearch_docs(query='Django setup configuration SENTRY_DSN', guide='python/django')\nsearch_docs(query='source maps webpack upload', guide='javascript/nextjs')\n```\n</examples>\n\n<hints>\n- Use guide parameter to filter to specific technologies (e.g., 'javascript/nextjs')\n- Include specific feature names like 'beforeSend', 'tracesSampleRate', 'SENTRY_DSN'\n</hints>",
135
+ "requiredScopes": []
136
+ },
137
+ {
138
+ "name": "whoami",
139
+ "description": "Identify the authenticated user in Sentry.\n\nUse this tool when you need to:\n- Get the user's name and email address.",
140
+ "requiredScopes": []
141
+ }
142
+ ]
27
143
  },
28
144
  {
29
145
  "id": "triage",
@@ -31,7 +147,49 @@ var skillDefinitions_default$1 = [
31
147
  "description": "Resolve, assign, and update issues",
32
148
  "defaultEnabled": false,
33
149
  "order": 4,
34
- "toolCount": 8
150
+ "toolCount": 8,
151
+ "tools": [
152
+ {
153
+ "name": "find_organizations",
154
+ "description": "Find organizations that the user has access to in Sentry.\n\nUse this tool when you need to:\n- View organizations in Sentry\n- Find an organization's slug to aid other tool requests\n- Search for specific organizations by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
155
+ "requiredScopes": ["org:read"]
156
+ },
157
+ {
158
+ "name": "find_projects",
159
+ "description": "Find projects in Sentry.\n\nUse this tool when you need to:\n- View projects in a Sentry organization\n- Find a project's slug to aid other tool requests\n- Search for specific projects by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
160
+ "requiredScopes": ["project:read"]
161
+ },
162
+ {
163
+ "name": "find_teams",
164
+ "description": "Find teams in an organization in Sentry.\n\nUse this tool when you need to:\n- View teams in a Sentry organization\n- Find a team's slug to aid other tool requests\n- Search for specific teams by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
165
+ "requiredScopes": ["team:read"]
166
+ },
167
+ {
168
+ "name": "get_issue_details",
169
+ "description": "Get detailed information about a specific Sentry issue by ID.\n\nUSE THIS TOOL WHEN USERS:\n- Provide a specific issue ID (e.g., 'CLOUDFLARE-MCP-41', 'PROJECT-123')\n- Ask to 'explain [ISSUE-ID]', 'tell me about [ISSUE-ID]'\n- Want details/stacktrace/analysis for a known issue\n- Provide a Sentry issue URL\n\nDO NOT USE for:\n- General searching or listing issues (use search_issues)\n- Root cause analysis (use analyze_issue_with_seer)\n\nTRIGGER PATTERNS:\n- 'Explain ISSUE-123' → use get_issue_details\n- 'Tell me about PROJECT-456' → use get_issue_details\n- 'What happened in [issue URL]' → use get_issue_details\n\n<examples>\n### With Sentry URL (recommended - simplest approach)\n```\nget_issue_details(issueUrl='https://sentry.sentry.io/issues/6916805731/?project=4509062593708032&query=is%3Aunresolved')\n```\n\n### With issue ID and organization\n```\nget_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\n```\n\n### With event ID and organization\n```\nget_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\n```\n</examples>\n\n<hints>\n- **IMPORTANT**: If user provides a Sentry URL, pass the ENTIRE URL to issueUrl parameter unchanged\n- When using issueUrl, all other parameters are automatically extracted - don't provide them separately\n- If using issueId (not URL), then organizationSlug is required\n</hints>",
170
+ "requiredScopes": ["event:read"]
171
+ },
172
+ {
173
+ "name": "search_events",
174
+ "description": "Search for events AND perform counts/aggregations - the ONLY tool for statistics and counts.\n\nSupports TWO query types:\n1. AGGREGATIONS (counts, sums, averages): 'how many errors', 'count of issues', 'total tokens'\n2. Individual events with timestamps: 'show me error logs from last hour'\n\nUSE THIS FOR ALL COUNTS/STATISTICS:\n- 'how many errors today' → returns count\n- 'count of database failures' → returns count\n- 'total number of issues' → returns count\n- 'average response time' → returns avg()\n- 'sum of tokens used' → returns sum()\n\nALSO USE FOR INDIVIDUAL EVENTS:\n- 'error logs from last hour' → returns event list\n- 'database errors with timestamps' → returns event list\n- 'trace spans for slow API calls' → returns span list\n\nDataset Selection (AI automatically chooses):\n- errors: Exception/crash events\n- logs: Log entries\n- spans: Performance data, AI/LLM calls, token usage\n\nDO NOT USE for grouped issue lists → use search_issues\n\n<examples>\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='how many errors today')\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='count of database failures this week')\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='total tokens used by model')\nsearch_events(organizationSlug='my-org', naturalLanguageQuery='error logs from the last hour')\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.\n- Parse org/project notation directly without calling find_organizations or find_projects.\n</hints>",
175
+ "requiredScopes": ["event:read"]
176
+ },
177
+ {
178
+ "name": "search_issues",
179
+ "description": "Search for grouped issues/problems in Sentry - returns a LIST of issues, NOT counts or aggregations.\n\nUses AI to translate natural language queries into Sentry issue search syntax.\nReturns grouped issues with metadata like title, status, and user count.\n\nUSE THIS TOOL WHEN USERS WANT:\n- A LIST of issues: 'show me issues', 'what problems do we have'\n- Filtered issue lists: 'unresolved issues', 'critical bugs'\n- Issues by impact: 'errors affecting more than 100 users'\n- Issues by assignment: 'issues assigned to me'\n\nDO NOT USE FOR COUNTS/AGGREGATIONS:\n- 'how many errors' → use search_events\n- 'count of issues' → use search_events\n- 'total number of errors today' → use search_events\n- 'sum/average/statistics' → use search_events\n\nALSO DO NOT USE FOR:\n- Individual error events with timestamps → use search_events\n- Details about a specific issue ID → use get_issue_details\n\nREMEMBER: This tool returns a LIST of issues, not counts or statistics!\n\n<examples>\nsearch_issues(organizationSlug='my-org', naturalLanguageQuery='critical bugs from last week')\nsearch_issues(organizationSlug='my-org', naturalLanguageQuery='unhandled errors affecting 100+ users')\nsearch_issues(organizationSlug='my-org', naturalLanguageQuery='issues assigned to me')\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlugOrId>.\n- Parse org/project notation directly without calling find_organizations or find_projects.\n- The projectSlugOrId parameter accepts both project slugs (e.g., 'my-project') and numeric IDs (e.g., '123456').\n</hints>",
180
+ "requiredScopes": ["event:read"]
181
+ },
182
+ {
183
+ "name": "update_issue",
184
+ "description": "Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.\n\nUse this tool when you need to:\n- Resolve an issue that has been fixed\n- Assign an issue to a team member or team for investigation\n- Mark an issue as ignored to reduce noise\n- Reopen a resolved issue by setting status to 'unresolved'\n\n<examples>\n### Resolve an issue\n\n```\nupdate_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved')\n```\n\n### Assign an issue to a user (use whoami to get your user ID)\n\n```\nupdate_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='user:123456')\n```\n\n### Assign an issue to a team\n\n```\nupdate_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='team:789')\n```\n\n### Mark an issue as ignored\n\n```\nupdate_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='ignored')\n```\n\n</examples>\n\n<hints>\n- If the user provides the `issueUrl`, you can ignore the other required parameters and extract them from the URL.\n- At least one of `status` or `assignedTo` must be provided to update the issue.\n- assignedTo format: Use 'user:ID' for users (e.g., 'user:123456') or 'team:ID' for teams (e.g., 'team:789')\n- To find your user ID, first use the whoami tool which returns your numeric user ID\n- Valid status values are: 'resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'.\n</hints>",
185
+ "requiredScopes": ["event:write"]
186
+ },
187
+ {
188
+ "name": "whoami",
189
+ "description": "Identify the authenticated user in Sentry.\n\nUse this tool when you need to:\n- Get the user's name and email address.",
190
+ "requiredScopes": []
191
+ }
192
+ ]
35
193
  },
36
194
  {
37
195
  "id": "project-management",
@@ -39,7 +197,54 @@ var skillDefinitions_default$1 = [
39
197
  "description": "Create and modify projects, teams, and DSNs",
40
198
  "defaultEnabled": false,
41
199
  "order": 5,
42
- "toolCount": 9
200
+ "toolCount": 9,
201
+ "tools": [
202
+ {
203
+ "name": "create_dsn",
204
+ "description": "Create an additional DSN for an EXISTING project.\n\nUSE THIS TOOL WHEN:\n- Project already exists and needs additional DSN\n- 'Create another DSN for project X'\n- 'I need a production DSN for existing project'\n\nDO NOT USE for new projects (use create_project instead)\n\nBe careful when using this tool!\n\n<examples>\n### Create additional DSN for existing project\n```\ncreate_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Production')\n```\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\n- If any parameter is ambiguous, you should clarify with the user what they meant.\n</hints>",
205
+ "requiredScopes": ["project:write"]
206
+ },
207
+ {
208
+ "name": "create_project",
209
+ "description": "Create a new project in Sentry (includes DSN automatically).\n\nUSE THIS TOOL WHEN USERS WANT TO:\n- 'Create a new project'\n- 'Set up a project for [app/service] with team [X]'\n- 'I need a new Sentry project'\n- Create project AND need DSN in one step\n\nDO NOT USE create_dsn after this - DSN is included in output.\n\nBe careful when using this tool!\n\n<examples>\n### Create new project with team\n```\ncreate_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\n```\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\n- If any parameter is ambiguous, you should clarify with the user what they meant.\n</hints>",
210
+ "requiredScopes": ["project:write", "team:read"]
211
+ },
212
+ {
213
+ "name": "create_team",
214
+ "description": "Create a new team in Sentry.\n\nUSE THIS TOOL WHEN USERS WANT TO:\n- 'Create a new team'\n- 'Set up a team called [X]'\n- 'I need a team for my project'\n\nBe careful when using this tool!\n\n<examples>\n### Create a new team\n```\ncreate_team(organizationSlug='my-organization', name='the-goats')\n```\n</examples>\n\n<hints>\n- If any parameter is ambiguous, you should clarify with the user what they meant.\n</hints>",
215
+ "requiredScopes": ["team:write"]
216
+ },
217
+ {
218
+ "name": "find_dsns",
219
+ "description": "List all Sentry DSNs for a specific project.\n\nUse this tool when you need to:\n- Retrieve a SENTRY_DSN for a specific project\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\n- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.\n</hints>",
220
+ "requiredScopes": ["project:read"]
221
+ },
222
+ {
223
+ "name": "find_organizations",
224
+ "description": "Find organizations that the user has access to in Sentry.\n\nUse this tool when you need to:\n- View organizations in Sentry\n- Find an organization's slug to aid other tool requests\n- Search for specific organizations by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
225
+ "requiredScopes": ["org:read"]
226
+ },
227
+ {
228
+ "name": "find_projects",
229
+ "description": "Find projects in Sentry.\n\nUse this tool when you need to:\n- View projects in a Sentry organization\n- Find a project's slug to aid other tool requests\n- Search for specific projects by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
230
+ "requiredScopes": ["project:read"]
231
+ },
232
+ {
233
+ "name": "find_teams",
234
+ "description": "Find teams in an organization in Sentry.\n\nUse this tool when you need to:\n- View teams in a Sentry organization\n- Find a team's slug to aid other tool requests\n- Search for specific teams by name or slug\n\nReturns up to 25 results. If you hit this limit, use the query parameter to narrow down results.",
235
+ "requiredScopes": ["team:read"]
236
+ },
237
+ {
238
+ "name": "update_project",
239
+ "description": "Update project settings in Sentry, such as name, slug, platform, and team assignment.\n\nBe careful when using this tool!\n\nUse this tool when you need to:\n- Update a project's name or slug to fix onboarding mistakes\n- Change the platform assigned to a project\n- Update team assignment for a project\n\n<examples>\n### Update a project's name and slug\n\n```\nupdate_project(organizationSlug='my-organization', projectSlug='old-project', name='New Project Name', slug='new-project-slug')\n```\n\n### Assign a project to a different team\n\n```\nupdate_project(organizationSlug='my-organization', projectSlug='my-project', teamSlug='backend-team')\n```\n\n### Update platform\n\n```\nupdate_project(organizationSlug='my-organization', projectSlug='my-project', platform='python')\n```\n\n</examples>\n\n<hints>\n- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.\n- Team assignment is handled separately from other project settings\n- If any parameter is ambiguous, you should clarify with the user what they meant.\n- When updating the slug, the project will be accessible at the new slug after the update\n</hints>",
240
+ "requiredScopes": ["project:write"]
241
+ },
242
+ {
243
+ "name": "whoami",
244
+ "description": "Identify the authenticated user in Sentry.\n\nUse this tool when you need to:\n- Get the user's name and email address.",
245
+ "requiredScopes": []
246
+ }
247
+ ]
43
248
  }
44
249
  ];
45
250