@sentry/mcp-server 0.13.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.
- package/README.md +15 -2
- package/dist/{analyze-issue-with-seer-Dk0ZFwN8.js → analyze-issue-with-seer-BsNarzJN.js} +2 -2
- package/dist/{analyze-issue-with-seer-Dk0ZFwN8.js.map → analyze-issue-with-seer-BsNarzJN.js.map} +1 -1
- package/dist/{analyze-issue-with-seer-Bq3kefOr.cjs → analyze-issue-with-seer-DbAWpyTC.cjs} +2 -2
- package/dist/{analyze-issue-with-seer-Bq3kefOr.cjs.map → analyze-issue-with-seer-DbAWpyTC.cjs.map} +1 -1
- package/dist/api-client/client.cjs +1 -1
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +1 -1
- package/dist/api-client/index.cjs +1 -1
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{api-utils-BcB1cMXS.js → api-utils-C6QJAzFL.js} +4 -4
- package/dist/api-utils-C6QJAzFL.js.map +1 -0
- package/dist/{api-utils-BJS0CChW.cjs → api-utils-d36iteNO.cjs} +4 -4
- package/dist/api-utils-d36iteNO.cjs.map +1 -0
- package/dist/{client-qyEu8fvj.d.ts → client-BCN17Wbp.d.ts} +18 -20
- package/dist/client-BCN17Wbp.d.ts.map +1 -0
- package/dist/{client-Dae1ZwWb.d.cts → client-CILwfx6G.d.cts} +20 -22
- package/dist/client-CILwfx6G.d.cts.map +1 -0
- package/dist/{client-BbamPqV4.js → client-DOYWNvVM.js} +21 -12
- package/dist/client-DOYWNvVM.js.map +1 -0
- package/dist/{client-BNTsOycD.cjs → client-Dkw5iYu3.cjs} +21 -12
- package/dist/client-Dkw5iYu3.cjs.map +1 -0
- package/dist/{create-dsn-B3L8iWno.js → create-dsn-CDcL2DLD.js} +2 -2
- package/dist/{create-dsn-B3L8iWno.js.map → create-dsn-CDcL2DLD.js.map} +1 -1
- package/dist/{create-dsn-CVPtt_Es.cjs → create-dsn-fESUtX3R.cjs} +2 -2
- package/dist/{create-dsn-CVPtt_Es.cjs.map → create-dsn-fESUtX3R.cjs.map} +1 -1
- package/dist/{create-project-B_6a6okf.cjs → create-project-Bg5uDkc4.cjs} +2 -2
- package/dist/{create-project-B_6a6okf.cjs.map → create-project-Bg5uDkc4.cjs.map} +1 -1
- package/dist/{create-project-DdIXMvWI.js → create-project-DY5mFznV.js} +2 -2
- package/dist/{create-project-DdIXMvWI.js.map → create-project-DY5mFznV.js.map} +1 -1
- package/dist/{create-team-C1DP5Z1r.cjs → create-team-5purh64V.cjs} +2 -2
- package/dist/{create-team-C1DP5Z1r.cjs.map → create-team-5purh64V.cjs.map} +1 -1
- package/dist/{create-team-BarRdaZK.js → create-team-C2R7EUC3.js} +2 -2
- package/dist/{create-team-BarRdaZK.js.map → create-team-C2R7EUC3.js.map} +1 -1
- package/dist/{fetch-utils-B-a92ObC.d.ts → fetch-utils-Bv9WjUp0.d.ts} +1 -1
- package/dist/fetch-utils-Bv9WjUp0.d.ts.map +1 -0
- package/dist/{find-dsns-BPbblgrn.js → find-dsns-CvfcLB9Z.js} +2 -2
- package/dist/{find-dsns-BPbblgrn.js.map → find-dsns-CvfcLB9Z.js.map} +1 -1
- package/dist/{find-dsns-BDJWY6nZ.cjs → find-dsns-ZZ-thiNk.cjs} +2 -2
- package/dist/{find-dsns-BDJWY6nZ.cjs.map → find-dsns-ZZ-thiNk.cjs.map} +1 -1
- package/dist/{find-errors-B9wLxXA0.js → find-errors-CuRm4PzL.js} +2 -2
- package/dist/{find-errors-B9wLxXA0.js.map → find-errors-CuRm4PzL.js.map} +1 -1
- package/dist/{find-errors-DnFs3PaH.cjs → find-errors-Drzv7hzM.cjs} +2 -2
- package/dist/{find-errors-DnFs3PaH.cjs.map → find-errors-Drzv7hzM.cjs.map} +1 -1
- package/dist/{find-issues-CwPbwRXK.cjs → find-issues-C3uk59rn.cjs} +2 -2
- package/dist/{find-issues-CwPbwRXK.cjs.map → find-issues-C3uk59rn.cjs.map} +1 -1
- package/dist/{find-issues-BI1tI3cJ.js → find-issues-CAtNGBly.js} +2 -2
- package/dist/{find-issues-BI1tI3cJ.js.map → find-issues-CAtNGBly.js.map} +1 -1
- package/dist/{find-organizations-DqS6zoTK.cjs → find-organizations-BrdMfZRO.cjs} +2 -2
- package/dist/{find-organizations-DqS6zoTK.cjs.map → find-organizations-BrdMfZRO.cjs.map} +1 -1
- package/dist/{find-organizations-CdiouW48.js → find-organizations-ojXwWWzk.js} +2 -2
- package/dist/{find-organizations-CdiouW48.js.map → find-organizations-ojXwWWzk.js.map} +1 -1
- package/dist/{find-projects-Ba6cdX7n.cjs → find-projects-BZWhlYJh.cjs} +2 -2
- package/dist/{find-projects-Ba6cdX7n.cjs.map → find-projects-BZWhlYJh.cjs.map} +1 -1
- package/dist/{find-projects-Ccfxv47h.js → find-projects-fcLG4KpT.js} +2 -2
- package/dist/{find-projects-Ccfxv47h.js.map → find-projects-fcLG4KpT.js.map} +1 -1
- package/dist/{find-releases-CFoGytN-.js → find-releases-BUozr0Z-.js} +2 -2
- package/dist/{find-releases-CFoGytN-.js.map → find-releases-BUozr0Z-.js.map} +1 -1
- package/dist/{find-releases-CFl86XMT.cjs → find-releases-CZCVEOHZ.cjs} +2 -2
- package/dist/{find-releases-CFl86XMT.cjs.map → find-releases-CZCVEOHZ.cjs.map} +1 -1
- package/dist/{find-tags-h2o0BKWO.cjs → find-tags-Byk4d3oZ.cjs} +2 -2
- package/dist/{find-tags-h2o0BKWO.cjs.map → find-tags-Byk4d3oZ.cjs.map} +1 -1
- package/dist/{find-tags-ORtYLH5b.js → find-tags-d-wF1Se8.js} +2 -2
- package/dist/{find-tags-ORtYLH5b.js.map → find-tags-d-wF1Se8.js.map} +1 -1
- package/dist/{find-teams-hreVp1nw.js → find-teams-BZ118EIK.js} +2 -2
- package/dist/{find-teams-hreVp1nw.js.map → find-teams-BZ118EIK.js.map} +1 -1
- package/dist/{find-teams-DUcDfSOl.cjs → find-teams-CnU5x9rQ.cjs} +2 -2
- package/dist/{find-teams-DUcDfSOl.cjs.map → find-teams-CnU5x9rQ.cjs.map} +1 -1
- package/dist/{find-transactions-BkPscam3.cjs → find-transactions-DIJ80wkd.cjs} +2 -2
- package/dist/{find-transactions-BkPscam3.cjs.map → find-transactions-DIJ80wkd.cjs.map} +1 -1
- package/dist/{find-transactions-BehUqQYs.js → find-transactions-DZCj81jP.js} +2 -2
- package/dist/{find-transactions-BehUqQYs.js.map → find-transactions-DZCj81jP.js.map} +1 -1
- package/dist/{formatting-Di1X9Jn3.d.cts → formatting-CHh9Q_OW.d.cts} +4 -4
- package/dist/{formatting-Di1X9Jn3.d.cts.map → formatting-CHh9Q_OW.d.cts.map} +1 -1
- package/dist/{formatting-B-u5CbYn.d.ts → formatting-kdIeURER.d.ts} +4 -4
- package/dist/{formatting-B-u5CbYn.d.ts.map → formatting-kdIeURER.d.ts.map} +1 -1
- package/dist/{get-doc-AuAW_qr9.cjs → get-doc-DaTCenOE.cjs} +2 -2
- package/dist/{get-doc-AuAW_qr9.cjs.map → get-doc-DaTCenOE.cjs.map} +1 -1
- package/dist/{get-doc-BtxZOy7y.js → get-doc-YTiQznr1.js} +2 -2
- package/dist/{get-doc-BtxZOy7y.js.map → get-doc-YTiQznr1.js.map} +1 -1
- package/dist/{get-event-attachment-Bq5lkaKV.cjs → get-event-attachment-ChRw3jlQ.cjs} +2 -2
- package/dist/{get-event-attachment-Bq5lkaKV.cjs.map → get-event-attachment-ChRw3jlQ.cjs.map} +1 -1
- package/dist/{get-event-attachment-DwAl54zv.js → get-event-attachment-CuU-_5T6.js} +2 -2
- package/dist/{get-event-attachment-DwAl54zv.js.map → get-event-attachment-CuU-_5T6.js.map} +1 -1
- package/dist/{get-issue-details-DrpD5LlK.js → get-issue-details-CxChU4U9.js} +2 -2
- package/dist/{get-issue-details-DrpD5LlK.js.map → get-issue-details-CxChU4U9.js.map} +1 -1
- package/dist/{get-issue-details-qGwu18JX.cjs → get-issue-details-DFwZRbmU.cjs} +2 -2
- package/dist/{get-issue-details-qGwu18JX.cjs.map → get-issue-details-DFwZRbmU.cjs.map} +1 -1
- package/dist/index.cjs +48 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +48 -37
- package/dist/index.js.map +1 -1
- package/dist/internal/fetch-utils.d.ts +1 -1
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +5 -5
- package/dist/internal/issue-helpers.d.ts +1 -1
- package/dist/internal/test-fixtures.d.cts +62 -62
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +146 -146
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/{issue-helpers-BOn4g7rx.d.ts → issue-helpers-BJffpNoO.d.ts} +1 -1
- package/dist/{issue-helpers-BOn4g7rx.d.ts.map → issue-helpers-BJffpNoO.d.ts.map} +1 -1
- package/dist/{promptDefinitions-6xelipaz.d.ts → promptDefinitions-D3GTBGLr.d.ts} +1 -1
- package/dist/promptDefinitions-D3GTBGLr.d.ts.map +1 -0
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/prompts.d.cts +1 -1
- package/dist/prompts.d.ts +2 -2
- package/dist/{schema-B5BpplNK.d.ts → schema--5m4KI84.d.ts} +252 -252
- package/dist/{schema-B5BpplNK.d.ts.map → schema--5m4KI84.d.ts.map} +1 -1
- package/dist/{schema-Dt-HKnd_.d.cts → schema-ya35hkEL.d.cts} +221 -221
- package/dist/{schema-Dt-HKnd_.d.cts.map → schema-ya35hkEL.d.cts.map} +1 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/{search-docs-CrMdRDJy.js → search-docs-BLbB_GV2.js} +3 -3
- package/dist/search-docs-BLbB_GV2.js.map +1 -0
- package/dist/{search-docs-VhefTOOH.cjs → search-docs-D5Foht_0.cjs} +3 -3
- package/dist/search-docs-D5Foht_0.cjs.map +1 -0
- package/dist/{server-CHG27fcn.cjs → server-BpEIZVaZ.cjs} +3 -3
- package/dist/{server-CHG27fcn.cjs.map → server-BpEIZVaZ.cjs.map} +1 -1
- package/dist/{server-DeuBftc5.js → server-DOy-M9Ko.js} +3 -3
- package/dist/{server-DeuBftc5.js.map → server-DOy-M9Ko.js.map} +1 -1
- package/dist/server.cjs +24 -24
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +24 -24
- package/dist/{stdio-DIuLW5EE.js → stdio-B2NDq7Ax.js} +3 -3
- package/dist/{stdio-DIuLW5EE.js.map → stdio-B2NDq7Ax.js.map} +1 -1
- package/dist/{stdio-BtVdTwx-.cjs → stdio-DMEgJ_fG.cjs} +3 -3
- package/dist/{stdio-BtVdTwx-.cjs.map → stdio-DMEgJ_fG.cjs.map} +1 -1
- package/dist/tools/analyze-issue-with-seer.cjs +3 -3
- package/dist/tools/analyze-issue-with-seer.d.cts +2 -2
- package/dist/tools/analyze-issue-with-seer.d.ts +3 -3
- package/dist/tools/analyze-issue-with-seer.js +3 -3
- package/dist/tools/create-dsn.cjs +3 -3
- package/dist/tools/create-dsn.d.cts +2 -2
- package/dist/tools/create-dsn.d.ts +3 -3
- package/dist/tools/create-dsn.js +3 -3
- package/dist/tools/create-project.cjs +3 -3
- package/dist/tools/create-project.d.cts +2 -2
- package/dist/tools/create-project.d.ts +3 -3
- package/dist/tools/create-project.js +3 -3
- package/dist/tools/create-team.cjs +3 -3
- package/dist/tools/create-team.d.cts +2 -2
- package/dist/tools/create-team.d.ts +3 -3
- package/dist/tools/create-team.js +3 -3
- package/dist/tools/find-dsns.cjs +3 -3
- package/dist/tools/find-dsns.d.cts +2 -2
- package/dist/tools/find-dsns.d.ts +3 -3
- package/dist/tools/find-dsns.js +3 -3
- package/dist/tools/find-errors.cjs +3 -3
- package/dist/tools/find-errors.d.cts +2 -2
- package/dist/tools/find-errors.d.ts +3 -3
- package/dist/tools/find-errors.js +3 -3
- package/dist/tools/find-issues.cjs +3 -3
- package/dist/tools/find-issues.d.cts +2 -2
- package/dist/tools/find-issues.d.ts +3 -3
- package/dist/tools/find-issues.js +3 -3
- package/dist/tools/find-organizations.cjs +3 -3
- package/dist/tools/find-organizations.d.cts +2 -2
- package/dist/tools/find-organizations.d.ts +3 -3
- package/dist/tools/find-organizations.js +3 -3
- package/dist/tools/find-projects.cjs +3 -3
- package/dist/tools/find-projects.d.cts +2 -2
- package/dist/tools/find-projects.d.ts +3 -3
- package/dist/tools/find-projects.js +3 -3
- package/dist/tools/find-releases.cjs +3 -3
- package/dist/tools/find-releases.d.cts +2 -2
- package/dist/tools/find-releases.d.ts +3 -3
- package/dist/tools/find-releases.js +3 -3
- package/dist/tools/find-tags.cjs +3 -3
- package/dist/tools/find-tags.d.cts +2 -2
- package/dist/tools/find-tags.d.ts +3 -3
- package/dist/tools/find-tags.js +3 -3
- package/dist/tools/find-teams.cjs +3 -3
- package/dist/tools/find-teams.d.cts +2 -2
- package/dist/tools/find-teams.d.ts +3 -3
- package/dist/tools/find-teams.js +3 -3
- package/dist/tools/find-transactions.cjs +3 -3
- package/dist/tools/find-transactions.d.cts +2 -2
- package/dist/tools/find-transactions.d.ts +3 -3
- package/dist/tools/find-transactions.js +3 -3
- package/dist/tools/get-doc.cjs +2 -2
- package/dist/tools/get-doc.d.cts +2 -2
- package/dist/tools/get-doc.d.ts +3 -3
- package/dist/tools/get-doc.js +2 -2
- package/dist/tools/get-event-attachment.cjs +3 -3
- package/dist/tools/get-event-attachment.d.cts +2 -2
- package/dist/tools/get-event-attachment.d.ts +3 -3
- package/dist/tools/get-event-attachment.js +3 -3
- package/dist/tools/get-issue-details.cjs +3 -3
- package/dist/tools/get-issue-details.d.cts +2 -2
- package/dist/tools/get-issue-details.d.ts +3 -3
- package/dist/tools/get-issue-details.js +3 -3
- package/dist/tools/index.cjs +23 -23
- package/dist/tools/index.d.cts +78 -78
- package/dist/tools/index.d.ts +79 -79
- package/dist/tools/index.js +23 -23
- package/dist/tools/search-docs.cjs +2 -2
- package/dist/tools/search-docs.d.cts +2 -2
- package/dist/tools/search-docs.d.ts +3 -3
- package/dist/tools/search-docs.js +2 -2
- package/dist/tools/types.d.cts +2 -2
- package/dist/tools/types.d.ts +3 -3
- package/dist/tools/update-issue.cjs +3 -3
- package/dist/tools/update-issue.d.cts +2 -2
- package/dist/tools/update-issue.d.ts +3 -3
- package/dist/tools/update-issue.js +3 -3
- package/dist/tools/update-project.cjs +3 -3
- package/dist/tools/update-project.d.cts +2 -2
- package/dist/tools/update-project.d.ts +3 -3
- package/dist/tools/update-project.js +3 -3
- package/dist/tools/utils/api-utils.cjs +2 -2
- package/dist/tools/utils/api-utils.d.cts +5 -5
- package/dist/tools/utils/api-utils.d.ts +7 -7
- package/dist/tools/utils/api-utils.js +2 -2
- package/dist/tools/utils/defineTool.d.cts +2 -2
- package/dist/tools/utils/defineTool.d.ts +3 -3
- package/dist/tools/utils/fetch-utils.d.ts +1 -1
- package/dist/tools/utils/formatting-utils.d.cts +3 -3
- package/dist/tools/utils/formatting-utils.d.ts +4 -4
- package/dist/tools/utils/issue-utils.d.cts +4 -4
- package/dist/tools/utils/issue-utils.d.ts +6 -6
- package/dist/tools/utils/seer-utils.d.cts +3 -3
- package/dist/tools/utils/seer-utils.d.ts +4 -4
- package/dist/tools/whoami.cjs +3 -3
- package/dist/tools/whoami.d.cts +2 -2
- package/dist/tools/whoami.d.ts +3 -3
- package/dist/tools/whoami.js +3 -3
- package/dist/{tools-BiZ7ZDKf.cjs → tools-19Ms1kck.cjs} +21 -21
- package/dist/{tools-BiZ7ZDKf.cjs.map → tools-19Ms1kck.cjs.map} +1 -1
- package/dist/tools-mThAUo_3.js +48 -0
- package/dist/{tools-DGF9GhbP.js.map → tools-mThAUo_3.js.map} +1 -1
- package/dist/transports/stdio.cjs +26 -26
- package/dist/transports/stdio.d.cts +1 -1
- package/dist/transports/stdio.d.ts +2 -2
- package/dist/transports/stdio.js +26 -26
- package/dist/{types-C3pRFQyA.d.cts → types-Bg17IGWJ.d.cts} +2 -2
- package/dist/{types-C3pRFQyA.d.cts.map → types-Bg17IGWJ.d.cts.map} +1 -1
- package/dist/{types-CYjev2Ep.d.cts → types-CUN-2OSS.d.cts} +3 -3
- package/dist/{types-CYjev2Ep.d.cts.map → types-CUN-2OSS.d.cts.map} +1 -1
- package/dist/{types-Br0saqtE.d.ts → types-CtTBwGbw.d.ts} +2 -2
- package/dist/{types-Br0saqtE.d.ts.map → types-CtTBwGbw.d.ts.map} +1 -1
- package/dist/{types-CZaMk5Yg.d.cts → types-D_mx318Q.d.cts} +2 -2
- package/dist/{types-CZaMk5Yg.d.cts.map → types-D_mx318Q.d.cts.map} +1 -1
- package/dist/{types-B2qOfefC.d.ts → types-DkJtNDXU.d.ts} +4 -4
- package/dist/{types-B2qOfefC.d.ts.map → types-DkJtNDXU.d.ts.map} +1 -1
- package/dist/{types-D5KkaSjc.d.ts → types-qB8a4WQT.d.ts} +2 -2
- package/dist/{types-D5KkaSjc.d.ts.map → types-qB8a4WQT.d.ts.map} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{update-issue-Bz-u_Yaa.cjs → update-issue-B6eZhAPJ.cjs} +2 -2
- package/dist/{update-issue-Bz-u_Yaa.cjs.map → update-issue-B6eZhAPJ.cjs.map} +1 -1
- package/dist/{update-issue-DN80uuKU.js → update-issue-DmLElHPS.js} +2 -2
- package/dist/{update-issue-DN80uuKU.js.map → update-issue-DmLElHPS.js.map} +1 -1
- package/dist/{update-project-5j-SOHWU.js → update-project-BNPev7W8.js} +2 -2
- package/dist/{update-project-5j-SOHWU.js.map → update-project-BNPev7W8.js.map} +1 -1
- package/dist/{update-project-C7Xbmhqg.cjs → update-project-CijYCtG1.cjs} +2 -2
- package/dist/{update-project-C7Xbmhqg.cjs.map → update-project-CijYCtG1.cjs.map} +1 -1
- package/dist/url-utils-C9hykWmk.cjs +106 -0
- package/dist/url-utils-C9hykWmk.cjs.map +1 -0
- package/dist/url-utils-DvZYfzPM.js +82 -0
- package/dist/url-utils-DvZYfzPM.js.map +1 -0
- package/dist/utils/url-utils.cjs +6 -0
- package/dist/utils/url-utils.d.cts +37 -0
- package/dist/utils/url-utils.d.cts.map +1 -0
- package/dist/utils/url-utils.d.ts +37 -0
- package/dist/utils/url-utils.d.ts.map +1 -0
- package/dist/utils/url-utils.js +3 -0
- package/dist/version-C4uvMmw0.js +6 -0
- package/dist/{version-DvMKCu-i.js.map → version-C4uvMmw0.js.map} +1 -1
- package/dist/{version-Dyz6_b54.cjs → version-Ddz4xg_q.cjs} +2 -2
- package/dist/{version-Dyz6_b54.cjs.map → version-Ddz4xg_q.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-qIbcECMA.cjs → whoami-CEgbTUqt.cjs} +2 -2
- package/dist/{whoami-qIbcECMA.cjs.map → whoami-CEgbTUqt.cjs.map} +1 -1
- package/dist/{whoami-raA70UBD.js → whoami-DesNZnaQ.js} +2 -2
- package/dist/{whoami-raA70UBD.js.map → whoami-DesNZnaQ.js.map} +1 -1
- package/package.json +3 -3
- package/dist/api-utils-BJS0CChW.cjs.map +0 -1
- package/dist/api-utils-BcB1cMXS.js.map +0 -1
- package/dist/client-BNTsOycD.cjs.map +0 -1
- package/dist/client-BbamPqV4.js.map +0 -1
- package/dist/client-Dae1ZwWb.d.cts.map +0 -1
- package/dist/client-qyEu8fvj.d.ts.map +0 -1
- package/dist/fetch-utils-B-a92ObC.d.ts.map +0 -1
- package/dist/promptDefinitions-6xelipaz.d.ts.map +0 -1
- package/dist/search-docs-CrMdRDJy.js.map +0 -1
- package/dist/search-docs-VhefTOOH.cjs.map +0 -1
- package/dist/tools-DGF9GhbP.js +0 -48
- package/dist/version-DvMKCu-i.js +0 -6
- /package/dist/{index-BrojxuhJ.d.ts → index-DVGDAddE.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-tags-
|
|
1
|
+
{"version":3,"file":"find-tags-d-wF1Se8.js","names":["context: ServerContext"],"sources":["../src/tools/find-tags.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"find_tags\",\n description: [\n \"Find tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n\n const tagList = await apiService.listTags({ organizationSlug }, {});\n let output = `# Tags in **${organizationSlug}**\\n\\n`;\n if (tagList.length === 0) {\n output += \"No tags found.\\n\";\n return output;\n }\n output += tagList.map((tag) => [`- ${tag.key}`].join(\"\\n\")).join(\"\\n\");\n output += \"\\n\\n\";\n output += \"# Using this information\\n\\n\";\n output += `- You can reference tags in the \\`query\\` parameter of various tools: \\`tagName:tagValue\\`.\\n`;\n return output;\n },\n});\n"],"mappings":";;;;;;AAOA,wBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;CACrC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,UAAU,MAAM,WAAW,SAAS,EAAE,iBAAkB,GAAE,CAAE,EAAC;EACnE,IAAI,UAAU,cAAc,iBAAiB;AAC7C,MAAI,QAAQ,WAAW,GAAG;AACxB,aAAU;AACV,UAAO;EACR;AACD,YAAU,QAAQ,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,KAAM,EAAC,KAAK,KAAK,CAAC,CAAC,KAAK,KAAK;AACtE,YAAU;AACV,YAAU;AACV,aAAW;AACX,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-CIoxzIug.js";
|
|
2
2
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
3
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
3
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
4
4
|
import { ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
5
5
|
import { setTag } from "@sentry/core";
|
|
6
6
|
|
|
@@ -36,4 +36,4 @@ var find_teams_default = defineTool({
|
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
38
|
export { find_teams_default };
|
|
39
|
-
//# sourceMappingURL=find-teams-
|
|
39
|
+
//# sourceMappingURL=find-teams-BZ118EIK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-teams-
|
|
1
|
+
{"version":3,"file":"find-teams-BZ118EIK.js","names":["context: ServerContext"],"sources":["../src/tools/find-teams.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"find_teams\",\n description: [\n \"Find teams in an organization in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all teams in a Sentry organization\",\n \"- Find a team's slug to aid other tool requests\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Organization slug is required. Please provide an organizationSlug parameter.\",\n );\n }\n\n setTag(\"organization.slug\", organizationSlug);\n\n const teams = await apiService.listTeams(organizationSlug);\n let output = `# Teams in **${organizationSlug}**\\n\\n`;\n if (teams.length === 0) {\n output += \"No teams found.\\n\";\n return output;\n }\n output += teams.map((team) => `- ${team.slug}\\n`).join(\"\");\n return output;\n },\n});\n"],"mappings":";;;;;;;AAQA,yBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;CACrC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,OAAK,iBACH,OAAM,IAAI,eACR;AAIJ,SAAO,qBAAqB,iBAAiB;EAE7C,MAAM,QAAQ,MAAM,WAAW,UAAU,iBAAiB;EAC1D,IAAI,UAAU,eAAe,iBAAiB;AAC9C,MAAI,MAAM,WAAW,GAAG;AACtB,aAAU;AACV,UAAO;EACR;AACD,YAAU,MAAM,IAAI,CAAC,UAAU,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,GAAG;AAC1D,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_errors = require('./errors-YmiXLOyx.cjs');
|
|
3
3
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
4
|
-
const require_api_utils = require('./api-utils-
|
|
4
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
5
5
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
6
6
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
7
7
|
|
|
@@ -42,4 +42,4 @@ Object.defineProperty(exports, 'find_teams_default', {
|
|
|
42
42
|
return find_teams_default;
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
//# sourceMappingURL=find-teams-
|
|
45
|
+
//# sourceMappingURL=find-teams-CnU5x9rQ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-teams-
|
|
1
|
+
{"version":3,"file":"find-teams-CnU5x9rQ.cjs","names":["ParamOrganizationSlug","context: ServerContext","UserInputError"],"sources":["../src/tools/find-teams.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport { ParamOrganizationSlug, ParamRegionUrl } from \"../schema\";\n\nexport default defineTool({\n name: \"find_teams\",\n description: [\n \"Find teams in an organization in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all teams in a Sentry organization\",\n \"- Find a team's slug to aid other tool requests\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Organization slug is required. Please provide an organizationSlug parameter.\",\n );\n }\n\n setTag(\"organization.slug\", organizationSlug);\n\n const teams = await apiService.listTeams(organizationSlug);\n let output = `# Teams in **${organizationSlug}**\\n\\n`;\n if (teams.length === 0) {\n output += \"No teams found.\\n\";\n return output;\n }\n output += teams.map((team) => `- ${team.slug}\\n`).join(\"\");\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAQA,yBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;CACrC;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,OAAK,iBACH,OAAM,IAAIC,8BACR;AAIJ,4BAAO,qBAAqB,iBAAiB;EAE7C,MAAM,QAAQ,MAAM,WAAW,UAAU,iBAAiB;EAC1D,IAAI,UAAU,eAAe,iBAAiB;AAC9C,MAAI,MAAM,WAAW,GAAG;AACtB,aAAU;AACV,UAAO;EACR;AACD,YAAU,MAAM,IAAI,CAAC,UAAU,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,GAAG;AAC1D,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
5
|
const zod = require_chunk.__toESM(require("zod"));
|
|
6
6
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
@@ -86,4 +86,4 @@ Object.defineProperty(exports, 'find_transactions_default', {
|
|
|
86
86
|
return find_transactions_default;
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
|
-
//# sourceMappingURL=find-transactions-
|
|
89
|
+
//# sourceMappingURL=find-transactions-DIJ80wkd.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-transactions-
|
|
1
|
+
{"version":3,"file":"find-transactions-DIJ80wkd.cjs","names":["ParamOrganizationSlug","context: ServerContext"],"sources":["../src/tools/find-transactions.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlugOrAll,\n ParamTransaction,\n ParamQuery,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_transactions\",\n description: [\n \"Find transactions in Sentry using advanced search syntax.\",\n \"\",\n \"Transactions are segments of traces that are associated with a specific route or endpoint.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production transaction data to understand performance.\",\n \"- Analyze traces and latency patterns.\",\n \"- Find examples of recent requests to endpoints.\",\n \"\",\n \"<examples>\",\n \"### Find slow requests to a route\",\n \"\",\n \"...\",\n \"\",\n \"```\",\n \"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='duration')\",\n \"```\",\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 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 \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"timestamp\", \"duration\"])\n .optional()\n .default(\"timestamp\")\n .describe(\n \"Sort the results either by the timestamp of the request (most recent first) or the duration of the request (longest first).\",\n ),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n if (params.projectSlug) setTag(\"project.slug\", params.projectSlug);\n\n const eventList = await apiService.searchSpans({\n organizationSlug,\n projectSlug: params.projectSlug,\n transaction: params.transaction,\n query: params.query,\n sortBy: params.sortBy as \"timestamp\" | \"duration\" | undefined,\n });\n let output = `# Transactions in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : \"\"}**\\n\\n`;\n if (params.query)\n output += `These spans match the query \\`${params.query}\\`\\n`;\n if (params.transaction)\n output += `These spans are limited to the transaction \\`${params.transaction}\\`\\n`;\n output += \"\\n\";\n if (eventList.length === 0) {\n output += `No results found\\n\\n`;\n output += `We searched within the ${organizationSlug} organization.\\n\\n`;\n return output;\n }\n for (const eventSummary of eventList) {\n output += `## \\`${eventSummary.transaction}\\`\\n\\n`;\n output += `**Span ID**: ${eventSummary.id}\\n`;\n output += `**Trace ID**: ${eventSummary.trace}\\n`;\n output += `**Span Operation**: ${eventSummary[\"span.op\"]}\\n`;\n output += `**Span Description**: ${eventSummary[\"span.description\"]}\\n`;\n output += `**Duration**: ${eventSummary[\"span.duration\"]}\\n`;\n output += `**Timestamp**: ${eventSummary.timestamp}\\n`;\n output += `**Project**: ${eventSummary.project}\\n`;\n output += `**URL**: ${apiService.getTraceUrl(organizationSlug, eventSummary.trace)}\\n\\n`;\n }\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAaA,gCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkBA;EAClB,WAAW,8BAAe,UAAU;EACpC,aAAa,qCAAsB,UAAU;EAC7C,aAAa,gCAAiB,UAAU;EACxC,OAAO,0BAAW,UAAU;EAC5B,QAAQ,MACL,KAAK,CAAC,aAAa,UAAW,EAAC,CAC/B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,8HACD;CACJ;CACD,MAAM,QAAQ,QAAQC,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,4BAAO,qBAAqB,iBAAiB;AAC7C,MAAI,OAAO,YAAa,2BAAO,gBAAgB,OAAO,YAAY;EAElE,MAAM,YAAY,MAAM,WAAW,YAAY;GAC7C;GACA,aAAa,OAAO;GACpB,aAAa,OAAO;GACpB,OAAO,OAAO;GACd,QAAQ,OAAO;EAChB,EAAC;EACF,IAAI,UAAU,sBAAsB,mBAAmB,OAAO,eAAe,GAAG,OAAO,gBAAgB,GAAG;AAC1G,MAAI,OAAO,MACT,YAAW,gCAAgC,OAAO,MAAM;AAC1D,MAAI,OAAO,YACT,YAAW,+CAA+C,OAAO,YAAY;AAC/E,YAAU;AACV,MAAI,UAAU,WAAW,GAAG;AAC1B,cAAW;AACX,cAAW,yBAAyB,iBAAiB;AACrD,UAAO;EACR;AACD,OAAK,MAAM,gBAAgB,WAAW;AACpC,cAAW,OAAO,aAAa,YAAY;AAC3C,cAAW,eAAe,aAAa,GAAG;AAC1C,cAAW,gBAAgB,aAAa,MAAM;AAC9C,cAAW,sBAAsB,aAAa,WAAW;AACzD,cAAW,wBAAwB,aAAa,oBAAoB;AACpE,cAAW,gBAAgB,aAAa,iBAAiB;AACzD,cAAW,iBAAiB,aAAa,UAAU;AACnD,cAAW,eAAe,aAAa,QAAQ;AAC/C,cAAW,WAAW,WAAW,YAAY,kBAAkB,aAAa,MAAM,CAAC;EACpF;AACD,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
3
|
import { ParamOrganizationSlug, ParamProjectSlugOrAll, ParamQuery, ParamRegionUrl, ParamTransaction } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { setTag } from "@sentry/core";
|
|
@@ -80,4 +80,4 @@ var find_transactions_default = defineTool({
|
|
|
80
80
|
|
|
81
81
|
//#endregion
|
|
82
82
|
export { find_transactions_default };
|
|
83
|
-
//# sourceMappingURL=find-transactions-
|
|
83
|
+
//# sourceMappingURL=find-transactions-DZCj81jP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-transactions-
|
|
1
|
+
{"version":3,"file":"find-transactions-DZCj81jP.js","names":["context: ServerContext"],"sources":["../src/tools/find-transactions.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamProjectSlugOrAll,\n ParamTransaction,\n ParamQuery,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"find_transactions\",\n description: [\n \"Find transactions in Sentry using advanced search syntax.\",\n \"\",\n \"Transactions are segments of traces that are associated with a specific route or endpoint.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production transaction data to understand performance.\",\n \"- Analyze traces and latency patterns.\",\n \"- Find examples of recent requests to endpoints.\",\n \"\",\n \"<examples>\",\n \"### Find slow requests to a route\",\n \"\",\n \"...\",\n \"\",\n \"```\",\n \"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='duration')\",\n \"```\",\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 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 \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"timestamp\", \"duration\"])\n .optional()\n .default(\"timestamp\")\n .describe(\n \"Sort the results either by the timestamp of the request (most recent first) or the duration of the request (longest first).\",\n ),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const organizationSlug = params.organizationSlug;\n\n setTag(\"organization.slug\", organizationSlug);\n if (params.projectSlug) setTag(\"project.slug\", params.projectSlug);\n\n const eventList = await apiService.searchSpans({\n organizationSlug,\n projectSlug: params.projectSlug,\n transaction: params.transaction,\n query: params.query,\n sortBy: params.sortBy as \"timestamp\" | \"duration\" | undefined,\n });\n let output = `# Transactions in **${organizationSlug}${params.projectSlug ? `/${params.projectSlug}` : \"\"}**\\n\\n`;\n if (params.query)\n output += `These spans match the query \\`${params.query}\\`\\n`;\n if (params.transaction)\n output += `These spans are limited to the transaction \\`${params.transaction}\\`\\n`;\n output += \"\\n\";\n if (eventList.length === 0) {\n output += `No results found\\n\\n`;\n output += `We searched within the ${organizationSlug} organization.\\n\\n`;\n return output;\n }\n for (const eventSummary of eventList) {\n output += `## \\`${eventSummary.transaction}\\`\\n\\n`;\n output += `**Span ID**: ${eventSummary.id}\\n`;\n output += `**Trace ID**: ${eventSummary.trace}\\n`;\n output += `**Span Operation**: ${eventSummary[\"span.op\"]}\\n`;\n output += `**Span Description**: ${eventSummary[\"span.description\"]}\\n`;\n output += `**Duration**: ${eventSummary[\"span.duration\"]}\\n`;\n output += `**Timestamp**: ${eventSummary.timestamp}\\n`;\n output += `**Project**: ${eventSummary.project}\\n`;\n output += `**URL**: ${apiService.getTraceUrl(organizationSlug, eventSummary.trace)}\\n\\n`;\n }\n return output;\n },\n});\n"],"mappings":";;;;;;;AAaA,gCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB;EAClB,WAAW,eAAe,UAAU;EACpC,aAAa,sBAAsB,UAAU;EAC7C,aAAa,iBAAiB,UAAU;EACxC,OAAO,WAAW,UAAU;EAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,UAAW,EAAC,CAC/B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,8HACD;CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,mBAAmB,OAAO;AAEhC,SAAO,qBAAqB,iBAAiB;AAC7C,MAAI,OAAO,YAAa,QAAO,gBAAgB,OAAO,YAAY;EAElE,MAAM,YAAY,MAAM,WAAW,YAAY;GAC7C;GACA,aAAa,OAAO;GACpB,aAAa,OAAO;GACpB,OAAO,OAAO;GACd,QAAQ,OAAO;EAChB,EAAC;EACF,IAAI,UAAU,sBAAsB,mBAAmB,OAAO,eAAe,GAAG,OAAO,gBAAgB,GAAG;AAC1G,MAAI,OAAO,MACT,YAAW,gCAAgC,OAAO,MAAM;AAC1D,MAAI,OAAO,YACT,YAAW,+CAA+C,OAAO,YAAY;AAC/E,YAAU;AACV,MAAI,UAAU,WAAW,GAAG;AAC1B,cAAW;AACX,cAAW,yBAAyB,iBAAiB;AACrD,UAAO;EACR;AACD,OAAK,MAAM,gBAAgB,WAAW;AACpC,cAAW,OAAO,aAAa,YAAY;AAC3C,cAAW,eAAe,aAAa,GAAG;AAC1C,cAAW,gBAAgB,aAAa,MAAM;AAC9C,cAAW,sBAAsB,aAAa,WAAW;AACzD,cAAW,wBAAwB,aAAa,oBAAoB;AACpE,cAAW,gBAAgB,aAAa,iBAAiB;AACzD,cAAW,iBAAiB,aAAa,UAAU;AACnD,cAAW,eAAe,aAAa,QAAQ;AAC/C,cAAW,WAAW,WAAW,YAAY,kBAAkB,aAAa,MAAM,CAAC;EACpF;AACD,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FrameInterface } from "./schema-
|
|
2
|
-
import { Event, Issue } from "./types-
|
|
3
|
-
import { SentryApiService } from "./client-
|
|
1
|
+
import { FrameInterface } from "./schema-ya35hkEL.cjs";
|
|
2
|
+
import { Event, Issue } from "./types-Bg17IGWJ.cjs";
|
|
3
|
+
import { SentryApiService } from "./client-CILwfx6G.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/formatting.d.ts
|
|
@@ -44,4 +44,4 @@ declare function formatIssueOutput({
|
|
|
44
44
|
//# sourceMappingURL=formatting.d.ts.map
|
|
45
45
|
//#endregion
|
|
46
46
|
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
47
|
-
//# sourceMappingURL=formatting-
|
|
47
|
+
//# sourceMappingURL=formatting-CHh9Q_OW.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting-
|
|
1
|
+
{"version":3,"file":"formatting-CHh9Q_OW.d.cts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AA+EgB;AAoEhB;AAkdA;;;;;;;AAQS,iBA/hBO,iBAAA,CA+hBP,KAAA,EA9hBA,CAAA,CAAE,KA8hBF,CAAA,OA9hBe,cA8hBf,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;AACqB;;;;;;iBA3dd,iBAAA,QAAyB;;;;;;;;iBAkdzB,iBAAA;;;;;;;SAOP;SACA;cACK"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FrameInterface } from "./schema
|
|
2
|
-
import { Event, Issue } from "./types-
|
|
3
|
-
import { SentryApiService } from "./client-
|
|
1
|
+
import { FrameInterface } from "./schema--5m4KI84.js";
|
|
2
|
+
import { Event, Issue } from "./types-CtTBwGbw.js";
|
|
3
|
+
import { SentryApiService } from "./client-BCN17Wbp.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/formatting.d.ts
|
|
@@ -44,4 +44,4 @@ declare function formatIssueOutput({
|
|
|
44
44
|
//# sourceMappingURL=formatting.d.ts.map
|
|
45
45
|
//#endregion
|
|
46
46
|
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
47
|
-
//# sourceMappingURL=formatting-
|
|
47
|
+
//# sourceMappingURL=formatting-kdIeURER.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting-
|
|
1
|
+
{"version":3,"file":"formatting-kdIeURER.d.ts","names":[],"sources":["../src/internal/formatting.ts"],"sourcesContent":[],"mappings":";;;;;;;AA+EgB;AAoEhB;AAkdA;;;;;;;AAQS,iBA/hBO,iBAAA,CA+hBP,KAAA,EA9hBA,CAAA,CAAE,KA8hBF,CAAA,OA9hBe,cA8hBf,CAAA,EAAA,UAAA,CAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EAAA,MAAA;;AACqB;;;;;;iBA3dd,iBAAA,QAAyB;;;;;;;;iBAkdzB,iBAAA;;;;;;;SAOP;SACA;cACK"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_errors = require('./errors-YmiXLOyx.cjs');
|
|
3
3
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
4
|
-
const require_client = require('./client-
|
|
4
|
+
const require_client = require('./client-Dkw5iYu3.cjs');
|
|
5
5
|
const require_fetch_utils = require('./fetch-utils-oab6uNp3.cjs');
|
|
6
6
|
const zod = require_chunk.__toESM(require("zod"));
|
|
7
7
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
@@ -83,4 +83,4 @@ Object.defineProperty(exports, 'get_doc_default', {
|
|
|
83
83
|
return get_doc_default;
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
//# sourceMappingURL=get-doc-
|
|
86
|
+
//# sourceMappingURL=get-doc-DaTCenOE.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-doc-
|
|
1
|
+
{"version":3,"file":"get-doc-DaTCenOE.cjs","names":["context: ServerContext","UserInputError","ApiError"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { fetchWithTimeout } from \"./utils/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"get_doc\",\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": \"Sentry-MCP/1.0\",\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;AAQA,sBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,EACX,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,8GACD,CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;AAC5C,4BAAO,YAAY,OAAO,KAAK;EAE/B,IAAI,UAAU;AACd,aAAW,YAAY,OAAO,KAAK;AAGnC,OAAK,OAAO,KAAK,SAAS,MAAM,CAC9B,OAAM,IAAIC,8BACR;EAKJ,MAAM,UAAU;EAGhB,MAAM,SAAS,IAAI,IAAI,OAAO,MAAM;EAGpC,MAAM,iBAAiB,CAAC,kBAAkB,mBAAoB;AAC9D,OAAK,eAAe,SAAS,OAAO,SAAS,CAC3C,OAAM,IAAIA,+BACP,0EAA0E,eAAe,KAAK,KAAK;EAIxG,MAAM,WAAW,MAAM,qCACrB,OAAO,UAAU,EACjB,EACE,SAAS;GACP,QAAQ;GACR,cAAc;EACf,EACF,GACD,KACD;AAED,OAAK,SAAS,IAAI;AAChB,OAAI,SAAS,WAAW,KAAK;AAC3B,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,WAAO;GACR;AAED,SAAM,IAAIC,yBACP,iCAAiC,SAAS,cAC3C,SAAS;EAEZ;EAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAGrC,MACE,QAAQ,MAAM,CAAC,WAAW,YAAY,IACtC,QAAQ,MAAM,CAAC,WAAW,QAAQ,EAClC;AACA,cAAW;AACX,cAAW;AACX,cAAW;AACX,UAAO;EACR;AAGD,YAAU;AACV,YAAU;AACV,YAAU;AAEV,YAAU;AACV,YACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-CIoxzIug.js";
|
|
2
2
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
3
|
-
import { ApiError } from "./client-
|
|
3
|
+
import { ApiError } from "./client-DOYWNvVM.js";
|
|
4
4
|
import { fetchWithTimeout } from "./fetch-utils-BMKjO-cc.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { setTag } from "@sentry/core";
|
|
@@ -77,4 +77,4 @@ var get_doc_default = defineTool({
|
|
|
77
77
|
|
|
78
78
|
//#endregion
|
|
79
79
|
export { get_doc_default };
|
|
80
|
-
//# sourceMappingURL=get-doc-
|
|
80
|
+
//# sourceMappingURL=get-doc-YTiQznr1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-doc-
|
|
1
|
+
{"version":3,"file":"get-doc-YTiQznr1.js","names":["context: ServerContext"],"sources":["../src/tools/get-doc.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { fetchWithTimeout } from \"./utils/fetch-utils\";\nimport { UserInputError } from \"../errors\";\nimport { ApiError } from \"../api-client/index\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"get_doc\",\n description: [\n \"Fetch the full markdown content of a Sentry documentation page.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Read the complete documentation for a specific topic\",\n \"- Get detailed implementation examples or code snippets\",\n \"- Access the full context of a documentation page\",\n \"- Extract specific sections from documentation\",\n \"\",\n \"<examples>\",\n \"### Get the Next.js integration guide\",\n \"\",\n \"```\",\n \"get_doc(path='/platforms/javascript/guides/nextjs.md')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use the path from search_docs results for accurate fetching\",\n \"- Paths should end with .md extension\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n path: z\n .string()\n .trim()\n .describe(\n \"The documentation path (e.g., '/platforms/javascript/guides/nextjs.md'). Get this from search_docs results.\",\n ),\n },\n async handler(params, context: ServerContext) {\n setTag(\"doc.path\", params.path);\n\n let output = `# Documentation Content\\n\\n`;\n output += `**Path**: ${params.path}\\n\\n`;\n\n // Validate path format\n if (!params.path.endsWith(\".md\")) {\n throw new UserInputError(\n \"Invalid documentation path. Path must end with .md extension.\",\n );\n }\n\n // Use docs.sentry.io for now - will be configurable via flag in the future\n const baseUrl = \"https://docs.sentry.io\";\n\n // Construct the full URL for the markdown file\n const docUrl = new URL(params.path, baseUrl);\n\n // Validate domain whitelist for security\n const allowedDomains = [\"docs.sentry.io\", \"develop.sentry.io\"];\n if (!allowedDomains.includes(docUrl.hostname)) {\n throw new UserInputError(\n `Invalid domain. Documentation can only be fetched from allowed domains: ${allowedDomains.join(\", \")}`,\n );\n }\n\n const response = await fetchWithTimeout(\n docUrl.toString(),\n {\n headers: {\n Accept: \"text/plain, text/markdown\",\n \"User-Agent\": \"Sentry-MCP/1.0\",\n },\n },\n 15000, // 15 second timeout\n );\n\n if (!response.ok) {\n if (response.status === 404) {\n output += `**Error**: Documentation not found at this path.\\n\\n`;\n output += `Please verify the path is correct. Common issues:\\n`;\n output += `- Path should start with / (e.g., /platforms/javascript/guides/nextjs.md)\\n`;\n output += `- Path should match exactly what's shown in search_docs results\\n`;\n output += `- Some pages may have been moved or renamed\\n\\n`;\n output += `Try searching again with \\`search_docs()\\` to find the correct path.\\n`;\n return output;\n }\n\n throw new ApiError(\n `Failed to fetch documentation: ${response.statusText}`,\n response.status,\n );\n }\n\n const content = await response.text();\n\n // Check if we got HTML instead of markdown (wrong path format)\n if (\n content.trim().startsWith(\"<!DOCTYPE\") ||\n content.trim().startsWith(\"<html\")\n ) {\n output += `> **Error**: Received HTML instead of markdown. The path may be incorrect.\\n\\n`;\n output += `Make sure to use the .md extension in the path.\\n`;\n output += `Example: /platforms/javascript/guides/nextjs.md\\n`;\n return output;\n }\n\n // Add the markdown content\n output += \"---\\n\\n\";\n output += content;\n output += \"\\n\\n---\\n\\n\";\n\n output += \"## Using this documentation\\n\\n\";\n output +=\n \"- This is the raw markdown content from Sentry's documentation\\n\";\n output +=\n \"- Code examples and configuration snippets can be copied directly\\n\";\n output +=\n \"- Links in the documentation are relative to https://docs.sentry.io\\n\";\n output +=\n \"- For more related topics, use `search_docs()` to find additional pages\\n\";\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;AAQA,sBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,EACX,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,8GACD,CACJ;CACD,MAAM,QAAQ,QAAQA,SAAwB;AAC5C,SAAO,YAAY,OAAO,KAAK;EAE/B,IAAI,UAAU;AACd,aAAW,YAAY,OAAO,KAAK;AAGnC,OAAK,OAAO,KAAK,SAAS,MAAM,CAC9B,OAAM,IAAI,eACR;EAKJ,MAAM,UAAU;EAGhB,MAAM,SAAS,IAAI,IAAI,OAAO,MAAM;EAGpC,MAAM,iBAAiB,CAAC,kBAAkB,mBAAoB;AAC9D,OAAK,eAAe,SAAS,OAAO,SAAS,CAC3C,OAAM,IAAI,gBACP,0EAA0E,eAAe,KAAK,KAAK;EAIxG,MAAM,WAAW,MAAM,iBACrB,OAAO,UAAU,EACjB,EACE,SAAS;GACP,QAAQ;GACR,cAAc;EACf,EACF,GACD,KACD;AAED,OAAK,SAAS,IAAI;AAChB,OAAI,SAAS,WAAW,KAAK;AAC3B,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,eAAW;AACX,WAAO;GACR;AAED,SAAM,IAAI,UACP,iCAAiC,SAAS,cAC3C,SAAS;EAEZ;EAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAGrC,MACE,QAAQ,MAAM,CAAC,WAAW,YAAY,IACtC,QAAQ,MAAM,CAAC,WAAW,QAAQ,EAClC;AACA,cAAW;AACX,cAAW;AACX,cAAW;AACX,UAAO;EACR;AAGD,YAAU;AACV,YAAU;AACV,YAAU;AAEV,YAAU;AACV,YACE;AACF,YACE;AACF,YACE;AACF,YACE;AAEF,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
3
|
-
const require_api_utils = require('./api-utils-
|
|
3
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
4
4
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
5
5
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
6
6
|
|
|
@@ -141,4 +141,4 @@ Object.defineProperty(exports, 'get_event_attachment_default', {
|
|
|
141
141
|
return get_event_attachment_default;
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
|
-
//# sourceMappingURL=get-event-attachment-
|
|
144
|
+
//# sourceMappingURL=get-event-attachment-ChRw3jlQ.cjs.map
|
package/dist/{get-event-attachment-Bq5lkaKV.cjs.map → get-event-attachment-ChRw3jlQ.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-attachment-
|
|
1
|
+
{"version":3,"file":"get-event-attachment-ChRw3jlQ.cjs","names":["ParamOrganizationSlug","ParamProjectSlug","ParamEventId","context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
3
|
import { ParamAttachmentId, ParamEventId, ParamOrganizationSlug, ParamProjectSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
4
4
|
import { setTag } from "@sentry/core";
|
|
5
5
|
|
|
@@ -135,4 +135,4 @@ var get_event_attachment_default = defineTool({
|
|
|
135
135
|
|
|
136
136
|
//#endregion
|
|
137
137
|
export { get_event_attachment_default };
|
|
138
|
-
//# sourceMappingURL=get-event-attachment-
|
|
138
|
+
//# sourceMappingURL=get-event-attachment-CuU-_5T6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-event-attachment-
|
|
1
|
+
{"version":3,"file":"get-event-attachment-CuU-_5T6.js","names":["context: ServerContext","contentParts: (TextContent | ImageContent | EmbeddedResource)[]","image: ImageContent","resource: EmbeddedResource","output","text: TextContent"],"sources":["../src/tools/get-event-attachment.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\nimport type {\n TextContent,\n ImageContent,\n EmbeddedResource,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport {\n ParamOrganizationSlug,\n ParamProjectSlug,\n ParamEventId,\n ParamAttachmentId,\n ParamRegionUrl,\n} from \"../schema\";\nimport { setTag } from \"@sentry/core\";\n\nexport default defineTool({\n name: \"get_event_attachment\",\n description: [\n \"Download attachments from a Sentry event.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Download files attached to a specific event\",\n \"- Access screenshots, log files, or other attachments uploaded with an error report\",\n \"- Retrieve attachment metadata and download URLs\",\n \"\",\n \"<examples>\",\n \"### Download a specific attachment by ID\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243', attachmentId='12345')\",\n \"```\",\n \"\",\n \"### List all attachments for an event\",\n \"\",\n \"```\",\n \"get_event_attachment(organizationSlug='my-organization', projectSlug='my-project', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If `attachmentId` is provided, the specific attachment will be downloaded as an embedded resource\",\n \"- If `attachmentId` is omitted, all attachments for the event will be listed with download information\",\n \"- The `projectSlug` is required to identify which project the event belongs to\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug,\n projectSlug: ParamProjectSlug,\n eventId: ParamEventId,\n attachmentId: ParamAttachmentId.optional(),\n regionUrl: ParamRegionUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n setTag(\"organization.slug\", params.organizationSlug);\n\n // If attachmentId is provided, download the specific attachment\n if (params.attachmentId) {\n const attachment = await apiService.getEventAttachment({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n attachmentId: params.attachmentId,\n });\n\n const contentParts: (TextContent | ImageContent | EmbeddedResource)[] =\n [];\n const isBinary = !attachment.attachment.mimetype?.startsWith(\"text/\");\n\n if (isBinary) {\n const isImage = attachment.attachment.mimetype?.startsWith(\"image/\");\n // Base64 encode the binary attachment content\n // and add to the content as an embedded resource\n const uint8Array = new Uint8Array(await attachment.blob.arrayBuffer());\n let binary = \"\";\n for (let i = 0; i < uint8Array.byteLength; i++) {\n binary += String.fromCharCode(uint8Array[i]);\n }\n if (isImage) {\n const image: ImageContent = {\n type: \"image\",\n mimeType: attachment.attachment.mimetype,\n data: btoa(binary),\n };\n contentParts.push(image);\n } else {\n const resource: EmbeddedResource = {\n id: params.attachmentId,\n type: \"resource\",\n resource: {\n uri: `file://${attachment.filename}`,\n mimeType: attachment.attachment.mimetype,\n blob: btoa(binary),\n },\n };\n contentParts.push(resource);\n }\n }\n\n let output = `# Event Attachment Download\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Attachment ID:** ${params.attachmentId}\\n`;\n output += `**Filename:** ${attachment.filename}\\n`;\n output += `**Type:** ${attachment.attachment.type}\\n`;\n output += `**Size:** ${attachment.attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.attachment.sha1}\\n\\n`;\n output += `**Download URL:** ${attachment.downloadUrl}\\n\\n`;\n\n if (isBinary) {\n output += `## Binary Content\\n\\n`;\n output += `The attachment is included as a resource and accessible through your client.\\n`;\n } else {\n // If it's a text file and we have blob content, decode and display it instead\n // of embedding it as an image or resource\n const textContent = await attachment.blob.text();\n output += `## File Content\\n\\n`;\n output += `\\`\\`\\`\\n${textContent}\\n\\`\\`\\`\\n\\n`;\n }\n\n const text: TextContent = {\n type: \"text\",\n text: output,\n };\n contentParts.push(text);\n\n return contentParts;\n }\n\n // List all attachments for the event\n const attachments = await apiService.listEventAttachments({\n organizationSlug: params.organizationSlug,\n projectSlug: params.projectSlug,\n eventId: params.eventId,\n });\n\n let output = `# Event Attachments\\n\\n`;\n output += `**Event ID:** ${params.eventId}\\n`;\n output += `**Project:** ${params.projectSlug}\\n\\n`;\n\n if (attachments.length === 0) {\n output += \"No attachments found for this event.\\n\";\n return output;\n }\n\n output += `Found ${attachments.length} attachment(s):\\n\\n`;\n\n attachments.forEach((attachment, index) => {\n output += `## Attachment ${index + 1}\\n\\n`;\n output += `**ID:** ${attachment.id}\\n`;\n output += `**Name:** ${attachment.name}\\n`;\n output += `**Type:** ${attachment.type}\\n`;\n output += `**Size:** ${attachment.size} bytes\\n`;\n output += `**MIME Type:** ${attachment.mimetype}\\n`;\n output += `**Created:** ${attachment.dateCreated}\\n`;\n output += `**SHA1:** ${attachment.sha1}\\n\\n`;\n output += `To download this attachment, use the \"get_event_attachment\" tool with the attachmentId provided:\\n`;\n output += `\\`get_event_attachment(organizationSlug=\"${params.organizationSlug}\", projectSlug=\"${params.projectSlug}\", eventId=\"${params.eventId}\", attachmentId=\"${attachment.id}\")\\`\\n\\n`;\n });\n\n return output;\n },\n});\n"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-CIoxzIug.js";
|
|
2
2
|
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
3
|
-
import { apiServiceFromContext } from "./api-utils-
|
|
3
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
4
4
|
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamRegionUrl } from "./schema-DtsnsxMl.js";
|
|
5
5
|
import { parseIssueParams } from "./issue-helpers-CqqYnwYE.js";
|
|
6
6
|
import { formatIssueOutput } from "./formatting-pUm38KOj.js";
|
|
@@ -101,4 +101,4 @@ var get_issue_details_default = defineTool({
|
|
|
101
101
|
|
|
102
102
|
//#endregion
|
|
103
103
|
export { get_issue_details_default };
|
|
104
|
-
//# sourceMappingURL=get-issue-details-
|
|
104
|
+
//# sourceMappingURL=get-issue-details-CxChU4U9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-issue-details-
|
|
1
|
+
{"version":3,"file":"get-issue-details-CxChU4U9.js","names":["context: ServerContext","orgSlug","issue","event"],"sources":["../src/tools/get-issue-details.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams, formatIssueOutput } from \"./utils/issue-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"get_issue_details\",\n description: [\n \"Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.\",\n \"\",\n \"**NOTE: If the user asks HOW TO FIX an issue, use `analyze_issue_with_seer` instead!**\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View error details, stacktraces, and metadata\",\n \"- Investigate when/where an error occurred\",\n \"- Access raw error information from Sentry\",\n \"\",\n \"Do NOT use this tool when:\",\n '- User asks \"how do I fix this?\" → Use `analyze_issue_with_seer`',\n \"- User wants root cause analysis → Use `analyze_issue_with_seer`\",\n \"- User needs code fixes → Use `analyze_issue_with_seer`\",\n \"\",\n \"<examples>\",\n \"### Get details for issue ID 'CLOUDFLARE-MCP-41'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().trim().describe(\"The ID of the event.\").optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n if (params.eventId) {\n const orgSlug = params.organizationSlug;\n if (!orgSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `eventId`\",\n );\n }\n\n setTag(\"organization.slug\", orgSlug);\n const [issue] = await apiService.listIssues({\n organizationSlug: orgSlug,\n query: params.eventId,\n });\n if (!issue) {\n return `# Event Not Found\\n\\nNo issue found for Event ID: ${params.eventId}`;\n }\n const event = await apiService.getEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId: params.eventId,\n });\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n });\n }\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n const issue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n const event = await apiService.getLatestEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n });\n },\n});\n"],"mappings":";;;;;;;;;;AAcA,gCAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,sBAAsB,UAAU;EAClD,WAAW,eAAe,UAAU;EACpC,SAAS,kBAAkB,UAAU;EACrC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;EACtE,UAAU,cAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,sBAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,MAAI,OAAO,SAAS;GAClB,MAAMC,YAAU,OAAO;AACvB,QAAKA,UACH,OAAM,IAAI,eACR;AAIJ,UAAO,qBAAqBA,UAAQ;GACpC,MAAM,CAACC,QAAM,GAAG,MAAM,WAAW,WAAW;IAC1C,kBAAkBD;IAClB,OAAO,OAAO;GACf,EAAC;AACF,QAAKC,QACH,SAAQ,oDAAoD,OAAO;GAErE,MAAMC,UAAQ,MAAM,WAAW,iBAAiB;IAC9C,kBAAkBF;IAClB,SAASC,QAAM;IACf,SAAS,OAAO;GACjB,EAAC;AACF,UAAO,kBAAkB;IACvB,kBAAkBD;IAClB;IACA;IACA;GACD,EAAC;EACH;AAGD,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAI,eACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAI,eACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,iBAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,SAAO,qBAAqB,QAAQ;EAEpC,MAAM,QAAQ,MAAM,WAAW,SAAS;GACtC,kBAAkB;GAClB,SAAS;EACV,EAAC;EACF,MAAM,QAAQ,MAAM,WAAW,uBAAuB;GACpD,kBAAkB;GAClB,SAAS,MAAM;EAChB,EAAC;AACF,SAAO,kBAAkB;GACvB,kBAAkB;GAClB;GACA;GACA;EACD,EAAC;CACH;AACF,EAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_errors = require('./errors-YmiXLOyx.cjs');
|
|
3
3
|
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
4
|
-
const require_api_utils = require('./api-utils-
|
|
4
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
5
5
|
const require_schema = require('./schema-BpJVmev8.cjs');
|
|
6
6
|
const require_issue_helpers = require('./issue-helpers-DyAIO0w6.cjs');
|
|
7
7
|
const require_formatting = require('./formatting-BlMiQa9i.cjs');
|
|
@@ -107,4 +107,4 @@ Object.defineProperty(exports, 'get_issue_details_default', {
|
|
|
107
107
|
return get_issue_details_default;
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
|
-
//# sourceMappingURL=get-issue-details-
|
|
110
|
+
//# sourceMappingURL=get-issue-details-DFwZRbmU.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-issue-details-
|
|
1
|
+
{"version":3,"file":"get-issue-details-DFwZRbmU.cjs","names":["context: ServerContext","orgSlug","UserInputError","issue","event"],"sources":["../src/tools/get-issue-details.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport { parseIssueParams, formatIssueOutput } from \"./utils/issue-utils\";\nimport { UserInputError } from \"../errors\";\nimport type { ServerContext } from \"../types\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"get_issue_details\",\n description: [\n \"Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.\",\n \"\",\n \"**NOTE: If the user asks HOW TO FIX an issue, use `analyze_issue_with_seer` instead!**\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View error details, stacktraces, and metadata\",\n \"- Investigate when/where an error occurred\",\n \"- Access raw error information from Sentry\",\n \"\",\n \"Do NOT use this tool when:\",\n '- User asks \"how do I fix this?\" → Use `analyze_issue_with_seer`',\n \"- User wants root cause analysis → Use `analyze_issue_with_seer`\",\n \"- User needs code fixes → Use `analyze_issue_with_seer`\",\n \"\",\n \"<examples>\",\n \"### Get details for issue ID 'CLOUDFLARE-MCP-41'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().trim().describe(\"The ID of the event.\").optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n\n if (params.eventId) {\n const orgSlug = params.organizationSlug;\n if (!orgSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `eventId`\",\n );\n }\n\n setTag(\"organization.slug\", orgSlug);\n const [issue] = await apiService.listIssues({\n organizationSlug: orgSlug,\n query: params.eventId,\n });\n if (!issue) {\n return `# Event Not Found\\n\\nNo issue found for Event ID: ${params.eventId}`;\n }\n const event = await apiService.getEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n eventId: params.eventId,\n });\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n });\n }\n\n // Validate that we have the minimum required parameters\n if (!params.issueUrl && !params.issueId) {\n throw new UserInputError(\n \"Either `issueId` or `issueUrl` must be provided\",\n );\n }\n\n if (!params.issueUrl && !params.organizationSlug) {\n throw new UserInputError(\n \"`organizationSlug` is required when providing `issueId`\",\n );\n }\n\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n const issue = await apiService.getIssue({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n });\n const event = await apiService.getLatestEventForIssue({\n organizationSlug: orgSlug,\n issueId: issue.shortId,\n });\n return formatIssueOutput({\n organizationSlug: orgSlug,\n issue,\n event,\n apiService,\n });\n },\n});\n"],"mappings":";;;;;;;;;;;AAcA,gCAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,SAAS,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;EACtE,UAAU,6BAAc,UAAU;CACnC;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,wCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;AAEF,MAAI,OAAO,SAAS;GAClB,MAAMC,YAAU,OAAO;AACvB,QAAKA,UACH,OAAM,IAAIC,8BACR;AAIJ,6BAAO,qBAAqBD,UAAQ;GACpC,MAAM,CAACE,QAAM,GAAG,MAAM,WAAW,WAAW;IAC1C,kBAAkBF;IAClB,OAAO,OAAO;GACf,EAAC;AACF,QAAKE,QACH,SAAQ,oDAAoD,OAAO;GAErE,MAAMC,UAAQ,MAAM,WAAW,iBAAiB;IAC9C,kBAAkBH;IAClB,SAASE,QAAM;IACf,SAAS,OAAO;GACjB,EAAC;AACF,UAAO,qCAAkB;IACvB,kBAAkBF;IAClB;IACA;IACA;GACD,EAAC;EACH;AAGD,OAAK,OAAO,aAAa,OAAO,QAC9B,OAAM,IAAIC,8BACR;AAIJ,OAAK,OAAO,aAAa,OAAO,iBAC9B,OAAM,IAAIA,8BACR;EAIJ,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAEpC,MAAM,QAAQ,MAAM,WAAW,SAAS;GACtC,kBAAkB;GAClB,SAAS;EACV,EAAC;EACF,MAAM,QAAQ,MAAM,WAAW,uBAAuB;GACpD,kBAAkB;GAClB,SAAS,MAAM;EAChB,EAAC;AACF,SAAO,qCAAkB;GACvB,kBAAkB;GAClB;GACA;GACA;EACD,EAAC;CACH;AACF,EAAC"}
|