@sentry/mcp-server 0.16.0 → 0.17.1
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 +4 -0
- package/dist/agent-COgY789I.js +225 -0
- package/dist/agent-COgY789I.js.map +1 -0
- package/dist/agent-Cody_f0d.cjs +59 -0
- package/dist/agent-Cody_f0d.cjs.map +1 -0
- package/dist/agent-DZRRChrO.js +53 -0
- package/dist/agent-DZRRChrO.js.map +1 -0
- package/dist/agent-DpCCnhh5.cjs +231 -0
- package/dist/agent-DpCCnhh5.cjs.map +1 -0
- package/dist/agent-tools/discover-dataset-fields.cjs +6 -0
- package/dist/agent-tools/discover-dataset-fields.d.cts +59 -0
- package/dist/agent-tools/discover-dataset-fields.d.cts.map +1 -0
- package/dist/agent-tools/discover-dataset-fields.d.ts +59 -0
- package/dist/agent-tools/discover-dataset-fields.d.ts.map +1 -0
- package/dist/agent-tools/discover-dataset-fields.js +3 -0
- package/dist/agent-tools/lookup-otel-semantics.cjs +5 -0
- package/dist/agent-tools/lookup-otel-semantics.d.cts +38 -0
- package/dist/agent-tools/lookup-otel-semantics.d.cts.map +1 -0
- package/dist/agent-tools/lookup-otel-semantics.d.ts +38 -0
- package/dist/agent-tools/lookup-otel-semantics.d.ts.map +1 -0
- package/dist/agent-tools/lookup-otel-semantics.js +4 -0
- package/dist/agent-tools/whoami.cjs +4 -0
- package/dist/agent-tools/whoami.d.cts +28 -0
- package/dist/agent-tools/whoami.d.cts.map +1 -0
- package/dist/agent-tools/whoami.d.ts +28 -0
- package/dist/agent-tools/whoami.d.ts.map +1 -0
- package/dist/agent-tools/whoami.js +3 -0
- package/dist/{analyze-issue-with-seer-B8ZWokLV.cjs → analyze-issue-with-seer-ByoDTsq-.cjs} +7 -7
- package/dist/{analyze-issue-with-seer-B8ZWokLV.cjs.map → analyze-issue-with-seer-ByoDTsq-.cjs.map} +1 -1
- package/dist/{analyze-issue-with-seer-szIqv1_I.js → analyze-issue-with-seer-CpwtN4UA.js} +7 -7
- package/dist/{analyze-issue-with-seer-szIqv1_I.js.map → analyze-issue-with-seer-CpwtN4UA.js.map} +1 -1
- package/dist/api-client/client.cjs +3 -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 +3 -2
- package/dist/api-client/index.cjs +5 -4
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +5 -4
- package/dist/api-client/schema.cjs +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/schema.js +1 -1
- package/dist/api-client/types.cjs +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/api-client/types.js +1 -1
- package/dist/{api-utils-CHRiLf2Y.js → api-utils-BlUSO8xh.js} +12 -13
- package/dist/api-utils-BlUSO8xh.js.map +1 -0
- package/dist/{api-utils-B-9vnzoA.cjs → api-utils-DFWUfQ83.cjs} +12 -13
- package/dist/api-utils-DFWUfQ83.cjs.map +1 -0
- package/dist/{client-C_lwH0jz.cjs → client-CPrEfAwa.cjs} +307 -13
- package/dist/client-CPrEfAwa.cjs.map +1 -0
- package/dist/{client-D8vrUp2k.d.cts → client-DLkUGS7r.d.ts} +163 -8
- package/dist/client-DLkUGS7r.d.ts.map +1 -0
- package/dist/{client-h32L1Hx5.d.ts → client-DV68BdcS.d.cts} +167 -12
- package/dist/client-DV68BdcS.d.cts.map +1 -0
- package/dist/{client-pyNUFaLN.js → client-MaVV1gVC.js} +307 -13
- package/dist/client-MaVV1gVC.js.map +1 -0
- package/dist/config-BUmDxVLS.js +52 -0
- package/dist/config-BUmDxVLS.js.map +1 -0
- package/dist/config-BvtWiL3I.js +449 -0
- package/dist/config-BvtWiL3I.js.map +1 -0
- package/dist/config-CD-5FpOO.cjs +479 -0
- package/dist/config-CD-5FpOO.cjs.map +1 -0
- package/dist/config-FWsgDbm7.cjs +58 -0
- package/dist/config-FWsgDbm7.cjs.map +1 -0
- package/dist/{constants-S7AU45oQ.js → constants-Fe-4NTUo.js} +6 -2
- package/dist/constants-Fe-4NTUo.js.map +1 -0
- package/dist/{constants-ClkMK29-.cjs → constants-wrEbre3j.cjs} +11 -1
- package/dist/constants-wrEbre3j.cjs.map +1 -0
- package/dist/constants.cjs +2 -1
- package/dist/constants.d.cts +5 -1
- package/dist/constants.d.cts.map +1 -1
- package/dist/constants.d.ts +5 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/{create-dsn-CEEytIa4.js → create-dsn-BT3t-MDA.js} +12 -10
- package/dist/create-dsn-BT3t-MDA.js.map +1 -0
- package/dist/{create-dsn-CI7MSiQu.cjs → create-dsn-Bgwi-Ygi.cjs} +12 -10
- package/dist/create-dsn-Bgwi-Ygi.cjs.map +1 -0
- package/dist/{create-project-DnLKRG1p.cjs → create-project-4R4aZMoc.cjs} +14 -11
- package/dist/create-project-4R4aZMoc.cjs.map +1 -0
- package/dist/{create-project-CoV1e-vp.js → create-project-Ca1Sy1_F.js} +14 -11
- package/dist/create-project-Ca1Sy1_F.js.map +1 -0
- package/dist/{create-team-DKpKxVIY.cjs → create-team-CSBXDcoD.cjs} +14 -5
- package/dist/{create-team-DKpKxVIY.cjs.map → create-team-CSBXDcoD.cjs.map} +1 -1
- package/dist/{create-team-HWN88CJQ.js → create-team-D0dUl7Zo.js} +14 -5
- package/dist/{create-team-HWN88CJQ.js.map → create-team-D0dUl7Zo.js.map} +1 -1
- package/dist/discover-dataset-fields-BEnyqPSq.js +156 -0
- package/dist/discover-dataset-fields-BEnyqPSq.js.map +1 -0
- package/dist/discover-dataset-fields-Cl7HpVkm.cjs +180 -0
- package/dist/discover-dataset-fields-Cl7HpVkm.cjs.map +1 -0
- package/dist/{fetch-utils-gHZdOZV2.js → fetch-utils-C_Xj921x.js} +1 -1
- package/dist/{fetch-utils-gHZdOZV2.js.map → fetch-utils-C_Xj921x.js.map} +1 -1
- package/dist/{fetch-utils-SuGtrQRz.cjs → fetch-utils-DkcYwqBo.cjs} +1 -1
- package/dist/{fetch-utils-SuGtrQRz.cjs.map → fetch-utils-DkcYwqBo.cjs.map} +1 -1
- package/dist/{fetch-utils-B0CB5xLM.d.ts → fetch-utils-JDZw4XaU.d.ts} +1 -1
- package/dist/{fetch-utils-B0CB5xLM.d.ts.map → fetch-utils-JDZw4XaU.d.ts.map} +1 -1
- package/dist/{find-dsns-vriZSwr7.cjs → find-dsns-CkvahHwJ.cjs} +3 -3
- package/dist/{find-dsns-vriZSwr7.cjs.map → find-dsns-CkvahHwJ.cjs.map} +1 -1
- package/dist/{find-dsns-BB9dQP0b.js → find-dsns-DrNAfU_Q.js} +3 -3
- package/dist/{find-dsns-BB9dQP0b.js.map → find-dsns-DrNAfU_Q.js.map} +1 -1
- package/dist/{find-organizations-Cx5vCj4j.cjs → find-organizations-BDtHkcFV.cjs} +2 -2
- package/dist/{find-organizations-Cx5vCj4j.cjs.map → find-organizations-BDtHkcFV.cjs.map} +1 -1
- package/dist/{find-organizations-BILg1hUb.js → find-organizations-Cs1GvZtJ.js} +2 -2
- package/dist/{find-organizations-BILg1hUb.js.map → find-organizations-Cs1GvZtJ.js.map} +1 -1
- package/dist/{find-projects-CgCj2_eq.js → find-projects-CZCMck_0.js} +3 -3
- package/dist/{find-projects-CgCj2_eq.js.map → find-projects-CZCMck_0.js.map} +1 -1
- package/dist/{find-projects-CN99WBex.cjs → find-projects-Dh-1AK-m.cjs} +3 -3
- package/dist/{find-projects-CN99WBex.cjs.map → find-projects-Dh-1AK-m.cjs.map} +1 -1
- package/dist/{find-releases-Cm11xU5S.cjs → find-releases-BsAkl--F.cjs} +3 -3
- package/dist/{find-releases-Cm11xU5S.cjs.map → find-releases-BsAkl--F.cjs.map} +1 -1
- package/dist/{find-releases-BsQF3wc5.js → find-releases-Do_CywRr.js} +3 -3
- package/dist/{find-releases-BsQF3wc5.js.map → find-releases-Do_CywRr.js.map} +1 -1
- package/dist/{find-teams-XgUg8Nj5.js → find-teams-BylQQ4FO.js} +3 -3
- package/dist/{find-teams-XgUg8Nj5.js.map → find-teams-BylQQ4FO.js.map} +1 -1
- package/dist/{find-teams-CS443jRa.cjs → find-teams-DXyzyQOy.cjs} +3 -3
- package/dist/{find-teams-CS443jRa.cjs.map → find-teams-DXyzyQOy.cjs.map} +1 -1
- package/dist/formatters-B3ONbRhI.js +79 -0
- package/dist/formatters-B3ONbRhI.js.map +1 -0
- package/dist/formatters-CfeBjhXZ.cjs +235 -0
- package/dist/formatters-CfeBjhXZ.cjs.map +1 -0
- package/dist/formatters-DSYXBiQx.js +217 -0
- package/dist/formatters-DSYXBiQx.js.map +1 -0
- package/dist/formatters-DbqofIoy.cjs +85 -0
- package/dist/formatters-DbqofIoy.cjs.map +1 -0
- package/dist/{formatting-AXU4XsjJ.cjs → formatting-C180PVwd.cjs} +3 -3
- package/dist/formatting-C180PVwd.cjs.map +1 -0
- package/dist/{formatting-DnSI0DHf.d.ts → formatting-C3qu84cm.d.ts} +4 -4
- package/dist/formatting-C3qu84cm.d.ts.map +1 -0
- package/dist/{formatting-aGQ7M_2w.d.cts → formatting-CmBYkI_e.d.cts} +4 -4
- package/dist/formatting-CmBYkI_e.d.cts.map +1 -0
- package/dist/{formatting-WGc5qrhv.js → formatting-DIvCVunN.js} +3 -3
- package/dist/formatting-DIvCVunN.js.map +1 -0
- package/dist/{formatting-utils-DgOyTl-m.js → formatting-utils-C3sej5ER.js} +1 -1
- package/dist/{formatting-utils-DgOyTl-m.js.map → formatting-utils-C3sej5ER.js.map} +1 -1
- package/dist/{formatting-utils-m9R5bsRU.cjs → formatting-utils-DDz14xeB.cjs} +1 -1
- package/dist/{formatting-utils-m9R5bsRU.cjs.map → formatting-utils-DDz14xeB.cjs.map} +1 -1
- package/dist/{get-doc-ByXR3EWc.cjs → get-doc-BfMg0GIa.cjs} +3 -3
- package/dist/{get-doc-ByXR3EWc.cjs.map → get-doc-BfMg0GIa.cjs.map} +1 -1
- package/dist/{get-doc-C1IEG2pH.js → get-doc-DyqJe6TP.js} +3 -3
- package/dist/{get-doc-C1IEG2pH.js.map → get-doc-DyqJe6TP.js.map} +1 -1
- package/dist/{get-event-attachment-CuGUfVAD.cjs → get-event-attachment-BzhDeM6z.cjs} +3 -3
- package/dist/{get-event-attachment-CuGUfVAD.cjs.map → get-event-attachment-BzhDeM6z.cjs.map} +1 -1
- package/dist/{get-event-attachment-N11gSV23.js → get-event-attachment-CVoMrETq.js} +3 -3
- package/dist/{get-event-attachment-N11gSV23.js.map → get-event-attachment-CVoMrETq.js.map} +1 -1
- package/dist/{get-issue-details-EklkHsWi.cjs → get-issue-details-C96fhps3.cjs} +22 -18
- package/dist/get-issue-details-C96fhps3.cjs.map +1 -0
- package/dist/{get-issue-details-BrEGybe0.js → get-issue-details-_uS_AZ_v.js} +22 -18
- package/dist/get-issue-details-_uS_AZ_v.js.map +1 -0
- package/dist/handler-7T1iMsQU.cjs +152 -0
- package/dist/handler-7T1iMsQU.cjs.map +1 -0
- package/dist/handler-B0bLvFFX.js +146 -0
- package/dist/handler-B0bLvFFX.js.map +1 -0
- package/dist/handler-BGhr9FJM.d.cts +15 -0
- package/dist/handler-BGhr9FJM.d.cts.map +1 -0
- package/dist/handler-BPPTAi7I.d.ts +15 -0
- package/dist/handler-BPPTAi7I.d.ts.map +1 -0
- package/dist/handler-BZ3hKPb8.d.cts +15 -0
- package/dist/handler-BZ3hKPb8.d.cts.map +1 -0
- package/dist/handler-DEjS3yks.cjs +114 -0
- package/dist/handler-DEjS3yks.cjs.map +1 -0
- package/dist/handler-DTN2HYXt.js +108 -0
- package/dist/handler-DTN2HYXt.js.map +1 -0
- package/dist/handler-cUB6XcUV.d.ts +15 -0
- package/dist/handler-cUB6XcUV.d.ts.map +1 -0
- package/dist/index.cjs +63 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +63 -46
- package/dist/index.js.map +1 -1
- package/dist/internal/fetch-utils.cjs +1 -1
- package/dist/internal/fetch-utils.d.ts +1 -1
- package/dist/internal/fetch-utils.js +1 -1
- package/dist/internal/formatting.cjs +2 -2
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +5 -5
- package/dist/internal/formatting.js +2 -2
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.ts +1 -1
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/test-fixtures.d.cts +68 -68
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +56 -56
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/{issue-helpers-D2p1Gkgm.js → issue-helpers-CRx45FYG.js} +1 -1
- package/dist/{issue-helpers-D2p1Gkgm.js.map → issue-helpers-CRx45FYG.js.map} +1 -1
- package/dist/{issue-helpers-BJffpNoO.d.ts → issue-helpers-D1_Uqr-F.d.ts} +1 -1
- package/dist/{issue-helpers-BJffpNoO.d.ts.map → issue-helpers-D1_Uqr-F.d.ts.map} +1 -1
- package/dist/{issue-helpers-DvsTfq9u.cjs → issue-helpers-s5fKLwJZ.cjs} +1 -1
- package/dist/{issue-helpers-DvsTfq9u.cjs.map → issue-helpers-s5fKLwJZ.cjs.map} +1 -1
- package/dist/{logging-CX2buXiG.cjs → logging-BpL53bY6.cjs} +1 -1
- package/dist/{logging-CX2buXiG.cjs.map → logging-BpL53bY6.cjs.map} +1 -1
- package/dist/{logging-DzxYBMrn.js → logging-tGU_SYcA.js} +1 -1
- package/dist/{logging-DzxYBMrn.js.map → logging-tGU_SYcA.js.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/lookup-otel-semantics-BbriXZAx.cjs +5088 -0
- package/dist/lookup-otel-semantics-BbriXZAx.cjs.map +1 -0
- package/dist/lookup-otel-semantics-Dt667kdR.js +5076 -0
- package/dist/lookup-otel-semantics-Dt667kdR.js.map +1 -0
- package/dist/{promptDefinitions-C29BWGYg.cjs → promptDefinitions-CWV8hsUX.cjs} +2 -2
- package/dist/{promptDefinitions-C29BWGYg.cjs.map → promptDefinitions-CWV8hsUX.cjs.map} +1 -1
- package/dist/{promptDefinitions-CSKE8T0a.js → promptDefinitions-DF8nuJVq.js} +2 -2
- package/dist/{promptDefinitions-CSKE8T0a.js.map → promptDefinitions-DF8nuJVq.js.map} +1 -1
- package/dist/{promptDefinitions-D3GTBGLr.d.ts → promptDefinitions-DehpwJfn.d.ts} +1 -1
- package/dist/promptDefinitions-DehpwJfn.d.ts.map +1 -0
- package/dist/promptDefinitions.cjs +3 -3
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +3 -3
- package/dist/{prompts-uWAbMvLe.cjs → prompts-BTtNbKQR.cjs} +6 -4
- package/dist/prompts-BTtNbKQR.cjs.map +1 -0
- package/dist/{prompts-Cuwmybyc.js → prompts-CYcvIxWR.js} +6 -4
- package/dist/prompts-CYcvIxWR.js.map +1 -0
- package/dist/prompts.cjs +1 -1
- package/dist/prompts.d.cts +1 -1
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +2 -2
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +1 -1
- package/dist/resources-Dadvq5Fm.cjs +72 -0
- package/dist/resources-Dadvq5Fm.cjs.map +1 -0
- package/dist/resources-jcFoc4JU.js +60 -0
- package/dist/resources-jcFoc4JU.js.map +1 -0
- package/dist/resources.cjs +2 -2
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +2 -2
- package/dist/{schema-BpJVmev8.cjs → schema-BL3kwfOA.cjs} +3 -3
- package/dist/{schema-BpJVmev8.cjs.map → schema-BL3kwfOA.cjs.map} +1 -1
- package/dist/{schema-B_cMyyJJ.cjs → schema-C0LznFvu.cjs} +4 -4
- package/dist/schema-C0LznFvu.cjs.map +1 -0
- package/dist/{schema-WDk5Yqww.js → schema-CcFmBoEf.js} +4 -4
- package/dist/schema-CcFmBoEf.js.map +1 -0
- package/dist/{schema-DtsnsxMl.js → schema-DMfkTR1l.js} +3 -3
- package/dist/{schema-DtsnsxMl.js.map → schema-DMfkTR1l.js.map} +1 -1
- package/dist/{schema-BW_fxx99.d.cts → schema-DWmx8lgm.d.ts} +247 -247
- package/dist/schema-DWmx8lgm.d.ts.map +1 -0
- package/dist/{schema-DkWOa2-c.d.ts → schema-xbTf44Hn.d.cts} +298 -298
- package/dist/schema-xbTf44Hn.d.cts.map +1 -0
- package/dist/schema.cjs +2 -2
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/{search-docs-BKUeMSyn.js → search-docs-DIm3ykOg.js} +4 -4
- package/dist/{search-docs-BKUeMSyn.js.map → search-docs-DIm3ykOg.js.map} +1 -1
- package/dist/{search-docs-Cr-gyE5m.cjs → search-docs-EbjJuL9Q.cjs} +4 -4
- package/dist/{search-docs-Cr-gyE5m.cjs.map → search-docs-EbjJuL9Q.cjs.map} +1 -1
- package/dist/search-issues-BFgCvRYe.js +0 -0
- package/dist/search-issues-Biu64RkQ.cjs +0 -0
- package/dist/{seer-utils-BvdVTH85.cjs → seer-utils-C7Kv0gr8.cjs} +1 -1
- package/dist/{seer-utils-BvdVTH85.cjs.map → seer-utils-C7Kv0gr8.cjs.map} +1 -1
- package/dist/{seer-utils-BdE7DddW.js → seer-utils-NPHv8KYY.js} +1 -1
- package/dist/{seer-utils-BdE7DddW.js.map → seer-utils-NPHv8KYY.js.map} +1 -1
- package/dist/{server-BhNrW6bw.js → server-CnJvaT0s.js} +57 -18
- package/dist/server-CnJvaT0s.js.map +1 -0
- package/dist/{server-9IEGGN8V.cjs → server-Dv9HxoRk.cjs} +57 -18
- package/dist/server-Dv9HxoRk.cjs.map +1 -0
- package/dist/server.cjs +52 -40
- package/dist/server.d.cts +4 -2
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +5 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +52 -40
- package/dist/{stdio-mw-fEjO4.cjs → stdio-C6MAgHmA.cjs} +3 -3
- package/dist/{stdio-mw-fEjO4.cjs.map → stdio-C6MAgHmA.cjs.map} +1 -1
- package/dist/{stdio-CQmibRBR.js → stdio-DnAY4MSF.js} +3 -3
- package/dist/{stdio-CQmibRBR.js.map → stdio-DnAY4MSF.js.map} +1 -1
- package/dist/test-setup.cjs +371 -0
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +371 -0
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.cjs +184 -0
- package/dist/toolDefinitions.cjs.map +1 -0
- package/dist/toolDefinitions.d.cts +13 -0
- package/dist/toolDefinitions.d.cts.map +1 -0
- package/dist/toolDefinitions.d.ts +8 -20
- package/dist/toolDefinitions.d.ts.map +1 -0
- package/dist/toolDefinitions.js +183 -1059
- package/dist/toolDefinitions.js.map +1 -0
- package/dist/tools/analyze-issue-with-seer.cjs +14 -13
- package/dist/tools/analyze-issue-with-seer.d.cts +2 -2
- package/dist/tools/analyze-issue-with-seer.d.ts +3 -3
- package/dist/tools/analyze-issue-with-seer.js +14 -13
- package/dist/tools/create-dsn.cjs +9 -8
- package/dist/tools/create-dsn.d.cts +2 -2
- package/dist/tools/create-dsn.d.ts +3 -3
- package/dist/tools/create-dsn.js +9 -8
- package/dist/tools/create-project.cjs +10 -9
- package/dist/tools/create-project.d.cts +2 -2
- package/dist/tools/create-project.d.ts +3 -3
- package/dist/tools/create-project.js +10 -9
- package/dist/tools/create-team.cjs +9 -8
- package/dist/tools/create-team.d.cts +2 -2
- package/dist/tools/create-team.d.ts +3 -3
- package/dist/tools/create-team.js +9 -8
- package/dist/tools/find-dsns.cjs +9 -8
- package/dist/tools/find-dsns.d.cts +2 -2
- package/dist/tools/find-dsns.d.ts +3 -3
- package/dist/tools/find-dsns.js +9 -8
- package/dist/tools/find-organizations.cjs +7 -6
- package/dist/tools/find-organizations.d.cts +2 -2
- package/dist/tools/find-organizations.d.ts +3 -3
- package/dist/tools/find-organizations.js +7 -6
- package/dist/tools/find-projects.cjs +9 -8
- package/dist/tools/find-projects.d.cts +2 -2
- package/dist/tools/find-projects.d.ts +3 -3
- package/dist/tools/find-projects.js +9 -8
- package/dist/tools/find-releases.cjs +9 -8
- package/dist/tools/find-releases.d.cts +2 -2
- package/dist/tools/find-releases.d.ts +3 -3
- package/dist/tools/find-releases.js +9 -8
- package/dist/tools/find-teams.cjs +9 -8
- package/dist/tools/find-teams.d.cts +2 -2
- package/dist/tools/find-teams.d.ts +3 -3
- package/dist/tools/find-teams.js +9 -8
- package/dist/tools/get-doc.cjs +8 -7
- package/dist/tools/get-doc.d.cts +2 -2
- package/dist/tools/get-doc.d.ts +3 -3
- package/dist/tools/get-doc.js +8 -7
- package/dist/tools/get-event-attachment.cjs +9 -8
- package/dist/tools/get-event-attachment.d.cts +2 -2
- package/dist/tools/get-event-attachment.d.ts +3 -3
- package/dist/tools/get-event-attachment.js +9 -8
- package/dist/tools/get-issue-details.cjs +13 -12
- package/dist/tools/get-issue-details.d.cts +2 -2
- package/dist/tools/get-issue-details.d.ts +3 -3
- package/dist/tools/get-issue-details.js +13 -12
- package/dist/tools/index.cjs +47 -36
- package/dist/tools/index.d.cts +74 -86
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +75 -87
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +47 -36
- package/dist/tools/search-docs.cjs +10 -9
- package/dist/tools/search-docs.d.cts +2 -2
- package/dist/tools/search-docs.d.ts +3 -3
- package/dist/tools/search-docs.js +10 -9
- package/dist/tools/search-events/agent.cjs +8 -0
- package/dist/tools/search-events/agent.d.cts +43 -0
- package/dist/tools/search-events/agent.d.cts.map +1 -0
- package/dist/tools/search-events/agent.d.ts +43 -0
- package/dist/tools/search-events/agent.d.ts.map +1 -0
- package/dist/tools/search-events/agent.js +8 -0
- package/dist/tools/search-events/config.cjs +7 -0
- package/dist/tools/search-events/config.d.cts +131 -0
- package/dist/tools/search-events/config.d.cts.map +1 -0
- package/dist/tools/search-events/config.d.ts +131 -0
- package/dist/tools/search-events/config.d.ts.map +1 -0
- package/dist/tools/search-events/config.js +3 -0
- package/dist/tools/search-events/formatters.cjs +8 -0
- package/dist/tools/search-events/formatters.d.cts +32 -0
- package/dist/tools/search-events/formatters.d.cts.map +1 -0
- package/dist/tools/search-events/formatters.d.ts +32 -0
- package/dist/tools/search-events/formatters.d.ts.map +1 -0
- package/dist/tools/search-events/formatters.js +6 -0
- package/dist/tools/search-events/handler.cjs +20 -0
- package/dist/tools/search-events/handler.d.cts +5 -0
- package/dist/tools/search-events/handler.d.ts +5 -0
- package/dist/tools/search-events/handler.js +20 -0
- package/dist/tools/search-events/index.cjs +21 -0
- package/dist/tools/search-events/index.d.cts +5 -0
- package/dist/tools/search-events/index.d.ts +5 -0
- package/dist/tools/search-events/index.js +21 -0
- package/dist/tools/search-events/utils.cjs +9 -0
- package/dist/tools/search-events/utils.d.cts +6 -0
- package/dist/tools/search-events/utils.d.ts +6 -0
- package/dist/tools/search-events/utils.js +5 -0
- package/dist/tools/search-issues/agent.cjs +7 -0
- package/dist/tools/search-issues/agent.d.cts +33 -0
- package/dist/tools/search-issues/agent.d.cts.map +1 -0
- package/dist/tools/search-issues/agent.d.ts +33 -0
- package/dist/tools/search-issues/agent.d.ts.map +1 -0
- package/dist/tools/search-issues/agent.js +7 -0
- package/dist/tools/search-issues/config.cjs +3 -0
- package/dist/tools/search-issues/config.d.cts +9 -0
- package/dist/tools/search-issues/config.d.cts.map +1 -0
- package/dist/tools/search-issues/config.d.ts +9 -0
- package/dist/tools/search-issues/config.d.ts.map +1 -0
- package/dist/tools/search-issues/config.js +3 -0
- package/dist/tools/search-issues/formatters.cjs +4 -0
- package/dist/tools/search-issues/formatters.d.cts +15 -0
- package/dist/tools/search-issues/formatters.d.cts.map +1 -0
- package/dist/tools/search-issues/formatters.d.ts +15 -0
- package/dist/tools/search-issues/formatters.d.ts.map +1 -0
- package/dist/tools/search-issues/formatters.js +4 -0
- package/dist/tools/search-issues/handler.cjs +18 -0
- package/dist/tools/search-issues/handler.d.cts +5 -0
- package/dist/tools/search-issues/handler.d.ts +5 -0
- package/dist/tools/search-issues/handler.js +18 -0
- package/dist/tools/search-issues/index.cjs +19 -0
- package/dist/tools/search-issues/index.d.cts +5 -0
- package/dist/tools/search-issues/index.d.ts +5 -0
- package/dist/tools/search-issues/index.js +19 -0
- package/dist/tools/types.d.cts +2 -2
- package/dist/tools/types.d.ts +3 -3
- package/dist/tools/update-issue.cjs +14 -13
- package/dist/tools/update-issue.d.cts +2 -2
- package/dist/tools/update-issue.d.ts +3 -3
- package/dist/tools/update-issue.js +14 -13
- package/dist/tools/update-project.cjs +10 -9
- package/dist/tools/update-project.d.cts +2 -2
- package/dist/tools/update-project.d.ts +3 -3
- package/dist/tools/update-project.js +10 -9
- package/dist/tools/utils/api-utils.cjs +6 -5
- package/dist/tools/utils/api-utils.d.cts +5 -5
- package/dist/tools/utils/api-utils.d.cts.map +1 -1
- package/dist/tools/utils/api-utils.d.ts +7 -7
- package/dist/tools/utils/api-utils.d.ts.map +1 -1
- package/dist/tools/utils/api-utils.js +6 -5
- package/dist/tools/utils/defineTool.d.cts +2 -2
- package/dist/tools/utils/defineTool.d.ts +3 -3
- package/dist/tools/utils/fetch-utils.cjs +2 -2
- package/dist/tools/utils/fetch-utils.d.ts +1 -1
- 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 +4 -4
- package/dist/tools/utils/formatting-utils.js +1 -1
- package/dist/tools/utils/issue-utils.cjs +4 -4
- package/dist/tools/utils/issue-utils.d.cts +4 -4
- package/dist/tools/utils/issue-utils.d.ts +6 -6
- package/dist/tools/utils/issue-utils.js +4 -4
- package/dist/tools/utils/seer-utils.cjs +1 -1
- package/dist/tools/utils/seer-utils.d.cts +3 -3
- package/dist/tools/utils/seer-utils.d.ts +4 -4
- package/dist/tools/utils/seer-utils.js +1 -1
- package/dist/tools/whoami.cjs +7 -6
- package/dist/tools/whoami.d.cts +2 -2
- package/dist/tools/whoami.d.ts +3 -3
- package/dist/tools/whoami.js +7 -6
- package/dist/tools-B0wbxDty.js +44 -0
- package/dist/tools-B0wbxDty.js.map +1 -0
- package/dist/tools-qfk-QAo0.cjs +49 -0
- package/dist/tools-qfk-QAo0.cjs.map +1 -0
- package/dist/transports/stdio.cjs +53 -42
- package/dist/transports/stdio.d.cts +1 -1
- package/dist/transports/stdio.d.ts +2 -2
- package/dist/transports/stdio.js +53 -42
- package/dist/types-6zHoEWAx.js +0 -0
- package/dist/{types-qB8a4WQT.d.ts → types-BOcoP3Na.d.ts} +2 -2
- package/dist/{types-qB8a4WQT.d.ts.map → types-BOcoP3Na.d.ts.map} +1 -1
- package/dist/{types-CUN-2OSS.d.cts → types-BV-G5sBp.d.cts} +4 -2
- package/dist/{types-CUN-2OSS.d.cts.map → types-BV-G5sBp.d.cts.map} +1 -1
- package/dist/{types-DkJtNDXU.d.ts → types-C1Fih0eQ.d.ts} +5 -3
- package/dist/{types-DkJtNDXU.d.ts.map → types-C1Fih0eQ.d.ts.map} +1 -1
- package/dist/{types-BAbu4Vzx.d.cts → types-DE-njuHe.d.cts} +2 -2
- package/dist/{types-BAbu4Vzx.d.cts.map → types-DE-njuHe.d.cts.map} +1 -1
- package/dist/{types-CoY5KVni.d.ts → types-DRywojVB.d.ts} +2 -2
- package/dist/{types-CoY5KVni.d.ts.map → types-DRywojVB.d.ts.map} +1 -1
- package/dist/types-DdloOYgD.cjs +0 -0
- package/dist/{types-D_mx318Q.d.cts → types-aOEJ0KgQ.d.cts} +2 -2
- package/dist/{types-D_mx318Q.d.cts.map → types-aOEJ0KgQ.d.cts.map} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{update-issue-ClbiTLyL.js → update-issue-DoQYEQjf.js} +11 -10
- package/dist/update-issue-DoQYEQjf.js.map +1 -0
- package/dist/{update-issue-_4vzwHfZ.cjs → update-issue-DqUsAuTd.cjs} +11 -10
- package/dist/update-issue-DqUsAuTd.cjs.map +1 -0
- package/dist/{update-project-CExfO7tG.js → update-project-C9CLxNfF.js} +4 -4
- package/dist/{update-project-CExfO7tG.js.map → update-project-C9CLxNfF.js.map} +1 -1
- package/dist/{update-project-2EEnezbZ.cjs → update-project-DQu5PnE3.cjs} +4 -4
- package/dist/{update-project-2EEnezbZ.cjs.map → update-project-DQu5PnE3.cjs.map} +1 -1
- package/dist/url-utils-IqgSmI-B.js +152 -0
- package/dist/url-utils-IqgSmI-B.js.map +1 -0
- package/dist/url-utils-vJo2ER5v.cjs +206 -0
- package/dist/url-utils-vJo2ER5v.cjs.map +1 -0
- package/dist/utils/url-utils.cjs +6 -1
- package/dist/utils/url-utils.d.cts +43 -1
- package/dist/utils/url-utils.d.cts.map +1 -1
- package/dist/utils/url-utils.d.ts +43 -1
- package/dist/utils/url-utils.d.ts.map +1 -1
- package/dist/utils/url-utils.js +2 -2
- package/dist/utils-CqbeJfE1.cjs +138 -0
- package/dist/utils-CqbeJfE1.cjs.map +1 -0
- package/dist/utils-CzV_Tz2C.d.ts +35 -0
- package/dist/utils-CzV_Tz2C.d.ts.map +1 -0
- package/dist/utils-Fm-dODdb.d.cts +35 -0
- package/dist/utils-Fm-dODdb.d.cts.map +1 -0
- package/dist/utils-OgYE-imr.js +108 -0
- package/dist/utils-OgYE-imr.js.map +1 -0
- package/dist/{version-Cp9p-38J.cjs → version-Bu9nGzm5.cjs} +2 -2
- package/dist/{version-Cp9p-38J.cjs.map → version-Bu9nGzm5.cjs.map} +1 -1
- package/dist/version-DvjTvYJs.js +6 -0
- package/dist/{version-3e1twbPm.js.map → version-DvjTvYJs.js.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-m0N5F6BN.cjs → whoami-BOJHfdih.cjs} +2 -2
- package/dist/{whoami-m0N5F6BN.cjs.map → whoami-BOJHfdih.cjs.map} +1 -1
- package/dist/{whoami-DhoaHHY5.js → whoami-Bswhb72a.js} +2 -2
- package/dist/{whoami-DhoaHHY5.js.map → whoami-Bswhb72a.js.map} +1 -1
- package/dist/whoami-CoZJKpys.cjs +44 -0
- package/dist/whoami-CoZJKpys.cjs.map +1 -0
- package/dist/whoami-xBAWvzG4.js +32 -0
- package/dist/whoami-xBAWvzG4.js.map +1 -0
- package/package.json +14 -7
- package/dist/api-utils-B-9vnzoA.cjs.map +0 -1
- package/dist/api-utils-CHRiLf2Y.js.map +0 -1
- package/dist/client-C_lwH0jz.cjs.map +0 -1
- package/dist/client-D8vrUp2k.d.cts.map +0 -1
- package/dist/client-h32L1Hx5.d.ts.map +0 -1
- package/dist/client-pyNUFaLN.js.map +0 -1
- package/dist/constants-ClkMK29-.cjs.map +0 -1
- package/dist/constants-S7AU45oQ.js.map +0 -1
- package/dist/create-dsn-CEEytIa4.js.map +0 -1
- package/dist/create-dsn-CI7MSiQu.cjs.map +0 -1
- package/dist/create-project-CoV1e-vp.js.map +0 -1
- package/dist/create-project-DnLKRG1p.cjs.map +0 -1
- package/dist/find-errors-BQFHuBHi.cjs +0 -100
- package/dist/find-errors-BQFHuBHi.cjs.map +0 -1
- package/dist/find-errors-CSPsT-Jp.js +0 -94
- package/dist/find-errors-CSPsT-Jp.js.map +0 -1
- package/dist/find-issues-BG80wLZw.cjs +0 -101
- package/dist/find-issues-BG80wLZw.cjs.map +0 -1
- package/dist/find-issues-DoUD8vP0.js +0 -95
- package/dist/find-issues-DoUD8vP0.js.map +0 -1
- package/dist/find-tags-BRaa2i-r.js +0 -39
- package/dist/find-tags-BRaa2i-r.js.map +0 -1
- package/dist/find-tags-BjibTJBm.cjs +0 -45
- package/dist/find-tags-BjibTJBm.cjs.map +0 -1
- package/dist/find-transactions-B0s_rr0H.cjs +0 -89
- package/dist/find-transactions-B0s_rr0H.cjs.map +0 -1
- package/dist/find-transactions-Cob_B_3u.js +0 -83
- package/dist/find-transactions-Cob_B_3u.js.map +0 -1
- package/dist/formatting-AXU4XsjJ.cjs.map +0 -1
- package/dist/formatting-DnSI0DHf.d.ts.map +0 -1
- package/dist/formatting-WGc5qrhv.js.map +0 -1
- package/dist/formatting-aGQ7M_2w.d.cts.map +0 -1
- package/dist/get-issue-details-BrEGybe0.js.map +0 -1
- package/dist/get-issue-details-EklkHsWi.cjs.map +0 -1
- package/dist/promptDefinitions-D3GTBGLr.d.ts.map +0 -1
- package/dist/prompts-Cuwmybyc.js.map +0 -1
- package/dist/prompts-uWAbMvLe.cjs.map +0 -1
- package/dist/resources-BlgeiG6C.cjs +0 -104
- package/dist/resources-BlgeiG6C.cjs.map +0 -1
- package/dist/resources-CwWOjB8_.js +0 -92
- package/dist/resources-CwWOjB8_.js.map +0 -1
- package/dist/schema-BW_fxx99.d.cts.map +0 -1
- package/dist/schema-B_cMyyJJ.cjs.map +0 -1
- package/dist/schema-DkWOa2-c.d.ts.map +0 -1
- package/dist/schema-WDk5Yqww.js.map +0 -1
- package/dist/server-9IEGGN8V.cjs.map +0 -1
- package/dist/server-BhNrW6bw.js.map +0 -1
- package/dist/tools/find-errors.cjs +0 -12
- package/dist/tools/find-errors.d.cts +0 -18
- package/dist/tools/find-errors.d.cts.map +0 -1
- package/dist/tools/find-errors.d.ts +0 -18
- package/dist/tools/find-errors.d.ts.map +0 -1
- package/dist/tools/find-errors.js +0 -12
- package/dist/tools/find-issues.cjs +0 -12
- package/dist/tools/find-issues.d.cts +0 -16
- package/dist/tools/find-issues.d.cts.map +0 -1
- package/dist/tools/find-issues.d.ts +0 -16
- package/dist/tools/find-issues.d.ts.map +0 -1
- package/dist/tools/find-issues.js +0 -12
- package/dist/tools/find-tags.cjs +0 -12
- package/dist/tools/find-tags.d.cts +0 -13
- package/dist/tools/find-tags.d.cts.map +0 -1
- package/dist/tools/find-tags.d.ts +0 -13
- package/dist/tools/find-tags.d.ts.map +0 -1
- package/dist/tools/find-tags.js +0 -12
- package/dist/tools/find-transactions.cjs +0 -12
- package/dist/tools/find-transactions.d.cts +0 -17
- package/dist/tools/find-transactions.d.cts.map +0 -1
- package/dist/tools/find-transactions.d.ts +0 -17
- package/dist/tools/find-transactions.d.ts.map +0 -1
- package/dist/tools/find-transactions.js +0 -12
- package/dist/tools-AYbI0sEf.js +0 -48
- package/dist/tools-AYbI0sEf.js.map +0 -1
- package/dist/tools-CwQFlJzn.cjs +0 -53
- package/dist/tools-CwQFlJzn.cjs.map +0 -1
- package/dist/update-issue-ClbiTLyL.js.map +0 -1
- package/dist/update-issue-_4vzwHfZ.cjs.map +0 -1
- package/dist/url-utils-C9hykWmk.cjs +0 -106
- package/dist/url-utils-C9hykWmk.cjs.map +0 -1
- package/dist/url-utils-DvZYfzPM.js +0 -82
- package/dist/url-utils-DvZYfzPM.js.map +0 -1
- package/dist/version-3e1twbPm.js +0 -6
- /package/dist/{api-client-CL1WDkw9.cjs → api-client-BWt6M7ij.cjs} +0 -0
- /package/dist/{api-client-ChL_0F2u.js → api-client-CNv_hbPO.js} +0 -0
- /package/dist/{fetch-utils-C0F4eH6S.cjs → fetch-utils-BqMx2KQr.js} +0 -0
- /package/dist/{fetch-utils-DlPjrSk2.js → fetch-utils-DeZcERfe.cjs} +0 -0
- /package/dist/{index-DVGDAddE.d.ts → index-DE1muTvw.d.ts} +0 -0
- /package/dist/{issue-utils-BbCfbiY8.js → issue-utils-BVAB6I-Z.js} +0 -0
- /package/dist/{issue-utils-DMKiif6C.cjs → issue-utils-pdbo-5LW.cjs} +0 -0
- /package/dist/{types-CCHsZshF.js → search-events-BBFPuvRq.cjs} +0 -0
- /package/dist/{types-MYBaygjr.cjs → search-events-bV3-kK78.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_schema = require('./schema-
|
|
2
|
+
const require_schema = require('./schema-BL3kwfOA.cjs');
|
|
3
3
|
const zod = require_chunk.__toESM(require("zod"));
|
|
4
4
|
|
|
5
5
|
//#region src/promptDefinitions.ts
|
|
@@ -34,4 +34,4 @@ Object.defineProperty(exports, 'PROMPT_DEFINITIONS', {
|
|
|
34
34
|
return PROMPT_DEFINITIONS;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
//# sourceMappingURL=promptDefinitions-
|
|
37
|
+
//# sourceMappingURL=promptDefinitions-CWV8hsUX.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptDefinitions-
|
|
1
|
+
{"version":3,"file":"promptDefinitions-CWV8hsUX.cjs","names":["ParamOrganizationSlug"],"sources":["../src/promptDefinitions.ts"],"sourcesContent":["/**\n * Prompt definitions for the Sentry MCP server.\n *\n * Declarative definitions for all MCP prompts that provide multi-step workflows\n * and guided interactions with Sentry. Prompts orchestrate sequences of tool calls\n * with structured guidance for complex tasks.\n *\n * @example Prompt Definition Structure\n * ```typescript\n * {\n * name: \"prompt_name\" as const,\n * description: [\n * \"Brief prompt description and purpose.\",\n * \"Additional context about when to use this prompt.\",\n * ].join(\"\\n\"),\n * paramsSchema: {\n * organizationSlug: ParamOrganizationSlug,\n * optionalParam: ParamSchema.optional(),\n * },\n * }\n * ```\n */\nimport { z } from \"zod\";\nimport {\n ParamIssueShortId,\n ParamIssueUrl,\n ParamOrganizationSlug,\n} from \"./schema\";\n\n/**\n * All MCP prompt definitions for the Sentry server.\n *\n * Used by server.ts to register prompts with the MCP server and by prompts.ts\n * for implementation handlers. Each definition includes name, description, and\n * Zod parameter schema for multi-step workflows.\n */\nexport const PROMPT_DEFINITIONS = [\n {\n name: \"find_errors_in_file\" as const,\n description: [\n \"Use this prompt when you need to find errors in Sentry for a given file.\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n filename: z.string().describe(\"The filename to search for errors in.\"),\n },\n },\n {\n name: \"fix_issue_with_seer\" as const,\n description: [\n \"Use this prompt when you need to fix an issue with Seer.\",\n \"You can pass in either an `issueId` and `organizationSlug`, or an `issueUrl`.\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n },\n];\n"],"mappings":";;;;;;;;;;;;AAoCA,MAAa,qBAAqB,CAChC;CACE,MAAM;CACN,aAAa,CACX,0EACD,EAAC,KAAK,KAAK;CACZ,cAAc;EACZ,kBAAkBA;EAClB,UAAU,MAAE,QAAQ,CAAC,SAAS,wCAAwC;CACvE;AACF,GACD;CACE,MAAM;CACN,aAAa,CACX,4DACA,+EACD,EAAC,KAAK,KAAK;CACZ,cAAc;EACZ,kBAAkB,qCAAsB,UAAU;EAClD,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;CACnC;AACF,CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug } from "./schema-
|
|
1
|
+
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug } from "./schema-DMfkTR1l.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/promptDefinitions.ts
|
|
@@ -28,4 +28,4 @@ const PROMPT_DEFINITIONS = [{
|
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
30
|
export { PROMPT_DEFINITIONS };
|
|
31
|
-
//# sourceMappingURL=promptDefinitions-
|
|
31
|
+
//# sourceMappingURL=promptDefinitions-DF8nuJVq.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptDefinitions-
|
|
1
|
+
{"version":3,"file":"promptDefinitions-DF8nuJVq.js","names":[],"sources":["../src/promptDefinitions.ts"],"sourcesContent":["/**\n * Prompt definitions for the Sentry MCP server.\n *\n * Declarative definitions for all MCP prompts that provide multi-step workflows\n * and guided interactions with Sentry. Prompts orchestrate sequences of tool calls\n * with structured guidance for complex tasks.\n *\n * @example Prompt Definition Structure\n * ```typescript\n * {\n * name: \"prompt_name\" as const,\n * description: [\n * \"Brief prompt description and purpose.\",\n * \"Additional context about when to use this prompt.\",\n * ].join(\"\\n\"),\n * paramsSchema: {\n * organizationSlug: ParamOrganizationSlug,\n * optionalParam: ParamSchema.optional(),\n * },\n * }\n * ```\n */\nimport { z } from \"zod\";\nimport {\n ParamIssueShortId,\n ParamIssueUrl,\n ParamOrganizationSlug,\n} from \"./schema\";\n\n/**\n * All MCP prompt definitions for the Sentry server.\n *\n * Used by server.ts to register prompts with the MCP server and by prompts.ts\n * for implementation handlers. Each definition includes name, description, and\n * Zod parameter schema for multi-step workflows.\n */\nexport const PROMPT_DEFINITIONS = [\n {\n name: \"find_errors_in_file\" as const,\n description: [\n \"Use this prompt when you need to find errors in Sentry for a given file.\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n filename: z.string().describe(\"The filename to search for errors in.\"),\n },\n },\n {\n name: \"fix_issue_with_seer\" as const,\n description: [\n \"Use this prompt when you need to fix an issue with Seer.\",\n \"You can pass in either an `issueId` and `organizationSlug`, or an `issueUrl`.\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n },\n];\n"],"mappings":";;;;;;;;;;;AAoCA,MAAa,qBAAqB,CAChC;CACE,MAAM;CACN,aAAa,CACX,0EACD,EAAC,KAAK,KAAK;CACZ,cAAc;EACZ,kBAAkB;EAClB,UAAU,EAAE,QAAQ,CAAC,SAAS,wCAAwC;CACvE;AACF,GACD;CACE,MAAM;CACN,aAAa,CACX,4DACA,+EACD,EAAC,KAAK,KAAK;CACZ,cAAc;EACZ,kBAAkB,sBAAsB,UAAU;EAClD,SAAS,kBAAkB,UAAU;EACrC,UAAU,cAAc,UAAU;CACnC;AACF,CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptDefinitions-DehpwJfn.d.ts","names":[],"sources":["../src/promptDefinitions.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAoCa;;;;sBAuBZ,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('./constants-
|
|
2
|
-
require('./schema-
|
|
3
|
-
const require_promptDefinitions = require('./promptDefinitions-
|
|
1
|
+
require('./constants-wrEbre3j.cjs');
|
|
2
|
+
require('./schema-BL3kwfOA.cjs');
|
|
3
|
+
const require_promptDefinitions = require('./promptDefinitions-CWV8hsUX.cjs');
|
|
4
4
|
|
|
5
5
|
exports.PROMPT_DEFINITIONS = require_promptDefinitions.PROMPT_DEFINITIONS;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PROMPT_DEFINITIONS } from "./promptDefinitions-
|
|
1
|
+
import { PROMPT_DEFINITIONS } from "./promptDefinitions-DehpwJfn.js";
|
|
2
2
|
export { PROMPT_DEFINITIONS };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./constants-
|
|
2
|
-
import "./schema-
|
|
3
|
-
import { PROMPT_DEFINITIONS } from "./promptDefinitions-
|
|
1
|
+
import "./constants-Fe-4NTUo.js";
|
|
2
|
+
import "./schema-DMfkTR1l.js";
|
|
3
|
+
import { PROMPT_DEFINITIONS } from "./promptDefinitions-DF8nuJVq.js";
|
|
4
4
|
|
|
5
5
|
export { PROMPT_DEFINITIONS };
|
|
@@ -5,10 +5,12 @@ const PROMPT_HANDLERS = {
|
|
|
5
5
|
find_errors_in_file: async (context, { organizationSlug, filename }) => [
|
|
6
6
|
`I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,
|
|
7
7
|
"",
|
|
8
|
-
"You should use the tool `
|
|
8
|
+
"You should use the tool `search_events` with a natural language query to find errors in Sentry.",
|
|
9
9
|
"",
|
|
10
|
-
|
|
11
|
-
"
|
|
10
|
+
`For example: \`search_events(organizationSlug='${organizationSlug}', naturalLanguageQuery='errors in file ${filename}')\``,
|
|
11
|
+
"",
|
|
12
|
+
"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should include its direct parent.",
|
|
13
|
+
"For example: if the file is `app/utils/index.ts`, you should search for `errors in file utils/index.ts` or `errors in file app/utils/index.ts` depending on if the file is actually part of the applications source path."
|
|
12
14
|
].join("\n"),
|
|
13
15
|
fix_issue_with_seer: async (context, { organizationSlug, issueId, issueUrl }) => {
|
|
14
16
|
let issueMessage;
|
|
@@ -36,4 +38,4 @@ Object.defineProperty(exports, 'PROMPT_HANDLERS', {
|
|
|
36
38
|
return PROMPT_HANDLERS;
|
|
37
39
|
}
|
|
38
40
|
});
|
|
39
|
-
//# sourceMappingURL=prompts-
|
|
41
|
+
//# sourceMappingURL=prompts-BTtNbKQR.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts-BTtNbKQR.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_events` with a natural language query to find errors in Sentry.\",\n \"\",\n `For example: \\`search_events(organizationSlug='${organizationSlug}', naturalLanguageQuery='errors in file ${filename}')\\``,\n \"\",\n \"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should include its direct parent.\",\n \"For example: if the file is `app/utils/index.ts`, you should search for `errors in file utils/index.ts` or `errors in file 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;GACC,iDAAiD,iBAAiB,0CAA0C,SAAS;EACtH;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"}
|
|
@@ -5,10 +5,12 @@ const PROMPT_HANDLERS = {
|
|
|
5
5
|
find_errors_in_file: async (context, { organizationSlug, filename }) => [
|
|
6
6
|
`I want to find errors in Sentry, within the organization ${organizationSlug}, for the file ${filename}`,
|
|
7
7
|
"",
|
|
8
|
-
"You should use the tool `
|
|
8
|
+
"You should use the tool `search_events` with a natural language query to find errors in Sentry.",
|
|
9
9
|
"",
|
|
10
|
-
|
|
11
|
-
"
|
|
10
|
+
`For example: \`search_events(organizationSlug='${organizationSlug}', naturalLanguageQuery='errors in file ${filename}')\``,
|
|
11
|
+
"",
|
|
12
|
+
"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should include its direct parent.",
|
|
13
|
+
"For example: if the file is `app/utils/index.ts`, you should search for `errors in file utils/index.ts` or `errors in file app/utils/index.ts` depending on if the file is actually part of the applications source path."
|
|
12
14
|
].join("\n"),
|
|
13
15
|
fix_issue_with_seer: async (context, { organizationSlug, issueId, issueUrl }) => {
|
|
14
16
|
let issueMessage;
|
|
@@ -31,4 +33,4 @@ const PROMPT_HANDLERS = {
|
|
|
31
33
|
|
|
32
34
|
//#endregion
|
|
33
35
|
export { PROMPT_HANDLERS };
|
|
34
|
-
//# sourceMappingURL=prompts-
|
|
36
|
+
//# sourceMappingURL=prompts-CYcvIxWR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts-CYcvIxWR.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_events` with a natural language query to find errors in Sentry.\",\n \"\",\n `For example: \\`search_events(organizationSlug='${organizationSlug}', naturalLanguageQuery='errors in file ${filename}')\\``,\n \"\",\n \"If the filename is ambiguous, such as something like `index.ts`, and in most cases, you should include its direct parent.\",\n \"For example: if the file is `app/utils/index.ts`, you should search for `errors in file utils/index.ts` or `errors in file 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;GACC,iDAAiD,iBAAiB,0CAA0C,SAAS;EACtH;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"}
|
package/dist/prompts.cjs
CHANGED
package/dist/prompts.d.cts
CHANGED
package/dist/prompts.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.cts","names":[],"sources":["../src/prompts.ts"],"sourcesContent":[],"mappings":";;;;cAwBa;
|
|
1
|
+
{"version":3,"file":"prompts.d.cts","names":[],"sources":["../src/prompts.ts"],"sourcesContent":[],"mappings":";;;;cAwBa;iCAsCa;;;EAAA;;;IAtCb,OAAA,CAAA,EAAA,OAsCa;IAAA,QAAA,CAAA,EAAA,OAAA;EAAA,CAAA,EAAA,UAAA,CAAA,MAAA,CAAA"}
|
package/dist/prompts.d.ts
CHANGED
package/dist/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","names":[],"sources":["../src/prompts.ts"],"sourcesContent":[],"mappings":";;;;cAwBa;
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","names":[],"sources":["../src/prompts.ts"],"sourcesContent":[],"mappings":";;;;cAwBa;iCAsCa;;;EAAA;;;IAtCb,OAAA,CAAA,EAAA,OAsCa;IAAA,QAAA,CAAA,EAAA,OAAA;EAAA,CAAA,EAAA,UAAA,CAAA,MAAA,CAAA"}
|
package/dist/prompts.js
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
+
const require_constants = require('./constants-wrEbre3j.cjs');
|
|
3
|
+
const require_errors = require('./errors-BtJEw2Z-.cjs');
|
|
4
|
+
const __modelcontextprotocol_sdk_server_mcp_js = require_chunk.__toESM(require("@modelcontextprotocol/sdk/server/mcp.js"));
|
|
5
|
+
|
|
6
|
+
//#region src/resources.ts
|
|
7
|
+
/**
|
|
8
|
+
* Type guard to check if a resource uses a URI template
|
|
9
|
+
*/
|
|
10
|
+
function isTemplateResource(resource) {
|
|
11
|
+
return "template" in resource && resource.template instanceof __modelcontextprotocol_sdk_server_mcp_js.ResourceTemplate;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Fetches Sentry documentation in markdown format.
|
|
15
|
+
* Converts docs.sentry.io URLs to their markdown equivalents.
|
|
16
|
+
*
|
|
17
|
+
* The handler receives the exact URI from the resource definition,
|
|
18
|
+
* but dynamically constructs the markdown URL based on the actual request.
|
|
19
|
+
*/
|
|
20
|
+
async function sentryDocsHandler(url, _extra) {
|
|
21
|
+
const path = `${url.pathname.replace(/\/$/, "")}.md`;
|
|
22
|
+
const mdUrl = `${url.origin}${path}`;
|
|
23
|
+
const response = await fetch(mdUrl, { headers: { "User-Agent": "Sentry MCP Server" } });
|
|
24
|
+
if (!response.ok) {
|
|
25
|
+
if (response.status === 404) throw new require_errors.UserInputError(`Sentry documentation not found at ${url.pathname}. Please check the URL is correct.`);
|
|
26
|
+
throw new Error(`Failed to fetch Sentry docs: ${response.status} ${response.statusText}`);
|
|
27
|
+
}
|
|
28
|
+
const content = await response.text();
|
|
29
|
+
return { contents: [{
|
|
30
|
+
uri: url.toString(),
|
|
31
|
+
mimeType: "text/markdown",
|
|
32
|
+
text: content
|
|
33
|
+
}] };
|
|
34
|
+
}
|
|
35
|
+
const RESOURCES = [{
|
|
36
|
+
name: "sentry-docs-platform",
|
|
37
|
+
template: new __modelcontextprotocol_sdk_server_mcp_js.ResourceTemplate("https://docs.sentry.io/platforms/{platform}/", { list: async (_extra) => ({ resources: require_constants.SENTRY_PLATFORMS_BASE.map((platform) => ({
|
|
38
|
+
uri: `https://docs.sentry.io/platforms/${platform}/`,
|
|
39
|
+
name: `${platform}-docs`,
|
|
40
|
+
description: `Sentry SDK documentation for ${platform}`,
|
|
41
|
+
mimeType: "text/markdown"
|
|
42
|
+
})) }) }),
|
|
43
|
+
mimeType: "text/markdown",
|
|
44
|
+
description: "Sentry SDK documentation for {platform}",
|
|
45
|
+
handler: sentryDocsHandler
|
|
46
|
+
}, {
|
|
47
|
+
name: "sentry-docs-platform-guide",
|
|
48
|
+
template: new __modelcontextprotocol_sdk_server_mcp_js.ResourceTemplate("https://docs.sentry.io/platforms/{platform}/guides/{framework}/", { list: async (_extra) => ({ resources: Object.entries(require_constants.SENTRY_FRAMEWORKS).flatMap(([platform, frameworks]) => frameworks.map((framework) => ({
|
|
49
|
+
uri: `https://docs.sentry.io/platforms/${platform}/guides/${framework}/`,
|
|
50
|
+
name: `${platform}-${framework}-guide`,
|
|
51
|
+
description: `Sentry integration guide for ${framework} on ${platform}`,
|
|
52
|
+
mimeType: "text/markdown"
|
|
53
|
+
}))) }) }),
|
|
54
|
+
mimeType: "text/markdown",
|
|
55
|
+
description: "Sentry integration guide for {framework} on {platform}",
|
|
56
|
+
handler: sentryDocsHandler
|
|
57
|
+
}];
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
Object.defineProperty(exports, 'RESOURCES', {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return RESOURCES;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, 'isTemplateResource', {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return isTemplateResource;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=resources-Dadvq5Fm.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-Dadvq5Fm.cjs","names":["resource: ResourceConfig","ResourceTemplate","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-docs-platform\",\n * template: new ResourceTemplate(\"https://docs.sentry.io/platforms/{platform}/\"),\n * mimeType: \"text/markdown\",\n * description: \"Sentry SDK documentation for {platform}\",\n * handler: sentryDocsHandler,\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 rawPath = url.pathname;\n const content = await fetchRawGithubContent(rawPath);\n return {\n contents: [\n {\n uri: url.toString(),\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 // 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;;;;;;;;AA0CD,eAAe,kBACbC,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,IAAIC,+BACP,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,CAEzC;CACE,MAAM;CACN,UAAU,IAAIJ,0DACZ,gDACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,wCAAsB,IAAI,CAAC,cAAc;EAClD,MAAM,mCAAmC,SAAS;EAClD,SAAS,SAAS;EAClB,cAAc,+BAA+B;EAC7C,UAAU;CACX,GAAE,CACJ,GACF;CAEH,UAAU;CACV,aAAa;CACb,SAAS;AACV,GACD;CACE,MAAM;CACN,UAAU,IAAIA,0DACZ,mEACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,OAAO,QAAQK,oCAAkB,CAAC,QAC3C,CAAC,CAAC,UAAU,WAAW,KACrB,WAAW,IAAI,CAAC,eAAe;EAC7B,MAAM,mCAAmC,SAAS,UAAU,UAAU;EACtE,SAAS,SAAS,GAAG,UAAU;EAC/B,cAAc,+BAA+B,UAAU,MAAM;EAC7D,UAAU;CACX,GAAE,CACN,CACF,GACF;CAEH,UAAU;CACV,aAAa;CACb,SAAS;AACV,CACF"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { SENTRY_FRAMEWORKS, SENTRY_PLATFORMS_BASE } from "./constants-Fe-4NTUo.js";
|
|
2
|
+
import { UserInputError } from "./errors-D_R568zP.js";
|
|
3
|
+
import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
4
|
+
|
|
5
|
+
//#region src/resources.ts
|
|
6
|
+
/**
|
|
7
|
+
* Type guard to check if a resource uses a URI template
|
|
8
|
+
*/
|
|
9
|
+
function isTemplateResource(resource) {
|
|
10
|
+
return "template" in resource && resource.template instanceof ResourceTemplate;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Fetches Sentry documentation in markdown format.
|
|
14
|
+
* Converts docs.sentry.io URLs to their markdown equivalents.
|
|
15
|
+
*
|
|
16
|
+
* The handler receives the exact URI from the resource definition,
|
|
17
|
+
* but dynamically constructs the markdown URL based on the actual request.
|
|
18
|
+
*/
|
|
19
|
+
async function sentryDocsHandler(url, _extra) {
|
|
20
|
+
const path = `${url.pathname.replace(/\/$/, "")}.md`;
|
|
21
|
+
const mdUrl = `${url.origin}${path}`;
|
|
22
|
+
const response = await fetch(mdUrl, { headers: { "User-Agent": "Sentry MCP Server" } });
|
|
23
|
+
if (!response.ok) {
|
|
24
|
+
if (response.status === 404) throw new UserInputError(`Sentry documentation not found at ${url.pathname}. Please check the URL is correct.`);
|
|
25
|
+
throw new Error(`Failed to fetch Sentry docs: ${response.status} ${response.statusText}`);
|
|
26
|
+
}
|
|
27
|
+
const content = await response.text();
|
|
28
|
+
return { contents: [{
|
|
29
|
+
uri: url.toString(),
|
|
30
|
+
mimeType: "text/markdown",
|
|
31
|
+
text: content
|
|
32
|
+
}] };
|
|
33
|
+
}
|
|
34
|
+
const RESOURCES = [{
|
|
35
|
+
name: "sentry-docs-platform",
|
|
36
|
+
template: new ResourceTemplate("https://docs.sentry.io/platforms/{platform}/", { list: async (_extra) => ({ resources: SENTRY_PLATFORMS_BASE.map((platform) => ({
|
|
37
|
+
uri: `https://docs.sentry.io/platforms/${platform}/`,
|
|
38
|
+
name: `${platform}-docs`,
|
|
39
|
+
description: `Sentry SDK documentation for ${platform}`,
|
|
40
|
+
mimeType: "text/markdown"
|
|
41
|
+
})) }) }),
|
|
42
|
+
mimeType: "text/markdown",
|
|
43
|
+
description: "Sentry SDK documentation for {platform}",
|
|
44
|
+
handler: sentryDocsHandler
|
|
45
|
+
}, {
|
|
46
|
+
name: "sentry-docs-platform-guide",
|
|
47
|
+
template: new ResourceTemplate("https://docs.sentry.io/platforms/{platform}/guides/{framework}/", { list: async (_extra) => ({ resources: Object.entries(SENTRY_FRAMEWORKS).flatMap(([platform, frameworks]) => frameworks.map((framework) => ({
|
|
48
|
+
uri: `https://docs.sentry.io/platforms/${platform}/guides/${framework}/`,
|
|
49
|
+
name: `${platform}-${framework}-guide`,
|
|
50
|
+
description: `Sentry integration guide for ${framework} on ${platform}`,
|
|
51
|
+
mimeType: "text/markdown"
|
|
52
|
+
}))) }) }),
|
|
53
|
+
mimeType: "text/markdown",
|
|
54
|
+
description: "Sentry integration guide for {framework} on {platform}",
|
|
55
|
+
handler: sentryDocsHandler
|
|
56
|
+
}];
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { RESOURCES, isTemplateResource };
|
|
60
|
+
//# sourceMappingURL=resources-jcFoc4JU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources-jcFoc4JU.js","names":["resource: ResourceConfig","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-docs-platform\",\n * template: new ResourceTemplate(\"https://docs.sentry.io/platforms/{platform}/\"),\n * mimeType: \"text/markdown\",\n * description: \"Sentry SDK documentation for {platform}\",\n * handler: sentryDocsHandler,\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 rawPath = url.pathname;\n const content = await fetchRawGithubContent(rawPath);\n return {\n contents: [\n {\n uri: url.toString(),\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 // 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;;;;;;;;AA0CD,eAAe,kBACbC,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,CAEzC;CACE,MAAM;CACN,UAAU,IAAI,iBACZ,gDACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,sBAAsB,IAAI,CAAC,cAAc;EAClD,MAAM,mCAAmC,SAAS;EAClD,SAAS,SAAS;EAClB,cAAc,+BAA+B;EAC7C,UAAU;CACX,GAAE,CACJ,GACF;CAEH,UAAU;CACV,aAAa;CACb,SAAS;AACV,GACD;CACE,MAAM;CACN,UAAU,IAAI,iBACZ,mEACA,EACE,MAAM,OAAO,YAAY,EACvB,WAAW,OAAO,QAAQ,kBAAkB,CAAC,QAC3C,CAAC,CAAC,UAAU,WAAW,KACrB,WAAW,IAAI,CAAC,eAAe;EAC7B,MAAM,mCAAmC,SAAS,UAAU,UAAU;EACtE,SAAS,SAAS,GAAG,UAAU;EAC/B,cAAc,+BAA+B,UAAU,MAAM;EAC7D,UAAU;CACX,GAAE,CACN,CACF,GACF;CAEH,UAAU;CACV,aAAa;CACb,SAAS;AACV,CACF"}
|
package/dist/resources.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
require('./constants-
|
|
1
|
+
require('./constants-wrEbre3j.cjs');
|
|
2
2
|
require('./errors-BtJEw2Z-.cjs');
|
|
3
|
-
const require_resources = require('./resources-
|
|
3
|
+
const require_resources = require('./resources-Dadvq5Fm.cjs');
|
|
4
4
|
|
|
5
5
|
exports.RESOURCES = require_resources.RESOURCES;
|
|
6
6
|
exports.isTemplateResource = require_resources.isTemplateResource;
|
package/dist/resources.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.cts","names":[],"sources":["../src/resources.ts"],"sourcesContent":[],"mappings":";;;;;;;KAgCY,iBAAA;;;;;WAKD;;;;;KAMC,sBAAA;;;;YAIA;WACD;;;;;KAMC,cAAA,GAAiB,oBAAoB;;;;iBAKjC,kBAAA,WACJ,6BACG;
|
|
1
|
+
{"version":3,"file":"resources.d.cts","names":[],"sources":["../src/resources.ts"],"sourcesContent":[],"mappings":";;;;;;;KAgCY,iBAAA;;;;;WAKD;;;;;KAMC,sBAAA;;;;YAIA;WACD;;;;;KAMC,cAAA,GAAiB,oBAAoB;;;;iBAKjC,kBAAA,WACJ,6BACG;cAiGF,WAAW"}
|
package/dist/resources.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","names":[],"sources":["../src/resources.ts"],"sourcesContent":[],"mappings":";;;;;;;KAgCY,iBAAA;;;;;WAKD;;;;;KAMC,sBAAA;;;;YAIA;WACD;;;;;KAMC,cAAA,GAAiB,oBAAoB;;;;iBAKjC,kBAAA,WACJ,6BACG;
|
|
1
|
+
{"version":3,"file":"resources.d.ts","names":[],"sources":["../src/resources.ts"],"sourcesContent":[],"mappings":";;;;;;;KAgCY,iBAAA;;;;;WAKD;;;;;KAMC,sBAAA;;;;YAIA;WACD;;;;;KAMC,cAAA,GAAiB,oBAAoB;;;;iBAKjC,kBAAA,WACJ,6BACG;cAiGF,WAAW"}
|
package/dist/resources.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./constants-
|
|
1
|
+
import "./constants-Fe-4NTUo.js";
|
|
2
2
|
import "./errors-D_R568zP.js";
|
|
3
|
-
import { RESOURCES, isTemplateResource } from "./resources-
|
|
3
|
+
import { RESOURCES, isTemplateResource } from "./resources-jcFoc4JU.js";
|
|
4
4
|
|
|
5
5
|
export { RESOURCES, isTemplateResource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_constants = require('./constants-
|
|
2
|
+
const require_constants = require('./constants-wrEbre3j.cjs');
|
|
3
3
|
const zod = require_chunk.__toESM(require("zod"));
|
|
4
4
|
|
|
5
5
|
//#region src/schema.ts
|
|
@@ -27,7 +27,7 @@ const ParamIssueStatus = zod.z.enum([
|
|
|
27
27
|
"unresolved",
|
|
28
28
|
"ignored"
|
|
29
29
|
]).describe("The new status for the issue. Valid values are 'resolved', 'resolvedInNextRelease', 'unresolved', and 'ignored'.");
|
|
30
|
-
const ParamAssignedTo = zod.z.string().trim().describe("The
|
|
30
|
+
const ParamAssignedTo = zod.z.string().trim().describe("The assignee in format 'user:ID' or 'team:ID' where ID is numeric. Example: 'user:123456' or 'team:789'. Use the whoami tool to find your user ID.");
|
|
31
31
|
const ParamSentryGuide = zod.z.enum(require_constants.SENTRY_GUIDES).describe("Optional guide filter to limit search results to specific documentation sections. Use either a platform (e.g., 'javascript', 'python') or platform/guide combination (e.g., 'javascript/nextjs', 'python/django').");
|
|
32
32
|
const ParamEventId = zod.z.string().trim().describe("The ID of the event.");
|
|
33
33
|
const ParamAttachmentId = zod.z.string().trim().describe("The ID of the attachment to download.");
|
|
@@ -123,4 +123,4 @@ Object.defineProperty(exports, 'ParamTransaction', {
|
|
|
123
123
|
return ParamTransaction;
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
|
-
//# sourceMappingURL=schema-
|
|
126
|
+
//# sourceMappingURL=schema-BL3kwfOA.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-
|
|
1
|
+
{"version":3,"file":"schema-BL3kwfOA.cjs","names":["SENTRY_GUIDES"],"sources":["../src/schema.ts"],"sourcesContent":["/**\n * Reusable Zod parameter schemas for MCP tools.\n *\n * Shared validation schemas used across tool definitions to ensure consistent\n * parameter handling and validation. Each schema includes transformation\n * (e.g., toLowerCase, trim) and LLM-friendly descriptions.\n */\nimport { z } from \"zod\";\nimport { SENTRY_GUIDES } from \"./constants\";\n\nexport const ParamOrganizationSlug = z\n .string()\n .toLowerCase()\n .trim()\n .describe(\n \"The organization's slug. You can find a existing list of organizations you have access to using the `find_organizations()` tool.\",\n );\n\nexport const ParamTeamSlug = z\n .string()\n .toLowerCase()\n .trim()\n .describe(\n \"The team's slug. You can find a list of existing teams in an organization using the `find_teams()` tool.\",\n );\n\nexport const ParamProjectSlug = z\n .string()\n .toLowerCase()\n .trim()\n .describe(\n \"The project's slug. You can find a list of existing projects in an organization using the `find_projects()` tool.\",\n );\n\nexport const ParamProjectSlugOrAll = z\n .string()\n .toLowerCase()\n .trim()\n .describe(\n \"The project's slug. This will default to all projects you have access to. It is encouraged to specify this when possible.\",\n );\n\nexport const ParamIssueShortId = z\n .string()\n .toUpperCase()\n .trim()\n .describe(\"The Issue ID. e.g. `PROJECT-1Z43`\");\n\nexport const ParamIssueUrl = z\n .string()\n .url()\n .trim()\n .describe(\n \"The URL of the issue. e.g. https://my-organization.sentry.io/issues/PROJECT-1Z43\",\n );\n\nexport const ParamPlatform = z\n .string()\n .toLowerCase()\n .trim()\n .describe(\n \"The platform for the project. e.g., python, javascript, react, etc.\",\n );\n\nexport const ParamTransaction = z\n .string()\n .trim()\n .describe(\"The transaction name. Also known as the endpoint, or route name.\");\n\nexport const ParamQuery = z\n .string()\n .trim()\n .describe(\n `The search query to apply. Use the \\`help(subject=\"query_syntax\")\\` tool to get more information about the query syntax rather than guessing.`,\n );\n\n/**\n * Region URL parameter for Sentry API requests.\n *\n * Handles region-specific URLs for Sentry's Cloud Service while gracefully\n * supporting self-hosted Sentry installations that may return empty regionUrl values.\n * This schema accepts both valid URLs and empty strings to ensure compatibility\n * across different Sentry deployment types.\n */\nexport const ParamRegionUrl = z\n .string()\n .trim()\n .refine((value) => !value || z.string().url().safeParse(value).success, {\n message: \"Must be a valid URL or empty string (for self-hosted Sentry)\",\n })\n .describe(\n \"The region URL for the organization you're querying, if known. \" +\n \"For Sentry's Cloud Service (sentry.io), this is typically the region-specific URL like 'https://us.sentry.io'. \" +\n \"For self-hosted Sentry installations, this parameter is usually not needed and should be omitted. \" +\n \"You can find the correct regionUrl from the organization details using the `find_organizations()` tool.\",\n );\n\nexport const ParamIssueStatus = z\n .enum([\"resolved\", \"resolvedInNextRelease\", \"unresolved\", \"ignored\"])\n .describe(\n \"The new status for the issue. Valid values are 'resolved', 'resolvedInNextRelease', 'unresolved', and 'ignored'.\",\n );\n\nexport const ParamAssignedTo = z\n .string()\n .trim()\n .describe(\n \"The assignee in format 'user:ID' or 'team:ID' where ID is numeric. Example: 'user:123456' or 'team:789'. Use the whoami tool to find your user ID.\",\n );\n\nexport const ParamSentryGuide = z\n .enum(SENTRY_GUIDES)\n .describe(\n \"Optional guide filter to limit search results to specific documentation sections. \" +\n \"Use either a platform (e.g., 'javascript', 'python') or platform/guide combination (e.g., 'javascript/nextjs', 'python/django').\",\n );\n\nexport const ParamEventId = z.string().trim().describe(\"The ID of the event.\");\n\nexport const ParamAttachmentId = z\n .string()\n .trim()\n .describe(\"The ID of the attachment to download.\");\n"],"mappings":";;;;;AAUA,MAAa,wBAAwB,MAClC,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SACC,mIACD;AAEH,MAAa,gBAAgB,MAC1B,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SACC,2GACD;AAEH,MAAa,mBAAmB,MAC7B,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SACC,oHACD;AAEH,MAAa,wBAAwB,MAClC,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SACC,4HACD;AAEH,MAAa,oBAAoB,MAC9B,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SAAS,oCAAoC;AAEhD,MAAa,gBAAgB,MAC1B,QAAQ,CACR,KAAK,CACL,MAAM,CACN,SACC,mFACD;AAEH,MAAa,gBAAgB,MAC1B,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SACC,sEACD;AAEH,MAAa,mBAAmB,MAC7B,QAAQ,CACR,MAAM,CACN,SAAS,mEAAmE;AAE/E,MAAa,aAAa,MACvB,QAAQ,CACR,MAAM,CACN,UACE,+IACF;;;;;;;;;AAUH,MAAa,iBAAiB,MAC3B,QAAQ,CACR,MAAM,CACN,OAAO,CAAC,WAAW,SAAS,MAAE,QAAQ,CAAC,KAAK,CAAC,UAAU,MAAM,CAAC,SAAS,EACtE,SAAS,+DACV,EAAC,CACD,SACC,0XAID;AAEH,MAAa,mBAAmB,MAC7B,KAAK;CAAC;CAAY;CAAyB;CAAc;AAAU,EAAC,CACpE,SACC,mHACD;AAEH,MAAa,kBAAkB,MAC5B,QAAQ,CACR,MAAM,CACN,SACC,qJACD;AAEH,MAAa,mBAAmB,MAC7B,KAAKA,gCAAc,CACnB,SACC,qNAED;AAEH,MAAa,eAAe,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB;AAE9E,MAAa,oBAAoB,MAC9B,QAAQ,CACR,MAAM,CACN,SAAS,wCAAwC"}
|
|
@@ -45,7 +45,7 @@ const ProjectSchema = zod.z.object({
|
|
|
45
45
|
id: zod.z.union([zod.z.string(), zod.z.number()]),
|
|
46
46
|
slug: zod.z.string(),
|
|
47
47
|
name: zod.z.string(),
|
|
48
|
-
platform: zod.z.string().nullable()
|
|
48
|
+
platform: zod.z.string().nullable().optional()
|
|
49
49
|
});
|
|
50
50
|
const ProjectListSchema = zod.z.array(ProjectSchema);
|
|
51
51
|
const ClientKeySchema = zod.z.object({
|
|
@@ -109,7 +109,7 @@ const IssueSchema = zod.z.object({
|
|
|
109
109
|
userCount: zod.z.union([zod.z.string(), zod.z.number()]),
|
|
110
110
|
permalink: zod.z.string().url(),
|
|
111
111
|
project: ProjectSchema,
|
|
112
|
-
platform: zod.z.string().nullable(),
|
|
112
|
+
platform: zod.z.string().nullable().optional(),
|
|
113
113
|
status: zod.z.string(),
|
|
114
114
|
culprit: zod.z.string(),
|
|
115
115
|
type: zod.z.union([
|
|
@@ -175,7 +175,7 @@ const BaseEventSchema = zod.z.object({
|
|
|
175
175
|
id: zod.z.string(),
|
|
176
176
|
title: zod.z.string(),
|
|
177
177
|
message: zod.z.string().nullable(),
|
|
178
|
-
platform: zod.z.string().nullable(),
|
|
178
|
+
platform: zod.z.string().nullable().optional(),
|
|
179
179
|
type: zod.z.unknown(),
|
|
180
180
|
entries: zod.z.array(zod.z.union([
|
|
181
181
|
zod.z.object({
|
|
@@ -601,4 +601,4 @@ Object.defineProperty(exports, 'UserSchema', {
|
|
|
601
601
|
return UserSchema;
|
|
602
602
|
}
|
|
603
603
|
});
|
|
604
|
-
//# sourceMappingURL=schema-
|
|
604
|
+
//# sourceMappingURL=schema-C0LznFvu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-C0LznFvu.cjs","names":[],"sources":["../src/api-client/schema.ts"],"sourcesContent":["/**\n * Zod schemas for Sentry API response validation.\n *\n * This module contains comprehensive Zod schemas that validate and type-check\n * responses from Sentry's REST API. All schemas are designed to handle Sentry's\n * flexible data model where most fields can be null or optional.\n *\n * Key Design Principles:\n * - Use .passthrough() for objects that may contain additional fields\n * - Support both string and number IDs (Sentry's legacy/modern ID formats)\n * - Handle nullable fields gracefully throughout the schema hierarchy\n * - Use union types for polymorphic data (events, assignedTo, etc.)\n *\n * Schema Categories:\n * - **Core Resources**: Users, Organizations, Teams, Projects\n * - **Issue Management**: Issues, Events, Assignments\n * - **Release Management**: Releases, Commits, Deployments\n * - **Search & Discovery**: Tags, Error Search, Span Search\n * - **Integrations**: Client Keys (DSNs), Autofix\n *\n * @example Schema Usage\n * ```typescript\n * import { IssueListSchema } from \"./schema\";\n *\n * const response = await fetch(\"/api/0/organizations/my-org/issues/\");\n * const issues = IssueListSchema.parse(await response.json());\n * // TypeScript now knows the exact shape of issues\n * ```\n *\n * @example Error Handling\n * ```typescript\n * const { data, success, error } = ApiErrorSchema.safeParse(response);\n * if (success) {\n * throw new ApiError(data.detail, statusCode);\n * }\n * ```\n */\nimport { z } from \"zod\";\n\n/**\n * Schema for Sentry API error responses.\n *\n * Uses .passthrough() to allow additional fields that may be present\n * in different error scenarios.\n */\nexport const ApiErrorSchema = z\n .object({\n detail: z.string(),\n })\n .passthrough();\n\nexport const UserSchema = z.object({\n id: z.union([z.string(), z.number()]),\n name: z.string().nullable(),\n email: z.string(),\n});\n\nexport const UserRegionsSchema = z.object({\n regions: z.array(\n z.object({\n name: z.string(),\n url: z.string().url(),\n }),\n ),\n});\n\n/**\n * Schema for Sentry organization API responses.\n *\n * Handles organizations from both Sentry's Cloud Service and self-hosted installations.\n * The links object and regionUrl field are optional to support self-hosted Sentry\n * instances that may not include these fields or return empty values.\n */\nexport const OrganizationSchema = z.object({\n id: z.union([z.string(), z.number()]),\n slug: z.string(),\n name: z.string(),\n links: z\n .object({\n regionUrl: z\n .string()\n .refine(\n (value) => !value || z.string().url().safeParse(value).success,\n {\n message:\n \"Must be a valid URL or empty string (for self-hosted Sentry)\",\n },\n )\n .optional(),\n organizationUrl: z.string().url(),\n })\n .optional(),\n});\n\nexport const OrganizationListSchema = z.array(OrganizationSchema);\n\nexport const TeamSchema = z.object({\n id: z.union([z.string(), z.number()]),\n slug: z.string(),\n name: z.string(),\n});\n\nexport const TeamListSchema = z.array(TeamSchema);\n\nexport const ProjectSchema = z.object({\n id: z.union([z.string(), z.number()]),\n slug: z.string(),\n name: z.string(),\n platform: z.string().nullable().optional(),\n});\n\nexport const ProjectListSchema = z.array(ProjectSchema);\n\nexport const ClientKeySchema = z.object({\n id: z.union([z.string(), z.number()]),\n name: z.string(),\n dsn: z.object({\n public: z.string(),\n }),\n isActive: z.boolean(),\n dateCreated: z.string().datetime(),\n});\n\nexport const ClientKeyListSchema = z.array(ClientKeySchema);\n\nexport const ReleaseSchema = z.object({\n id: z.union([z.string(), z.number()]),\n version: z.string(),\n shortVersion: z.string(),\n dateCreated: z.string().datetime(),\n dateReleased: z.string().datetime().nullable(),\n firstEvent: z.string().datetime().nullable(),\n lastEvent: z.string().datetime().nullable(),\n newGroups: z.number(),\n lastCommit: z\n .object({\n id: z.union([z.string(), z.number()]),\n message: z.string(),\n dateCreated: z.string().datetime(),\n author: z.object({\n name: z.string(),\n email: z.string(),\n }),\n })\n .nullable(),\n lastDeploy: z\n .object({\n id: z.union([z.string(), z.number()]),\n environment: z.string(),\n dateStarted: z.string().datetime().nullable(),\n dateFinished: z.string().datetime().nullable(),\n })\n .nullable(),\n projects: z.array(ProjectSchema),\n});\n\nexport const ReleaseListSchema = z.array(ReleaseSchema);\n\nexport const TagSchema = z.object({\n key: z.string(),\n name: z.string(),\n totalValues: z.number(),\n});\n\nexport const TagListSchema = z.array(TagSchema);\n\n// Schema for assignedTo field - can be a user object, team object, string, or null\nexport const AssignedToSchema = z.union([\n z.null(),\n z.string(), // username or actor ID\n z\n .object({\n type: z.enum([\"user\", \"team\"]),\n id: z.union([z.string(), z.number()]),\n name: z.string(),\n email: z.string().optional(), // only for users\n })\n .passthrough(), // Allow additional fields we might not know about\n]);\n\nexport const IssueSchema = z.object({\n id: z.union([z.string(), z.number()]),\n shortId: z.string(),\n title: z.string(),\n firstSeen: z.string().datetime(),\n lastSeen: z.string().datetime(),\n count: z.union([z.string(), z.number()]),\n userCount: z.union([z.string(), z.number()]),\n permalink: z.string().url(),\n project: ProjectSchema,\n platform: z.string().nullable().optional(),\n status: z.string(),\n culprit: z.string(),\n type: z.union([z.literal(\"error\"), z.literal(\"transaction\"), z.unknown()]),\n assignedTo: AssignedToSchema.optional(),\n});\n\nexport const IssueListSchema = z.array(IssueSchema);\n\nexport const FrameInterface = z\n .object({\n filename: z.string().nullable(),\n function: z.string().nullable(),\n lineNo: z.number().nullable(),\n colNo: z.number().nullable(),\n absPath: z.string().nullable(),\n module: z.string().nullable(),\n // lineno, source code\n context: z.array(z.tuple([z.number(), z.string()])),\n inApp: z.boolean().optional(),\n vars: z.record(z.string(), z.unknown()).optional(),\n })\n .partial();\n\n// XXX: Sentry's schema generally speaking is \"assume all user input is missing\"\n// so we need to handle effectively every field being optional or nullable.\nexport const ExceptionInterface = z\n .object({\n mechanism: z\n .object({\n type: z.string().nullable(),\n handled: z.boolean().nullable(),\n })\n .partial(),\n type: z.string().nullable(),\n value: z.string().nullable(),\n stacktrace: z.object({\n frames: z.array(FrameInterface),\n }),\n })\n .partial();\n\nexport const ErrorEntrySchema = z\n .object({\n // XXX: Sentry can return either of these. Not sure why we never normalized it.\n values: z.array(ExceptionInterface.optional()),\n value: ExceptionInterface.nullable().optional(),\n })\n .partial();\n\nexport const RequestEntrySchema = z\n .object({\n method: z.string().nullable(),\n url: z.string().url().nullable(),\n // TODO:\n // query: z.array(z.tuple([z.string(), z.string()])).nullable(),\n // data: z.unknown().nullable(),\n // headers: z.array(z.tuple([z.string(), z.string()])).nullable(),\n })\n .partial();\n\nexport const MessageEntrySchema = z\n .object({\n formatted: z.string().nullable(),\n message: z.string().nullable(),\n params: z.array(z.unknown()).optional(),\n })\n .partial();\n\nexport const ThreadEntrySchema = z\n .object({\n id: z.number().nullable(),\n name: z.string().nullable(),\n current: z.boolean().nullable(),\n crashed: z.boolean().nullable(),\n state: z.string().nullable(),\n stacktrace: z\n .object({\n frames: z.array(FrameInterface),\n })\n .nullable(),\n })\n .partial();\n\nexport const ThreadsEntrySchema = z\n .object({\n values: z.array(ThreadEntrySchema),\n })\n .partial();\n\nexport const BreadcrumbSchema = z\n .object({\n timestamp: z.string().nullable(),\n type: z.string().nullable(),\n category: z.string().nullable(),\n level: z.string().nullable(),\n message: z.string().nullable(),\n data: z.record(z.unknown()).nullable(),\n })\n .partial();\n\nexport const BreadcrumbsEntrySchema = z\n .object({\n values: z.array(BreadcrumbSchema),\n })\n .partial();\n\nconst BaseEventSchema = z.object({\n id: z.string(),\n title: z.string(),\n message: z.string().nullable(),\n platform: z.string().nullable().optional(),\n type: z.unknown(),\n entries: z.array(\n z.union([\n z.object({\n type: z.literal(\"exception\"),\n data: ErrorEntrySchema,\n }),\n z.object({\n type: z.literal(\"message\"),\n data: MessageEntrySchema,\n }),\n z.object({\n type: z.literal(\"threads\"),\n data: ThreadsEntrySchema,\n }),\n z.object({\n type: z.literal(\"request\"),\n data: RequestEntrySchema,\n }),\n z.object({\n type: z.literal(\"breadcrumbs\"),\n data: BreadcrumbsEntrySchema,\n }),\n z.object({\n type: z.literal(\"spans\"),\n data: z.unknown(),\n }),\n z.object({\n type: z.string(),\n data: z.unknown(),\n }),\n ]),\n ),\n contexts: z\n .record(\n z.string(),\n z\n .object({\n type: z.union([\n z.literal(\"default\"),\n z.literal(\"runtime\"),\n z.literal(\"os\"),\n z.literal(\"trace\"),\n z.unknown(),\n ]),\n })\n .passthrough(),\n )\n .optional(),\n});\n\nexport const ErrorEventSchema = BaseEventSchema.omit({\n type: true,\n}).extend({\n type: z.literal(\"error\"),\n culprit: z.string().nullable(),\n dateCreated: z.string().datetime(),\n});\n\nexport const TransactionEventSchema = BaseEventSchema.omit({\n type: true,\n}).extend({\n type: z.literal(\"transaction\"),\n occurrence: z.object({\n issueTitle: z.string(),\n culprit: z.string().nullable(),\n }),\n});\n\nexport const UnknownEventSchema = BaseEventSchema.omit({\n type: true,\n}).extend({\n type: z.unknown(),\n});\n\n// XXX: This API response is kind of a disaster. We are not propagating the appropriate\n// columns and it makes this really hard to work with. Errors and Transaction-based issues\n// are completely different, for example.\nexport const EventSchema = z.union([\n ErrorEventSchema,\n TransactionEventSchema,\n UnknownEventSchema,\n]);\n\nexport const EventsResponseSchema = z.object({\n data: z.array(z.unknown()),\n meta: z\n .object({\n fields: z.record(z.string(), z.string()),\n })\n .passthrough(),\n});\n\n// https://us.sentry.io/api/0/organizations/sentry/events/?dataset=errors&field=issue&field=title&field=project&field=timestamp&field=trace&per_page=5&query=event.type%3Aerror&referrer=sentry-mcp&sort=-timestamp&statsPeriod=1w\nexport const ErrorsSearchResponseSchema = EventsResponseSchema.extend({\n data: z.array(\n z.object({\n issue: z.string(),\n \"issue.id\": z.union([z.string(), z.number()]),\n project: z.string(),\n title: z.string(),\n \"count()\": z.number(),\n \"last_seen()\": z.string(),\n }),\n ),\n});\n\nexport const SpansSearchResponseSchema = EventsResponseSchema.extend({\n data: z.array(\n z.object({\n id: z.string(),\n trace: z.string(),\n \"span.op\": z.string(),\n \"span.description\": z.string(),\n \"span.duration\": z.number(),\n transaction: z.string(),\n project: z.string(),\n timestamp: z.string(),\n }),\n ),\n});\n\nexport const AutofixRunSchema = z\n .object({\n run_id: z.union([z.string(), z.number()]),\n })\n .passthrough();\n\nconst AutofixStatusSchema = z.enum([\n \"PENDING\",\n \"PROCESSING\",\n \"IN_PROGRESS\",\n \"NEED_MORE_INFORMATION\",\n \"COMPLETED\",\n \"FAILED\",\n \"ERROR\",\n \"CANCELLED\",\n \"WAITING_FOR_USER_RESPONSE\",\n]);\n\nconst AutofixRunStepBaseSchema = z.object({\n type: z.string(),\n key: z.string(),\n index: z.number(),\n status: AutofixStatusSchema,\n title: z.string(),\n output_stream: z.string().nullable(),\n progress: z.array(\n z.object({\n data: z.unknown().nullable(),\n message: z.string(),\n timestamp: z.string(),\n type: z.enum([\"INFO\", \"WARNING\", \"ERROR\"]),\n }),\n ),\n});\n\nexport const AutofixRunStepDefaultSchema = AutofixRunStepBaseSchema.extend({\n type: z.literal(\"default\"),\n insights: z\n .array(\n z.object({\n change_diff: z.unknown().nullable(),\n generated_at_memory_index: z.number(),\n insight: z.string(),\n justification: z.string(),\n type: z.literal(\"insight\"),\n }),\n )\n .nullable(),\n}).passthrough();\n\nexport const AutofixRunStepRootCauseAnalysisSchema =\n AutofixRunStepBaseSchema.extend({\n type: z.literal(\"root_cause_analysis\"),\n causes: z.array(\n z.object({\n description: z.string(),\n id: z.number(),\n root_cause_reproduction: z.array(\n z.object({\n code_snippet_and_analysis: z.string(),\n is_most_important_event: z.boolean(),\n relevant_code_file: z\n .object({\n file_path: z.string(),\n repo_name: z.string(),\n })\n .nullable(),\n timeline_item_type: z.string(),\n title: z.string(),\n }),\n ),\n }),\n ),\n }).passthrough();\n\nexport const AutofixRunStepSolutionSchema = AutofixRunStepBaseSchema.extend({\n type: z.literal(\"solution\"),\n solution: z.array(\n z.object({\n code_snippet_and_analysis: z.string().nullable(),\n is_active: z.boolean(),\n is_most_important_event: z.boolean(),\n relevant_code_file: z.null(),\n timeline_item_type: z.union([\n z.literal(\"internal_code\"),\n z.literal(\"repro_test\"),\n ]),\n title: z.string(),\n }),\n ),\n}).passthrough();\n\nexport const AutofixRunStepSchema = z.union([\n AutofixRunStepDefaultSchema,\n AutofixRunStepRootCauseAnalysisSchema,\n AutofixRunStepSolutionSchema,\n AutofixRunStepBaseSchema.passthrough(),\n]);\n\nexport const AutofixRunStateSchema = z.object({\n autofix: z\n .object({\n run_id: z.number(),\n request: z.unknown(),\n updated_at: z.string(),\n status: AutofixStatusSchema,\n steps: z.array(AutofixRunStepSchema),\n })\n .passthrough()\n .nullable(),\n});\n\nexport const EventAttachmentSchema = z.object({\n id: z.string(),\n name: z.string(),\n type: z.string(),\n size: z.number(),\n mimetype: z.string(),\n dateCreated: z.string().datetime(),\n sha1: z.string(),\n headers: z.record(z.string(), z.string()).optional(),\n});\n\nexport const EventAttachmentListSchema = z.array(EventAttachmentSchema);\n"],"mappings":";;;;;;;;;;AA6CA,MAAa,iBAAiB,MAC3B,OAAO,EACN,QAAQ,MAAE,QAAQ,CACnB,EAAC,CACD,aAAa;AAEhB,MAAa,aAAa,MAAE,OAAO;CACjC,IAAI,MAAE,MAAM,CAAC,MAAE,QAAQ,EAAE,MAAE,QAAQ,AAAC,EAAC;CACrC,MAAM,MAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,MAAE,QAAQ;AAClB,EAAC;AAEF,MAAa,oBAAoB,MAAE,OAAO,EACxC,SAAS,MAAE,MACT,MAAE,OAAO;CACP,MAAM,MAAE,QAAQ;CAChB,KAAK,MAAE,QAAQ,CAAC,KAAK;AACtB,EAAC,CACH,CACF,EAAC;;;;;;;;AASF,MAAa,qBAAqB,MAAE,OAAO;CACzC,IAAI,MAAE,MAAM,CAAC,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;CACd,MAAM,MAAE,QAAQ;CAChB,MAAM,MAAE,QAAQ;CAChB,MAAM,MAAE,QAAQ;CAChB,UAAU,MAAE,QAAQ;CACpB,aAAa,MAAE,QAAQ,CAAC,UAAU;CAClC,MAAM,MAAE,QAAQ;CAChB,SAAS,MAAE,OAAO,MAAE,QAAQ,EAAE,MAAE,QAAQ,CAAC,CAAC,UAAU;AACrD,EAAC;AAEF,MAAa,4BAA4B,MAAE,MAAM,sBAAsB"}
|
|
@@ -44,7 +44,7 @@ const ProjectSchema = z.object({
|
|
|
44
44
|
id: z.union([z.string(), z.number()]),
|
|
45
45
|
slug: z.string(),
|
|
46
46
|
name: z.string(),
|
|
47
|
-
platform: z.string().nullable()
|
|
47
|
+
platform: z.string().nullable().optional()
|
|
48
48
|
});
|
|
49
49
|
const ProjectListSchema = z.array(ProjectSchema);
|
|
50
50
|
const ClientKeySchema = z.object({
|
|
@@ -108,7 +108,7 @@ const IssueSchema = z.object({
|
|
|
108
108
|
userCount: z.union([z.string(), z.number()]),
|
|
109
109
|
permalink: z.string().url(),
|
|
110
110
|
project: ProjectSchema,
|
|
111
|
-
platform: z.string().nullable(),
|
|
111
|
+
platform: z.string().nullable().optional(),
|
|
112
112
|
status: z.string(),
|
|
113
113
|
culprit: z.string(),
|
|
114
114
|
type: z.union([
|
|
@@ -174,7 +174,7 @@ const BaseEventSchema = z.object({
|
|
|
174
174
|
id: z.string(),
|
|
175
175
|
title: z.string(),
|
|
176
176
|
message: z.string().nullable(),
|
|
177
|
-
platform: z.string().nullable(),
|
|
177
|
+
platform: z.string().nullable().optional(),
|
|
178
178
|
type: z.unknown(),
|
|
179
179
|
entries: z.array(z.union([
|
|
180
180
|
z.object({
|
|
@@ -349,4 +349,4 @@ const EventAttachmentListSchema = z.array(EventAttachmentSchema);
|
|
|
349
349
|
|
|
350
350
|
//#endregion
|
|
351
351
|
export { ApiErrorSchema, AssignedToSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, BreadcrumbSchema, BreadcrumbsEntrySchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventAttachmentListSchema, EventAttachmentSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, MessageEntrySchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, RequestEntrySchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, ThreadEntrySchema, ThreadsEntrySchema, TransactionEventSchema, UnknownEventSchema, UserRegionsSchema, UserSchema };
|
|
352
|
-
//# sourceMappingURL=schema-
|
|
352
|
+
//# sourceMappingURL=schema-CcFmBoEf.js.map
|