@sentry/mcp-server 0.14.0 → 0.16.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/dist/{analyze-issue-with-seer-DbAWpyTC.cjs → analyze-issue-with-seer-B8ZWokLV.cjs} +57 -24
- package/dist/analyze-issue-with-seer-B8ZWokLV.cjs.map +1 -0
- package/dist/{analyze-issue-with-seer-BsNarzJN.js → analyze-issue-with-seer-szIqv1_I.js} +57 -24
- package/dist/analyze-issue-with-seer-szIqv1_I.js.map +1 -0
- package/dist/api-client/client.cjs +2 -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 +2 -1
- package/dist/api-client/index.cjs +2 -1
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +3 -3
- package/dist/api-client/index.js +2 -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-B-9vnzoA.cjs +86 -0
- package/dist/api-utils-B-9vnzoA.cjs.map +1 -0
- package/dist/api-utils-CHRiLf2Y.js +69 -0
- package/dist/api-utils-CHRiLf2Y.js.map +1 -0
- package/dist/{client-Dkw5iYu3.cjs → client-C_lwH0jz.cjs} +102 -51
- package/dist/client-C_lwH0jz.cjs.map +1 -0
- package/dist/{client-CILwfx6G.d.cts → client-D8vrUp2k.d.cts} +39 -7
- package/dist/client-D8vrUp2k.d.cts.map +1 -0
- package/dist/{client-BCN17Wbp.d.ts → client-h32L1Hx5.d.ts} +39 -7
- package/dist/client-h32L1Hx5.d.ts.map +1 -0
- package/dist/{client-DOYWNvVM.js → client-pyNUFaLN.js} +102 -51
- package/dist/client-pyNUFaLN.js.map +1 -0
- package/dist/{create-dsn-CDcL2DLD.js → create-dsn-CEEytIa4.js} +2 -2
- package/dist/{create-dsn-CDcL2DLD.js.map → create-dsn-CEEytIa4.js.map} +1 -1
- package/dist/{create-dsn-fESUtX3R.cjs → create-dsn-CI7MSiQu.cjs} +2 -2
- package/dist/{create-dsn-fESUtX3R.cjs.map → create-dsn-CI7MSiQu.cjs.map} +1 -1
- package/dist/{create-project-DY5mFznV.js → create-project-CoV1e-vp.js} +3 -3
- package/dist/{create-project-DY5mFznV.js.map → create-project-CoV1e-vp.js.map} +1 -1
- package/dist/{create-project-Bg5uDkc4.cjs → create-project-DnLKRG1p.cjs} +3 -3
- package/dist/{create-project-Bg5uDkc4.cjs.map → create-project-DnLKRG1p.cjs.map} +1 -1
- package/dist/{create-team-5purh64V.cjs → create-team-DKpKxVIY.cjs} +2 -2
- package/dist/{create-team-5purh64V.cjs.map → create-team-DKpKxVIY.cjs.map} +1 -1
- package/dist/{create-team-C2R7EUC3.js → create-team-HWN88CJQ.js} +2 -2
- package/dist/{create-team-C2R7EUC3.js.map → create-team-HWN88CJQ.js.map} +1 -1
- package/dist/errors-BtJEw2Z-.cjs +38 -0
- package/dist/errors-BtJEw2Z-.cjs.map +1 -0
- package/dist/errors-D_R568zP.js +26 -0
- package/dist/errors-D_R568zP.js.map +1 -0
- package/dist/errors.cjs +2 -1
- package/dist/errors.d.cts +10 -2
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.ts +10 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +2 -2
- package/dist/fetch-utils-B0CB5xLM.d.ts +33 -0
- package/dist/fetch-utils-B0CB5xLM.d.ts.map +1 -0
- package/dist/fetch-utils-CTLoW1R8.d.cts +33 -0
- package/dist/fetch-utils-CTLoW1R8.d.cts.map +1 -0
- package/dist/fetch-utils-SuGtrQRz.cjs +64 -0
- package/dist/fetch-utils-SuGtrQRz.cjs.map +1 -0
- package/dist/fetch-utils-gHZdOZV2.js +52 -0
- package/dist/fetch-utils-gHZdOZV2.js.map +1 -0
- package/dist/{find-dsns-CvfcLB9Z.js → find-dsns-BB9dQP0b.js} +2 -2
- package/dist/{find-dsns-CvfcLB9Z.js.map → find-dsns-BB9dQP0b.js.map} +1 -1
- package/dist/{find-dsns-ZZ-thiNk.cjs → find-dsns-vriZSwr7.cjs} +2 -2
- package/dist/{find-dsns-ZZ-thiNk.cjs.map → find-dsns-vriZSwr7.cjs.map} +1 -1
- package/dist/{find-errors-Drzv7hzM.cjs → find-errors-BQFHuBHi.cjs} +6 -3
- package/dist/find-errors-BQFHuBHi.cjs.map +1 -0
- package/dist/{find-errors-CuRm4PzL.js → find-errors-CSPsT-Jp.js} +6 -3
- package/dist/find-errors-CSPsT-Jp.js.map +1 -0
- package/dist/{find-issues-C3uk59rn.cjs → find-issues-BG80wLZw.cjs} +7 -4
- package/dist/find-issues-BG80wLZw.cjs.map +1 -0
- package/dist/{find-issues-CAtNGBly.js → find-issues-DoUD8vP0.js} +7 -4
- package/dist/find-issues-DoUD8vP0.js.map +1 -0
- package/dist/{find-organizations-ojXwWWzk.js → find-organizations-BILg1hUb.js} +3 -3
- package/dist/find-organizations-BILg1hUb.js.map +1 -0
- package/dist/{find-organizations-BrdMfZRO.cjs → find-organizations-Cx5vCj4j.cjs} +3 -3
- package/dist/find-organizations-Cx5vCj4j.cjs.map +1 -0
- package/dist/{find-projects-BZWhlYJh.cjs → find-projects-CN99WBex.cjs} +3 -3
- package/dist/{find-projects-BZWhlYJh.cjs.map → find-projects-CN99WBex.cjs.map} +1 -1
- package/dist/{find-projects-fcLG4KpT.js → find-projects-CgCj2_eq.js} +3 -3
- package/dist/{find-projects-fcLG4KpT.js.map → find-projects-CgCj2_eq.js.map} +1 -1
- package/dist/{find-releases-BUozr0Z-.js → find-releases-BsQF3wc5.js} +2 -2
- package/dist/{find-releases-BUozr0Z-.js.map → find-releases-BsQF3wc5.js.map} +1 -1
- package/dist/{find-releases-CZCVEOHZ.cjs → find-releases-Cm11xU5S.cjs} +2 -2
- package/dist/{find-releases-CZCVEOHZ.cjs.map → find-releases-Cm11xU5S.cjs.map} +1 -1
- package/dist/{find-tags-d-wF1Se8.js → find-tags-BRaa2i-r.js} +2 -2
- package/dist/{find-tags-d-wF1Se8.js.map → find-tags-BRaa2i-r.js.map} +1 -1
- package/dist/{find-tags-Byk4d3oZ.cjs → find-tags-BjibTJBm.cjs} +2 -2
- package/dist/{find-tags-Byk4d3oZ.cjs.map → find-tags-BjibTJBm.cjs.map} +1 -1
- package/dist/{find-teams-CnU5x9rQ.cjs → find-teams-CS443jRa.cjs} +3 -3
- package/dist/{find-teams-CnU5x9rQ.cjs.map → find-teams-CS443jRa.cjs.map} +1 -1
- package/dist/{find-teams-BZ118EIK.js → find-teams-XgUg8Nj5.js} +3 -3
- package/dist/{find-teams-BZ118EIK.js.map → find-teams-XgUg8Nj5.js.map} +1 -1
- package/dist/{find-transactions-DIJ80wkd.cjs → find-transactions-B0s_rr0H.cjs} +2 -2
- package/dist/{find-transactions-DIJ80wkd.cjs.map → find-transactions-B0s_rr0H.cjs.map} +1 -1
- package/dist/{find-transactions-DZCj81jP.js → find-transactions-Cob_B_3u.js} +2 -2
- package/dist/{find-transactions-DZCj81jP.js.map → find-transactions-Cob_B_3u.js.map} +1 -1
- package/dist/{formatting-BlMiQa9i.cjs → formatting-AXU4XsjJ.cjs} +33 -2
- package/dist/formatting-AXU4XsjJ.cjs.map +1 -0
- package/dist/{formatting-CHh9Q_OW.d.cts → formatting-DnSI0DHf.d.ts} +7 -5
- package/dist/formatting-DnSI0DHf.d.ts.map +1 -0
- package/dist/{formatting-pUm38KOj.js → formatting-WGc5qrhv.js} +34 -2
- package/dist/formatting-WGc5qrhv.js.map +1 -0
- package/dist/{formatting-kdIeURER.d.ts → formatting-aGQ7M_2w.d.cts} +7 -5
- package/dist/formatting-aGQ7M_2w.d.cts.map +1 -0
- package/dist/{formatting-utils-C3sej5ER.js → formatting-utils-DgOyTl-m.js} +1 -1
- package/dist/{formatting-utils-C3sej5ER.js.map → formatting-utils-DgOyTl-m.js.map} +1 -1
- package/dist/{formatting-utils-DDz14xeB.cjs → formatting-utils-m9R5bsRU.cjs} +1 -1
- package/dist/{formatting-utils-DDz14xeB.cjs.map → formatting-utils-m9R5bsRU.cjs.map} +1 -1
- package/dist/{get-doc-DaTCenOE.cjs → get-doc-ByXR3EWc.cjs} +4 -4
- package/dist/{get-doc-DaTCenOE.cjs.map → get-doc-ByXR3EWc.cjs.map} +1 -1
- package/dist/{get-doc-YTiQznr1.js → get-doc-C1IEG2pH.js} +4 -4
- package/dist/{get-doc-YTiQznr1.js.map → get-doc-C1IEG2pH.js.map} +1 -1
- package/dist/{get-event-attachment-ChRw3jlQ.cjs → get-event-attachment-CuGUfVAD.cjs} +2 -2
- package/dist/{get-event-attachment-ChRw3jlQ.cjs.map → get-event-attachment-CuGUfVAD.cjs.map} +1 -1
- package/dist/{get-event-attachment-CuU-_5T6.js → get-event-attachment-N11gSV23.js} +2 -2
- package/dist/{get-event-attachment-CuU-_5T6.js.map → get-event-attachment-N11gSV23.js.map} +1 -1
- package/dist/{get-issue-details-CxChU4U9.js → get-issue-details-BrEGybe0.js} +30 -14
- package/dist/get-issue-details-BrEGybe0.js.map +1 -0
- package/dist/{get-issue-details-DFwZRbmU.cjs → get-issue-details-EklkHsWi.cjs} +30 -14
- package/dist/get-issue-details-EklkHsWi.cjs.map +1 -0
- package/dist/index.cjs +37 -37
- package/dist/index.js +37 -37
- package/dist/internal/fetch-utils.cjs +3 -2
- package/dist/internal/fetch-utils.d.cts +2 -2
- package/dist/internal/fetch-utils.d.ts +2 -2
- package/dist/internal/fetch-utils.js +2 -2
- package/dist/internal/formatting.cjs +2 -1
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +4 -4
- package/dist/internal/formatting.js +2 -1
- package/dist/internal/issue-helpers.cjs +2 -1
- package/dist/internal/issue-helpers.js +2 -1
- package/dist/internal/test-fixtures.d.cts +38 -38
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +170 -170
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/issue-helpers-BJffpNoO.d.ts.map +1 -1
- package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -1
- package/dist/{issue-helpers-CqqYnwYE.js → issue-helpers-D2p1Gkgm.js} +15 -19
- package/dist/issue-helpers-D2p1Gkgm.js.map +1 -0
- package/dist/{issue-helpers-DyAIO0w6.cjs → issue-helpers-DvsTfq9u.cjs} +14 -19
- package/dist/issue-helpers-DvsTfq9u.cjs.map +1 -0
- package/dist/{logging-oIouXrcb.cjs → logging-CX2buXiG.cjs} +1 -1
- package/dist/{logging-oIouXrcb.cjs.map → logging-CX2buXiG.cjs.map} +1 -1
- package/dist/{logging-LnQMFw-_.js → logging-DzxYBMrn.js} +1 -1
- package/dist/{logging-LnQMFw-_.js.map → logging-DzxYBMrn.js.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/{prompts-C8Y9w5c4.js → prompts-Cuwmybyc.js} +2 -2
- package/dist/{prompts-C8Y9w5c4.js.map → prompts-Cuwmybyc.js.map} +1 -1
- package/dist/{prompts-Df3i1XSB.cjs → prompts-uWAbMvLe.cjs} +2 -2
- package/dist/{prompts-Df3i1XSB.cjs.map → prompts-uWAbMvLe.cjs.map} +1 -1
- package/dist/prompts.cjs +2 -2
- package/dist/prompts.js +2 -2
- package/dist/{resources-BM_YQGcb.cjs → resources-BlgeiG6C.cjs} +2 -2
- package/dist/{resources-BM_YQGcb.cjs.map → resources-BlgeiG6C.cjs.map} +1 -1
- package/dist/{resources-BHF8a1ZB.js → resources-CwWOjB8_.js} +2 -2
- package/dist/{resources-BHF8a1ZB.js.map → resources-CwWOjB8_.js.map} +1 -1
- package/dist/resources.cjs +2 -2
- package/dist/resources.js +2 -2
- package/dist/{schema--5m4KI84.d.ts → schema-BW_fxx99.d.cts} +559 -559
- package/dist/{schema-ya35hkEL.d.cts.map → schema-BW_fxx99.d.cts.map} +1 -1
- package/dist/{schema-ya35hkEL.d.cts → schema-DkWOa2-c.d.ts} +428 -428
- package/dist/{schema--5m4KI84.d.ts.map → schema-DkWOa2-c.d.ts.map} +1 -1
- package/dist/{search-docs-BLbB_GV2.js → search-docs-BKUeMSyn.js} +3 -3
- package/dist/{search-docs-BLbB_GV2.js.map → search-docs-BKUeMSyn.js.map} +1 -1
- package/dist/{search-docs-D5Foht_0.cjs → search-docs-Cr-gyE5m.cjs} +3 -3
- package/dist/{search-docs-D5Foht_0.cjs.map → search-docs-Cr-gyE5m.cjs.map} +1 -1
- package/dist/{seer-utils-Ckr8nYlz.js → seer-utils-BdE7DddW.js} +5 -3
- package/dist/seer-utils-BdE7DddW.js.map +1 -0
- package/dist/{seer-utils-CzYEEZb2.cjs → seer-utils-BvdVTH85.cjs} +16 -2
- package/dist/seer-utils-BvdVTH85.cjs.map +1 -0
- package/dist/{server-BpEIZVaZ.cjs → server-9IEGGN8V.cjs} +41 -25
- package/dist/{server-DOy-M9Ko.js.map → server-9IEGGN8V.cjs.map} +1 -1
- package/dist/{server-DOy-M9Ko.js → server-BhNrW6bw.js} +41 -25
- package/dist/server-BhNrW6bw.js.map +1 -0
- package/dist/server.cjs +34 -34
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +34 -34
- package/dist/{stdio-B2NDq7Ax.js → stdio-CQmibRBR.js} +3 -3
- package/dist/{stdio-B2NDq7Ax.js.map → stdio-CQmibRBR.js.map} +1 -1
- package/dist/{stdio-DMEgJ_fG.cjs → stdio-mw-fEjO4.cjs} +3 -3
- package/dist/{stdio-DMEgJ_fG.cjs.map → stdio-mw-fEjO4.cjs.map} +1 -1
- package/dist/test-setup.cjs +1 -16
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1 -16
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/tools/analyze-issue-with-seer.cjs +9 -8
- package/dist/tools/analyze-issue-with-seer.js +9 -8
- package/dist/tools/create-dsn.cjs +4 -4
- package/dist/tools/create-dsn.js +4 -4
- package/dist/tools/create-project.cjs +5 -5
- package/dist/tools/create-project.js +5 -5
- package/dist/tools/create-team.cjs +4 -4
- package/dist/tools/create-team.js +4 -4
- package/dist/tools/find-dsns.cjs +4 -4
- package/dist/tools/find-dsns.js +4 -4
- package/dist/tools/find-errors.cjs +4 -4
- package/dist/tools/find-errors.js +4 -4
- package/dist/tools/find-issues.cjs +4 -4
- package/dist/tools/find-issues.js +4 -4
- package/dist/tools/find-organizations.cjs +4 -4
- package/dist/tools/find-organizations.js +4 -4
- package/dist/tools/find-projects.cjs +4 -4
- package/dist/tools/find-projects.js +4 -4
- package/dist/tools/find-releases.cjs +4 -4
- package/dist/tools/find-releases.js +4 -4
- package/dist/tools/find-tags.cjs +4 -4
- package/dist/tools/find-tags.js +4 -4
- package/dist/tools/find-teams.cjs +4 -4
- package/dist/tools/find-teams.js +4 -4
- package/dist/tools/find-transactions.cjs +4 -4
- package/dist/tools/find-transactions.js +4 -4
- package/dist/tools/get-doc.cjs +4 -4
- package/dist/tools/get-doc.js +4 -4
- package/dist/tools/get-event-attachment.cjs +4 -4
- package/dist/tools/get-event-attachment.js +4 -4
- package/dist/tools/get-issue-details.cjs +8 -7
- package/dist/tools/get-issue-details.js +8 -7
- package/dist/tools/index.cjs +31 -31
- package/dist/tools/index.d.cts +76 -76
- package/dist/tools/index.d.ts +76 -76
- package/dist/tools/index.js +31 -31
- package/dist/tools/search-docs.cjs +4 -3
- package/dist/tools/search-docs.js +4 -3
- package/dist/tools/update-issue.cjs +9 -8
- package/dist/tools/update-issue.js +9 -8
- package/dist/tools/update-project.cjs +5 -5
- package/dist/tools/update-project.js +5 -5
- package/dist/tools/utils/api-utils.cjs +6 -4
- package/dist/tools/utils/api-utils.d.cts +22 -5
- package/dist/tools/utils/api-utils.d.cts.map +1 -1
- package/dist/tools/utils/api-utils.d.ts +22 -5
- package/dist/tools/utils/api-utils.d.ts.map +1 -1
- package/dist/tools/utils/api-utils.js +4 -4
- package/dist/tools/utils/fetch-utils.cjs +3 -2
- package/dist/tools/utils/fetch-utils.d.cts +2 -2
- package/dist/tools/utils/fetch-utils.d.ts +2 -2
- package/dist/tools/utils/fetch-utils.js +2 -2
- package/dist/tools/utils/formatting-utils.cjs +1 -1
- package/dist/tools/utils/formatting-utils.d.cts +3 -3
- package/dist/tools/utils/formatting-utils.d.ts +3 -3
- package/dist/tools/utils/formatting-utils.js +1 -1
- package/dist/tools/utils/issue-utils.cjs +5 -3
- package/dist/tools/utils/issue-utils.d.cts +4 -4
- package/dist/tools/utils/issue-utils.d.ts +4 -4
- package/dist/tools/utils/issue-utils.js +5 -3
- package/dist/tools/utils/seer-utils.cjs +3 -1
- package/dist/tools/utils/seer-utils.d.cts +6 -4
- package/dist/tools/utils/seer-utils.d.cts.map +1 -1
- package/dist/tools/utils/seer-utils.d.ts +6 -4
- package/dist/tools/utils/seer-utils.d.ts.map +1 -1
- package/dist/tools/utils/seer-utils.js +2 -2
- package/dist/tools/whoami.cjs +4 -4
- package/dist/tools/whoami.js +4 -4
- package/dist/tools-AYbI0sEf.js +48 -0
- package/dist/{tools-mThAUo_3.js.map → tools-AYbI0sEf.js.map} +1 -1
- package/dist/{tools-19Ms1kck.cjs → tools-CwQFlJzn.cjs} +21 -21
- package/dist/{tools-19Ms1kck.cjs.map → tools-CwQFlJzn.cjs.map} +1 -1
- package/dist/transports/stdio.cjs +36 -36
- package/dist/transports/stdio.js +36 -36
- package/dist/{types-Bg17IGWJ.d.cts → types-BAbu4Vzx.d.cts} +2 -2
- package/dist/{types-Bg17IGWJ.d.cts.map → types-BAbu4Vzx.d.cts.map} +1 -1
- package/dist/{types-CtTBwGbw.d.ts → types-CoY5KVni.d.ts} +2 -2
- package/dist/{types-CtTBwGbw.d.ts.map → types-CoY5KVni.d.ts.map} +1 -1
- package/dist/{update-issue-DmLElHPS.js → update-issue-ClbiTLyL.js} +13 -7
- package/dist/update-issue-ClbiTLyL.js.map +1 -0
- package/dist/{update-issue-B6eZhAPJ.cjs → update-issue-_4vzwHfZ.cjs} +13 -7
- package/dist/update-issue-_4vzwHfZ.cjs.map +1 -0
- package/dist/{update-project-CijYCtG1.cjs → update-project-2EEnezbZ.cjs} +4 -4
- package/dist/{update-project-CijYCtG1.cjs.map → update-project-2EEnezbZ.cjs.map} +1 -1
- package/dist/{update-project-BNPev7W8.js → update-project-CExfO7tG.js} +4 -4
- package/dist/{update-project-BNPev7W8.js.map → update-project-CExfO7tG.js.map} +1 -1
- package/dist/version-3e1twbPm.js +6 -0
- package/dist/{version-C4uvMmw0.js.map → version-3e1twbPm.js.map} +1 -1
- package/dist/{version-Ddz4xg_q.cjs → version-Cp9p-38J.cjs} +2 -2
- package/dist/{version-Ddz4xg_q.cjs.map → version-Cp9p-38J.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-DesNZnaQ.js → whoami-DhoaHHY5.js} +2 -2
- package/dist/{whoami-DesNZnaQ.js.map → whoami-DhoaHHY5.js.map} +1 -1
- package/dist/{whoami-CEgbTUqt.cjs → whoami-m0N5F6BN.cjs} +2 -2
- package/dist/{whoami-CEgbTUqt.cjs.map → whoami-m0N5F6BN.cjs.map} +1 -1
- package/package.json +3 -3
- package/dist/analyze-issue-with-seer-BsNarzJN.js.map +0 -1
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +0 -1
- package/dist/api-utils-C6QJAzFL.js +0 -31
- package/dist/api-utils-C6QJAzFL.js.map +0 -1
- package/dist/api-utils-d36iteNO.cjs +0 -36
- package/dist/api-utils-d36iteNO.cjs.map +0 -1
- package/dist/client-BCN17Wbp.d.ts.map +0 -1
- package/dist/client-CILwfx6G.d.cts.map +0 -1
- package/dist/client-DOYWNvVM.js.map +0 -1
- package/dist/client-Dkw5iYu3.cjs.map +0 -1
- package/dist/errors-CIoxzIug.js +0 -15
- package/dist/errors-CIoxzIug.js.map +0 -1
- package/dist/errors-YmiXLOyx.cjs +0 -21
- package/dist/errors-YmiXLOyx.cjs.map +0 -1
- package/dist/fetch-utils-BMKjO-cc.js +0 -29
- package/dist/fetch-utils-BMKjO-cc.js.map +0 -1
- package/dist/fetch-utils-Bv9WjUp0.d.ts +0 -14
- package/dist/fetch-utils-Bv9WjUp0.d.ts.map +0 -1
- package/dist/fetch-utils-DzdRW4Yd.d.cts +0 -14
- package/dist/fetch-utils-DzdRW4Yd.d.cts.map +0 -1
- package/dist/fetch-utils-oab6uNp3.cjs +0 -35
- package/dist/fetch-utils-oab6uNp3.cjs.map +0 -1
- package/dist/find-errors-CuRm4PzL.js.map +0 -1
- package/dist/find-errors-Drzv7hzM.cjs.map +0 -1
- package/dist/find-issues-C3uk59rn.cjs.map +0 -1
- package/dist/find-issues-CAtNGBly.js.map +0 -1
- package/dist/find-organizations-BrdMfZRO.cjs.map +0 -1
- package/dist/find-organizations-ojXwWWzk.js.map +0 -1
- package/dist/formatting-BlMiQa9i.cjs.map +0 -1
- package/dist/formatting-CHh9Q_OW.d.cts.map +0 -1
- package/dist/formatting-kdIeURER.d.ts.map +0 -1
- package/dist/formatting-pUm38KOj.js.map +0 -1
- package/dist/get-issue-details-CxChU4U9.js.map +0 -1
- package/dist/get-issue-details-DFwZRbmU.cjs.map +0 -1
- package/dist/issue-helpers-CqqYnwYE.js.map +0 -1
- package/dist/issue-helpers-DyAIO0w6.cjs.map +0 -1
- package/dist/seer-utils-Ckr8nYlz.js.map +0 -1
- package/dist/seer-utils-CzYEEZb2.cjs.map +0 -1
- package/dist/server-BpEIZVaZ.cjs.map +0 -1
- package/dist/tools-mThAUo_3.js +0 -48
- package/dist/update-issue-B6eZhAPJ.cjs.map +0 -1
- package/dist/update-issue-DmLElHPS.js.map +0 -1
- package/dist/version-C4uvMmw0.js +0 -6
- /package/dist/{issue-utils-BVAB6I-Z.js → issue-utils-BbCfbiY8.js} +0 -0
- /package/dist/{issue-utils-pdbo-5LW.cjs → issue-utils-DMKiif6C.cjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-fixtures.d.ts","names":[],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAH6B;;;;;;;;;;;;;;;;;;;;;;;qBAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-helpers-BJffpNoO.d.ts","names":[],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"issue-helpers-BJffpNoO.d.ts","names":[],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAkBA;AAqEA;AAoCA;;;;;AAGkB;;;;;;;iBA5GF,cAAA;;;;;;;;;;;;iBAqEA,YAAA;;;;;;;;iBAoCA,gBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-helpers-Cz01Ipvl.d.cts","names":[],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"issue-helpers-Cz01Ipvl.d.cts","names":[],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":[],"mappings":";;AAkBA;AAqEA;AAoCA;;;;;AAGkB;;;;;;;iBA5GF,cAAA;;;;;;;;;;;;iBAqEA,YAAA;;;;;;;;iBAoCA,gBAAA"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
+
import { UserInputError } from "./errors-D_R568zP.js";
|
|
2
|
+
|
|
1
3
|
//#region src/internal/issue-helpers.ts
|
|
2
4
|
/**
|
|
3
|
-
* Issue parameter parsing and validation utilities.
|
|
4
|
-
*
|
|
5
|
-
* Handles flexible input formats for Sentry issues (URLs vs explicit parameters),
|
|
6
|
-
* extracts organization and issue identifiers, and validates issue ID formats.
|
|
7
|
-
* Provides robust parsing for LLM-generated parameters that may contain formatting
|
|
8
|
-
* inconsistencies.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
5
|
* Extracts the Sentry issue ID and organization slug from a full URL
|
|
12
6
|
*
|
|
13
7
|
* @param url - A full Sentry issue URL
|
|
@@ -15,18 +9,18 @@
|
|
|
15
9
|
* @throws Error if the input is invalid
|
|
16
10
|
*/
|
|
17
11
|
function extractIssueId(url) {
|
|
18
|
-
if (!url || typeof url !== "string") throw new
|
|
19
|
-
if (!url.startsWith("http://") && !url.startsWith("https://")) throw new
|
|
12
|
+
if (!url || typeof url !== "string") throw new UserInputError("Invalid Sentry issue URL. URL must be a non-empty string.");
|
|
13
|
+
if (!url.startsWith("http://") && !url.startsWith("https://")) throw new UserInputError("Invalid Sentry issue URL. Must start with http:// or https://");
|
|
20
14
|
let parsedUrl;
|
|
21
15
|
try {
|
|
22
16
|
parsedUrl = new URL(url);
|
|
23
17
|
} catch (error) {
|
|
24
|
-
throw new
|
|
18
|
+
throw new UserInputError(`Invalid Sentry issue URL. Unable to parse URL: ${url}`);
|
|
25
19
|
}
|
|
26
20
|
const pathParts = parsedUrl.pathname.split("/").filter(Boolean);
|
|
27
|
-
if (pathParts.length < 2 || !pathParts.includes("issues")) throw new
|
|
21
|
+
if (pathParts.length < 2 || !pathParts.includes("issues")) throw new UserInputError("Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'");
|
|
28
22
|
const issueId = pathParts[pathParts.indexOf("issues") + 1];
|
|
29
|
-
if (!issueId) throw new
|
|
23
|
+
if (!issueId) throw new UserInputError("Unable to determine issue ID from URL.");
|
|
30
24
|
let organizationSlug;
|
|
31
25
|
if (pathParts.includes("organizations")) organizationSlug = pathParts[pathParts.indexOf("organizations") + 1];
|
|
32
26
|
else if (pathParts.length > 1 && pathParts[0] !== "issues") organizationSlug = pathParts[0];
|
|
@@ -34,7 +28,7 @@ function extractIssueId(url) {
|
|
|
34
28
|
const hostParts = parsedUrl.hostname.split(".");
|
|
35
29
|
if (hostParts.length > 2 && hostParts[0] !== "www") organizationSlug = hostParts[0];
|
|
36
30
|
}
|
|
37
|
-
if (!organizationSlug) throw new
|
|
31
|
+
if (!organizationSlug) throw new UserInputError("Invalid Sentry issue URL. Could not determine organization.");
|
|
38
32
|
return {
|
|
39
33
|
issueId,
|
|
40
34
|
organizationSlug
|
|
@@ -49,10 +43,12 @@ function extractIssueId(url) {
|
|
|
49
43
|
* @returns The parsed issue ID
|
|
50
44
|
*/
|
|
51
45
|
function parseIssueId(issueId) {
|
|
46
|
+
if (!issueId.trim()) throw new UserInputError("Issue ID cannot be empty");
|
|
52
47
|
let finalIssueId = issueId;
|
|
53
48
|
finalIssueId = finalIssueId.replace(/[^\w-]/g, "");
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
if (!finalIssueId) throw new UserInputError("Issue ID cannot be empty after removing special characters");
|
|
50
|
+
const validFormatRegex = /^(\d+|[A-Za-z0-9][\w-]*-[A-Za-z0-9]+)$/;
|
|
51
|
+
if (!validFormatRegex.test(finalIssueId)) throw new UserInputError(`Invalid issue ID format: "${finalIssueId}". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., "PROJECT-ABC123").`);
|
|
56
52
|
return finalIssueId;
|
|
57
53
|
}
|
|
58
54
|
/**
|
|
@@ -71,14 +67,14 @@ function parseIssueParams({ issueUrl, issueId, organizationSlug }) {
|
|
|
71
67
|
issueId: parseIssueId(resolved.issueId)
|
|
72
68
|
};
|
|
73
69
|
}
|
|
74
|
-
if (!organizationSlug) throw new
|
|
70
|
+
if (!organizationSlug) throw new UserInputError("Organization slug is required");
|
|
75
71
|
if (issueId) return {
|
|
76
72
|
organizationSlug,
|
|
77
73
|
issueId: parseIssueId(issueId)
|
|
78
74
|
};
|
|
79
|
-
throw new
|
|
75
|
+
throw new UserInputError("Either issueId or issueUrl must be provided");
|
|
80
76
|
}
|
|
81
77
|
|
|
82
78
|
//#endregion
|
|
83
79
|
export { extractIssueId, parseIssueId, parseIssueParams };
|
|
84
|
-
//# sourceMappingURL=issue-helpers-
|
|
80
|
+
//# sourceMappingURL=issue-helpers-D2p1Gkgm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue-helpers-D2p1Gkgm.js","names":["url: string","parsedUrl: URL","organizationSlug: string | undefined","issueId: string"],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":["/**\n * Issue parameter parsing and validation utilities.\n *\n * Handles flexible input formats for Sentry issues (URLs vs explicit parameters),\n * extracts organization and issue identifiers, and validates issue ID formats.\n * Provides robust parsing for LLM-generated parameters that may contain formatting\n * inconsistencies.\n */\n\nimport { UserInputError } from \"../errors\";\n\n/**\n * Extracts the Sentry issue ID and organization slug from a full URL\n *\n * @param url - A full Sentry issue URL\n * @returns Object containing the numeric issue ID and organization slug (if found)\n * @throws Error if the input is invalid\n */\nexport function extractIssueId(url: string): {\n issueId: string;\n organizationSlug: string;\n} {\n if (!url || typeof url !== \"string\") {\n throw new UserInputError(\n \"Invalid Sentry issue URL. URL must be a non-empty string.\",\n );\n }\n\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Must start with http:// or https://\",\n );\n }\n\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(url);\n } catch (error) {\n throw new UserInputError(\n `Invalid Sentry issue URL. Unable to parse URL: ${url}`,\n );\n }\n\n const pathParts = parsedUrl.pathname.split(\"/\").filter(Boolean);\n if (pathParts.length < 2 || !pathParts.includes(\"issues\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'\",\n );\n }\n\n const issueId = pathParts[pathParts.indexOf(\"issues\") + 1];\n if (!issueId) {\n throw new UserInputError(\"Unable to determine issue ID from URL.\");\n }\n\n // Extract organization slug from either the path or subdomain\n let organizationSlug: string | undefined;\n if (pathParts.includes(\"organizations\")) {\n organizationSlug = pathParts[pathParts.indexOf(\"organizations\") + 1];\n } else if (pathParts.length > 1 && pathParts[0] !== \"issues\") {\n // If URL is like sentry.io/sentry/issues/123\n organizationSlug = pathParts[0];\n } else {\n // Check for subdomain\n const hostParts = parsedUrl.hostname.split(\".\");\n if (hostParts.length > 2 && hostParts[0] !== \"www\") {\n organizationSlug = hostParts[0];\n }\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Could not determine organization.\",\n );\n }\n\n return { issueId, organizationSlug };\n}\n\n/**\n * Sometimes the LLM will pass in a funky issue shortId. For example it might pass\n * in \"CLOUDFLARE-MCP-41.\" instead of \"CLOUDFLARE-MCP-41\". This function attempts to\n * fix common issues.\n *\n * @param issueId - The issue ID to parse\n * @returns The parsed issue ID\n */\nexport function parseIssueId(issueId: string) {\n if (!issueId.trim()) {\n throw new UserInputError(\"Issue ID cannot be empty\");\n }\n\n let finalIssueId = issueId;\n // remove trailing punctuation\n finalIssueId = finalIssueId.replace(/[^\\w-]/g, \"\");\n\n if (!finalIssueId) {\n throw new UserInputError(\n \"Issue ID cannot be empty after removing special characters\",\n );\n }\n\n // Validate against common Sentry issue ID patterns\n // Either numeric IDs or PROJECT-ABC123 format\n // Allow project codes to start with alphanumeric characters (including numbers)\n const validFormatRegex = /^(\\d+|[A-Za-z0-9][\\w-]*-[A-Za-z0-9]+)$/;\n\n if (!validFormatRegex.test(finalIssueId)) {\n throw new UserInputError(\n `Invalid issue ID format: \"${finalIssueId}\". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., \"PROJECT-ABC123\").`,\n );\n }\n\n return finalIssueId;\n}\n\n/**\n * Parses issue parameters from a variety of formats.\n *\n * @param params - Object containing issue URL, issue ID, and organization slug\n * @returns Object containing the parsed organization slug and issue ID\n * @throws Error if the input is invalid\n */\nexport function parseIssueParams({\n issueUrl,\n issueId,\n organizationSlug,\n}: {\n issueUrl?: string | null;\n issueId?: string | null;\n organizationSlug?: string | null;\n}): {\n organizationSlug: string;\n issueId: string;\n} {\n if (issueUrl) {\n const resolved = extractIssueId(issueUrl);\n if (!resolved) {\n throw new Error(\n \"Invalid Sentry issue URL. Path should contain '/issues/{issue_id}'\",\n );\n }\n return {\n ...resolved,\n issueId: parseIssueId(resolved.issueId),\n };\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\"Organization slug is required\");\n }\n\n if (issueId) {\n return {\n organizationSlug,\n issueId: parseIssueId(issueId),\n };\n }\n\n throw new UserInputError(\"Either issueId or issueUrl must be provided\");\n}\n"],"mappings":";;;;;;;;;;AAkBA,SAAgB,eAAeA,KAG7B;AACA,MAAK,cAAc,QAAQ,SACzB,OAAM,IAAI,eACR;AAIJ,MAAK,IAAI,WAAW,UAAU,KAAK,IAAI,WAAW,WAAW,CAC3D,OAAM,IAAI,eACR;CAIJ,IAAIC;AACJ,KAAI;AACF,cAAY,IAAI,IAAI;CACrB,SAAQ,OAAO;AACd,QAAM,IAAI,gBACP,iDAAiD;CAErD;CAED,MAAM,YAAY,UAAU,SAAS,MAAM,IAAI,CAAC,OAAO,QAAQ;AAC/D,KAAI,UAAU,SAAS,MAAM,UAAU,SAAS,SAAS,CACvD,OAAM,IAAI,eACR;CAIJ,MAAM,UAAU,UAAU,UAAU,QAAQ,SAAS,GAAG;AACxD,MAAK,QACH,OAAM,IAAI,eAAe;CAI3B,IAAIC;AACJ,KAAI,UAAU,SAAS,gBAAgB,CACrC,oBAAmB,UAAU,UAAU,QAAQ,gBAAgB,GAAG;UACzD,UAAU,SAAS,KAAK,UAAU,OAAO,SAElD,oBAAmB,UAAU;MACxB;EAEL,MAAM,YAAY,UAAU,SAAS,MAAM,IAAI;AAC/C,MAAI,UAAU,SAAS,KAAK,UAAU,OAAO,MAC3C,oBAAmB,UAAU;CAEhC;AAED,MAAK,iBACH,OAAM,IAAI,eACR;AAIJ,QAAO;EAAE;EAAS;CAAkB;AACrC;;;;;;;;;AAUD,SAAgB,aAAaC,SAAiB;AAC5C,MAAK,QAAQ,MAAM,CACjB,OAAM,IAAI,eAAe;CAG3B,IAAI,eAAe;AAEnB,gBAAe,aAAa,QAAQ,WAAW,GAAG;AAElD,MAAK,aACH,OAAM,IAAI,eACR;CAOJ,MAAM,mBAAmB;AAEzB,MAAK,iBAAiB,KAAK,aAAa,CACtC,OAAM,IAAI,gBACP,4BAA4B,aAAa;AAI9C,QAAO;AACR;;;;;;;;AASD,SAAgB,iBAAiB,EAC/B,UACA,SACA,kBAKD,EAGC;AACA,KAAI,UAAU;EACZ,MAAM,WAAW,eAAe,SAAS;AACzC,OAAK,SACH,OAAM,IAAI,MACR;AAGJ,SAAO;GACL,GAAG;GACH,SAAS,aAAa,SAAS,QAAQ;EACxC;CACF;AAED,MAAK,iBACH,OAAM,IAAI,eAAe;AAG3B,KAAI,QACF,QAAO;EACL;EACA,SAAS,aAAa,QAAQ;CAC/B;AAGH,OAAM,IAAI,eAAe;AAC1B"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
+
const require_errors = require('./errors-BtJEw2Z-.cjs');
|
|
1
2
|
|
|
2
3
|
//#region src/internal/issue-helpers.ts
|
|
3
4
|
/**
|
|
4
|
-
* Issue parameter parsing and validation utilities.
|
|
5
|
-
*
|
|
6
|
-
* Handles flexible input formats for Sentry issues (URLs vs explicit parameters),
|
|
7
|
-
* extracts organization and issue identifiers, and validates issue ID formats.
|
|
8
|
-
* Provides robust parsing for LLM-generated parameters that may contain formatting
|
|
9
|
-
* inconsistencies.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
5
|
* Extracts the Sentry issue ID and organization slug from a full URL
|
|
13
6
|
*
|
|
14
7
|
* @param url - A full Sentry issue URL
|
|
@@ -16,18 +9,18 @@
|
|
|
16
9
|
* @throws Error if the input is invalid
|
|
17
10
|
*/
|
|
18
11
|
function extractIssueId(url) {
|
|
19
|
-
if (!url || typeof url !== "string") throw new
|
|
20
|
-
if (!url.startsWith("http://") && !url.startsWith("https://")) throw new
|
|
12
|
+
if (!url || typeof url !== "string") throw new require_errors.UserInputError("Invalid Sentry issue URL. URL must be a non-empty string.");
|
|
13
|
+
if (!url.startsWith("http://") && !url.startsWith("https://")) throw new require_errors.UserInputError("Invalid Sentry issue URL. Must start with http:// or https://");
|
|
21
14
|
let parsedUrl;
|
|
22
15
|
try {
|
|
23
16
|
parsedUrl = new URL(url);
|
|
24
17
|
} catch (error) {
|
|
25
|
-
throw new
|
|
18
|
+
throw new require_errors.UserInputError(`Invalid Sentry issue URL. Unable to parse URL: ${url}`);
|
|
26
19
|
}
|
|
27
20
|
const pathParts = parsedUrl.pathname.split("/").filter(Boolean);
|
|
28
|
-
if (pathParts.length < 2 || !pathParts.includes("issues")) throw new
|
|
21
|
+
if (pathParts.length < 2 || !pathParts.includes("issues")) throw new require_errors.UserInputError("Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'");
|
|
29
22
|
const issueId = pathParts[pathParts.indexOf("issues") + 1];
|
|
30
|
-
if (!issueId) throw new
|
|
23
|
+
if (!issueId) throw new require_errors.UserInputError("Unable to determine issue ID from URL.");
|
|
31
24
|
let organizationSlug;
|
|
32
25
|
if (pathParts.includes("organizations")) organizationSlug = pathParts[pathParts.indexOf("organizations") + 1];
|
|
33
26
|
else if (pathParts.length > 1 && pathParts[0] !== "issues") organizationSlug = pathParts[0];
|
|
@@ -35,7 +28,7 @@ function extractIssueId(url) {
|
|
|
35
28
|
const hostParts = parsedUrl.hostname.split(".");
|
|
36
29
|
if (hostParts.length > 2 && hostParts[0] !== "www") organizationSlug = hostParts[0];
|
|
37
30
|
}
|
|
38
|
-
if (!organizationSlug) throw new
|
|
31
|
+
if (!organizationSlug) throw new require_errors.UserInputError("Invalid Sentry issue URL. Could not determine organization.");
|
|
39
32
|
return {
|
|
40
33
|
issueId,
|
|
41
34
|
organizationSlug
|
|
@@ -50,10 +43,12 @@ function extractIssueId(url) {
|
|
|
50
43
|
* @returns The parsed issue ID
|
|
51
44
|
*/
|
|
52
45
|
function parseIssueId(issueId) {
|
|
46
|
+
if (!issueId.trim()) throw new require_errors.UserInputError("Issue ID cannot be empty");
|
|
53
47
|
let finalIssueId = issueId;
|
|
54
48
|
finalIssueId = finalIssueId.replace(/[^\w-]/g, "");
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
if (!finalIssueId) throw new require_errors.UserInputError("Issue ID cannot be empty after removing special characters");
|
|
50
|
+
const validFormatRegex = /^(\d+|[A-Za-z0-9][\w-]*-[A-Za-z0-9]+)$/;
|
|
51
|
+
if (!validFormatRegex.test(finalIssueId)) throw new require_errors.UserInputError(`Invalid issue ID format: "${finalIssueId}". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., "PROJECT-ABC123").`);
|
|
57
52
|
return finalIssueId;
|
|
58
53
|
}
|
|
59
54
|
/**
|
|
@@ -72,12 +67,12 @@ function parseIssueParams({ issueUrl, issueId, organizationSlug }) {
|
|
|
72
67
|
issueId: parseIssueId(resolved.issueId)
|
|
73
68
|
};
|
|
74
69
|
}
|
|
75
|
-
if (!organizationSlug) throw new
|
|
70
|
+
if (!organizationSlug) throw new require_errors.UserInputError("Organization slug is required");
|
|
76
71
|
if (issueId) return {
|
|
77
72
|
organizationSlug,
|
|
78
73
|
issueId: parseIssueId(issueId)
|
|
79
74
|
};
|
|
80
|
-
throw new
|
|
75
|
+
throw new require_errors.UserInputError("Either issueId or issueUrl must be provided");
|
|
81
76
|
}
|
|
82
77
|
|
|
83
78
|
//#endregion
|
|
@@ -99,4 +94,4 @@ Object.defineProperty(exports, 'parseIssueParams', {
|
|
|
99
94
|
return parseIssueParams;
|
|
100
95
|
}
|
|
101
96
|
});
|
|
102
|
-
//# sourceMappingURL=issue-helpers-
|
|
97
|
+
//# sourceMappingURL=issue-helpers-DvsTfq9u.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue-helpers-DvsTfq9u.cjs","names":["url: string","UserInputError","parsedUrl: URL","organizationSlug: string | undefined","issueId: string"],"sources":["../src/internal/issue-helpers.ts"],"sourcesContent":["/**\n * Issue parameter parsing and validation utilities.\n *\n * Handles flexible input formats for Sentry issues (URLs vs explicit parameters),\n * extracts organization and issue identifiers, and validates issue ID formats.\n * Provides robust parsing for LLM-generated parameters that may contain formatting\n * inconsistencies.\n */\n\nimport { UserInputError } from \"../errors\";\n\n/**\n * Extracts the Sentry issue ID and organization slug from a full URL\n *\n * @param url - A full Sentry issue URL\n * @returns Object containing the numeric issue ID and organization slug (if found)\n * @throws Error if the input is invalid\n */\nexport function extractIssueId(url: string): {\n issueId: string;\n organizationSlug: string;\n} {\n if (!url || typeof url !== \"string\") {\n throw new UserInputError(\n \"Invalid Sentry issue URL. URL must be a non-empty string.\",\n );\n }\n\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Must start with http:// or https://\",\n );\n }\n\n let parsedUrl: URL;\n try {\n parsedUrl = new URL(url);\n } catch (error) {\n throw new UserInputError(\n `Invalid Sentry issue URL. Unable to parse URL: ${url}`,\n );\n }\n\n const pathParts = parsedUrl.pathname.split(\"/\").filter(Boolean);\n if (pathParts.length < 2 || !pathParts.includes(\"issues\")) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Path must contain '/issues/{issue_id}'\",\n );\n }\n\n const issueId = pathParts[pathParts.indexOf(\"issues\") + 1];\n if (!issueId) {\n throw new UserInputError(\"Unable to determine issue ID from URL.\");\n }\n\n // Extract organization slug from either the path or subdomain\n let organizationSlug: string | undefined;\n if (pathParts.includes(\"organizations\")) {\n organizationSlug = pathParts[pathParts.indexOf(\"organizations\") + 1];\n } else if (pathParts.length > 1 && pathParts[0] !== \"issues\") {\n // If URL is like sentry.io/sentry/issues/123\n organizationSlug = pathParts[0];\n } else {\n // Check for subdomain\n const hostParts = parsedUrl.hostname.split(\".\");\n if (hostParts.length > 2 && hostParts[0] !== \"www\") {\n organizationSlug = hostParts[0];\n }\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\n \"Invalid Sentry issue URL. Could not determine organization.\",\n );\n }\n\n return { issueId, organizationSlug };\n}\n\n/**\n * Sometimes the LLM will pass in a funky issue shortId. For example it might pass\n * in \"CLOUDFLARE-MCP-41.\" instead of \"CLOUDFLARE-MCP-41\". This function attempts to\n * fix common issues.\n *\n * @param issueId - The issue ID to parse\n * @returns The parsed issue ID\n */\nexport function parseIssueId(issueId: string) {\n if (!issueId.trim()) {\n throw new UserInputError(\"Issue ID cannot be empty\");\n }\n\n let finalIssueId = issueId;\n // remove trailing punctuation\n finalIssueId = finalIssueId.replace(/[^\\w-]/g, \"\");\n\n if (!finalIssueId) {\n throw new UserInputError(\n \"Issue ID cannot be empty after removing special characters\",\n );\n }\n\n // Validate against common Sentry issue ID patterns\n // Either numeric IDs or PROJECT-ABC123 format\n // Allow project codes to start with alphanumeric characters (including numbers)\n const validFormatRegex = /^(\\d+|[A-Za-z0-9][\\w-]*-[A-Za-z0-9]+)$/;\n\n if (!validFormatRegex.test(finalIssueId)) {\n throw new UserInputError(\n `Invalid issue ID format: \"${finalIssueId}\". Expected either a numeric ID or a project code followed by an alphanumeric identifier (e.g., \"PROJECT-ABC123\").`,\n );\n }\n\n return finalIssueId;\n}\n\n/**\n * Parses issue parameters from a variety of formats.\n *\n * @param params - Object containing issue URL, issue ID, and organization slug\n * @returns Object containing the parsed organization slug and issue ID\n * @throws Error if the input is invalid\n */\nexport function parseIssueParams({\n issueUrl,\n issueId,\n organizationSlug,\n}: {\n issueUrl?: string | null;\n issueId?: string | null;\n organizationSlug?: string | null;\n}): {\n organizationSlug: string;\n issueId: string;\n} {\n if (issueUrl) {\n const resolved = extractIssueId(issueUrl);\n if (!resolved) {\n throw new Error(\n \"Invalid Sentry issue URL. Path should contain '/issues/{issue_id}'\",\n );\n }\n return {\n ...resolved,\n issueId: parseIssueId(resolved.issueId),\n };\n }\n\n if (!organizationSlug) {\n throw new UserInputError(\"Organization slug is required\");\n }\n\n if (issueId) {\n return {\n organizationSlug,\n issueId: parseIssueId(issueId),\n };\n }\n\n throw new UserInputError(\"Either issueId or issueUrl must be provided\");\n}\n"],"mappings":";;;;;;;;;;AAkBA,SAAgB,eAAeA,KAG7B;AACA,MAAK,cAAc,QAAQ,SACzB,OAAM,IAAIC,8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S,aAAa,SAAS,QAAQ;EACxC;CACF;AAED,MAAK,iBACH,OAAM,IAAIA,8BAAe;AAG3B,KAAI,QACF,QAAO;EACL;EACA,SAAS,aAAa,QAAQ;CAC/B;AAGH,OAAM,IAAIA,8BAAe;AAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging-
|
|
1
|
+
{"version":3,"file":"logging-CX2buXiG.cjs","names":["error: string | Error | unknown","contexts?: Record<string, Record<string, any>>","attachments?: Record<string, string | Uint8Array>"],"sources":["../src/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\n\n/**\n * Logs errors to console and Sentry with optional context and attachments.\n *\n * Supports both Error objects and string messages. Returns a Sentry event ID\n * that can be included in user-facing error messages for debugging support.\n *\n * @param error - Error object or message string to log\n * @param contexts - Additional context data for Sentry\n * @param attachments - Files or data to attach to the Sentry event\n * @returns Sentry event ID for referencing this error, or undefined if logging fails\n *\n * @example Error Object Logging\n * ```typescript\n * try {\n * await riskyOperation();\n * } catch (error) {\n * const eventId = logError(error, {\n * operation: { name: \"riskyOperation\", params: {...} }\n * });\n * return `Error occurred. Event ID: ${eventId}`;\n * }\n * ```\n *\n * @example String Message Logging\n * ```typescript\n * const eventId = logError(\"Configuration validation failed\", {\n * config: { provided: userConfig, expected: expectedFormat }\n * });\n * ```\n */\nexport function logError(\n error: Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n message: string,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n error: string | Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined {\n const level = \"error\";\n\n console.error(error);\n\n const eventId = withScope((scope) => {\n if (attachments) {\n for (const [key, data] of Object.entries(attachments)) {\n scope.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts,\n level,\n })\n : captureException(error, {\n contexts,\n level,\n });\n });\n\n return eventId;\n}\n"],"mappings":";;;;AAiDA,SAAgB,SACdA,OACAC,UACAC,aACoB;CACpB,MAAM,QAAQ;AAEd,SAAQ,MAAM,MAAM;CAEpB,MAAM,UAAU,6BAAU,CAAC,UAAU;AACnC,MAAI,YACF,MAAK,MAAM,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,YAAY,CACnD,OAAM,cAAc;GAClB;GACA,UAAU;EACX,EAAC;AAIN,gBAAc,UAAU,WACpB,kCAAe,OAAO;GACpB;GACA;EACD,EAAC,GACF,oCAAiB,OAAO;GACtB;GACA;EACD,EAAC;CACP,EAAC;AAEF,QAAO;AACR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging-
|
|
1
|
+
{"version":3,"file":"logging-DzxYBMrn.js","names":["error: string | Error | unknown","contexts?: Record<string, Record<string, any>>","attachments?: Record<string, string | Uint8Array>"],"sources":["../src/logging.ts"],"sourcesContent":["/**\n * Logging and telemetry utilities for error reporting.\n *\n * Provides centralized error logging with Sentry integration. Handles both\n * console logging for development and structured error reporting for production\n * monitoring and debugging.\n */\nimport { captureException, captureMessage, withScope } from \"@sentry/core\";\n\n/**\n * Logs errors to console and Sentry with optional context and attachments.\n *\n * Supports both Error objects and string messages. Returns a Sentry event ID\n * that can be included in user-facing error messages for debugging support.\n *\n * @param error - Error object or message string to log\n * @param contexts - Additional context data for Sentry\n * @param attachments - Files or data to attach to the Sentry event\n * @returns Sentry event ID for referencing this error, or undefined if logging fails\n *\n * @example Error Object Logging\n * ```typescript\n * try {\n * await riskyOperation();\n * } catch (error) {\n * const eventId = logError(error, {\n * operation: { name: \"riskyOperation\", params: {...} }\n * });\n * return `Error occurred. Event ID: ${eventId}`;\n * }\n * ```\n *\n * @example String Message Logging\n * ```typescript\n * const eventId = logError(\"Configuration validation failed\", {\n * config: { provided: userConfig, expected: expectedFormat }\n * });\n * ```\n */\nexport function logError(\n error: Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n message: string,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined;\nexport function logError(\n error: string | Error | unknown,\n contexts?: Record<string, Record<string, any>>,\n attachments?: Record<string, string | Uint8Array>,\n): string | undefined {\n const level = \"error\";\n\n console.error(error);\n\n const eventId = withScope((scope) => {\n if (attachments) {\n for (const [key, data] of Object.entries(attachments)) {\n scope.addAttachment({\n data,\n filename: key,\n });\n }\n }\n\n return typeof error === \"string\"\n ? captureMessage(error, {\n contexts,\n level,\n })\n : captureException(error, {\n contexts,\n level,\n });\n });\n\n return eventId;\n}\n"],"mappings":";;;AAiDA,SAAgB,SACdA,OACAC,UACAC,aACoB;CACpB,MAAM,QAAQ;AAEd,SAAQ,MAAM,MAAM;CAEpB,MAAM,UAAU,UAAU,CAAC,UAAU;AACnC,MAAI,YACF,MAAK,MAAM,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,YAAY,CACnD,OAAM,cAAc;GAClB;GACA,UAAU;EACX,EAAC;AAIN,gBAAc,UAAU,WACpB,eAAe,OAAO;GACpB;GACA;EACD,EAAC,GACF,iBAAiB,OAAO;GACtB;GACA;EACD,EAAC;CACP,EAAC;AAEF,QAAO;AACR"}
|
package/dist/logging.cjs
CHANGED
package/dist/logging.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserInputError } from "./errors-
|
|
1
|
+
import { UserInputError } from "./errors-D_R568zP.js";
|
|
2
2
|
|
|
3
3
|
//#region src/prompts.ts
|
|
4
4
|
const PROMPT_HANDLERS = {
|
|
@@ -31,4 +31,4 @@ const PROMPT_HANDLERS = {
|
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
export { PROMPT_HANDLERS };
|
|
34
|
-
//# sourceMappingURL=prompts-
|
|
34
|
+
//# sourceMappingURL=prompts-Cuwmybyc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts-
|
|
1
|
+
{"version":3,"file":"prompts-Cuwmybyc.js","names":["issueMessage: string"],"sources":["../src/prompts.ts"],"sourcesContent":["/**\n * Prompt implementation handlers for the Sentry MCP server.\n *\n * Contains runtime implementations for all MCP prompts defined in `promptDefinitions.ts`.\n * Each handler generates context-aware instructions that guide LLMs through\n * complex multi-step workflows involving Sentry operations.\n *\n * @example Basic Handler Pattern\n * ```typescript\n * prompt_name: async (context, params) => {\n * const instructions = [\n * \"Primary objective and context\",\n * \"\",\n * \"1. First step with specific tool call\",\n * \"2. Second step with conditional logic\",\n * \"3. Final step with recommendations\",\n * ];\n * return instructions.join(\"\\n\");\n * },\n * ```\n */\nimport { UserInputError } from \"./errors\";\nimport type { PromptHandlers } from \"./types\";\n\nexport const PROMPT_HANDLERS = {\n find_errors_in_file: async (context, { organizationSlug, filename }) =>\n [\n `I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,\n \"\",\n \"You should use the tool `search_errors` to find errors in Sentry.\",\n \"\",\n \"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should pass it in with its direct parent.\",\n \"For example: if the file is `app/utils/index.ts`, you should pass in `utils/index.ts` or `app/utils/index.ts` depending on if the file is actually part of the applications source path.\",\n ].join(\"\\n\"),\n fix_issue_with_seer: async (\n context,\n { organizationSlug, issueId, issueUrl },\n ) => {\n let issueMessage: string;\n if (issueUrl) {\n issueMessage = `The Sentry issue is ${issueUrl}`;\n } else if (organizationSlug && issueId) {\n issueMessage = `The Sentry issue is ${issueId} in the organization ${organizationSlug}`;\n } else {\n throw new UserInputError(\n \"Either issueUrl or organizationSlug and issueId must be provided\",\n );\n }\n return [\n `I want to use Seer to fix an issue in Sentry.`,\n \"\",\n issueMessage,\n \"\",\n \"1. Call the tool `analyze_issue_with_seer` to analyze the issue and get fix recommendations.\",\n \"2. The tool will automatically check for existing analysis or start a new one if needed.\",\n \"3. Wait for the analysis to complete (typically 30-60 seconds).\",\n \"4. Review the root cause analysis and suggested fixes.\",\n \"5. Help me apply the fix to my application, if you are able to. Think carefully when doing this.\",\n ].join(\"\\n\");\n },\n} satisfies PromptHandlers;\n"],"mappings":";;;AAwBA,MAAa,kBAAkB;CAC7B,qBAAqB,OAAO,SAAS,EAAE,kBAAkB,UAAU,KACjE;GACG,2DAA2D,iBAAiB,iBAAiB;EAC9F;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACd,qBAAqB,OACnB,SACA,EAAE,kBAAkB,SAAS,UAAU,KACpC;EACH,IAAIA;AACJ,MAAI,SACF,iBAAgB,sBAAsB;WAC7B,oBAAoB,QAC7B,iBAAgB,sBAAsB,QAAQ,uBAAuB;MAErE,OAAM,IAAI,eACR;AAGJ,SAAO;IACJ;GACD;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_errors = require('./errors-
|
|
1
|
+
const require_errors = require('./errors-BtJEw2Z-.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/prompts.ts
|
|
4
4
|
const PROMPT_HANDLERS = {
|
|
@@ -36,4 +36,4 @@ Object.defineProperty(exports, 'PROMPT_HANDLERS', {
|
|
|
36
36
|
return PROMPT_HANDLERS;
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
//# sourceMappingURL=prompts-
|
|
39
|
+
//# sourceMappingURL=prompts-uWAbMvLe.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts-
|
|
1
|
+
{"version":3,"file":"prompts-uWAbMvLe.cjs","names":["issueMessage: string","UserInputError"],"sources":["../src/prompts.ts"],"sourcesContent":["/**\n * Prompt implementation handlers for the Sentry MCP server.\n *\n * Contains runtime implementations for all MCP prompts defined in `promptDefinitions.ts`.\n * Each handler generates context-aware instructions that guide LLMs through\n * complex multi-step workflows involving Sentry operations.\n *\n * @example Basic Handler Pattern\n * ```typescript\n * prompt_name: async (context, params) => {\n * const instructions = [\n * \"Primary objective and context\",\n * \"\",\n * \"1. First step with specific tool call\",\n * \"2. Second step with conditional logic\",\n * \"3. Final step with recommendations\",\n * ];\n * return instructions.join(\"\\n\");\n * },\n * ```\n */\nimport { UserInputError } from \"./errors\";\nimport type { PromptHandlers } from \"./types\";\n\nexport const PROMPT_HANDLERS = {\n find_errors_in_file: async (context, { organizationSlug, filename }) =>\n [\n `I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,\n \"\",\n \"You should use the tool `search_errors` to find errors in Sentry.\",\n \"\",\n \"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should pass it in with its direct parent.\",\n \"For example: if the file is `app/utils/index.ts`, you should pass in `utils/index.ts` or `app/utils/index.ts` depending on if the file is actually part of the applications source path.\",\n ].join(\"\\n\"),\n fix_issue_with_seer: async (\n context,\n { organizationSlug, issueId, issueUrl },\n ) => {\n let issueMessage: string;\n if (issueUrl) {\n issueMessage = `The Sentry issue is ${issueUrl}`;\n } else if (organizationSlug && issueId) {\n issueMessage = `The Sentry issue is ${issueId} in the organization ${organizationSlug}`;\n } else {\n throw new UserInputError(\n \"Either issueUrl or organizationSlug and issueId must be provided\",\n );\n }\n return [\n `I want to use Seer to fix an issue in Sentry.`,\n \"\",\n issueMessage,\n \"\",\n \"1. Call the tool `analyze_issue_with_seer` to analyze the issue and get fix recommendations.\",\n \"2. The tool will automatically check for existing analysis or start a new one if needed.\",\n \"3. Wait for the analysis to complete (typically 30-60 seconds).\",\n \"4. Review the root cause analysis and suggested fixes.\",\n \"5. Help me apply the fix to my application, if you are able to. Think carefully when doing this.\",\n ].join(\"\\n\");\n },\n} satisfies PromptHandlers;\n"],"mappings":";;;AAwBA,MAAa,kBAAkB;CAC7B,qBAAqB,OAAO,SAAS,EAAE,kBAAkB,UAAU,KACjE;GACG,2DAA2D,iBAAiB,iBAAiB;EAC9F;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACd,qBAAqB,OACnB,SACA,EAAE,kBAAkB,SAAS,UAAU,KACpC;EACH,IAAIA;AACJ,MAAI,SACF,iBAAgB,sBAAsB;WAC7B,oBAAoB,QAC7B,iBAAgB,sBAAsB,QAAQ,uBAAuB;MAErE,OAAM,IAAIC,8BACR;AAGJ,SAAO;IACJ;GACD;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;CACb;AACF"}
|
package/dist/prompts.cjs
CHANGED
package/dist/prompts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_constants = require('./constants-ClkMK29-.cjs');
|
|
3
|
-
const require_errors = require('./errors-
|
|
3
|
+
const require_errors = require('./errors-BtJEw2Z-.cjs');
|
|
4
4
|
const __modelcontextprotocol_sdk_server_mcp_js = require_chunk.__toESM(require("@modelcontextprotocol/sdk/server/mcp.js"));
|
|
5
5
|
|
|
6
6
|
//#region src/resources.ts
|
|
@@ -101,4 +101,4 @@ Object.defineProperty(exports, 'isTemplateResource', {
|
|
|
101
101
|
return isTemplateResource;
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
-
//# sourceMappingURL=resources-
|
|
104
|
+
//# sourceMappingURL=resources-BlgeiG6C.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources-
|
|
1
|
+
{"version":3,"file":"resources-BlgeiG6C.cjs","names":["resource: ResourceConfig","ResourceTemplate","rawPath: string","url: URL","_extra: RequestHandlerExtra<any, any>","UserInputError","RESOURCES: ResourceConfig[]","SENTRY_FRAMEWORKS"],"sources":["../src/resources.ts"],"sourcesContent":["/**\n * MCP Resources for external documentation and reference materials.\n *\n * Defines MCP resources that provide access to external documentation and\n * knowledge bases. Resources enable LLMs to access contextual information\n * during tool execution without embedding large documents in the codebase.\n *\n * @see https://modelcontextprotocol.io/docs/concepts/resources - MCP Resources specification\n *\n * @example Resource Definition\n * ```typescript\n * {\n * name: \"sentry-query-syntax\",\n * uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n * mimeType: \"text/plain\",\n * description: \"Sentry search query syntax reference for filtering issues and events.\",\n * handler: defaultGitHubHandler,\n * }\n * ```\n */\nimport {\n ResourceTemplate,\n type ReadResourceCallback,\n type ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { ReadResourceResult } from \"@modelcontextprotocol/sdk/types.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Resource configuration for regular URI resources\n */\nexport type UriResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n uri: string;\n handler: ReadResourceCallback;\n};\n\n/**\n * Resource configuration for URI template resources\n */\nexport type TemplateResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n template: ResourceTemplate;\n handler: ReadResourceCallback; // Changed back to ReadResourceCallback\n};\n\n/**\n * Resource configuration with handler function\n */\nexport type ResourceConfig = UriResourceConfig | TemplateResourceConfig;\n\n/**\n * Type guard to check if a resource uses a URI template\n */\nexport function isTemplateResource(\n resource: ResourceConfig,\n): resource is TemplateResourceConfig {\n return (\n \"template\" in resource && resource.template instanceof ResourceTemplate\n );\n}\n\n/**\n * Fetches raw content from GitHub repositories.\n * Converts GitHub blob URLs to raw content URLs.\n */\nasync function fetchRawGithubContent(rawPath: string) {\n const path = rawPath.replace(\"/blob\", \"\");\n\n return fetch(`https://raw.githubusercontent.com${path}`).then((res) =>\n res.text(),\n );\n}\n\n/**\n * Default handler for GitHub-hosted resources.\n * Converts GitHub blob URLs to raw content URLs and returns MCP resource format.\n */\nasync function defaultGitHubHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n const uri = url.host;\n const rawPath = url.pathname;\n const content = await fetchRawGithubContent(rawPath);\n return {\n contents: [\n {\n uri: uri,\n mimeType: \"text/plain\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Fetches Sentry documentation in markdown format.\n * Converts docs.sentry.io URLs to their markdown equivalents.\n *\n * The handler receives the exact URI from the resource definition,\n * but dynamically constructs the markdown URL based on the actual request.\n */\nasync function sentryDocsHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n // The URL passed here is the actual docs.sentry.io URL being requested\n // Transform it to fetch the markdown version\n const path = `${url.pathname.replace(/\\/$/, \"\")}.md`;\n const mdUrl = `${url.origin}${path}`;\n\n const response = await fetch(mdUrl, {\n headers: {\n \"User-Agent\": \"Sentry MCP Server\",\n },\n });\n if (!response.ok) {\n if (response.status === 404) {\n throw new UserInputError(\n `Sentry documentation not found at ${url.pathname}. Please check the URL is correct.`,\n );\n }\n throw new Error(\n `Failed to fetch Sentry docs: ${response.status} ${response.statusText}`,\n );\n }\n\n const content = await response.text();\n\n return {\n contents: [\n {\n uri: url.toString(),\n mimeType: \"text/markdown\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Registry of all MCP resources available to LLMs.\n * Defines external documentation and reference materials with their handlers.\n */\n// XXX: Try to keep the description in sync with the MDC file itself\n// Note: In an ideal world these would live on-disk in this same repo and we'd\n// simply parse everything out, but given we're running the service on cloudflare\n// and the author barely knows TypeScript, we're opting for a solution we've\n// seen employed elsewhere (h/t Neon)\n\n// Import platform constants from constants\nimport { SENTRY_PLATFORMS_BASE, SENTRY_FRAMEWORKS } from \"./constants\";\n\nexport const RESOURCES: ResourceConfig[] = [\n {\n name: \"sentry-query-syntax\",\n uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n mimeType: \"text/plain\",\n description:\n \"Use these rules to understand common query parameters when searching Sentry for information.\",\n handler: defaultGitHubHandler,\n } as UriResourceConfig,\n // Platform documentation with dynamic segments\n {\n name: \"sentry-docs-platform\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/\",\n {\n list: async (_extra) => ({\n resources: SENTRY_PLATFORMS_BASE.map((platform) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/`,\n name: `${platform}-docs`,\n description: `Sentry SDK documentation for ${platform}`,\n mimeType: \"text/markdown\",\n })),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry SDK documentation for {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n {\n name: \"sentry-docs-platform-guide\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/guides/{framework}/\",\n {\n list: async (_extra) => ({\n resources: Object.entries(SENTRY_FRAMEWORKS).flatMap(\n ([platform, frameworks]) =>\n frameworks.map((framework) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/guides/${framework}/`,\n name: `${platform}-${framework}-guide`,\n description: `Sentry integration guide for ${framework} on ${platform}`,\n mimeType: \"text/markdown\",\n })),\n ),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry integration guide for {framework} on {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n];\n"],"mappings":";;;;;;;;;AA2DA,SAAgB,mBACdA,UACoC;AACpC,QACE,cAAc,YAAY,SAAS,oBAAoBC;AAE1D;;;;;AAMD,eAAe,sBAAsBC,SAAiB;CACpD,MAAM,OAAO,QAAQ,QAAQ,SAAS,GAAG;AAEzC,QAAO,OAAO,mCAAmC,OAAO,CAAC,KAAK,CAAC,QAC7D,IAAI,MAAM,CACX;AACF;;;;;AAMD,eAAe,qBACbC,KACAC,QAC6B;CAC7B,MAAM,MAAM,IAAI;CAChB,MAAM,UAAU,IAAI;CACpB,MAAM,UAAU,MAAM,sBAAsB,QAAQ;AACpD,QAAO,EACL,UAAU,CACR;EACO;EACL,UAAU;EACV,MAAM;CACP,CACF,EACF;AACF;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ORKS, SENTRY_PLATFORMS_BASE } from "./constants-S7AU45oQ.js";
|
|
2
|
-
import { UserInputError } from "./errors-
|
|
2
|
+
import { UserInputError } from "./errors-D_R568zP.js";
|
|
3
3
|
import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
4
4
|
|
|
5
5
|
//#region src/resources.ts
|
|
@@ -89,4 +89,4 @@ const RESOURCES = [
|
|
|
89
89
|
|
|
90
90
|
//#endregion
|
|
91
91
|
export { RESOURCES, isTemplateResource };
|
|
92
|
-
//# sourceMappingURL=resources-
|
|
92
|
+
//# sourceMappingURL=resources-CwWOjB8_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources-
|
|
1
|
+
{"version":3,"file":"resources-CwWOjB8_.js","names":["resource: ResourceConfig","rawPath: string","url: URL","_extra: RequestHandlerExtra<any, any>","RESOURCES: ResourceConfig[]"],"sources":["../src/resources.ts"],"sourcesContent":["/**\n * MCP Resources for external documentation and reference materials.\n *\n * Defines MCP resources that provide access to external documentation and\n * knowledge bases. Resources enable LLMs to access contextual information\n * during tool execution without embedding large documents in the codebase.\n *\n * @see https://modelcontextprotocol.io/docs/concepts/resources - MCP Resources specification\n *\n * @example Resource Definition\n * ```typescript\n * {\n * name: \"sentry-query-syntax\",\n * uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n * mimeType: \"text/plain\",\n * description: \"Sentry search query syntax reference for filtering issues and events.\",\n * handler: defaultGitHubHandler,\n * }\n * ```\n */\nimport {\n ResourceTemplate,\n type ReadResourceCallback,\n type ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { ReadResourceResult } from \"@modelcontextprotocol/sdk/types.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Resource configuration for regular URI resources\n */\nexport type UriResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n uri: string;\n handler: ReadResourceCallback;\n};\n\n/**\n * Resource configuration for URI template resources\n */\nexport type TemplateResourceConfig = {\n name: string;\n description: string;\n mimeType: string;\n template: ResourceTemplate;\n handler: ReadResourceCallback; // Changed back to ReadResourceCallback\n};\n\n/**\n * Resource configuration with handler function\n */\nexport type ResourceConfig = UriResourceConfig | TemplateResourceConfig;\n\n/**\n * Type guard to check if a resource uses a URI template\n */\nexport function isTemplateResource(\n resource: ResourceConfig,\n): resource is TemplateResourceConfig {\n return (\n \"template\" in resource && resource.template instanceof ResourceTemplate\n );\n}\n\n/**\n * Fetches raw content from GitHub repositories.\n * Converts GitHub blob URLs to raw content URLs.\n */\nasync function fetchRawGithubContent(rawPath: string) {\n const path = rawPath.replace(\"/blob\", \"\");\n\n return fetch(`https://raw.githubusercontent.com${path}`).then((res) =>\n res.text(),\n );\n}\n\n/**\n * Default handler for GitHub-hosted resources.\n * Converts GitHub blob URLs to raw content URLs and returns MCP resource format.\n */\nasync function defaultGitHubHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n const uri = url.host;\n const rawPath = url.pathname;\n const content = await fetchRawGithubContent(rawPath);\n return {\n contents: [\n {\n uri: uri,\n mimeType: \"text/plain\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Fetches Sentry documentation in markdown format.\n * Converts docs.sentry.io URLs to their markdown equivalents.\n *\n * The handler receives the exact URI from the resource definition,\n * but dynamically constructs the markdown URL based on the actual request.\n */\nasync function sentryDocsHandler(\n url: URL,\n _extra: RequestHandlerExtra<any, any>,\n): Promise<ReadResourceResult> {\n // The URL passed here is the actual docs.sentry.io URL being requested\n // Transform it to fetch the markdown version\n const path = `${url.pathname.replace(/\\/$/, \"\")}.md`;\n const mdUrl = `${url.origin}${path}`;\n\n const response = await fetch(mdUrl, {\n headers: {\n \"User-Agent\": \"Sentry MCP Server\",\n },\n });\n if (!response.ok) {\n if (response.status === 404) {\n throw new UserInputError(\n `Sentry documentation not found at ${url.pathname}. Please check the URL is correct.`,\n );\n }\n throw new Error(\n `Failed to fetch Sentry docs: ${response.status} ${response.statusText}`,\n );\n }\n\n const content = await response.text();\n\n return {\n contents: [\n {\n uri: url.toString(),\n mimeType: \"text/markdown\",\n text: content,\n },\n ],\n };\n}\n\n/**\n * Registry of all MCP resources available to LLMs.\n * Defines external documentation and reference materials with their handlers.\n */\n// XXX: Try to keep the description in sync with the MDC file itself\n// Note: In an ideal world these would live on-disk in this same repo and we'd\n// simply parse everything out, but given we're running the service on cloudflare\n// and the author barely knows TypeScript, we're opting for a solution we've\n// seen employed elsewhere (h/t Neon)\n\n// Import platform constants from constants\nimport { SENTRY_PLATFORMS_BASE, SENTRY_FRAMEWORKS } from \"./constants\";\n\nexport const RESOURCES: ResourceConfig[] = [\n {\n name: \"sentry-query-syntax\",\n uri: \"https://github.com/getsentry/sentry-ai-rules/blob/main/api/query-syntax.mdc\",\n mimeType: \"text/plain\",\n description:\n \"Use these rules to understand common query parameters when searching Sentry for information.\",\n handler: defaultGitHubHandler,\n } as UriResourceConfig,\n // Platform documentation with dynamic segments\n {\n name: \"sentry-docs-platform\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/\",\n {\n list: async (_extra) => ({\n resources: SENTRY_PLATFORMS_BASE.map((platform) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/`,\n name: `${platform}-docs`,\n description: `Sentry SDK documentation for ${platform}`,\n mimeType: \"text/markdown\",\n })),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry SDK documentation for {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n {\n name: \"sentry-docs-platform-guide\",\n template: new ResourceTemplate(\n \"https://docs.sentry.io/platforms/{platform}/guides/{framework}/\",\n {\n list: async (_extra) => ({\n resources: Object.entries(SENTRY_FRAMEWORKS).flatMap(\n ([platform, frameworks]) =>\n frameworks.map((framework) => ({\n uri: `https://docs.sentry.io/platforms/${platform}/guides/${framework}/`,\n name: `${platform}-${framework}-guide`,\n description: `Sentry integration guide for ${framework} on ${platform}`,\n mimeType: \"text/markdown\",\n })),\n ),\n }),\n },\n ),\n mimeType: \"text/markdown\",\n description: \"Sentry integration guide for {framework} on {platform}\",\n handler: sentryDocsHandler,\n } as TemplateResourceConfig,\n];\n"],"mappings":";;;;;;;;AA2DA,SAAgB,mBACdA,UACoC;AACpC,QACE,cAAc,YAAY,SAAS,oBAAoB;AAE1D;;;;;AAMD,eAAe,sBAAsBC,SAAiB;CACpD,MAAM,OAAO,QAAQ,QAAQ,SAAS,GAAG;AAEzC,QAAO,OAAO,mCAAmC,OAAO,CAAC,KAAK,CAAC,QAC7D,IAAI,MAAM,CACX;AACF;;;;;AAMD,eAAe,qBACbC,KACAC,QAC6B;CAC7B,MAAM,MAAM,IAAI;CAChB,MAAM,UAAU,IAAI;CACpB,MAAM,UAAU,MAAM,sBAAsB,QAAQ;AACpD,QAAO,EACL,UAAU,CACR;EACO;EACL,UAAU;EACV,MAAM;CACP,CACF,EACF;AACF;;;;;;;;AASD,eAAe,kBACbD,KACAC,QAC6B;CAG7B,MAAM,UAAU,IAAI,SAAS,QAAQ,OAAO,GAAG,CAAC;CAChD,MAAM,WAAW,IAAI,SAAS;CAE9B,MAAM,WAAW,MAAM,MAAM,OAAO,EAClC,SAAS,EACP,cAAc,oBACf,EACF,EAAC;AACF,MAAK,SAAS,IAAI;AAChB,MAAI,SAAS,WAAW,IACtB,OAAM,IAAI,gBACP,oCAAoC,IAAI,SAAS;AAGtD,QAAM,IAAI,OACP,+BAA+B,SAAS,OAAO,GAAG,SAAS;CAE/D;CAED,MAAM,UAAU,MAAM,SAAS,MAAM;AAErC,QAAO,EACL,UAAU,CACR;EACE,KAAK,IAAI,UAAU;EACnB,UAAU;EACV,MAAM;CACP,CACF,EACF;AACF;AAeD,MAAaC,YAA8B;CACzC;EACE,MAAM;EACN,KAAK;EACL,UAAU;EACV,aACE;EACF,SAAS;CACV;CAED;EACE,MAAM;EACN,UAAU,IAAI,iBACZ,gDACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,sBAAsB,IAAI,CAAC,cAAc;GAClD,MAAM,mCAAmC,SAAS;GAClD,SAAS,SAAS;GAClB,cAAc,+BAA+B;GAC7C,UAAU;EACX,GAAE,CACJ,GACF;EAEH,UAAU;EACV,aAAa;EACb,SAAS;CACV;CACD;EACE,MAAM;EACN,UAAU,IAAI,iBACZ,mEACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,OAAO,QAAQ,kBAAkB,CAAC,QAC3C,CAAC,CAAC,UAAU,WAAW,KACrB,WAAW,IAAI,CAAC,eAAe;GAC7B,MAAM,mCAAmC,SAAS,UAAU,UAAU;GACtE,SAAS,SAAS,GAAG,UAAU;GAC/B,cAAc,+BAA+B,UAAU,MAAM;GAC7D,UAAU;EACX,GAAE,CACN,CACF,GACF;EAEH,UAAU;EACV,aAAa;EACb,SAAS;CACV;AACF"}
|
package/dist/resources.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require('./constants-ClkMK29-.cjs');
|
|
2
|
-
require('./errors-
|
|
3
|
-
const require_resources = require('./resources-
|
|
2
|
+
require('./errors-BtJEw2Z-.cjs');
|
|
3
|
+
const require_resources = require('./resources-BlgeiG6C.cjs');
|
|
4
4
|
|
|
5
5
|
exports.RESOURCES = require_resources.RESOURCES;
|
|
6
6
|
exports.isTemplateResource = require_resources.isTemplateResource;
|
package/dist/resources.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./constants-S7AU45oQ.js";
|
|
2
|
-
import "./errors-
|
|
3
|
-
import { RESOURCES, isTemplateResource } from "./resources-
|
|
2
|
+
import "./errors-D_R568zP.js";
|
|
3
|
+
import { RESOURCES, isTemplateResource } from "./resources-CwWOjB8_.js";
|
|
4
4
|
|
|
5
5
|
export { RESOURCES, isTemplateResource };
|