@sentry/mcp-server 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -4
- package/dist/analyze-issue-with-seer-BsNarzJN.js +163 -0
- package/dist/analyze-issue-with-seer-BsNarzJN.js.map +1 -0
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs +169 -0
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +1 -0
- package/dist/api-client/client.cjs +2 -2
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/index.cjs +9 -2
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +5 -5
- package/dist/api-client/index.js +5 -5
- package/dist/api-client/schema.cjs +8 -1
- package/dist/api-client/schema.d.cts +2 -2
- package/dist/api-client/schema.d.ts +2 -2
- package/dist/api-client/schema.js +2 -2
- package/dist/api-client/types.d.cts +3 -3
- package/dist/api-client/types.d.ts +3 -3
- package/dist/api-client/types.js +1 -1
- package/dist/api-utils-C6QJAzFL.js +31 -0
- package/dist/api-utils-C6QJAzFL.js.map +1 -0
- package/dist/api-utils-d36iteNO.cjs +36 -0
- package/dist/api-utils-d36iteNO.cjs.map +1 -0
- package/dist/{client-4jq_wVgn.d.ts → client-BCN17Wbp.d.ts} +43 -11
- package/dist/client-BCN17Wbp.d.ts.map +1 -0
- package/dist/{client-DkY0ifZf.d.cts → client-CILwfx6G.d.cts} +43 -11
- package/dist/client-CILwfx6G.d.cts.map +1 -0
- package/dist/{client-CAoHZbyK.js → client-DOYWNvVM.js} +75 -18
- package/dist/client-DOYWNvVM.js.map +1 -0
- package/dist/{client-B7vZ6JMk.cjs → client-Dkw5iYu3.cjs} +75 -18
- package/dist/client-Dkw5iYu3.cjs.map +1 -0
- package/dist/constants-ClkMK29-.cjs +182 -0
- package/dist/constants-ClkMK29-.cjs.map +1 -0
- package/dist/constants-S7AU45oQ.js +164 -0
- package/dist/constants-S7AU45oQ.js.map +1 -0
- package/dist/constants.cjs +5 -0
- package/dist/constants.d.cts +23 -0
- package/dist/constants.d.cts.map +1 -0
- package/dist/constants.d.ts +23 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +3 -0
- package/dist/create-dsn-CDcL2DLD.js +59 -0
- package/dist/create-dsn-CDcL2DLD.js.map +1 -0
- package/dist/create-dsn-fESUtX3R.cjs +65 -0
- package/dist/create-dsn-fESUtX3R.cjs.map +1 -0
- package/dist/create-project-Bg5uDkc4.cjs +82 -0
- package/dist/create-project-Bg5uDkc4.cjs.map +1 -0
- package/dist/create-project-DY5mFznV.js +76 -0
- package/dist/create-project-DY5mFznV.js.map +1 -0
- package/dist/create-team-5purh64V.cjs +53 -0
- package/dist/create-team-5purh64V.cjs.map +1 -0
- package/dist/create-team-C2R7EUC3.js +47 -0
- package/dist/create-team-C2R7EUC3.js.map +1 -0
- package/dist/defineTool-77H4nSna.js +8 -0
- package/dist/defineTool-77H4nSna.js.map +1 -0
- package/dist/defineTool-lWNTzWl_.cjs +14 -0
- package/dist/defineTool-lWNTzWl_.cjs.map +1 -0
- package/dist/{errors-BJSrT6Ou.js → errors-CIoxzIug.js} +1 -1
- package/dist/{errors-BJSrT6Ou.js.map → errors-CIoxzIug.js.map} +1 -1
- package/dist/{errors-B9fwS-aP.cjs → errors-YmiXLOyx.cjs} +1 -1
- package/dist/{errors-B9fwS-aP.cjs.map → errors-YmiXLOyx.cjs.map} +1 -1
- package/dist/errors.cjs +1 -1
- package/dist/errors.js +1 -1
- package/dist/fetch-utils-BMKjO-cc.js +29 -0
- package/dist/fetch-utils-BMKjO-cc.js.map +1 -0
- package/dist/fetch-utils-Bv9WjUp0.d.ts +14 -0
- package/dist/fetch-utils-Bv9WjUp0.d.ts.map +1 -0
- package/dist/fetch-utils-DlPjrSk2.js +0 -0
- package/dist/fetch-utils-DzdRW4Yd.d.cts +14 -0
- package/dist/fetch-utils-DzdRW4Yd.d.cts.map +1 -0
- package/dist/fetch-utils-oab6uNp3.cjs +35 -0
- package/dist/fetch-utils-oab6uNp3.cjs.map +1 -0
- package/dist/find-dsns-CvfcLB9Z.js +52 -0
- package/dist/find-dsns-CvfcLB9Z.js.map +1 -0
- package/dist/find-dsns-ZZ-thiNk.cjs +58 -0
- package/dist/find-dsns-ZZ-thiNk.cjs.map +1 -0
- package/dist/find-errors-CuRm4PzL.js +91 -0
- package/dist/find-errors-CuRm4PzL.js.map +1 -0
- package/dist/find-errors-Drzv7hzM.cjs +97 -0
- package/dist/find-errors-Drzv7hzM.cjs.map +1 -0
- package/dist/find-issues-C3uk59rn.cjs +98 -0
- package/dist/find-issues-C3uk59rn.cjs.map +1 -0
- package/dist/find-issues-CAtNGBly.js +92 -0
- package/dist/find-issues-CAtNGBly.js.map +1 -0
- package/dist/find-organizations-BrdMfZRO.cjs +50 -0
- package/dist/find-organizations-BrdMfZRO.cjs.map +1 -0
- package/dist/find-organizations-ojXwWWzk.js +45 -0
- package/dist/find-organizations-ojXwWWzk.js.map +1 -0
- package/dist/find-projects-BZWhlYJh.cjs +45 -0
- package/dist/find-projects-BZWhlYJh.cjs.map +1 -0
- package/dist/find-projects-fcLG4KpT.js +39 -0
- package/dist/find-projects-fcLG4KpT.js.map +1 -0
- package/dist/find-releases-BUozr0Z-.js +93 -0
- package/dist/find-releases-BUozr0Z-.js.map +1 -0
- package/dist/find-releases-CZCVEOHZ.cjs +99 -0
- package/dist/find-releases-CZCVEOHZ.cjs.map +1 -0
- package/dist/find-tags-Byk4d3oZ.cjs +45 -0
- package/dist/find-tags-Byk4d3oZ.cjs.map +1 -0
- package/dist/find-tags-d-wF1Se8.js +39 -0
- package/dist/find-tags-d-wF1Se8.js.map +1 -0
- package/dist/find-teams-BZ118EIK.js +39 -0
- package/dist/find-teams-BZ118EIK.js.map +1 -0
- package/dist/find-teams-CnU5x9rQ.cjs +45 -0
- package/dist/find-teams-CnU5x9rQ.cjs.map +1 -0
- package/dist/find-transactions-DIJ80wkd.cjs +89 -0
- package/dist/find-transactions-DIJ80wkd.cjs.map +1 -0
- package/dist/find-transactions-DZCj81jP.js +83 -0
- package/dist/find-transactions-DZCj81jP.js.map +1 -0
- package/dist/formatting-BlMiQa9i.cjs +388 -0
- package/dist/formatting-BlMiQa9i.cjs.map +1 -0
- package/dist/formatting-CHh9Q_OW.d.cts +47 -0
- package/dist/formatting-CHh9Q_OW.d.cts.map +1 -0
- package/dist/formatting-kdIeURER.d.ts +47 -0
- package/dist/formatting-kdIeURER.d.ts.map +1 -0
- package/dist/formatting-pUm38KOj.js +370 -0
- package/dist/formatting-pUm38KOj.js.map +1 -0
- package/dist/formatting-utils-C3sej5ER.js +14 -0
- package/dist/formatting-utils-C3sej5ER.js.map +1 -0
- package/dist/formatting-utils-DDz14xeB.cjs +20 -0
- package/dist/formatting-utils-DDz14xeB.cjs.map +1 -0
- package/dist/get-doc-DaTCenOE.cjs +86 -0
- package/dist/get-doc-DaTCenOE.cjs.map +1 -0
- package/dist/get-doc-YTiQznr1.js +80 -0
- package/dist/get-doc-YTiQznr1.js.map +1 -0
- package/dist/get-event-attachment-ChRw3jlQ.cjs +144 -0
- package/dist/get-event-attachment-ChRw3jlQ.cjs.map +1 -0
- package/dist/get-event-attachment-CuU-_5T6.js +138 -0
- package/dist/get-event-attachment-CuU-_5T6.js.map +1 -0
- package/dist/get-issue-details-CxChU4U9.js +104 -0
- package/dist/get-issue-details-CxChU4U9.js.map +1 -0
- package/dist/get-issue-details-DFwZRbmU.cjs +110 -0
- package/dist/get-issue-details-DFwZRbmU.cjs.map +1 -0
- package/dist/index.cjs +73 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +75 -25
- package/dist/index.js.map +1 -1
- package/dist/internal/fetch-utils.cjs +3 -0
- package/dist/internal/fetch-utils.d.cts +2 -0
- package/dist/internal/fetch-utils.d.ts +2 -0
- package/dist/internal/fetch-utils.js +3 -0
- package/dist/internal/formatting.cjs +1 -1
- package/dist/internal/formatting.d.cts +5 -25
- package/dist/internal/formatting.d.ts +6 -26
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.cts +2 -52
- package/dist/internal/issue-helpers.d.ts +2 -52
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/test-fixtures.cjs +214 -0
- package/dist/internal/test-fixtures.cjs.map +1 -0
- package/dist/internal/test-fixtures.d.cts +2138 -0
- package/dist/internal/test-fixtures.d.cts.map +1 -0
- package/dist/internal/test-fixtures.d.ts +2138 -0
- package/dist/internal/test-fixtures.d.ts.map +1 -0
- package/dist/internal/test-fixtures.js +205 -0
- package/dist/internal/test-fixtures.js.map +1 -0
- package/dist/issue-helpers-BJffpNoO.d.ts +52 -0
- package/dist/issue-helpers-BJffpNoO.d.ts.map +1 -0
- package/dist/{issue-helpers-BMVLc3mR.js → issue-helpers-CqqYnwYE.js} +1 -1
- package/dist/{issue-helpers-BMVLc3mR.js.map → issue-helpers-CqqYnwYE.js.map} +1 -1
- package/dist/issue-helpers-Cz01Ipvl.d.cts +52 -0
- package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -0
- package/dist/{issue-helpers-D712fGT2.cjs → issue-helpers-DyAIO0w6.cjs} +1 -1
- package/dist/{issue-helpers-D712fGT2.cjs.map → issue-helpers-DyAIO0w6.cjs.map} +1 -1
- package/dist/issue-utils-BVAB6I-Z.js +0 -0
- package/dist/issue-utils-pdbo-5LW.cjs +0 -0
- package/dist/{logging-CXLD0FFB.js → logging-LnQMFw-_.js} +1 -1
- package/dist/{logging-CXLD0FFB.js.map → logging-LnQMFw-_.js.map} +1 -1
- package/dist/{logging-ByvSjT6V.cjs → logging-oIouXrcb.cjs} +1 -1
- package/dist/{logging-ByvSjT6V.cjs.map → logging-oIouXrcb.cjs.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/{promptDefinitions-BTLIBcGt.cjs → promptDefinitions-C29BWGYg.cjs} +4 -4
- package/dist/promptDefinitions-C29BWGYg.cjs.map +1 -0
- package/dist/{promptDefinitions-D8yow1m0.js → promptDefinitions-CSKE8T0a.js} +4 -4
- package/dist/{promptDefinitions-D8yow1m0.js.map → promptDefinitions-CSKE8T0a.js.map} +1 -1
- package/dist/{promptDefinitions-CF2VWdQ6.d.cts → promptDefinitions-CVHtYaj8.d.cts} +3 -3
- package/dist/promptDefinitions-CVHtYaj8.d.cts.map +1 -0
- package/dist/{promptDefinitions-D5FSQckL.d.ts → promptDefinitions-D3GTBGLr.d.ts} +3 -3
- package/dist/promptDefinitions-D3GTBGLr.d.ts.map +1 -0
- package/dist/promptDefinitions.cjs +3 -2
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +3 -2
- package/dist/{prompts-Dt3A8Qfl.js → prompts-C8Y9w5c4.js} +7 -7
- package/dist/{prompts-Dt3A8Qfl.js.map → prompts-C8Y9w5c4.js.map} +1 -1
- package/dist/{prompts-CDbQrutV.cjs → prompts-Df3i1XSB.cjs} +7 -7
- package/dist/{prompts-CDbQrutV.cjs.map → prompts-Df3i1XSB.cjs.map} +1 -1
- package/dist/prompts.cjs +2 -2
- package/dist/prompts.d.cts +4 -5
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +4 -5
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +2 -2
- package/dist/resources-BHF8a1ZB.js +92 -0
- package/dist/resources-BHF8a1ZB.js.map +1 -0
- package/dist/resources-BM_YQGcb.cjs +104 -0
- package/dist/resources-BM_YQGcb.cjs.map +1 -0
- package/dist/resources.cjs +5 -2
- package/dist/resources.d.cts +26 -12
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts +26 -12
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +4 -2
- package/dist/{schema-BnxGHL_i.d.ts → schema--5m4KI84.d.ts} +3678 -619
- package/dist/schema--5m4KI84.d.ts.map +1 -0
- package/dist/{schema-BsvGMALe.cjs → schema-B_cMyyJJ.cjs} +94 -8
- package/dist/schema-B_cMyyJJ.cjs.map +1 -0
- package/dist/{schema-BTfISwFu.cjs → schema-BpJVmev8.cjs} +23 -1
- package/dist/{schema-Dv6aLZgz.js.map → schema-BpJVmev8.cjs.map} +1 -1
- package/dist/{schema-Dv6aLZgz.js → schema-DtsnsxMl.js} +6 -2
- package/dist/schema-DtsnsxMl.js.map +1 -0
- package/dist/{schema-C_hp0BR7.js → schema-WDk5Yqww.js} +53 -9
- package/dist/schema-WDk5Yqww.js.map +1 -0
- package/dist/{schema-BJv7kREf.d.cts → schema-ya35hkEL.d.cts} +3614 -555
- package/dist/schema-ya35hkEL.d.cts.map +1 -0
- package/dist/schema.cjs +5 -1
- package/dist/schema.d.cts +4 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +4 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +3 -2
- package/dist/search-docs-BLbB_GV2.js +102 -0
- package/dist/search-docs-BLbB_GV2.js.map +1 -0
- package/dist/search-docs-D5Foht_0.cjs +108 -0
- package/dist/search-docs-D5Foht_0.cjs.map +1 -0
- package/dist/seer-utils-Ckr8nYlz.js +87 -0
- package/dist/seer-utils-Ckr8nYlz.js.map +1 -0
- package/dist/seer-utils-CzYEEZb2.cjs +129 -0
- package/dist/seer-utils-CzYEEZb2.cjs.map +1 -0
- package/dist/{server-DeutbO8v.cjs → server-BpEIZVaZ.cjs} +104 -57
- package/dist/server-BpEIZVaZ.cjs.map +1 -0
- package/dist/{server-C7cHq_pc.js → server-DOy-M9Ko.js} +104 -57
- package/dist/server-DOy-M9Ko.js.map +1 -0
- package/dist/server.cjs +40 -13
- package/dist/server.d.cts +2 -3
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +2 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +42 -15
- package/dist/{stdio-ZQLC-i5Q.js → stdio-B2NDq7Ax.js} +17 -7
- package/dist/stdio-B2NDq7Ax.js.map +1 -0
- package/dist/{stdio-B73CCTly.cjs → stdio-DMEgJ_fG.cjs} +17 -7
- package/dist/stdio-DMEgJ_fG.cjs.map +1 -0
- package/dist/test-setup.cjs +1420 -1230
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1262 -1045
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.d.ts +25 -2
- package/dist/toolDefinitions.js +1059 -4
- package/dist/tools/analyze-issue-with-seer.cjs +16 -0
- package/dist/tools/analyze-issue-with-seer.d.cts +16 -0
- package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -0
- package/dist/tools/analyze-issue-with-seer.d.ts +16 -0
- package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -0
- package/dist/tools/analyze-issue-with-seer.js +16 -0
- package/dist/tools/create-dsn.cjs +12 -0
- package/dist/tools/create-dsn.d.cts +15 -0
- package/dist/tools/create-dsn.d.cts.map +1 -0
- package/dist/tools/create-dsn.d.ts +15 -0
- package/dist/tools/create-dsn.d.ts.map +1 -0
- package/dist/tools/create-dsn.js +12 -0
- package/dist/tools/create-project.cjs +13 -0
- package/dist/tools/create-project.d.cts +16 -0
- package/dist/tools/create-project.d.cts.map +1 -0
- package/dist/tools/create-project.d.ts +16 -0
- package/dist/tools/create-project.d.ts.map +1 -0
- package/dist/tools/create-project.js +13 -0
- package/dist/tools/create-team.cjs +12 -0
- package/dist/tools/create-team.d.cts +14 -0
- package/dist/tools/create-team.d.cts.map +1 -0
- package/dist/tools/create-team.d.ts +14 -0
- package/dist/tools/create-team.d.ts.map +1 -0
- package/dist/tools/create-team.js +12 -0
- package/dist/tools/find-dsns.cjs +12 -0
- package/dist/tools/find-dsns.d.cts +14 -0
- package/dist/tools/find-dsns.d.cts.map +1 -0
- package/dist/tools/find-dsns.d.ts +14 -0
- package/dist/tools/find-dsns.d.ts.map +1 -0
- package/dist/tools/find-dsns.js +12 -0
- package/dist/tools/find-errors.cjs +12 -0
- package/dist/tools/find-errors.d.cts +18 -0
- package/dist/tools/find-errors.d.cts.map +1 -0
- package/dist/tools/find-errors.d.ts +18 -0
- package/dist/tools/find-errors.d.ts.map +1 -0
- package/dist/tools/find-errors.js +12 -0
- package/dist/tools/find-issues.cjs +12 -0
- package/dist/tools/find-issues.d.cts +16 -0
- package/dist/tools/find-issues.d.cts.map +1 -0
- package/dist/tools/find-issues.d.ts +16 -0
- package/dist/tools/find-issues.d.ts.map +1 -0
- package/dist/tools/find-issues.js +12 -0
- package/dist/tools/find-organizations.cjs +10 -0
- package/dist/tools/find-organizations.d.cts +9 -0
- package/dist/tools/find-organizations.d.cts.map +1 -0
- package/dist/tools/find-organizations.d.ts +9 -0
- package/dist/tools/find-organizations.d.ts.map +1 -0
- package/dist/tools/find-organizations.js +10 -0
- package/dist/tools/find-projects.cjs +12 -0
- package/dist/tools/find-projects.d.cts +13 -0
- package/dist/tools/find-projects.d.cts.map +1 -0
- package/dist/tools/find-projects.d.ts +13 -0
- package/dist/tools/find-projects.d.ts.map +1 -0
- package/dist/tools/find-projects.js +12 -0
- package/dist/tools/find-releases.cjs +12 -0
- package/dist/tools/find-releases.d.cts +15 -0
- package/dist/tools/find-releases.d.cts.map +1 -0
- package/dist/tools/find-releases.d.ts +15 -0
- package/dist/tools/find-releases.d.ts.map +1 -0
- package/dist/tools/find-releases.js +12 -0
- package/dist/tools/find-tags.cjs +12 -0
- package/dist/tools/find-tags.d.cts +13 -0
- package/dist/tools/find-tags.d.cts.map +1 -0
- package/dist/tools/find-tags.d.ts +13 -0
- package/dist/tools/find-tags.d.ts.map +1 -0
- package/dist/tools/find-tags.js +12 -0
- package/dist/tools/find-teams.cjs +12 -0
- package/dist/tools/find-teams.d.cts +13 -0
- package/dist/tools/find-teams.d.cts.map +1 -0
- package/dist/tools/find-teams.d.ts +13 -0
- package/dist/tools/find-teams.d.ts.map +1 -0
- package/dist/tools/find-teams.js +12 -0
- package/dist/tools/find-transactions.cjs +12 -0
- package/dist/tools/find-transactions.d.cts +17 -0
- package/dist/tools/find-transactions.d.cts.map +1 -0
- package/dist/tools/find-transactions.d.ts +17 -0
- package/dist/tools/find-transactions.d.ts.map +1 -0
- package/dist/tools/find-transactions.js +12 -0
- package/dist/tools/get-doc.cjs +11 -0
- package/dist/tools/get-doc.d.cts +12 -0
- package/dist/tools/get-doc.d.cts.map +1 -0
- package/dist/tools/get-doc.d.ts +12 -0
- package/dist/tools/get-doc.d.ts.map +1 -0
- package/dist/tools/get-doc.js +11 -0
- package/dist/tools/get-event-attachment.cjs +12 -0
- package/dist/tools/get-event-attachment.d.cts +16 -0
- package/dist/tools/get-event-attachment.d.cts.map +1 -0
- package/dist/tools/get-event-attachment.d.ts +16 -0
- package/dist/tools/get-event-attachment.d.ts.map +1 -0
- package/dist/tools/get-event-attachment.js +12 -0
- package/dist/tools/get-issue-details.cjs +15 -0
- package/dist/tools/get-issue-details.d.cts +16 -0
- package/dist/tools/get-issue-details.d.cts.map +1 -0
- package/dist/tools/get-issue-details.d.ts +16 -0
- package/dist/tools/get-issue-details.d.ts.map +1 -0
- package/dist/tools/get-issue-details.js +15 -0
- package/dist/tools/index.cjs +40 -0
- package/dist/tools/index.d.cts +127 -0
- package/dist/tools/index.d.cts.map +1 -0
- package/dist/tools/index.d.ts +127 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +40 -0
- package/dist/tools/search-docs.cjs +12 -0
- package/dist/tools/search-docs.d.cts +14 -0
- package/dist/tools/search-docs.d.cts.map +1 -0
- package/dist/tools/search-docs.d.ts +14 -0
- package/dist/tools/search-docs.d.ts.map +1 -0
- package/dist/tools/search-docs.js +12 -0
- package/dist/tools/types.cjs +0 -0
- package/dist/tools/types.d.cts +4 -0
- package/dist/tools/types.d.ts +4 -0
- package/dist/tools/types.js +0 -0
- package/dist/tools/update-issue.cjs +16 -0
- package/dist/tools/update-issue.d.cts +17 -0
- package/dist/tools/update-issue.d.cts.map +1 -0
- package/dist/tools/update-issue.d.ts +17 -0
- package/dist/tools/update-issue.d.ts.map +1 -0
- package/dist/tools/update-issue.js +16 -0
- package/dist/tools/update-project.cjs +13 -0
- package/dist/tools/update-project.d.cts +18 -0
- package/dist/tools/update-project.d.cts.map +1 -0
- package/dist/tools/update-project.d.ts +18 -0
- package/dist/tools/update-project.d.ts.map +1 -0
- package/dist/tools/update-project.js +13 -0
- package/dist/tools/utils/api-utils.cjs +8 -0
- package/dist/tools/utils/api-utils.d.cts +24 -0
- package/dist/tools/utils/api-utils.d.cts.map +1 -0
- package/dist/tools/utils/api-utils.d.ts +24 -0
- package/dist/tools/utils/api-utils.d.ts.map +1 -0
- package/dist/tools/utils/api-utils.js +8 -0
- package/dist/tools/utils/defineTool.cjs +3 -0
- package/dist/tools/utils/defineTool.d.cts +12 -0
- package/dist/tools/utils/defineTool.d.cts.map +1 -0
- package/dist/tools/utils/defineTool.d.ts +12 -0
- package/dist/tools/utils/defineTool.d.ts.map +1 -0
- package/dist/tools/utils/defineTool.js +3 -0
- package/dist/tools/utils/fetch-utils.cjs +4 -0
- package/dist/tools/utils/fetch-utils.d.cts +2 -0
- package/dist/tools/utils/fetch-utils.d.ts +2 -0
- package/dist/tools/utils/fetch-utils.js +4 -0
- package/dist/tools/utils/formatting-utils.cjs +3 -0
- package/dist/tools/utils/formatting-utils.d.cts +15 -0
- package/dist/tools/utils/formatting-utils.d.cts.map +1 -0
- package/dist/tools/utils/formatting-utils.d.ts +15 -0
- package/dist/tools/utils/formatting-utils.d.ts.map +1 -0
- package/dist/tools/utils/formatting-utils.js +3 -0
- package/dist/tools/utils/issue-utils.cjs +6 -0
- package/dist/tools/utils/issue-utils.d.cts +7 -0
- package/dist/tools/utils/issue-utils.d.ts +7 -0
- package/dist/tools/utils/issue-utils.js +5 -0
- package/dist/tools/utils/seer-utils.cjs +9 -0
- package/dist/tools/utils/seer-utils.d.cts +28 -0
- package/dist/tools/utils/seer-utils.d.cts.map +1 -0
- package/dist/tools/utils/seer-utils.d.ts +28 -0
- package/dist/tools/utils/seer-utils.d.ts.map +1 -0
- package/dist/tools/utils/seer-utils.js +3 -0
- package/dist/tools/whoami.cjs +10 -0
- package/dist/tools/whoami.d.cts +9 -0
- package/dist/tools/whoami.d.cts.map +1 -0
- package/dist/tools/whoami.d.ts +9 -0
- package/dist/tools/whoami.d.ts.map +1 -0
- package/dist/tools/whoami.js +10 -0
- package/dist/tools-19Ms1kck.cjs +53 -0
- package/dist/tools-19Ms1kck.cjs.map +1 -0
- package/dist/tools-mThAUo_3.js +48 -0
- package/dist/tools-mThAUo_3.js.map +1 -0
- package/dist/transports/stdio.cjs +42 -14
- package/dist/transports/stdio.d.cts +2 -3
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +2 -3
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +44 -16
- package/dist/{types-NIQW7KyF.d.cts → types-Bg17IGWJ.d.cts} +5 -3
- package/dist/types-Bg17IGWJ.d.cts.map +1 -0
- package/dist/types-CCHsZshF.js +0 -0
- package/dist/types-CUN-2OSS.d.cts +29 -0
- package/dist/types-CUN-2OSS.d.cts.map +1 -0
- package/dist/{types-Daq2fm0E.d.ts → types-CtTBwGbw.d.ts} +5 -3
- package/dist/types-CtTBwGbw.d.ts.map +1 -0
- package/dist/types-D_mx318Q.d.cts +29 -0
- package/dist/types-D_mx318Q.d.cts.map +1 -0
- package/dist/types-DkJtNDXU.d.ts +29 -0
- package/dist/types-DkJtNDXU.d.ts.map +1 -0
- package/dist/types-qB8a4WQT.d.ts +29 -0
- package/dist/types-qB8a4WQT.d.ts.map +1 -0
- package/dist/types.d.cts +3 -4
- package/dist/types.d.ts +3 -4
- package/dist/update-issue-B6eZhAPJ.cjs +115 -0
- package/dist/update-issue-B6eZhAPJ.cjs.map +1 -0
- package/dist/update-issue-DmLElHPS.js +109 -0
- package/dist/update-issue-DmLElHPS.js.map +1 -0
- package/dist/update-project-BNPev7W8.js +120 -0
- package/dist/update-project-BNPev7W8.js.map +1 -0
- package/dist/update-project-CijYCtG1.cjs +126 -0
- package/dist/update-project-CijYCtG1.cjs.map +1 -0
- 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-C4uvMmw0.js.map +1 -0
- package/dist/{version-BNmubeQI.cjs → version-Ddz4xg_q.cjs} +2 -2
- package/dist/version-Ddz4xg_q.cjs.map +1 -0
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/whoami-CEgbTUqt.cjs +28 -0
- package/dist/whoami-CEgbTUqt.cjs.map +1 -0
- package/dist/whoami-DesNZnaQ.js +23 -0
- package/dist/whoami-DesNZnaQ.js.map +1 -0
- package/package.json +24 -14
- package/dist/api-client/client.test.cjs +0 -33
- package/dist/api-client/client.test.cjs.map +0 -1
- package/dist/api-client/client.test.d.ts +0 -1
- package/dist/api-client/client.test.js +0 -33
- package/dist/api-client/client.test.js.map +0 -1
- package/dist/chunk-BLXvPPr8.js +0 -30
- package/dist/client-4jq_wVgn.d.ts.map +0 -1
- package/dist/client-B7vZ6JMk.cjs.map +0 -1
- package/dist/client-CAoHZbyK.js.map +0 -1
- package/dist/client-DkY0ifZf.d.cts.map +0 -1
- package/dist/dist-BlIWGSIM.cjs +0 -8197
- package/dist/dist-BlIWGSIM.cjs.map +0 -1
- package/dist/dist-DDpQABxe.js +0 -8054
- package/dist/dist-DDpQABxe.js.map +0 -1
- package/dist/errors.test.cjs +0 -24
- package/dist/errors.test.cjs.map +0 -1
- package/dist/errors.test.d.cts +0 -1
- package/dist/errors.test.d.ts +0 -1
- package/dist/errors.test.js +0 -24
- package/dist/errors.test.js.map +0 -1
- package/dist/formatting-BaARL2gT.js +0 -68
- package/dist/formatting-BaARL2gT.js.map +0 -1
- package/dist/formatting-C2kN0ok6.cjs +0 -86
- package/dist/formatting-C2kN0ok6.cjs.map +0 -1
- package/dist/index-h64gcVNJ.d.ts +0 -1
- package/dist/internal/formatting.d.cts.map +0 -1
- package/dist/internal/formatting.d.ts.map +0 -1
- package/dist/internal/issue-helpers.d.cts.map +0 -1
- package/dist/internal/issue-helpers.d.ts.map +0 -1
- package/dist/internal/issue-helpers.test.cjs +0 -110
- package/dist/internal/issue-helpers.test.cjs.map +0 -1
- package/dist/internal/issue-helpers.test.d.cts +0 -1
- package/dist/internal/issue-helpers.test.d.ts +0 -1
- package/dist/internal/issue-helpers.test.js +0 -110
- package/dist/internal/issue-helpers.test.js.map +0 -1
- package/dist/magic-string.es-CybcVAw7.cjs +0 -1016
- package/dist/magic-string.es-CybcVAw7.cjs.map +0 -1
- package/dist/magic-string.es-DY8GVHw9.js +0 -1015
- package/dist/magic-string.es-DY8GVHw9.js.map +0 -1
- package/dist/promptDefinitions-BTLIBcGt.cjs.map +0 -1
- package/dist/promptDefinitions-CF2VWdQ6.d.cts.map +0 -1
- package/dist/promptDefinitions-D5FSQckL.d.ts.map +0 -1
- package/dist/resources-Bol20Xuo.js +0 -38
- package/dist/resources-Bol20Xuo.js.map +0 -1
- package/dist/resources-DNyoutxH.cjs +0 -44
- package/dist/resources-DNyoutxH.cjs.map +0 -1
- package/dist/schema-BJv7kREf.d.cts.map +0 -1
- package/dist/schema-BTfISwFu.cjs.map +0 -1
- package/dist/schema-BnxGHL_i.d.ts.map +0 -1
- package/dist/schema-BsvGMALe.cjs.map +0 -1
- package/dist/schema-C_hp0BR7.js.map +0 -1
- package/dist/server-C7cHq_pc.js.map +0 -1
- package/dist/server-DeutbO8v.cjs.map +0 -1
- package/dist/stdio-B73CCTly.cjs.map +0 -1
- package/dist/stdio-ZQLC-i5Q.js.map +0 -1
- package/dist/toolDefinitions-BOMF-zIC.d.ts +0 -394
- package/dist/toolDefinitions-BOMF-zIC.d.ts.map +0 -1
- package/dist/toolDefinitions-CUegGcWU.cjs +0 -547
- package/dist/toolDefinitions-CUegGcWU.cjs.map +0 -1
- package/dist/toolDefinitions-DFAxp3nr.js +0 -541
- package/dist/toolDefinitions-DFAxp3nr.js.map +0 -1
- package/dist/toolDefinitions-Ipvr4Acw.d.cts +0 -394
- package/dist/toolDefinitions-Ipvr4Acw.d.cts.map +0 -1
- package/dist/toolDefinitions.cjs +0 -4
- package/dist/toolDefinitions.d.cts +0 -2
- package/dist/toolDefinitions.test.cjs +0 -15
- package/dist/toolDefinitions.test.cjs.map +0 -1
- package/dist/toolDefinitions.test.d.cts +0 -1
- package/dist/toolDefinitions.test.d.ts +0 -1
- package/dist/toolDefinitions.test.js +0 -15
- package/dist/toolDefinitions.test.js.map +0 -1
- package/dist/tools-DpiQwSTY.js +0 -596
- package/dist/tools-DpiQwSTY.js.map +0 -1
- package/dist/tools-DyOqlsCW.cjs +0 -602
- package/dist/tools-DyOqlsCW.cjs.map +0 -1
- package/dist/tools.cjs +0 -11
- package/dist/tools.d.cts +0 -335
- package/dist/tools.d.cts.map +0 -1
- package/dist/tools.d.ts +0 -335
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -11
- package/dist/tools.test.cjs +0 -1298
- package/dist/tools.test.cjs.map +0 -1
- package/dist/tools.test.d.cts +0 -1
- package/dist/tools.test.d.ts +0 -1
- package/dist/tools.test.js +0 -1298
- package/dist/tools.test.js.map +0 -1
- package/dist/types-D5TPcOfv.d.ts +0 -39
- package/dist/types-D5TPcOfv.d.ts.map +0 -1
- package/dist/types-DRF2IoP_.d.cts +0 -39
- package/dist/types-DRF2IoP_.d.cts.map +0 -1
- package/dist/types-Daq2fm0E.d.ts.map +0 -1
- package/dist/types-NIQW7KyF.d.cts.map +0 -1
- package/dist/version-BNmubeQI.cjs.map +0 -1
- package/dist/version-CRto5Sn_.js +0 -6
- package/dist/version-CRto5Sn_.js.map +0 -1
- package/dist/vi.bdSIJ99Y-BfJr7I2s.js +0 -6349
- package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +0 -1
- package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs +0 -6355
- package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +0 -1
- /package/dist/{api-client-CNv_hbPO.js → api-client-ChL_0F2u.js} +0 -0
- /package/dist/{types-6zHoEWAx.js → fetch-utils-C0F4eH6S.cjs} +0 -0
- /package/dist/{api-client/client.test.d.cts → index-DVGDAddE.d.ts} +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/utils/url-utils.ts
|
|
3
|
+
/**
|
|
4
|
+
* Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
|
|
5
|
+
* Throws an error if validation fails instead of exiting the process.
|
|
6
|
+
*
|
|
7
|
+
* @param host The hostname to validate
|
|
8
|
+
* @throws {Error} If the host contains a protocol
|
|
9
|
+
*/
|
|
10
|
+
function _validateSentryHostInternal(host) {
|
|
11
|
+
if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
15
|
+
* Throws an error if validation fails instead of exiting the process.
|
|
16
|
+
*
|
|
17
|
+
* @param url The HTTPS URL to validate and parse
|
|
18
|
+
* @returns The extracted hostname from the URL
|
|
19
|
+
* @throws {Error} If the URL is invalid or not HTTPS
|
|
20
|
+
*/
|
|
21
|
+
function _validateAndParseSentryUrlInternal(url) {
|
|
22
|
+
if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
|
|
23
|
+
try {
|
|
24
|
+
const parsedUrl = new URL(url);
|
|
25
|
+
return parsedUrl.host;
|
|
26
|
+
} catch (error) {
|
|
27
|
+
throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
32
|
+
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
33
|
+
*
|
|
34
|
+
* @param host The hostname to validate
|
|
35
|
+
*/
|
|
36
|
+
function validateSentryHost(host) {
|
|
37
|
+
try {
|
|
38
|
+
_validateSentryHostInternal(host);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
console.error(`Error: ${error.message}`);
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
46
|
+
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
47
|
+
*
|
|
48
|
+
* @param url The HTTPS URL to validate and parse
|
|
49
|
+
* @returns The extracted hostname from the URL
|
|
50
|
+
*/
|
|
51
|
+
function validateAndParseSentryUrl(url) {
|
|
52
|
+
try {
|
|
53
|
+
return _validateAndParseSentryUrlInternal(url);
|
|
54
|
+
} catch (error) {
|
|
55
|
+
console.error(`Error: ${error.message}`);
|
|
56
|
+
process.exit(1);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
61
|
+
* Throws an error instead of exiting the process (for testing).
|
|
62
|
+
*
|
|
63
|
+
* @param host The hostname to validate
|
|
64
|
+
* @throws {Error} If the host contains a protocol
|
|
65
|
+
*/
|
|
66
|
+
function validateSentryHostThrows(host) {
|
|
67
|
+
_validateSentryHostInternal(host);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
71
|
+
* Throws an error instead of exiting the process (for testing).
|
|
72
|
+
*
|
|
73
|
+
* @param url The HTTPS URL to validate and parse
|
|
74
|
+
* @returns The extracted hostname from the URL
|
|
75
|
+
* @throws {Error} If the URL is invalid or not HTTPS
|
|
76
|
+
*/
|
|
77
|
+
function validateAndParseSentryUrlThrows(url) {
|
|
78
|
+
return _validateAndParseSentryUrlInternal(url);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
Object.defineProperty(exports, 'validateAndParseSentryUrl', {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () {
|
|
85
|
+
return validateAndParseSentryUrl;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, 'validateAndParseSentryUrlThrows', {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () {
|
|
91
|
+
return validateAndParseSentryUrlThrows;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, 'validateSentryHost', {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () {
|
|
97
|
+
return validateSentryHost;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, 'validateSentryHostThrows', {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () {
|
|
103
|
+
return validateSentryHostThrows;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
//# sourceMappingURL=url-utils-C9hykWmk.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-utils-C9hykWmk.cjs","names":["host: string","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n"],"mappings":";;;;;;;;;AAOA,SAAS,4BAA4BA,MAAoB;AACvD,KAAI,KAAK,WAAW,UAAU,IAAI,KAAK,WAAW,WAAW,CAC3D,OAAM,IAAI,MACR;AAGL;;;;;;;;;AAUD,SAAS,mCAAmCC,KAAqB;AAC/D,MAAK,IAAI,WAAW,WAAW,CAC7B,OAAM,IAAI,MACR;AAIJ,KAAI;EACF,MAAM,YAAY,IAAI,IAAI;AAC1B,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,QAAM,IAAI,MACR;CAEH;AACF;;;;;;;AAQD,SAAgB,mBAAmBD,MAAoB;AACrD,KAAI;AACF,8BAA4B,KAAK;CAClC,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,0BAA0BC,KAAqB;AAC7D,KAAI;AACF,SAAO,mCAAmC,IAAI;CAC/C,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,yBAAyBD,MAAoB;AAC3D,6BAA4B,KAAK;AAClC;;;;;;;;;AAUD,SAAgB,gCAAgCC,KAAqB;AACnE,QAAO,mCAAmC,IAAI;AAC/C"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
//#region src/utils/url-utils.ts
|
|
2
|
+
/**
|
|
3
|
+
* Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).
|
|
4
|
+
* Throws an error if validation fails instead of exiting the process.
|
|
5
|
+
*
|
|
6
|
+
* @param host The hostname to validate
|
|
7
|
+
* @throws {Error} If the host contains a protocol
|
|
8
|
+
*/
|
|
9
|
+
function _validateSentryHostInternal(host) {
|
|
10
|
+
if (host.startsWith("http://") || host.startsWith("https://")) throw new Error("SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.");
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
14
|
+
* Throws an error if validation fails instead of exiting the process.
|
|
15
|
+
*
|
|
16
|
+
* @param url The HTTPS URL to validate and parse
|
|
17
|
+
* @returns The extracted hostname from the URL
|
|
18
|
+
* @throws {Error} If the URL is invalid or not HTTPS
|
|
19
|
+
*/
|
|
20
|
+
function _validateAndParseSentryUrlInternal(url) {
|
|
21
|
+
if (!url.startsWith("https://")) throw new Error("SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).");
|
|
22
|
+
try {
|
|
23
|
+
const parsedUrl = new URL(url);
|
|
24
|
+
return parsedUrl.host;
|
|
25
|
+
} catch (error) {
|
|
26
|
+
throw new Error("SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
31
|
+
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
32
|
+
*
|
|
33
|
+
* @param host The hostname to validate
|
|
34
|
+
*/
|
|
35
|
+
function validateSentryHost(host) {
|
|
36
|
+
try {
|
|
37
|
+
_validateSentryHostInternal(host);
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error(`Error: ${error.message}`);
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
45
|
+
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
46
|
+
*
|
|
47
|
+
* @param url The HTTPS URL to validate and parse
|
|
48
|
+
* @returns The extracted hostname from the URL
|
|
49
|
+
*/
|
|
50
|
+
function validateAndParseSentryUrl(url) {
|
|
51
|
+
try {
|
|
52
|
+
return _validateAndParseSentryUrlInternal(url);
|
|
53
|
+
} catch (error) {
|
|
54
|
+
console.error(`Error: ${error.message}`);
|
|
55
|
+
process.exit(1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
60
|
+
* Throws an error instead of exiting the process (for testing).
|
|
61
|
+
*
|
|
62
|
+
* @param host The hostname to validate
|
|
63
|
+
* @throws {Error} If the host contains a protocol
|
|
64
|
+
*/
|
|
65
|
+
function validateSentryHostThrows(host) {
|
|
66
|
+
_validateSentryHostInternal(host);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
70
|
+
* Throws an error instead of exiting the process (for testing).
|
|
71
|
+
*
|
|
72
|
+
* @param url The HTTPS URL to validate and parse
|
|
73
|
+
* @returns The extracted hostname from the URL
|
|
74
|
+
* @throws {Error} If the URL is invalid or not HTTPS
|
|
75
|
+
*/
|
|
76
|
+
function validateAndParseSentryUrlThrows(url) {
|
|
77
|
+
return _validateAndParseSentryUrlInternal(url);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
82
|
+
//# sourceMappingURL=url-utils-DvZYfzPM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-utils-DvZYfzPM.js","names":["host: string","url: string"],"sources":["../src/utils/url-utils.ts"],"sourcesContent":["/**\n * Internal validation function that checks if a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nfunction _validateSentryHostInternal(host: string): void {\n if (host.startsWith(\"http://\") || host.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_HOST should only contain a hostname (e.g., sentry.example.com). Use SENTRY_URL if you want to provide a full URL.\",\n );\n }\n}\n\n/**\n * Internal validation function that checks if a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error if validation fails instead of exiting the process.\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nfunction _validateAndParseSentryUrlInternal(url: string): string {\n if (!url.startsWith(\"https://\")) {\n throw new Error(\n \"SENTRY_URL must be a full HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n\n try {\n const parsedUrl = new URL(url);\n return parsedUrl.host;\n } catch (error) {\n throw new Error(\n \"SENTRY_URL must be a valid HTTPS URL (e.g., https://sentry.example.com).\",\n );\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param host The hostname to validate\n */\nexport function validateSentryHost(host: string): void {\n try {\n _validateSentryHostInternal(host);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Exits the process with error code 1 if validation fails (CLI behavior).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n */\nexport function validateAndParseSentryUrl(url: string): string {\n try {\n return _validateAndParseSentryUrlInternal(url);\n } catch (error) {\n console.error(`Error: ${(error as Error).message}`);\n process.exit(1);\n }\n}\n\n/**\n * Validates that a SENTRY_HOST value contains only hostname (no protocol).\n * Throws an error instead of exiting the process (for testing).\n *\n * @param host The hostname to validate\n * @throws {Error} If the host contains a protocol\n */\nexport function validateSentryHostThrows(host: string): void {\n _validateSentryHostInternal(host);\n}\n\n/**\n * Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.\n * Throws an error instead of exiting the process (for testing).\n *\n * @param url The HTTPS URL to validate and parse\n * @returns The extracted hostname from the URL\n * @throws {Error} If the URL is invalid or not HTTPS\n */\nexport function validateAndParseSentryUrlThrows(url: string): string {\n return _validateAndParseSentryUrlInternal(url);\n}\n"],"mappings":";;;;;;;;AAOA,SAAS,4BAA4BA,MAAoB;AACvD,KAAI,KAAK,WAAW,UAAU,IAAI,KAAK,WAAW,WAAW,CAC3D,OAAM,IAAI,MACR;AAGL;;;;;;;;;AAUD,SAAS,mCAAmCC,KAAqB;AAC/D,MAAK,IAAI,WAAW,WAAW,CAC7B,OAAM,IAAI,MACR;AAIJ,KAAI;EACF,MAAM,YAAY,IAAI,IAAI;AAC1B,SAAO,UAAU;CAClB,SAAQ,OAAO;AACd,QAAM,IAAI,MACR;CAEH;AACF;;;;;;;AAQD,SAAgB,mBAAmBD,MAAoB;AACrD,KAAI;AACF,8BAA4B,KAAK;CAClC,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,0BAA0BC,KAAqB;AAC7D,KAAI;AACF,SAAO,mCAAmC,IAAI;CAC/C,SAAQ,OAAO;AACd,UAAQ,OAAO,SAAU,MAAgB,UAAU;AACnD,UAAQ,KAAK,EAAE;CAChB;AACF;;;;;;;;AASD,SAAgB,yBAAyBD,MAAoB;AAC3D,6BAA4B,KAAK;AAClC;;;;;;;;;AAUD,SAAgB,gCAAgCC,KAAqB;AACnE,QAAO,mCAAmC,IAAI;AAC/C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const require_url_utils = require('../url-utils-C9hykWmk.cjs');
|
|
2
|
+
|
|
3
|
+
exports.validateAndParseSentryUrl = require_url_utils.validateAndParseSentryUrl;
|
|
4
|
+
exports.validateAndParseSentryUrlThrows = require_url_utils.validateAndParseSentryUrlThrows;
|
|
5
|
+
exports.validateSentryHost = require_url_utils.validateSentryHost;
|
|
6
|
+
exports.validateSentryHostThrows = require_url_utils.validateSentryHostThrows;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/utils/url-utils.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
4
|
+
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
5
|
+
*
|
|
6
|
+
* @param host The hostname to validate
|
|
7
|
+
*/
|
|
8
|
+
declare function validateSentryHost(host: string): void;
|
|
9
|
+
/**
|
|
10
|
+
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
11
|
+
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
12
|
+
*
|
|
13
|
+
* @param url The HTTPS URL to validate and parse
|
|
14
|
+
* @returns The extracted hostname from the URL
|
|
15
|
+
*/
|
|
16
|
+
declare function validateAndParseSentryUrl(url: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
19
|
+
* Throws an error instead of exiting the process (for testing).
|
|
20
|
+
*
|
|
21
|
+
* @param host The hostname to validate
|
|
22
|
+
* @throws {Error} If the host contains a protocol
|
|
23
|
+
*/
|
|
24
|
+
declare function validateSentryHostThrows(host: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
27
|
+
* Throws an error instead of exiting the process (for testing).
|
|
28
|
+
*
|
|
29
|
+
* @param url The HTTPS URL to validate and parse
|
|
30
|
+
* @returns The extracted hostname from the URL
|
|
31
|
+
* @throws {Error} If the URL is invalid or not HTTPS
|
|
32
|
+
*/
|
|
33
|
+
declare function validateAndParseSentryUrlThrows(url: string): string;
|
|
34
|
+
//# sourceMappingURL=url-utils.d.ts.map
|
|
35
|
+
//#endregion
|
|
36
|
+
export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
37
|
+
//# sourceMappingURL=url-utils.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-utils.d.cts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AA8CA;AAgBA;AAgBA;AAYA;;iBA5CgB,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/utils/url-utils.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
4
|
+
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
5
|
+
*
|
|
6
|
+
* @param host The hostname to validate
|
|
7
|
+
*/
|
|
8
|
+
declare function validateSentryHost(host: string): void;
|
|
9
|
+
/**
|
|
10
|
+
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
11
|
+
* Exits the process with error code 1 if validation fails (CLI behavior).
|
|
12
|
+
*
|
|
13
|
+
* @param url The HTTPS URL to validate and parse
|
|
14
|
+
* @returns The extracted hostname from the URL
|
|
15
|
+
*/
|
|
16
|
+
declare function validateAndParseSentryUrl(url: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Validates that a SENTRY_HOST value contains only hostname (no protocol).
|
|
19
|
+
* Throws an error instead of exiting the process (for testing).
|
|
20
|
+
*
|
|
21
|
+
* @param host The hostname to validate
|
|
22
|
+
* @throws {Error} If the host contains a protocol
|
|
23
|
+
*/
|
|
24
|
+
declare function validateSentryHostThrows(host: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Validates that a SENTRY_URL value is a valid HTTPS URL and extracts the hostname.
|
|
27
|
+
* Throws an error instead of exiting the process (for testing).
|
|
28
|
+
*
|
|
29
|
+
* @param url The HTTPS URL to validate and parse
|
|
30
|
+
* @returns The extracted hostname from the URL
|
|
31
|
+
* @throws {Error} If the URL is invalid or not HTTPS
|
|
32
|
+
*/
|
|
33
|
+
declare function validateAndParseSentryUrlThrows(url: string): string;
|
|
34
|
+
//# sourceMappingURL=url-utils.d.ts.map
|
|
35
|
+
//#endregion
|
|
36
|
+
export { validateAndParseSentryUrl, validateAndParseSentryUrlThrows, validateSentryHost, validateSentryHostThrows };
|
|
37
|
+
//# sourceMappingURL=url-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-utils.d.ts","names":[],"sources":["../../src/utils/url-utils.ts"],"sourcesContent":[],"mappings":";;AA8CA;AAgBA;AAgBA;AAYA;;iBA5CgB,kBAAA;;;;;;;;iBAgBA,yBAAA;;;;;;;;iBAgBA,wBAAA;;;;;;;;;iBAYA,+BAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-C4uvMmw0.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["export const LIB_VERSION =\n (typeof process !== \"undefined\" && process.env?.npm_package_version) ||\n \"0.0.0\";\n"],"mappings":";AAAA,MAAa,qBACH,YAAY,2BACpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/version.ts
|
|
3
|
-
const LIB_VERSION = "0.
|
|
3
|
+
const LIB_VERSION = typeof process !== "undefined" && "0.14.0" || "0.0.0";
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
Object.defineProperty(exports, 'LIB_VERSION', {
|
|
@@ -9,4 +9,4 @@ Object.defineProperty(exports, 'LIB_VERSION', {
|
|
|
9
9
|
return LIB_VERSION;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
//# sourceMappingURL=version-
|
|
12
|
+
//# sourceMappingURL=version-Ddz4xg_q.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-Ddz4xg_q.cjs","names":[],"sources":["../src/version.ts"],"sourcesContent":["export const LIB_VERSION =\n (typeof process !== \"undefined\" && process.env?.npm_package_version) ||\n \"0.0.0\";\n"],"mappings":";;AAAA,MAAa,qBACH,YAAY,2BACpB"}
|
package/dist/version.cjs
CHANGED
package/dist/version.js
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_defineTool = require('./defineTool-lWNTzWl_.cjs');
|
|
2
|
+
const require_api_utils = require('./api-utils-d36iteNO.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/tools/whoami.ts
|
|
5
|
+
var whoami_default = require_defineTool.defineTool({
|
|
6
|
+
name: "whoami",
|
|
7
|
+
description: [
|
|
8
|
+
"Identify the authenticated user in Sentry.",
|
|
9
|
+
"",
|
|
10
|
+
"Use this tool when you need to:",
|
|
11
|
+
"- Get the user's name and email address."
|
|
12
|
+
].join("\n"),
|
|
13
|
+
inputSchema: {},
|
|
14
|
+
async handler(params, context) {
|
|
15
|
+
const apiService = require_api_utils.apiServiceFromContext(context);
|
|
16
|
+
const user = await apiService.getAuthenticatedUser();
|
|
17
|
+
return `You are authenticated as ${user.name} (${user.email}).\n\nYour Sentry User ID is ${user.id}.`;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
Object.defineProperty(exports, 'whoami_default', {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () {
|
|
25
|
+
return whoami_default;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=whoami-CEgbTUqt.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whoami-CEgbTUqt.cjs","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"whoami\",\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n inputSchema: {},\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n const user = await apiService.getAuthenticatedUser();\n return `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n },\n});\n"],"mappings":";;;;AAKA,qBAAe,8BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,wCAAsB,QAAQ;EACjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,UAAQ,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;CACpG;AACF,EAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineTool } from "./defineTool-77H4nSna.js";
|
|
2
|
+
import { apiServiceFromContext } from "./api-utils-C6QJAzFL.js";
|
|
3
|
+
|
|
4
|
+
//#region src/tools/whoami.ts
|
|
5
|
+
var whoami_default = defineTool({
|
|
6
|
+
name: "whoami",
|
|
7
|
+
description: [
|
|
8
|
+
"Identify the authenticated user in Sentry.",
|
|
9
|
+
"",
|
|
10
|
+
"Use this tool when you need to:",
|
|
11
|
+
"- Get the user's name and email address."
|
|
12
|
+
].join("\n"),
|
|
13
|
+
inputSchema: {},
|
|
14
|
+
async handler(params, context) {
|
|
15
|
+
const apiService = apiServiceFromContext(context);
|
|
16
|
+
const user = await apiService.getAuthenticatedUser();
|
|
17
|
+
return `You are authenticated as ${user.name} (${user.email}).\n\nYour Sentry User ID is ${user.id}.`;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { whoami_default };
|
|
23
|
+
//# sourceMappingURL=whoami-DesNZnaQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whoami-DesNZnaQ.js","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineTool } from \"./utils/defineTool\";\nimport { apiServiceFromContext } from \"./utils/api-utils\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"whoami\",\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n inputSchema: {},\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n const user = await apiService.getAuthenticatedUser();\n return `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n },\n});\n"],"mappings":";;;;AAKA,qBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,sBAAsB,QAAQ;EACjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,UAAQ,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;CACpG;AACF,EAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"types": "./dist/api-client/index.ts",
|
|
38
38
|
"default": "./dist/api-client/index.js"
|
|
39
39
|
},
|
|
40
|
+
"./constants": {
|
|
41
|
+
"types": "./dist/constants.ts",
|
|
42
|
+
"default": "./dist/constants.js"
|
|
43
|
+
},
|
|
40
44
|
"./logging": {
|
|
41
45
|
"types": "./dist/logging.ts",
|
|
42
46
|
"default": "./dist/logging.js"
|
|
@@ -53,12 +57,15 @@
|
|
|
53
57
|
"types": "./dist/promptDefinitions.ts",
|
|
54
58
|
"default": "./dist/promptDefinitions.js"
|
|
55
59
|
},
|
|
60
|
+
"./prompts": {
|
|
61
|
+
"types": "./dist/prompts.ts",
|
|
62
|
+
"default": "./dist/prompts.js"
|
|
63
|
+
},
|
|
56
64
|
"./resources": {
|
|
57
65
|
"types": "./dist/resources.ts",
|
|
58
66
|
"default": "./dist/resources.js"
|
|
59
67
|
},
|
|
60
68
|
"./toolDefinitions": {
|
|
61
|
-
"types": "./dist/toolDefinitions.ts",
|
|
62
69
|
"default": "./dist/toolDefinitions.js"
|
|
63
70
|
},
|
|
64
71
|
"./types": {
|
|
@@ -71,22 +78,25 @@
|
|
|
71
78
|
}
|
|
72
79
|
},
|
|
73
80
|
"devDependencies": {
|
|
74
|
-
"msw": "^2.
|
|
75
|
-
"
|
|
76
|
-
"@sentry/mcp-server-
|
|
81
|
+
"msw": "^2.10.2",
|
|
82
|
+
"zod-to-json-schema": "^3.24.6",
|
|
83
|
+
"@sentry/mcp-server-mocks": "0.14.0",
|
|
84
|
+
"@sentry/mcp-server-tsconfig": "0.14.0"
|
|
77
85
|
},
|
|
78
86
|
"dependencies": {
|
|
79
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
80
|
-
"@sentry/core": "^9.
|
|
81
|
-
"@sentry/node": "^9.
|
|
82
|
-
"zod": "^3.25.
|
|
87
|
+
"@modelcontextprotocol/sdk": "^1.13.2",
|
|
88
|
+
"@sentry/core": "^9.33.0",
|
|
89
|
+
"@sentry/node": "^9.33.0",
|
|
90
|
+
"zod": "^3.25.67"
|
|
83
91
|
},
|
|
84
92
|
"scripts": {
|
|
85
|
-
"build": "tsdown",
|
|
86
|
-
"dev": "tsc -w",
|
|
93
|
+
"build": "tsdown && pnpm run generate-tool-definitions",
|
|
94
|
+
"dev": "pnpm run generate-tool-definitions && tsc -w",
|
|
87
95
|
"start": "tsx src/index.ts",
|
|
88
|
-
"test": "vitest",
|
|
89
|
-
"test:ci": "vitest run --coverage --reporter=junit --outputFile=tests.junit.xml",
|
|
90
|
-
"
|
|
96
|
+
"test": "pnpm run generate-tool-definitions && vitest",
|
|
97
|
+
"test:ci": "pnpm run generate-tool-definitions && vitest run --coverage --reporter=junit --outputFile=tests.junit.xml",
|
|
98
|
+
"tsc": "tsc --noEmit",
|
|
99
|
+
"test:watch": "vitest watch",
|
|
100
|
+
"generate-tool-definitions": "tsx scripts/generate-tool-definitions.ts"
|
|
91
101
|
}
|
|
92
102
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const require_dist = require('../dist-BlIWGSIM.cjs');
|
|
2
|
-
const require_vi_bdSIJ99Y = require('../vi.bdSIJ99Y-Dft_B_Ta.cjs');
|
|
3
|
-
require('../schema-BsvGMALe.cjs');
|
|
4
|
-
const require_client = require('../client-B7vZ6JMk.cjs');
|
|
5
|
-
|
|
6
|
-
//#region src/api-client/client.test.ts
|
|
7
|
-
require_dist.describe("getIssueUrl", () => {
|
|
8
|
-
require_dist.it("should work with sentry.io", () => {
|
|
9
|
-
const apiService = new require_client.SentryApiService({ host: "sentry.io" });
|
|
10
|
-
const result = apiService.getIssueUrl("sentry-mcp", "123456");
|
|
11
|
-
require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`"https://sentry-mcp.sentry.io/issues/123456"`);
|
|
12
|
-
});
|
|
13
|
-
require_dist.it("should work with self-hosted", () => {
|
|
14
|
-
const apiService = new require_client.SentryApiService({ host: "sentry.example.com" });
|
|
15
|
-
const result = apiService.getIssueUrl("sentry-mcp", "123456");
|
|
16
|
-
require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`"https://sentry.example.com/organizations/sentry-mcp/issues/123456"`);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
require_dist.describe("getTraceUrl", () => {
|
|
20
|
-
require_dist.it("should work with sentry.io", () => {
|
|
21
|
-
const apiService = new require_client.SentryApiService({ host: "sentry.io" });
|
|
22
|
-
const result = apiService.getTraceUrl("sentry-mcp", "6a477f5b0f31ef7b6b9b5e1dea66c91d");
|
|
23
|
-
require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`"https://sentry-mcp.sentry.io/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d"`);
|
|
24
|
-
});
|
|
25
|
-
require_dist.it("should work with self-hosted", () => {
|
|
26
|
-
const apiService = new require_client.SentryApiService({ host: "sentry.example.com" });
|
|
27
|
-
const result = apiService.getTraceUrl("sentry-mcp", "6a477f5b0f31ef7b6b9b5e1dea66c91d");
|
|
28
|
-
require_vi_bdSIJ99Y.globalExpect(result).toMatchInlineSnapshot(`"https://sentry.example.com/organizations/sentry-mcp/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d"`);
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
//# sourceMappingURL=client.test.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.test.cjs","names":["SentryApiService"],"sources":["../../src/api-client/client.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { SentryApiService } from \"./client.js\";\n\ndescribe(\"getIssueUrl\", () => {\n it(\"should work with sentry.io\", () => {\n const apiService = new SentryApiService({ host: \"sentry.io\" });\n const result = apiService.getIssueUrl(\"sentry-mcp\", \"123456\");\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry-mcp.sentry.io/issues/123456\"`,\n );\n });\n it(\"should work with self-hosted\", () => {\n const apiService = new SentryApiService({ host: \"sentry.example.com\" });\n const result = apiService.getIssueUrl(\"sentry-mcp\", \"123456\");\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry.example.com/organizations/sentry-mcp/issues/123456\"`,\n );\n });\n});\n\ndescribe(\"getTraceUrl\", () => {\n it(\"should work with sentry.io\", () => {\n const apiService = new SentryApiService({ host: \"sentry.io\" });\n const result = apiService.getTraceUrl(\n \"sentry-mcp\",\n \"6a477f5b0f31ef7b6b9b5e1dea66c91d\",\n );\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry-mcp.sentry.io/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d\"`,\n );\n });\n it(\"should work with self-hosted\", () => {\n const apiService = new SentryApiService({ host: \"sentry.example.com\" });\n const result = apiService.getTraceUrl(\n \"sentry-mcp\",\n \"6a477f5b0f31ef7b6b9b5e1dea66c91d\",\n );\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry.example.com/organizations/sentry-mcp/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d\"`,\n );\n });\n});\n"],"mappings":";;;;;;AAGA,sBAAS,eAAe,MAAM;AAC5B,iBAAG,8BAA8B,MAAM;EACrC,MAAM,aAAa,IAAIA,gCAAiB,EAAE,MAAM,YAAa;EAC7D,MAAM,SAAS,WAAW,YAAY,cAAc,SAAS;AAC7D,mCAAO,OAAO,CAAC,uBACZ,8CACF;CACF,EAAC;AACF,iBAAG,gCAAgC,MAAM;EACvC,MAAM,aAAa,IAAIA,gCAAiB,EAAE,MAAM,qBAAsB;EACtE,MAAM,SAAS,WAAW,YAAY,cAAc,SAAS;AAC7D,mCAAO,OAAO,CAAC,uBACZ,qEACF;CACF,EAAC;AACH,EAAC;AAEF,sBAAS,eAAe,MAAM;AAC5B,iBAAG,8BAA8B,MAAM;EACrC,MAAM,aAAa,IAAIA,gCAAiB,EAAE,MAAM,YAAa;EAC7D,MAAM,SAAS,WAAW,YACxB,cACA,mCACD;AACD,mCAAO,OAAO,CAAC,uBACZ,sFACF;CACF,EAAC;AACF,iBAAG,gCAAgC,MAAM;EACvC,MAAM,aAAa,IAAIA,gCAAiB,EAAE,MAAM,qBAAsB;EACtE,MAAM,SAAS,WAAW,YACxB,cACA,mCACD;AACD,mCAAO,OAAO,CAAC,uBACZ,6GACF;CACF,EAAC;AACH,EAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { describe, it } from "../dist-DDpQABxe.js";
|
|
2
|
-
import { globalExpect } from "../vi.bdSIJ99Y-BfJr7I2s.js";
|
|
3
|
-
import "../schema-C_hp0BR7.js";
|
|
4
|
-
import { SentryApiService } from "../client-CAoHZbyK.js";
|
|
5
|
-
|
|
6
|
-
//#region src/api-client/client.test.ts
|
|
7
|
-
describe("getIssueUrl", () => {
|
|
8
|
-
it("should work with sentry.io", () => {
|
|
9
|
-
const apiService = new SentryApiService({ host: "sentry.io" });
|
|
10
|
-
const result = apiService.getIssueUrl("sentry-mcp", "123456");
|
|
11
|
-
globalExpect(result).toMatchInlineSnapshot(`"https://sentry-mcp.sentry.io/issues/123456"`);
|
|
12
|
-
});
|
|
13
|
-
it("should work with self-hosted", () => {
|
|
14
|
-
const apiService = new SentryApiService({ host: "sentry.example.com" });
|
|
15
|
-
const result = apiService.getIssueUrl("sentry-mcp", "123456");
|
|
16
|
-
globalExpect(result).toMatchInlineSnapshot(`"https://sentry.example.com/organizations/sentry-mcp/issues/123456"`);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
describe("getTraceUrl", () => {
|
|
20
|
-
it("should work with sentry.io", () => {
|
|
21
|
-
const apiService = new SentryApiService({ host: "sentry.io" });
|
|
22
|
-
const result = apiService.getTraceUrl("sentry-mcp", "6a477f5b0f31ef7b6b9b5e1dea66c91d");
|
|
23
|
-
globalExpect(result).toMatchInlineSnapshot(`"https://sentry-mcp.sentry.io/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d"`);
|
|
24
|
-
});
|
|
25
|
-
it("should work with self-hosted", () => {
|
|
26
|
-
const apiService = new SentryApiService({ host: "sentry.example.com" });
|
|
27
|
-
const result = apiService.getTraceUrl("sentry-mcp", "6a477f5b0f31ef7b6b9b5e1dea66c91d");
|
|
28
|
-
globalExpect(result).toMatchInlineSnapshot(`"https://sentry.example.com/organizations/sentry-mcp/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d"`);
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
//# sourceMappingURL=client.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.test.js","names":[],"sources":["../../src/api-client/client.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { SentryApiService } from \"./client.js\";\n\ndescribe(\"getIssueUrl\", () => {\n it(\"should work with sentry.io\", () => {\n const apiService = new SentryApiService({ host: \"sentry.io\" });\n const result = apiService.getIssueUrl(\"sentry-mcp\", \"123456\");\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry-mcp.sentry.io/issues/123456\"`,\n );\n });\n it(\"should work with self-hosted\", () => {\n const apiService = new SentryApiService({ host: \"sentry.example.com\" });\n const result = apiService.getIssueUrl(\"sentry-mcp\", \"123456\");\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry.example.com/organizations/sentry-mcp/issues/123456\"`,\n );\n });\n});\n\ndescribe(\"getTraceUrl\", () => {\n it(\"should work with sentry.io\", () => {\n const apiService = new SentryApiService({ host: \"sentry.io\" });\n const result = apiService.getTraceUrl(\n \"sentry-mcp\",\n \"6a477f5b0f31ef7b6b9b5e1dea66c91d\",\n );\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry-mcp.sentry.io/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d\"`,\n );\n });\n it(\"should work with self-hosted\", () => {\n const apiService = new SentryApiService({ host: \"sentry.example.com\" });\n const result = apiService.getTraceUrl(\n \"sentry-mcp\",\n \"6a477f5b0f31ef7b6b9b5e1dea66c91d\",\n );\n expect(result).toMatchInlineSnapshot(\n `\"https://sentry.example.com/organizations/sentry-mcp/explore/traces/trace/6a477f5b0f31ef7b6b9b5e1dea66c91d\"`,\n );\n });\n});\n"],"mappings":";;;;;;AAGA,SAAS,eAAe,MAAM;AAC5B,IAAG,8BAA8B,MAAM;EACrC,MAAM,aAAa,IAAI,iBAAiB,EAAE,MAAM,YAAa;EAC7D,MAAM,SAAS,WAAW,YAAY,cAAc,SAAS;AAC7D,eAAO,OAAO,CAAC,uBACZ,8CACF;CACF,EAAC;AACF,IAAG,gCAAgC,MAAM;EACvC,MAAM,aAAa,IAAI,iBAAiB,EAAE,MAAM,qBAAsB;EACtE,MAAM,SAAS,WAAW,YAAY,cAAc,SAAS;AAC7D,eAAO,OAAO,CAAC,uBACZ,qEACF;CACF,EAAC;AACH,EAAC;AAEF,SAAS,eAAe,MAAM;AAC5B,IAAG,8BAA8B,MAAM;EACrC,MAAM,aAAa,IAAI,iBAAiB,EAAE,MAAM,YAAa;EAC7D,MAAM,SAAS,WAAW,YACxB,cACA,mCACD;AACD,eAAO,OAAO,CAAC,uBACZ,sFACF;CACF,EAAC;AACF,IAAG,gCAAgC,MAAM;EACvC,MAAM,aAAa,IAAI,iBAAiB,EAAE,MAAM,qBAAsB;EACtE,MAAM,SAAS,WAAW,YACxB,cACA,mCACD;AACD,eAAO,OAAO,CAAC,uBACZ,6GACF;CACF,EAAC;AACH,EAAC"}
|
package/dist/chunk-BLXvPPr8.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __commonJS = (cb, mod) => function() {
|
|
11
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
15
|
-
key = keys[i];
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
-
get: ((k) => from[k]).bind(null, key),
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
-
value: mod,
|
|
25
|
-
enumerable: true
|
|
26
|
-
}) : target, mod));
|
|
27
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { __commonJS, __require, __toESM };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-4jq_wVgn.d.ts","names":[],"sources":["../src/api-client/client.ts"],"sourcesContent":[],"mappings":";;;;;;AA2DA;AAkBC;AAiDD;;;;;;;;;;;;;AAoPM,cAvTO,QAAA,SAAiB,KAAK,CAuT7B;EAAgB,MAChB,EAAA,MAAA;EAAI,WAKC,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;;KAzSN,cAAA,GA0SA;EAAO,IAsBD,CAAA,EAAA,MAAA;CAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgVnB,cAjmBO,gBAAA,CAimBP;EAAgB,QAChB,WAAA;EAAW,UACX,IAAA,EAAA,MAAA;EAAK,UACL,SAAA,EAAA,MAAA;EAAM;;;;;;;EA0CM,WAAb,CAAA;IAAA,WAAA;IAAA;EAcQ,CAdR,EAAA;IAaC,WAAA,CAAA,EAAA,MAAA,GAAA,IAAA;IACA,IAAA,CAAA,EAAA,MAAA;EAAO,CAAA;EACA;;;;;;;EA2BK,OAAb,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAO;;;;;;;;;;;;;;;;EAuHU,QAChB,OAAA;EAAW;;;;;;;;;;;;;;;;;AA6FL;;;;;;;;;;;;;;;;;;;;;;;8BAzuBwB,iBAAiB,QAAQ;;;;;;;;;;;;;;;;;;;2BAwB5B,iBAAiB,QAAQ;;;;;;;;6CAgC/C,iBACN,QAAQ;;;;;;;;;;;;;;;;;YA6BF,iBACN,QAAQ;;;;;;;;gDAsBF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;YAkCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;YAyCF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;YAoCF,iBACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CM,iBACN,QAAQ;;;;;;;;;;;;;;;;YA+BF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgDF,iBACN,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8DF,iBACN,QAAQ;;;;;;;YAiCF,iBACN,QAAQ;;;;;;;;;YAqBF,iBACN,QAAQ;;;;;;;YAmBF,iBACN,QAAQ;;;;;;;;;;;YAuBF,iBACN,QAAQ;;;;;;;;;;;;;;;YAkDF,iBAAc;;;;;;;;;;;;;;;;;;;;YAyDd,iBAAc;;;;;;;;;;;;;;;;;;;;YAuDd,iBACN,QAAQ;;;;;;;YAyBF,iBACN,QAAQ"}
|