@sentry/mcp-server 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -11
- package/dist/about-CDAN_HuU.js +136 -0
- package/dist/about-CDAN_HuU.js.map +1 -0
- package/dist/about-CteXVo1Q.d.ts +10 -0
- package/dist/about-CteXVo1Q.d.ts.map +1 -0
- package/dist/about-CwQvsGSc.d.cts +10 -0
- package/dist/about-CwQvsGSc.d.cts.map +1 -0
- package/dist/about-aDGhlM6f.cjs +142 -0
- package/dist/about-aDGhlM6f.cjs.map +1 -0
- package/dist/agent-BF4d0oSb.cjs +66 -0
- package/dist/agent-BF4d0oSb.cjs.map +1 -0
- package/dist/agent-CP5e4nTv.js +60 -0
- package/dist/agent-CP5e4nTv.js.map +1 -0
- package/dist/agent-D9xBrLvD.cjs +49 -0
- package/dist/agent-D9xBrLvD.cjs.map +1 -0
- package/dist/agent-DAlB2lDx.d.cts +34 -0
- package/dist/agent-DAlB2lDx.d.cts.map +1 -0
- package/dist/agent-DD6nYWBQ.d.cts +92 -0
- package/dist/agent-DD6nYWBQ.d.cts.map +1 -0
- package/dist/agent-DzpIyyqs.js +43 -0
- package/dist/agent-DzpIyyqs.js.map +1 -0
- package/dist/agent-UxF0J0wb.d.ts +92 -0
- package/dist/agent-UxF0J0wb.d.ts.map +1 -0
- package/dist/agent-xEtb_OFK.d.ts +34 -0
- package/dist/agent-xEtb_OFK.d.ts.map +1 -0
- package/dist/{analyze-issue-with-seer-Dw9iqvSk.cjs → analyze-issue-with-seer-Cf0jCiKP.cjs} +33 -35
- package/dist/analyze-issue-with-seer-Cf0jCiKP.cjs.map +1 -0
- package/dist/{analyze-issue-with-seer-DcSwrWrs.js → analyze-issue-with-seer-DqwczSTV.js} +12 -14
- package/dist/analyze-issue-with-seer-DqwczSTV.js.map +1 -0
- package/dist/{api-utils-DFWUfQ83.cjs → api-D9yO5I-i.cjs} +15 -20
- package/dist/api-D9yO5I-i.cjs.map +1 -0
- package/dist/api-client/client.cjs +4 -4
- package/dist/api-client/client.d.cts +4 -4
- package/dist/api-client/client.d.ts +4 -4
- package/dist/api-client/client.js +5 -4
- package/dist/api-client/errors.cjs +11 -0
- package/dist/api-client/errors.d.cts +2 -0
- package/dist/api-client/errors.d.ts +2 -0
- package/dist/api-client/errors.js +3 -0
- package/dist/api-client/index.cjs +20 -7
- package/dist/api-client/index.d.cts +6 -5
- package/dist/api-client/index.d.ts +6 -5
- package/dist/api-client/index.js +7 -6
- package/dist/api-client/schema.cjs +5 -1
- package/dist/api-client/schema.d.cts +2 -2
- package/dist/api-client/schema.d.ts +2 -2
- package/dist/api-client/schema.js +2 -2
- package/dist/api-client/types.cjs +1 -1
- package/dist/api-client/types.d.cts +3 -3
- package/dist/api-client/types.d.ts +3 -3
- package/dist/api-client/types.js +1 -1
- package/dist/{api-utils-BlUSO8xh.js → api-mjnGhOW2.js} +15 -20
- package/dist/api-mjnGhOW2.js.map +1 -0
- package/dist/callEmbeddedAgent-BRz60bxa.cjs +44 -0
- package/dist/callEmbeddedAgent-BRz60bxa.cjs.map +1 -0
- package/dist/callEmbeddedAgent-C0pC9du1.js +38 -0
- package/dist/callEmbeddedAgent-C0pC9du1.js.map +1 -0
- package/dist/cli/parse.cjs +5 -0
- package/dist/cli/parse.d.cts +12 -0
- package/dist/cli/parse.d.cts.map +1 -0
- package/dist/cli/parse.d.ts +12 -0
- package/dist/cli/parse.d.ts.map +1 -0
- package/dist/cli/parse.js +3 -0
- package/dist/cli/resolve.cjs +7 -0
- package/dist/cli/resolve.d.cts +11 -0
- package/dist/cli/resolve.d.cts.map +1 -0
- package/dist/cli/resolve.d.ts +11 -0
- package/dist/cli/resolve.d.ts.map +1 -0
- package/dist/cli/resolve.js +6 -0
- package/dist/cli/types.d.cts +3 -0
- package/dist/cli/types.d.ts +3 -0
- package/dist/cli/usage.cjs +3 -0
- package/dist/cli/usage.d.cts +9 -0
- package/dist/cli/usage.d.cts.map +1 -0
- package/dist/cli/usage.d.ts +9 -0
- package/dist/cli/usage.d.ts.map +1 -0
- package/dist/cli/usage.js +3 -0
- package/dist/{client-CPrEfAwa.cjs → client-AVVG7J24.cjs} +126 -71
- package/dist/client-AVVG7J24.cjs.map +1 -0
- package/dist/{client-C_dDreKj.d.ts → client-B0wezrpt.d.cts} +99 -15
- package/dist/client-B0wezrpt.d.cts.map +1 -0
- package/dist/{client-MaVV1gVC.js → client-BqrNpqZW.js} +127 -66
- package/dist/client-BqrNpqZW.js.map +1 -0
- package/dist/{client-CgS3tjJG.d.cts → client-D-KqRd94.d.ts} +101 -17
- package/dist/client-D-KqRd94.d.ts.map +1 -0
- package/dist/config-CqdBCqLx.js +74 -0
- package/dist/config-CqdBCqLx.js.map +1 -0
- package/dist/{config-BvtWiL3I.js → config-DDf8XyZs.js} +173 -2
- package/dist/config-DDf8XyZs.js.map +1 -0
- package/dist/config-DFt-16ni.cjs +80 -0
- package/dist/config-DFt-16ni.cjs.map +1 -0
- package/dist/{config-CD-5FpOO.cjs → config-DsvSjPCG.cjs} +178 -1
- package/dist/config-DsvSjPCG.cjs.map +1 -0
- package/dist/{constants-S7AU45oQ.js → constants-BPM_OWt0.js} +22 -2
- package/dist/constants-BPM_OWt0.js.map +1 -0
- package/dist/{constants-ClkMK29-.cjs → constants-DJrjLmh5.cjs} +39 -1
- package/dist/constants-DJrjLmh5.cjs.map +1 -0
- package/dist/constants.cjs +4 -1
- package/dist/constants.d.cts +12 -1
- package/dist/constants.d.cts.map +1 -1
- package/dist/constants.d.ts +12 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/{create-dsn-QDLdwhDO.js → create-dsn-BhshlP7l.js} +5 -4
- package/dist/{create-dsn-QDLdwhDO.js.map → create-dsn-BhshlP7l.js.map} +1 -1
- package/dist/{create-dsn-C6IPwoVO.cjs → create-dsn-DaHidLhE.cjs} +7 -6
- package/dist/{create-dsn-C6IPwoVO.cjs.map → create-dsn-DaHidLhE.cjs.map} +1 -1
- package/dist/{create-project-Cax3fWey.js → create-project-C3laecaU.js} +6 -5
- package/dist/create-project-C3laecaU.js.map +1 -0
- package/dist/{create-project-DdSF58TR.cjs → create-project-xszOpGTC.cjs} +8 -7
- package/dist/create-project-xszOpGTC.cjs.map +1 -0
- package/dist/{create-team-nm06goO5.js → create-team-CTN-DxOE.js} +5 -4
- package/dist/create-team-CTN-DxOE.js.map +1 -0
- package/dist/{create-team-CXaLcylp.cjs → create-team-DmnJHSIx.cjs} +7 -6
- package/dist/create-team-DmnJHSIx.cjs.map +1 -0
- package/dist/{discover-dataset-fields-BEnyqPSq.js → dataset-fields-By43SxJp.js} +13 -14
- package/dist/dataset-fields-By43SxJp.js.map +1 -0
- package/dist/{discover-dataset-fields-Cl7HpVkm.cjs → dataset-fields-DacS0qF0.cjs} +13 -14
- package/dist/dataset-fields-DacS0qF0.cjs.map +1 -0
- package/dist/define-2Lj8Lm1t.js +8 -0
- package/dist/define-2Lj8Lm1t.js.map +1 -0
- package/dist/{defineTool-lWNTzWl_.cjs → define-BfP4rFlE.cjs} +2 -2
- package/dist/define-BfP4rFlE.cjs.map +1 -0
- package/dist/enhance-error-C7AVt85N.js +32 -0
- package/dist/enhance-error-C7AVt85N.js.map +1 -0
- package/dist/enhance-error-CAREhbDf.cjs +37 -0
- package/dist/enhance-error-CAREhbDf.cjs.map +1 -0
- package/dist/error-handling-efwohgKv.js +97 -0
- package/dist/error-handling-efwohgKv.js.map +1 -0
- package/dist/error-handling-qfa1BeDb.cjs +132 -0
- package/dist/error-handling-qfa1BeDb.cjs.map +1 -0
- package/dist/errors-00Iz6Wmy.d.cts +20 -0
- package/dist/errors-00Iz6Wmy.d.cts.map +1 -0
- package/dist/errors-CNTY5dED.cjs +271 -0
- package/dist/errors-CNTY5dED.cjs.map +1 -0
- package/dist/errors-Cn4l-BlC.d.ts +20 -0
- package/dist/errors-Cn4l-BlC.d.ts.map +1 -0
- package/dist/errors-DMiENfq7.d.cts +126 -0
- package/dist/errors-DMiENfq7.d.cts.map +1 -0
- package/dist/errors-Dr7Q6mD5.js +217 -0
- package/dist/errors-Dr7Q6mD5.js.map +1 -0
- package/dist/errors-bxPCd8AO.d.ts +126 -0
- package/dist/errors-bxPCd8AO.d.ts.map +1 -0
- package/dist/errors.d.cts +2 -20
- package/dist/errors.d.ts +2 -20
- package/dist/{fetch-utils-C_Xj921x.js → fetch-utils-DRWItYjp.js} +1 -1
- package/dist/{fetch-utils-C_Xj921x.js.map → fetch-utils-DRWItYjp.js.map} +1 -1
- package/dist/{fetch-utils-DkcYwqBo.cjs → fetch-utils-bHWZV7j9.cjs} +1 -1
- package/dist/{fetch-utils-DkcYwqBo.cjs.map → fetch-utils-bHWZV7j9.cjs.map} +1 -1
- package/dist/{find-dsns-vQolGM7e.cjs → find-dsns-D0l3siyF.cjs} +7 -6
- package/dist/find-dsns-D0l3siyF.cjs.map +1 -0
- package/dist/{find-dsns-C3G5aBm1.js → find-dsns-U4CCcoTv.js} +5 -4
- package/dist/find-dsns-U4CCcoTv.js.map +1 -0
- package/dist/{find-organizations-BDtHkcFV.cjs → find-organizations-Ca-zpAlI.cjs} +7 -6
- package/dist/find-organizations-Ca-zpAlI.cjs.map +1 -0
- package/dist/{find-organizations-Cs1GvZtJ.js → find-organizations-HUZFa8ZA.js} +5 -4
- package/dist/find-organizations-HUZFa8ZA.js.map +1 -0
- package/dist/{find-projects-xM2L0U1W.cjs → find-projects-CWNLthwg.cjs} +7 -6
- package/dist/find-projects-CWNLthwg.cjs.map +1 -0
- package/dist/{find-projects-B0NdOjBO.js → find-projects-Dy1_O9L0.js} +5 -4
- package/dist/find-projects-Dy1_O9L0.js.map +1 -0
- package/dist/{find-releases-BBTYr5Bx.cjs → find-releases-BtazPcQH.cjs} +7 -6
- package/dist/find-releases-BtazPcQH.cjs.map +1 -0
- package/dist/{find-releases-BO2OF_uR.js → find-releases-DN_BfQM2.js} +5 -4
- package/dist/find-releases-DN_BfQM2.js.map +1 -0
- package/dist/{find-teams-CqUwp0EI.js → find-teams-CRVT4KOg.js} +5 -4
- package/dist/find-teams-CRVT4KOg.js.map +1 -0
- package/dist/{find-teams-B237Aq8U.cjs → find-teams-_zAHPVGx.cjs} +7 -6
- package/dist/find-teams-_zAHPVGx.cjs.map +1 -0
- package/dist/{formatters-DbqofIoy.cjs → formatters-Bzx0sr5R.cjs} +17 -4
- package/dist/formatters-Bzx0sr5R.cjs.map +1 -0
- package/dist/{formatters-CfeBjhXZ.cjs → formatters-CCZdBmLd.cjs} +38 -26
- package/dist/formatters-CCZdBmLd.cjs.map +1 -0
- package/dist/{formatters-B3ONbRhI.js → formatters-DJM9_F3A.js} +12 -5
- package/dist/formatters-DJM9_F3A.js.map +1 -0
- package/dist/{formatters-DSYXBiQx.js → formatters-DJSiRyVi.js} +33 -27
- package/dist/formatters-DJSiRyVi.js.map +1 -0
- package/dist/{formatting-DIvCVunN.js → formatting-BjCK9XwW.js} +56 -12
- package/dist/formatting-BjCK9XwW.js.map +1 -0
- package/dist/{formatting-utils-DDz14xeB.cjs → formatting-CJKoPqjy.cjs} +2 -2
- package/dist/formatting-CJKoPqjy.cjs.map +1 -0
- package/dist/{formatting-utils-C3sej5ER.js → formatting-CfpTtZLo.js} +2 -2
- package/dist/formatting-CfpTtZLo.js.map +1 -0
- package/dist/{formatting-C180PVwd.cjs → formatting-CqmsvuAY.cjs} +57 -13
- package/dist/formatting-CqmsvuAY.cjs.map +1 -0
- package/dist/{formatting-BxyhA4G3.d.cts → formatting-XMmhMjRz.d.cts} +4 -4
- package/dist/formatting-XMmhMjRz.d.cts.map +1 -0
- package/dist/{formatting-C80LN9iK.d.ts → formatting-l3qx5d7L.d.ts} +4 -4
- package/dist/formatting-l3qx5d7L.d.ts.map +1 -0
- package/dist/{get-doc-BfMg0GIa.cjs → get-doc-Euz6NiM3.cjs} +7 -6
- package/dist/get-doc-Euz6NiM3.cjs.map +1 -0
- package/dist/{get-doc-DyqJe6TP.js → get-doc-JDwOkY2j.js} +5 -4
- package/dist/get-doc-JDwOkY2j.js.map +1 -0
- package/dist/{get-event-attachment-o0oH43Tv.cjs → get-event-attachment-DvpQ-dEP.cjs} +7 -6
- package/dist/get-event-attachment-DvpQ-dEP.cjs.map +1 -0
- package/dist/{get-event-attachment-B-ElqztF.js → get-event-attachment-pIJmUfFE.js} +5 -4
- package/dist/get-event-attachment-pIJmUfFE.js.map +1 -0
- package/dist/{get-issue-details-CzroF7HR.js → get-issue-details-B1PDMmMY.js} +40 -20
- package/dist/get-issue-details-B1PDMmMY.js.map +1 -0
- package/dist/{get-issue-details-CP_RyCpt.cjs → get-issue-details-BH75EnNk.cjs} +42 -22
- package/dist/get-issue-details-BH75EnNk.cjs.map +1 -0
- package/dist/get-trace-details-Bksygq21.cjs +308 -0
- package/dist/get-trace-details-Bksygq21.cjs.map +1 -0
- package/dist/get-trace-details-CaK0JMf4.js +302 -0
- package/dist/get-trace-details-CaK0JMf4.js.map +1 -0
- package/dist/{handler-aE_8mEm7.js → handler-BbqDy4DA.js} +39 -41
- package/dist/handler-BbqDy4DA.js.map +1 -0
- package/dist/{handler-O9fYgC9a.cjs → handler-C0zOOLbO.cjs} +42 -27
- package/dist/handler-C0zOOLbO.cjs.map +1 -0
- package/dist/{handler-BPPTAi7I.d.ts → handler-CcbbXK_f.d.ts} +4 -4
- package/dist/handler-CcbbXK_f.d.ts.map +1 -0
- package/dist/{handler-cUB6XcUV.d.ts → handler-Ct9Z_sTZ.d.ts} +4 -4
- package/dist/handler-Ct9Z_sTZ.d.ts.map +1 -0
- package/dist/{handler-BGhr9FJM.d.cts → handler-DSYbwPgv.d.cts} +4 -4
- package/dist/handler-DSYbwPgv.d.cts.map +1 -0
- package/dist/{handler-ykkULTZ-.js → handler-DyBdUYam.js} +40 -25
- package/dist/handler-DyBdUYam.js.map +1 -0
- package/dist/{handler-BZ3hKPb8.d.cts → handler-RV4XhU8F.d.cts} +4 -4
- package/dist/handler-RV4XhU8F.d.cts.map +1 -0
- package/dist/{handler-BH_OLIbD.cjs → handler-cy5oD28N.cjs} +41 -43
- package/dist/handler-cy5oD28N.cjs.map +1 -0
- package/dist/index.cjs +113 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +113 -96
- package/dist/index.js.map +1 -1
- package/dist/internal/agents/callEmbeddedAgent.cjs +3 -0
- package/dist/internal/agents/callEmbeddedAgent.d.cts +33 -0
- package/dist/internal/agents/callEmbeddedAgent.d.cts.map +1 -0
- package/dist/internal/agents/callEmbeddedAgent.d.ts +33 -0
- package/dist/internal/agents/callEmbeddedAgent.d.ts.map +1 -0
- package/dist/internal/agents/callEmbeddedAgent.js +3 -0
- package/dist/internal/agents/tools/dataset-fields.cjs +15 -0
- package/dist/{agent-tools/discover-dataset-fields.d.ts → internal/agents/tools/dataset-fields.d.cts} +18 -19
- package/dist/internal/agents/tools/dataset-fields.d.cts.map +1 -0
- package/dist/{agent-tools/discover-dataset-fields.d.cts → internal/agents/tools/dataset-fields.d.ts} +18 -19
- package/dist/internal/agents/tools/dataset-fields.d.ts.map +1 -0
- package/dist/internal/agents/tools/dataset-fields.js +12 -0
- package/dist/internal/agents/tools/otel-semantics.cjs +13 -0
- package/dist/internal/agents/tools/otel-semantics.d.cts +41 -0
- package/dist/internal/agents/tools/otel-semantics.d.cts.map +1 -0
- package/dist/internal/agents/tools/otel-semantics.d.ts +41 -0
- package/dist/internal/agents/tools/otel-semantics.d.ts.map +1 -0
- package/dist/internal/agents/tools/otel-semantics.js +12 -0
- package/dist/internal/agents/tools/utils.cjs +11 -0
- package/dist/internal/agents/tools/utils.d.cts +2 -0
- package/dist/internal/agents/tools/utils.d.ts +2 -0
- package/dist/internal/agents/tools/utils.js +11 -0
- package/dist/internal/agents/tools/whoami.cjs +13 -0
- package/dist/internal/agents/tools/whoami.d.cts +33 -0
- package/dist/internal/agents/tools/whoami.d.cts.map +1 -0
- package/dist/internal/agents/tools/whoami.d.ts +33 -0
- package/dist/internal/agents/tools/whoami.d.ts.map +1 -0
- package/dist/internal/agents/tools/whoami.js +12 -0
- package/dist/internal/error-handling.cjs +16 -0
- package/dist/internal/error-handling.d.cts +40 -0
- package/dist/internal/error-handling.d.cts.map +1 -0
- package/dist/internal/error-handling.d.ts +40 -0
- package/dist/internal/error-handling.d.ts.map +1 -0
- package/dist/internal/error-handling.js +11 -0
- package/dist/internal/fetch-utils.cjs +1 -1
- package/dist/internal/fetch-utils.d.cts +33 -2
- package/dist/internal/fetch-utils.d.cts.map +1 -0
- package/dist/internal/fetch-utils.d.ts +33 -2
- package/dist/internal/fetch-utils.d.ts.map +1 -0
- package/dist/internal/fetch-utils.js +1 -1
- package/dist/internal/formatting.cjs +2 -2
- package/dist/internal/formatting.d.cts +6 -5
- package/dist/internal/formatting.d.ts +6 -5
- package/dist/internal/formatting.js +2 -2
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.cts +1 -1
- package/dist/internal/issue-helpers.d.ts +1 -1
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/sentry-scrubbing.cjs +6 -0
- package/dist/internal/sentry-scrubbing.d.cts +28 -0
- package/dist/internal/sentry-scrubbing.d.cts.map +1 -0
- package/dist/internal/sentry-scrubbing.d.ts +28 -0
- package/dist/internal/sentry-scrubbing.d.ts.map +1 -0
- package/dist/internal/sentry-scrubbing.js +3 -0
- package/dist/internal/test-fixtures.d.cts +242 -152
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +104 -14
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/internal/tool-helpers/api.cjs +14 -0
- package/dist/{tools/utils/api-utils.d.cts → internal/tool-helpers/api.d.cts} +11 -10
- package/dist/internal/tool-helpers/api.d.cts.map +1 -0
- package/dist/{tools/utils/api-utils.d.ts → internal/tool-helpers/api.d.ts} +11 -10
- package/dist/internal/tool-helpers/api.d.ts.map +1 -0
- package/dist/internal/tool-helpers/api.js +12 -0
- package/dist/internal/tool-helpers/define.cjs +3 -0
- package/dist/internal/tool-helpers/define.d.cts +13 -0
- package/dist/internal/tool-helpers/define.d.cts.map +1 -0
- package/dist/internal/tool-helpers/define.d.ts +13 -0
- package/dist/internal/tool-helpers/define.d.ts.map +1 -0
- package/dist/internal/tool-helpers/define.js +3 -0
- package/dist/internal/tool-helpers/enhance-error.cjs +10 -0
- package/dist/internal/tool-helpers/enhance-error.d.cts +29 -0
- package/dist/internal/tool-helpers/enhance-error.d.cts.map +1 -0
- package/dist/internal/tool-helpers/enhance-error.d.ts +29 -0
- package/dist/internal/tool-helpers/enhance-error.d.ts.map +1 -0
- package/dist/internal/tool-helpers/enhance-error.js +10 -0
- package/dist/internal/tool-helpers/formatting.cjs +3 -0
- package/dist/internal/tool-helpers/formatting.d.cts +16 -0
- package/dist/internal/tool-helpers/formatting.d.cts.map +1 -0
- package/dist/internal/tool-helpers/formatting.d.ts +16 -0
- package/dist/internal/tool-helpers/formatting.d.ts.map +1 -0
- package/dist/internal/tool-helpers/formatting.js +3 -0
- package/dist/internal/tool-helpers/issue.cjs +8 -0
- package/dist/internal/tool-helpers/issue.d.cts +8 -0
- package/dist/internal/tool-helpers/issue.d.ts +8 -0
- package/dist/internal/tool-helpers/issue.js +7 -0
- package/dist/internal/tool-helpers/seer.cjs +11 -0
- package/dist/{tools/utils/seer-utils.d.cts → internal/tool-helpers/seer.d.cts} +8 -7
- package/dist/internal/tool-helpers/seer.d.cts.map +1 -0
- package/dist/{tools/utils/seer-utils.d.ts → internal/tool-helpers/seer.d.ts} +8 -7
- package/dist/internal/tool-helpers/seer.d.ts.map +1 -0
- package/dist/{tools/utils/seer-utils.js → internal/tool-helpers/seer.js} +1 -1
- package/dist/internal/tool-helpers/validate-region-url.cjs +5 -0
- package/dist/internal/tool-helpers/validate-region-url.d.cts +20 -0
- package/dist/internal/tool-helpers/validate-region-url.d.cts.map +1 -0
- package/dist/internal/tool-helpers/validate-region-url.d.ts +20 -0
- package/dist/internal/tool-helpers/validate-region-url.d.ts.map +1 -0
- package/dist/internal/tool-helpers/validate-region-url.js +5 -0
- package/dist/{issue-helpers-s5fKLwJZ.cjs → issue-helpers-1qxzc7ww.cjs} +1 -1
- package/dist/{issue-helpers-s5fKLwJZ.cjs.map → issue-helpers-1qxzc7ww.cjs.map} +1 -1
- package/dist/{issue-helpers-CRx45FYG.js → issue-helpers-Bjp6xu5H.js} +1 -1
- package/dist/{issue-helpers-CRx45FYG.js.map → issue-helpers-Bjp6xu5H.js.map} +1 -1
- package/dist/{issue-helpers-Cz01Ipvl.d.cts → issue-helpers-Cf6mvHG1.d.cts} +1 -1
- package/dist/{issue-helpers-Cz01Ipvl.d.cts.map → issue-helpers-Cf6mvHG1.d.cts.map} +1 -1
- package/dist/{issue-helpers-D1_Uqr-F.d.ts → issue-helpers-kwhe1ipy.d.ts} +1 -1
- package/dist/{issue-helpers-D1_Uqr-F.d.ts.map → issue-helpers-kwhe1ipy.d.ts.map} +1 -1
- package/dist/{logging-tGU_SYcA.js → logging-CBMxr4i2.js} +1 -1
- package/dist/{logging-tGU_SYcA.js.map → logging-CBMxr4i2.js.map} +1 -1
- package/dist/{logging-BpL53bY6.cjs → logging-rvUPDKax.cjs} +1 -1
- package/dist/{logging-BpL53bY6.cjs.map → logging-rvUPDKax.cjs.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/{lookup-otel-semantics-Dt667kdR.js → otel-semantics-BFRGhf6y.js} +88 -94
- package/dist/otel-semantics-BFRGhf6y.js.map +1 -0
- package/dist/{lookup-otel-semantics-BbriXZAx.cjs → otel-semantics-CkUpXWEJ.cjs} +88 -94
- package/dist/otel-semantics-CkUpXWEJ.cjs.map +1 -0
- package/dist/parse-C3tRlsy-.js +89 -0
- package/dist/parse-C3tRlsy-.js.map +1 -0
- package/dist/parse-CeFc4xnt.cjs +107 -0
- package/dist/parse-CeFc4xnt.cjs.map +1 -0
- package/dist/permissions-C-q0Y5bL.d.ts +79 -0
- package/dist/permissions-C-q0Y5bL.d.ts.map +1 -0
- package/dist/permissions-Cm5e34n2.d.cts +79 -0
- package/dist/permissions-Cm5e34n2.d.cts.map +1 -0
- package/dist/permissions-DRdH39Fe.js +155 -0
- package/dist/permissions-DRdH39Fe.js.map +1 -0
- package/dist/permissions-DuDYuCjy.cjs +209 -0
- package/dist/permissions-DuDYuCjy.cjs.map +1 -0
- package/dist/permissions.cjs +11 -0
- package/dist/permissions.d.cts +2 -0
- package/dist/permissions.d.ts +2 -0
- package/dist/permissions.js +3 -0
- package/dist/{promptDefinitions-5V4-M69A.cjs → promptDefinitions-02aQWFKD.cjs} +2 -2
- package/dist/{promptDefinitions-5V4-M69A.cjs.map → promptDefinitions-02aQWFKD.cjs.map} +1 -1
- package/dist/{promptDefinitions-DehpwJfn.d.ts → promptDefinitions-ImFNiWkX.d.cts} +3 -3
- package/dist/promptDefinitions-ImFNiWkX.d.cts.map +1 -0
- package/dist/{promptDefinitions-CVHtYaj8.d.cts → promptDefinitions-Y-mt2_IM.d.ts} +3 -3
- package/dist/promptDefinitions-Y-mt2_IM.d.ts.map +1 -0
- package/dist/{promptDefinitions-DyshsF51.js → promptDefinitions-wR6u6ZJE.js} +2 -2
- package/dist/{promptDefinitions-DyshsF51.js.map → promptDefinitions-wR6u6ZJE.js.map} +1 -1
- package/dist/promptDefinitions.cjs +4 -3
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +4 -3
- package/dist/{prompts-BTtNbKQR.cjs → prompts-BwZJaywH.cjs} +1 -1
- package/dist/{prompts-BTtNbKQR.cjs.map → prompts-BwZJaywH.cjs.map} +1 -1
- package/dist/{prompts-CYcvIxWR.js → prompts-DCJ0XraB.js} +1 -1
- package/dist/{prompts-CYcvIxWR.js.map → prompts-DCJ0XraB.js.map} +1 -1
- package/dist/prompts.cjs +1 -1
- package/dist/prompts.d.cts +3 -2
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +3 -2
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +1 -1
- package/dist/resolve-B_Fq13Dk.js +52 -0
- package/dist/resolve-B_Fq13Dk.js.map +1 -0
- package/dist/resolve-CAtC1wN-.cjs +63 -0
- package/dist/resolve-CAtC1wN-.cjs.map +1 -0
- package/dist/resources/about.cjs +3 -0
- package/dist/resources/about.d.cts +2 -0
- package/dist/resources/about.d.ts +2 -0
- package/dist/resources/about.js +3 -0
- package/dist/resources/index.cjs +4 -0
- package/dist/resources/index.d.cts +2 -0
- package/dist/resources/index.d.ts +2 -0
- package/dist/resources/index.js +4 -0
- package/dist/resources-B4ropjfD.cjs +94 -0
- package/dist/resources-B4ropjfD.cjs.map +1 -0
- package/dist/resources-DaEUMw3Y.js +82 -0
- package/dist/resources-DaEUMw3Y.js.map +1 -0
- package/dist/resources.cjs +6 -4
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +4 -2
- package/dist/{schema-DPL_hZXP.cjs → schema-BUBkkdUa.cjs} +14 -6
- package/dist/schema-BUBkkdUa.cjs.map +1 -0
- package/dist/{schema-C0LznFvu.cjs → schema-CbXlt1rW.cjs} +105 -3
- package/dist/schema-CbXlt1rW.cjs.map +1 -0
- package/dist/{schema-CdDcpvrp.d.cts → schema-ChvpDxUk.d.cts} +733 -486
- package/dist/{schema-CdDcpvrp.d.cts.map → schema-ChvpDxUk.d.cts.map} +1 -1
- package/dist/{schema-CcFmBoEf.js → schema-D1CzTJXB.js} +82 -4
- package/dist/schema-D1CzTJXB.js.map +1 -0
- package/dist/{schema-BlkWypl3.d.ts → schema-DOY22v1Q.d.ts} +509 -262
- package/dist/{schema-BlkWypl3.d.ts.map → schema-DOY22v1Q.d.ts.map} +1 -1
- package/dist/{schema-Bv2fvxgy.js → schema-DPJO5nkQ.js} +9 -7
- package/dist/schema-DPJO5nkQ.js.map +1 -0
- package/dist/schema.cjs +4 -2
- package/dist/schema.d.cts +7 -5
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +7 -5
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +4 -3
- package/dist/{search-docs-CjIZDaD1.cjs → search-docs-CH6-1H9_.cjs} +8 -7
- package/dist/search-docs-CH6-1H9_.cjs.map +1 -0
- package/dist/{search-docs-ss09Dt0F.js → search-docs-CpAlMLs8.js} +6 -5
- package/dist/search-docs-CpAlMLs8.js.map +1 -0
- package/dist/{seer-utils-NPHv8KYY.js → seer-DLvrFQPo.js} +2 -2
- package/dist/seer-DLvrFQPo.js.map +1 -0
- package/dist/{seer-utils-C7Kv0gr8.cjs → seer-retC9dFI.cjs} +2 -2
- package/dist/seer-retC9dFI.cjs.map +1 -0
- package/dist/sentry-scrubbing-BrjExjlM.js +94 -0
- package/dist/sentry-scrubbing-BrjExjlM.js.map +1 -0
- package/dist/sentry-scrubbing-CDcE4n-D.cjs +118 -0
- package/dist/sentry-scrubbing-CDcE4n-D.cjs.map +1 -0
- package/dist/{server-D78x_7Vz.js → server-BjizUxVR.js} +76 -129
- package/dist/server-BjizUxVR.js.map +1 -0
- package/dist/{server-DYFiTMLB.cjs → server-RKq8MlNM.cjs} +76 -129
- package/dist/server-RKq8MlNM.cjs.map +1 -0
- package/dist/server.cjs +63 -53
- package/dist/server.d.cts +3 -2
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +3 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +63 -53
- package/dist/slug-validation-58wajHeL.js +93 -0
- package/dist/slug-validation-58wajHeL.js.map +1 -0
- package/dist/slug-validation-DMk8Dyuh.cjs +111 -0
- package/dist/slug-validation-DMk8Dyuh.cjs.map +1 -0
- package/dist/{stdio-Be01KQkA.cjs → stdio-CJnMOUAU.cjs} +3 -3
- package/dist/{stdio-Be01KQkA.cjs.map → stdio-CJnMOUAU.cjs.map} +1 -1
- package/dist/{stdio-CDb2NHHD.js → stdio-DB9muOi8.js} +3 -3
- package/dist/{stdio-CDb2NHHD.js.map → stdio-DB9muOi8.js.map} +1 -1
- package/dist/test-setup.cjs +33622 -1524
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.d.cts +33 -1
- package/dist/test-setup.d.cts.map +1 -0
- package/dist/test-setup.d.ts +33 -1
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/test-setup.js +33632 -1534
- package/dist/test-setup.js.map +1 -1
- package/dist/test-utils/context.cjs +32 -0
- package/dist/test-utils/context.cjs.map +1 -0
- package/dist/test-utils/context.d.cts +18 -0
- package/dist/test-utils/context.d.cts.map +1 -0
- package/dist/test-utils/context.d.ts +18 -0
- package/dist/test-utils/context.d.ts.map +1 -0
- package/dist/test-utils/context.js +30 -0
- package/dist/test-utils/context.js.map +1 -0
- package/dist/toolDefinitions.cjs +9 -0
- package/dist/toolDefinitions.cjs.map +1 -1
- package/dist/toolDefinitions.js +9 -0
- package/dist/toolDefinitions.js.map +1 -1
- package/dist/tools/analyze-issue-with-seer.cjs +18 -15
- package/dist/tools/analyze-issue-with-seer.d.cts +5 -4
- package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -1
- package/dist/tools/analyze-issue-with-seer.d.ts +5 -4
- package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -1
- package/dist/tools/analyze-issue-with-seer.js +18 -15
- package/dist/tools/create-dsn.cjs +13 -10
- package/dist/tools/create-dsn.d.cts +6 -5
- package/dist/tools/create-dsn.d.cts.map +1 -1
- package/dist/tools/create-dsn.d.ts +6 -5
- package/dist/tools/create-dsn.d.ts.map +1 -1
- package/dist/tools/create-dsn.js +13 -10
- package/dist/tools/create-project.cjs +14 -11
- package/dist/tools/create-project.d.cts +6 -5
- package/dist/tools/create-project.d.cts.map +1 -1
- package/dist/tools/create-project.d.ts +6 -5
- package/dist/tools/create-project.d.ts.map +1 -1
- package/dist/tools/create-project.js +14 -11
- package/dist/tools/create-team.cjs +13 -10
- package/dist/tools/create-team.d.cts +5 -4
- package/dist/tools/create-team.d.cts.map +1 -1
- package/dist/tools/create-team.d.ts +5 -4
- package/dist/tools/create-team.d.ts.map +1 -1
- package/dist/tools/create-team.js +13 -10
- package/dist/tools/find-dsns.cjs +13 -10
- package/dist/tools/find-dsns.d.cts +8 -7
- package/dist/tools/find-dsns.d.cts.map +1 -1
- package/dist/tools/find-dsns.d.ts +8 -7
- package/dist/tools/find-dsns.d.ts.map +1 -1
- package/dist/tools/find-dsns.js +13 -10
- package/dist/tools/find-organizations.cjs +11 -8
- package/dist/tools/find-organizations.d.cts +4 -3
- package/dist/tools/find-organizations.d.ts +4 -3
- package/dist/tools/find-organizations.js +11 -8
- package/dist/tools/find-projects.cjs +13 -10
- package/dist/tools/find-projects.d.cts +7 -6
- package/dist/tools/find-projects.d.cts.map +1 -1
- package/dist/tools/find-projects.d.ts +7 -6
- package/dist/tools/find-projects.d.ts.map +1 -1
- package/dist/tools/find-projects.js +13 -10
- package/dist/tools/find-releases.cjs +13 -10
- package/dist/tools/find-releases.d.cts +6 -5
- package/dist/tools/find-releases.d.cts.map +1 -1
- package/dist/tools/find-releases.d.ts +6 -5
- package/dist/tools/find-releases.d.ts.map +1 -1
- package/dist/tools/find-releases.js +13 -10
- package/dist/tools/find-teams.cjs +13 -10
- package/dist/tools/find-teams.d.cts +7 -6
- package/dist/tools/find-teams.d.cts.map +1 -1
- package/dist/tools/find-teams.d.ts +7 -6
- package/dist/tools/find-teams.d.ts.map +1 -1
- package/dist/tools/find-teams.js +13 -10
- package/dist/tools/get-doc.cjs +9 -9
- package/dist/tools/get-doc.d.cts +4 -3
- package/dist/tools/get-doc.d.cts.map +1 -1
- package/dist/tools/get-doc.d.ts +4 -3
- package/dist/tools/get-doc.d.ts.map +1 -1
- package/dist/tools/get-doc.js +9 -9
- package/dist/tools/get-event-attachment.cjs +13 -10
- package/dist/tools/get-event-attachment.d.cts +10 -9
- package/dist/tools/get-event-attachment.d.cts.map +1 -1
- package/dist/tools/get-event-attachment.d.ts +10 -9
- package/dist/tools/get-event-attachment.d.ts.map +1 -1
- package/dist/tools/get-event-attachment.js +13 -10
- package/dist/tools/get-issue-details.cjs +18 -14
- package/dist/tools/get-issue-details.d.cts +5 -4
- package/dist/tools/get-issue-details.d.cts.map +1 -1
- package/dist/tools/get-issue-details.d.ts +5 -4
- package/dist/tools/get-issue-details.d.ts.map +1 -1
- package/dist/tools/get-issue-details.js +18 -14
- package/dist/tools/get-trace-details.cjs +16 -0
- package/dist/tools/get-trace-details.d.cts +15 -0
- package/dist/tools/get-trace-details.d.cts.map +1 -0
- package/dist/tools/get-trace-details.d.ts +15 -0
- package/dist/tools/get-trace-details.d.ts.map +1 -0
- package/dist/tools/get-trace-details.js +16 -0
- package/dist/tools/index.cjs +54 -48
- package/dist/tools/index.d.cts +77 -71
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +77 -71
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +54 -48
- package/dist/tools/search-docs.cjs +12 -11
- package/dist/tools/search-docs.d.cts +4 -3
- package/dist/tools/search-docs.d.cts.map +1 -1
- package/dist/tools/search-docs.d.ts +4 -3
- package/dist/tools/search-docs.d.ts.map +1 -1
- package/dist/tools/search-docs.js +12 -11
- package/dist/tools/search-events/agent.cjs +15 -6
- package/dist/tools/search-events/agent.d.cts +7 -43
- package/dist/tools/search-events/agent.d.ts +7 -43
- package/dist/tools/search-events/agent.js +15 -6
- package/dist/tools/search-events/config.cjs +3 -2
- package/dist/tools/search-events/config.d.cts +2 -1
- package/dist/tools/search-events/config.d.cts.map +1 -1
- package/dist/tools/search-events/config.d.ts +2 -1
- package/dist/tools/search-events/config.d.ts.map +1 -1
- package/dist/tools/search-events/config.js +2 -2
- package/dist/tools/search-events/formatters.cjs +11 -3
- package/dist/tools/search-events/formatters.d.cts +28 -17
- package/dist/tools/search-events/formatters.d.cts.map +1 -1
- package/dist/tools/search-events/formatters.d.ts +28 -17
- package/dist/tools/search-events/formatters.d.ts.map +1 -1
- package/dist/tools/search-events/formatters.js +11 -4
- package/dist/tools/search-events/handler.cjs +22 -17
- package/dist/tools/search-events/handler.d.cts +5 -4
- package/dist/tools/search-events/handler.d.ts +5 -4
- package/dist/tools/search-events/handler.js +22 -17
- package/dist/tools/search-events/index.cjs +26 -19
- package/dist/tools/search-events/index.d.cts +12 -5
- package/dist/tools/search-events/index.d.ts +12 -5
- package/dist/tools/search-events/index.js +24 -19
- package/dist/tools/search-events/utils.cjs +14 -7
- package/dist/tools/search-events/utils.d.cts +7 -5
- package/dist/tools/search-events/utils.d.ts +7 -5
- package/dist/tools/search-events/utils.js +9 -2
- package/dist/tools/search-issues/agent.cjs +14 -5
- package/dist/tools/search-issues/agent.d.cts +7 -33
- package/dist/tools/search-issues/agent.d.ts +7 -33
- package/dist/tools/search-issues/agent.js +14 -5
- package/dist/tools/search-issues/config.cjs +1 -1
- package/dist/tools/search-issues/config.d.cts +1 -1
- package/dist/tools/search-issues/config.d.ts +1 -1
- package/dist/tools/search-issues/config.js +1 -1
- package/dist/tools/search-issues/formatters.cjs +3 -2
- package/dist/tools/search-issues/formatters.d.cts +20 -7
- package/dist/tools/search-issues/formatters.d.cts.map +1 -1
- package/dist/tools/search-issues/formatters.d.ts +20 -7
- package/dist/tools/search-issues/formatters.d.ts.map +1 -1
- package/dist/tools/search-issues/formatters.js +3 -3
- package/dist/tools/search-issues/handler.cjs +21 -15
- package/dist/tools/search-issues/handler.d.cts +5 -4
- package/dist/tools/search-issues/handler.d.ts +5 -4
- package/dist/tools/search-issues/handler.js +21 -15
- package/dist/tools/search-issues/index.cjs +25 -17
- package/dist/tools/search-issues/index.d.cts +12 -5
- package/dist/tools/search-issues/index.d.ts +12 -5
- package/dist/tools/search-issues/index.js +23 -17
- package/dist/tools/types.d.cts +4 -3
- package/dist/tools/types.d.ts +4 -3
- package/dist/tools/update-issue.cjs +18 -15
- package/dist/tools/update-issue.d.cts +11 -10
- package/dist/tools/update-issue.d.cts.map +1 -1
- package/dist/tools/update-issue.d.ts +11 -10
- package/dist/tools/update-issue.d.ts.map +1 -1
- package/dist/tools/update-issue.js +18 -15
- package/dist/tools/update-project.cjs +14 -11
- package/dist/tools/update-project.d.cts +7 -6
- package/dist/tools/update-project.d.cts.map +1 -1
- package/dist/tools/update-project.d.ts +7 -6
- package/dist/tools/update-project.d.ts.map +1 -1
- package/dist/tools/update-project.js +14 -11
- package/dist/tools/whoami.cjs +11 -8
- package/dist/tools/whoami.d.cts +4 -3
- package/dist/tools/whoami.d.ts +4 -3
- package/dist/tools/whoami.js +11 -8
- package/dist/tools-BiCRxQiY.js +46 -0
- package/dist/tools-BiCRxQiY.js.map +1 -0
- package/dist/{tools-sQ2wM3Pi.cjs → tools-UZ_biJKC.cjs} +21 -19
- package/dist/tools-UZ_biJKC.cjs.map +1 -0
- package/dist/transports/stdio.cjs +64 -54
- package/dist/transports/stdio.d.cts +3 -2
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +3 -2
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +64 -54
- package/dist/{types-B-8S69No.d.ts → types-B4nOfch5.d.cts} +7 -3
- package/dist/{types-BYtO24VE.d.cts.map → types-B4nOfch5.d.cts.map} +1 -1
- package/dist/types-CKPddlfS.cjs +0 -0
- package/dist/types-Cy4S5lN-.js +0 -0
- package/dist/types-DLRWzl3K.d.cts +55 -0
- package/dist/types-DLRWzl3K.d.cts.map +1 -0
- package/dist/types-DTp1ajTT.d.ts +55 -0
- package/dist/types-DTp1ajTT.d.ts.map +1 -0
- package/dist/{types-BV-G5sBp.d.cts → types-Dj36Sq2V.d.cts} +14 -4
- package/dist/types-Dj36Sq2V.d.cts.map +1 -0
- package/dist/{types-C1Fih0eQ.d.ts → types-m-t7jx2f.d.ts} +14 -4
- package/dist/{types-BV-G5sBp.d.cts.map → types-m-t7jx2f.d.ts.map} +1 -1
- package/dist/{types-aOEJ0KgQ.d.cts → types-o23QqDgk.d.cts} +4 -2
- package/dist/types-o23QqDgk.d.cts.map +1 -0
- package/dist/{types-BYtO24VE.d.cts → types-ryM3umix.d.ts} +7 -3
- package/dist/{types-B-8S69No.d.ts.map → types-ryM3umix.d.ts.map} +1 -1
- package/dist/{types-BOcoP3Na.d.ts → types-s3ChfOM9.d.ts} +4 -2
- package/dist/types-s3ChfOM9.d.ts.map +1 -0
- package/dist/types.d.cts +4 -3
- package/dist/types.d.ts +4 -3
- package/dist/{update-issue-D77PudUi.cjs → update-issue-CD-kp2dt.cjs} +13 -18
- package/dist/update-issue-CD-kp2dt.cjs.map +1 -0
- package/dist/{update-issue-ndy2PF5G.js → update-issue-nq8D_YUe.js} +9 -14
- package/dist/update-issue-nq8D_YUe.js.map +1 -0
- package/dist/{update-project-DqECtbDA.cjs → update-project-B_OLM4Ky.cjs} +8 -7
- package/dist/{update-project-DqECtbDA.cjs.map → update-project-B_OLM4Ky.cjs.map} +1 -1
- package/dist/{update-project-Bxsi-BG_.js → update-project-DvJfmSmX.js} +6 -5
- package/dist/{update-project-Bxsi-BG_.js.map → update-project-DvJfmSmX.js.map} +1 -1
- package/dist/{url-utils-vJo2ER5v.cjs → url-utils-0OheI87i.cjs} +13 -9
- package/dist/url-utils-0OheI87i.cjs.map +1 -0
- package/dist/{url-utils-IqgSmI-B.js → url-utils-DF8NBCyH.js} +13 -9
- package/dist/url-utils-DF8NBCyH.js.map +1 -0
- package/dist/usage-Do2a2NJi.cjs +44 -0
- package/dist/usage-Do2a2NJi.cjs.map +1 -0
- package/dist/usage-OGOjVeAz.js +38 -0
- package/dist/usage-OGOjVeAz.js.map +1 -0
- package/dist/utils/slug-validation.cjs +5 -0
- package/dist/utils/slug-validation.d.cts +51 -0
- package/dist/utils/slug-validation.d.cts.map +1 -0
- package/dist/utils/slug-validation.d.ts +51 -0
- package/dist/utils/slug-validation.d.ts.map +1 -0
- package/dist/utils/slug-validation.js +3 -0
- package/dist/utils/url-utils.cjs +1 -1
- package/dist/utils/url-utils.d.cts +5 -5
- package/dist/utils/url-utils.d.cts.map +1 -1
- package/dist/utils/url-utils.d.ts +5 -5
- package/dist/utils/url-utils.d.ts.map +1 -1
- package/dist/utils/url-utils.js +1 -1
- package/dist/utils-BOPpU4-H.cjs +87 -0
- package/dist/utils-BOPpU4-H.cjs.map +1 -0
- package/dist/utils-CP4vAzfv.js +94 -0
- package/dist/utils-CP4vAzfv.js.map +1 -0
- package/dist/utils-Cw6O1ztc.d.ts +43 -0
- package/dist/utils-Cw6O1ztc.d.ts.map +1 -0
- package/dist/{utils-CtBGHj_N.d.cts → utils-DA-V9B-n.d.ts} +16 -12
- package/dist/utils-DA-V9B-n.d.ts.map +1 -0
- package/dist/{utils-CqbeJfE1.cjs → utils-DQ69VZrK.cjs} +39 -53
- package/dist/utils-DQ69VZrK.cjs.map +1 -0
- package/dist/{utils-BwXbSgEI.d.ts → utils-Ddvt3CBZ.d.cts} +16 -12
- package/dist/utils-Ddvt3CBZ.d.cts.map +1 -0
- package/dist/utils-K1XhlGf4.js +81 -0
- package/dist/utils-K1XhlGf4.js.map +1 -0
- package/dist/utils-OyJ8CB2S.d.cts +43 -0
- package/dist/utils-OyJ8CB2S.d.cts.map +1 -0
- package/dist/validate-region-url-BhxxcBgE.cjs +42 -0
- package/dist/validate-region-url-BhxxcBgE.cjs.map +1 -0
- package/dist/validate-region-url-DTUtqFky.js +37 -0
- package/dist/validate-region-url-DTUtqFky.js.map +1 -0
- package/dist/version-CaDh5TML.js +6 -0
- package/dist/{version-Bj68uyCt.js.map → version-CaDh5TML.js.map} +1 -1
- package/dist/{version-CMS1IOUV.cjs → version-DB2IM9qM.cjs} +2 -2
- package/dist/{version-CMS1IOUV.cjs.map → version-DB2IM9qM.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/whoami-BdiVu0Wr.cjs +38 -0
- package/dist/whoami-BdiVu0Wr.cjs.map +1 -0
- package/dist/{whoami-CoZJKpys.cjs → whoami-DCgOyVnW.cjs} +7 -5
- package/dist/whoami-DCgOyVnW.cjs.map +1 -0
- package/dist/{whoami-xBAWvzG4.js → whoami-bRIfclYF.js} +7 -5
- package/dist/whoami-bRIfclYF.js.map +1 -0
- package/dist/whoami-qCGsRPRm.js +33 -0
- package/dist/whoami-qCGsRPRm.js.map +1 -0
- package/package.json +34 -9
- package/dist/agent-COgY789I.js +0 -225
- package/dist/agent-COgY789I.js.map +0 -1
- package/dist/agent-Cody_f0d.cjs +0 -59
- package/dist/agent-Cody_f0d.cjs.map +0 -1
- package/dist/agent-DZRRChrO.js +0 -53
- package/dist/agent-DZRRChrO.js.map +0 -1
- package/dist/agent-DpCCnhh5.cjs +0 -231
- package/dist/agent-DpCCnhh5.cjs.map +0 -1
- package/dist/agent-tools/discover-dataset-fields.cjs +0 -6
- package/dist/agent-tools/discover-dataset-fields.d.cts.map +0 -1
- package/dist/agent-tools/discover-dataset-fields.d.ts.map +0 -1
- package/dist/agent-tools/discover-dataset-fields.js +0 -3
- package/dist/agent-tools/lookup-otel-semantics.cjs +0 -5
- package/dist/agent-tools/lookup-otel-semantics.d.cts +0 -38
- package/dist/agent-tools/lookup-otel-semantics.d.cts.map +0 -1
- package/dist/agent-tools/lookup-otel-semantics.d.ts +0 -38
- package/dist/agent-tools/lookup-otel-semantics.d.ts.map +0 -1
- package/dist/agent-tools/lookup-otel-semantics.js +0 -4
- package/dist/agent-tools/whoami.cjs +0 -4
- package/dist/agent-tools/whoami.d.cts +0 -28
- package/dist/agent-tools/whoami.d.cts.map +0 -1
- package/dist/agent-tools/whoami.d.ts +0 -28
- package/dist/agent-tools/whoami.d.ts.map +0 -1
- package/dist/agent-tools/whoami.js +0 -3
- package/dist/analyze-issue-with-seer-DcSwrWrs.js.map +0 -1
- package/dist/analyze-issue-with-seer-Dw9iqvSk.cjs.map +0 -1
- package/dist/api-utils-BlUSO8xh.js.map +0 -1
- package/dist/api-utils-DFWUfQ83.cjs.map +0 -1
- package/dist/client-CPrEfAwa.cjs.map +0 -1
- package/dist/client-C_dDreKj.d.ts.map +0 -1
- package/dist/client-CgS3tjJG.d.cts.map +0 -1
- package/dist/client-MaVV1gVC.js.map +0 -1
- package/dist/config-BUmDxVLS.js +0 -52
- package/dist/config-BUmDxVLS.js.map +0 -1
- package/dist/config-BvtWiL3I.js.map +0 -1
- package/dist/config-CD-5FpOO.cjs.map +0 -1
- package/dist/config-FWsgDbm7.cjs +0 -58
- package/dist/config-FWsgDbm7.cjs.map +0 -1
- package/dist/constants-ClkMK29-.cjs.map +0 -1
- package/dist/constants-S7AU45oQ.js.map +0 -1
- package/dist/create-project-Cax3fWey.js.map +0 -1
- package/dist/create-project-DdSF58TR.cjs.map +0 -1
- package/dist/create-team-CXaLcylp.cjs.map +0 -1
- package/dist/create-team-nm06goO5.js.map +0 -1
- package/dist/defineTool-77H4nSna.js +0 -8
- package/dist/defineTool-77H4nSna.js.map +0 -1
- package/dist/defineTool-lWNTzWl_.cjs.map +0 -1
- package/dist/discover-dataset-fields-BEnyqPSq.js.map +0 -1
- package/dist/discover-dataset-fields-Cl7HpVkm.cjs.map +0 -1
- package/dist/errors.d.cts.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/fetch-utils-CTLoW1R8.d.cts +0 -33
- package/dist/fetch-utils-CTLoW1R8.d.cts.map +0 -1
- package/dist/fetch-utils-JDZw4XaU.d.ts +0 -33
- package/dist/fetch-utils-JDZw4XaU.d.ts.map +0 -1
- package/dist/find-dsns-C3G5aBm1.js.map +0 -1
- package/dist/find-dsns-vQolGM7e.cjs.map +0 -1
- package/dist/find-organizations-BDtHkcFV.cjs.map +0 -1
- package/dist/find-organizations-Cs1GvZtJ.js.map +0 -1
- package/dist/find-projects-B0NdOjBO.js.map +0 -1
- package/dist/find-projects-xM2L0U1W.cjs.map +0 -1
- package/dist/find-releases-BBTYr5Bx.cjs.map +0 -1
- package/dist/find-releases-BO2OF_uR.js.map +0 -1
- package/dist/find-teams-B237Aq8U.cjs.map +0 -1
- package/dist/find-teams-CqUwp0EI.js.map +0 -1
- package/dist/formatters-B3ONbRhI.js.map +0 -1
- package/dist/formatters-CfeBjhXZ.cjs.map +0 -1
- package/dist/formatters-DSYXBiQx.js.map +0 -1
- package/dist/formatters-DbqofIoy.cjs.map +0 -1
- package/dist/formatting-BxyhA4G3.d.cts.map +0 -1
- package/dist/formatting-C180PVwd.cjs.map +0 -1
- package/dist/formatting-C80LN9iK.d.ts.map +0 -1
- package/dist/formatting-DIvCVunN.js.map +0 -1
- package/dist/formatting-utils-C3sej5ER.js.map +0 -1
- package/dist/formatting-utils-DDz14xeB.cjs.map +0 -1
- package/dist/get-doc-BfMg0GIa.cjs.map +0 -1
- package/dist/get-doc-DyqJe6TP.js.map +0 -1
- package/dist/get-event-attachment-B-ElqztF.js.map +0 -1
- package/dist/get-event-attachment-o0oH43Tv.cjs.map +0 -1
- package/dist/get-issue-details-CP_RyCpt.cjs.map +0 -1
- package/dist/get-issue-details-CzroF7HR.js.map +0 -1
- package/dist/handler-BGhr9FJM.d.cts.map +0 -1
- package/dist/handler-BH_OLIbD.cjs.map +0 -1
- package/dist/handler-BPPTAi7I.d.ts.map +0 -1
- package/dist/handler-BZ3hKPb8.d.cts.map +0 -1
- package/dist/handler-O9fYgC9a.cjs.map +0 -1
- package/dist/handler-aE_8mEm7.js.map +0 -1
- package/dist/handler-cUB6XcUV.d.ts.map +0 -1
- package/dist/handler-ykkULTZ-.js.map +0 -1
- package/dist/lookup-otel-semantics-BbriXZAx.cjs.map +0 -1
- package/dist/lookup-otel-semantics-Dt667kdR.js.map +0 -1
- package/dist/promptDefinitions-CVHtYaj8.d.cts.map +0 -1
- package/dist/promptDefinitions-DehpwJfn.d.ts.map +0 -1
- package/dist/resources-CSxBC9gs.js +0 -60
- package/dist/resources-CSxBC9gs.js.map +0 -1
- package/dist/resources-TCvijqOA.cjs +0 -72
- package/dist/resources-TCvijqOA.cjs.map +0 -1
- package/dist/schema-Bv2fvxgy.js.map +0 -1
- package/dist/schema-C0LznFvu.cjs.map +0 -1
- package/dist/schema-CcFmBoEf.js.map +0 -1
- package/dist/schema-DPL_hZXP.cjs.map +0 -1
- package/dist/search-docs-CjIZDaD1.cjs.map +0 -1
- package/dist/search-docs-ss09Dt0F.js.map +0 -1
- package/dist/seer-utils-C7Kv0gr8.cjs.map +0 -1
- package/dist/seer-utils-NPHv8KYY.js.map +0 -1
- package/dist/server-D78x_7Vz.js.map +0 -1
- package/dist/server-DYFiTMLB.cjs.map +0 -1
- package/dist/tools/search-events/agent.d.cts.map +0 -1
- package/dist/tools/search-events/agent.d.ts.map +0 -1
- package/dist/tools/search-issues/agent.d.cts.map +0 -1
- package/dist/tools/search-issues/agent.d.ts.map +0 -1
- package/dist/tools/utils/api-utils.cjs +0 -11
- package/dist/tools/utils/api-utils.d.cts.map +0 -1
- package/dist/tools/utils/api-utils.d.ts.map +0 -1
- package/dist/tools/utils/api-utils.js +0 -9
- package/dist/tools/utils/defineTool.cjs +0 -3
- package/dist/tools/utils/defineTool.d.cts +0 -12
- package/dist/tools/utils/defineTool.d.cts.map +0 -1
- package/dist/tools/utils/defineTool.d.ts +0 -12
- package/dist/tools/utils/defineTool.d.ts.map +0 -1
- package/dist/tools/utils/defineTool.js +0 -3
- package/dist/tools/utils/fetch-utils.cjs +0 -5
- package/dist/tools/utils/fetch-utils.d.cts +0 -2
- package/dist/tools/utils/fetch-utils.d.ts +0 -2
- package/dist/tools/utils/fetch-utils.js +0 -4
- package/dist/tools/utils/formatting-utils.cjs +0 -3
- package/dist/tools/utils/formatting-utils.d.cts +0 -15
- package/dist/tools/utils/formatting-utils.d.cts.map +0 -1
- package/dist/tools/utils/formatting-utils.d.ts +0 -15
- package/dist/tools/utils/formatting-utils.d.ts.map +0 -1
- package/dist/tools/utils/formatting-utils.js +0 -3
- package/dist/tools/utils/issue-utils.cjs +0 -8
- package/dist/tools/utils/issue-utils.d.cts +0 -7
- package/dist/tools/utils/issue-utils.d.ts +0 -7
- package/dist/tools/utils/issue-utils.js +0 -7
- package/dist/tools/utils/seer-utils.cjs +0 -11
- package/dist/tools/utils/seer-utils.d.cts.map +0 -1
- package/dist/tools/utils/seer-utils.d.ts.map +0 -1
- package/dist/tools-DvKm5uMs.js +0 -44
- package/dist/tools-DvKm5uMs.js.map +0 -1
- package/dist/tools-sQ2wM3Pi.cjs.map +0 -1
- package/dist/types-BOcoP3Na.d.ts.map +0 -1
- package/dist/types-C1Fih0eQ.d.ts.map +0 -1
- package/dist/types-aOEJ0KgQ.d.cts.map +0 -1
- package/dist/update-issue-D77PudUi.cjs.map +0 -1
- package/dist/update-issue-ndy2PF5G.js.map +0 -1
- package/dist/url-utils-IqgSmI-B.js.map +0 -1
- package/dist/url-utils-vJo2ER5v.cjs.map +0 -1
- package/dist/utils-BwXbSgEI.d.ts.map +0 -1
- package/dist/utils-CqbeJfE1.cjs.map +0 -1
- package/dist/utils-CtBGHj_N.d.cts.map +0 -1
- package/dist/utils-OgYE-imr.js +0 -108
- package/dist/utils-OgYE-imr.js.map +0 -1
- package/dist/version-Bj68uyCt.js +0 -6
- package/dist/whoami-BOJHfdih.cjs +0 -28
- package/dist/whoami-BOJHfdih.cjs.map +0 -1
- package/dist/whoami-Bswhb72a.js +0 -23
- package/dist/whoami-Bswhb72a.js.map +0 -1
- package/dist/whoami-CoZJKpys.cjs.map +0 -1
- package/dist/whoami-xBAWvzG4.js.map +0 -1
- /package/dist/{api-client-BWt6M7ij.cjs → api-client-T99a5Vta.js} +0 -0
- /package/dist/{api-client-CNv_hbPO.js → api-client-_2QFWf0d.cjs} +0 -0
- /package/dist/{fetch-utils-BqMx2KQr.js → cli/types.cjs} +0 -0
- /package/dist/{fetch-utils-DeZcERfe.cjs → cli/types.js} +0 -0
- /package/dist/{index-BPSCxsMC.d.cts → index-CmCelmEL.d.cts} +0 -0
- /package/dist/{index-DE1muTvw.d.ts → index-DCwqskfg.d.ts} +0 -0
- /package/dist/{issue-utils-BVAB6I-Z.js → issue-DKr8zNay.js} +0 -0
- /package/dist/{issue-utils-pdbo-5LW.cjs → issue-DrgpqPbF.cjs} +0 -0
- /package/dist/{search-events-BBFPuvRq.cjs → resources-BlsH_EDg.cjs} +0 -0
- /package/dist/{search-events-bV3-kK78.js → resources-U-u5ze91.js} +0 -0
- /package/dist/{search-issues-BFgCvRYe.js → search-events-CUvQ_Jch.js} +0 -0
- /package/dist/{search-issues-Biu64RkQ.cjs → search-events-DSY2Z_Eh.cjs} +0 -0
- /package/dist/{types-6zHoEWAx.js → search-issues-BOmdyuUf.js} +0 -0
- /package/dist/{types-DdloOYgD.cjs → search-issues-BxO2JE3D.cjs} +0 -0
package/README.md
CHANGED
|
@@ -6,33 +6,54 @@ This package is primarily for running the `stdio` MCP server. If you do not know
|
|
|
6
6
|
|
|
7
7
|
<https://mcp.sentry.dev>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Note:** Some tools require additional configuration:
|
|
10
|
+
- **AI-powered search tools** (`search_events` and `search_issues`): These tools use OpenAI to translate natural language queries into Sentry's query syntax. They require an `OPENAI_API_KEY` environment variable. Without this key, these specific tools will be unavailable, but all other tools will function normally.
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
project:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
## Permissions and Scopes
|
|
13
|
+
|
|
14
|
+
By default, the MCP server runs with **read-only access** to your Sentry data:
|
|
15
|
+
- `org:read`, `project:read`, `team:read`, `event:read`
|
|
16
|
+
|
|
17
|
+
### Customizing Permissions
|
|
18
|
+
|
|
19
|
+
You can customize permissions using two different approaches:
|
|
20
|
+
|
|
21
|
+
- **`--scopes`**: **Override** the default scopes completely (replaces all defaults)
|
|
22
|
+
- **`--add-scopes`**: **Add** scopes to the default read-only set (keeps defaults and adds more)
|
|
19
23
|
|
|
20
|
-
|
|
24
|
+
To utilize the `stdio` transport, you'll need to create an User Auth Token in Sentry. The token must have at least read access, but you can grant additional permissions as needed.
|
|
25
|
+
|
|
26
|
+
### Examples
|
|
21
27
|
|
|
22
28
|
```shell
|
|
29
|
+
# Default read-only access
|
|
23
30
|
npx @sentry/mcp-server@latest --access-token=sentry-user-token --host=sentry.example.com
|
|
31
|
+
|
|
32
|
+
# Override with specific scopes only (removes defaults)
|
|
33
|
+
npx @sentry/mcp-server@latest --access-token=TOKEN --scopes=org:read,event:read
|
|
34
|
+
|
|
35
|
+
# Add write permissions to defaults (keeps all defaults)
|
|
36
|
+
npx @sentry/mcp-server@latest --access-token=TOKEN --add-scopes=event:write,project:write
|
|
37
|
+
|
|
24
38
|
# or with full URL
|
|
25
39
|
npx @sentry/mcp-server@latest --access-token=sentry-user-token --url=https://sentry.example.com
|
|
26
40
|
```
|
|
27
41
|
|
|
28
|
-
|
|
42
|
+
### Environment Variables
|
|
43
|
+
|
|
44
|
+
You can also use environment variables:
|
|
29
45
|
|
|
30
46
|
```shell
|
|
31
47
|
SENTRY_ACCESS_TOKEN=your-token
|
|
32
48
|
SENTRY_HOST=sentry.example.com # Custom hostname
|
|
33
49
|
SENTRY_URL=https://sentry.io # OR base URL (precedence over SENTRY_HOST)
|
|
50
|
+
MCP_SCOPES=org:read,event:read # Override default scopes (replaces defaults)
|
|
51
|
+
MCP_ADD_SCOPES=event:write # Add to default scopes (keeps defaults)
|
|
52
|
+
OPENAI_API_KEY=your-openai-key # Required for AI-powered search tools (search_events, search_issues)
|
|
34
53
|
```
|
|
35
54
|
|
|
55
|
+
**Important:** The `MCP_SCOPES` environment variable or `--scopes` flag completely replaces the default scopes. Use `MCP_ADD_SCOPES` or `--add-scopes` if you want to keep the default read-only permissions and add additional ones.
|
|
56
|
+
|
|
36
57
|
The host configuration accepts two distinct formats:
|
|
37
58
|
|
|
38
59
|
- **`SENTRY_HOST`**: Hostname only (no protocol)
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
//#region src/resources/about.ts
|
|
2
|
+
/**
|
|
3
|
+
* About content for the Sentry MCP resource.
|
|
4
|
+
* This provides users with information about the service and what they can do with it.
|
|
5
|
+
*/
|
|
6
|
+
const ABOUT_CONTENT = `# About Sentry MCP
|
|
7
|
+
|
|
8
|
+
## What is Sentry MCP?
|
|
9
|
+
|
|
10
|
+
The Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.
|
|
11
|
+
|
|
12
|
+
This remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.
|
|
13
|
+
|
|
14
|
+
## Learn More
|
|
15
|
+
|
|
16
|
+
Visit **<https://mcp.sentry.dev>** for documentation and updates.
|
|
17
|
+
|
|
18
|
+
## 🚀 Quick Start for Coding Agents
|
|
19
|
+
|
|
20
|
+
When debugging your application with Sentry MCP:
|
|
21
|
+
|
|
22
|
+
### Debug a Production Error
|
|
23
|
+
User reports an error? Just paste the Sentry link:
|
|
24
|
+
- "Analyze https://myorg.sentry.io/issues/PROJECT-123"
|
|
25
|
+
- "Get root cause for https://sentry.io/organizations/myorg/issues/5678/"
|
|
26
|
+
- "Explain this error: [paste Sentry issue URL]"
|
|
27
|
+
|
|
28
|
+
### Fix Code Based on Errors
|
|
29
|
+
Get AI-powered fixes for your codebase:
|
|
30
|
+
- "Analyze issue PROJECT-123 with AI and show me the code fix"
|
|
31
|
+
- "What's causing the TypeError in checkout.js line 45?"
|
|
32
|
+
- "Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789"
|
|
33
|
+
|
|
34
|
+
### Investigate Performance Issues
|
|
35
|
+
- "Show me slow API calls in /api/checkout endpoint"
|
|
36
|
+
- "Find database queries taking over 1 second"
|
|
37
|
+
- "Analyze trace abc123def456 for performance bottlenecks"
|
|
38
|
+
|
|
39
|
+
## 📊 Real-Time Error Monitoring
|
|
40
|
+
|
|
41
|
+
Monitor errors while you code:
|
|
42
|
+
|
|
43
|
+
### Check Error Impact
|
|
44
|
+
- "How many users are affected by error PROJECT-456?"
|
|
45
|
+
- "Are there new errors in the last deployment?"
|
|
46
|
+
- "Show critical errors from production in the last hour"
|
|
47
|
+
- "Which errors are happening most frequently?"
|
|
48
|
+
|
|
49
|
+
### Track Deployments
|
|
50
|
+
- "What errors appeared after release v2.1.0?"
|
|
51
|
+
- "Show me issues in the latest release"
|
|
52
|
+
- "Find errors introduced in commit abc123"
|
|
53
|
+
|
|
54
|
+
## 🛠 Project Configuration for Development
|
|
55
|
+
|
|
56
|
+
When setting up error tracking in your code:
|
|
57
|
+
|
|
58
|
+
### Get Your DSN
|
|
59
|
+
- "Get the DSN for my-project" - For configuring Sentry SDK
|
|
60
|
+
- "Create a production DSN for my-api" - For environment-specific setup
|
|
61
|
+
|
|
62
|
+
### SDK Setup Help
|
|
63
|
+
- "Search docs for Next.js setup" - Get integration guides
|
|
64
|
+
- "How do I configure source maps for React?"
|
|
65
|
+
- "Show Python Django integration guide"
|
|
66
|
+
|
|
67
|
+
## 🎯 Real-World Developer Workflows
|
|
68
|
+
|
|
69
|
+
### User Reports a Bug
|
|
70
|
+
1. User sends you a Sentry link or error ID
|
|
71
|
+
2. "Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI"
|
|
72
|
+
3. Review the root cause analysis and suggested fixes
|
|
73
|
+
4. Apply the fix to your codebase
|
|
74
|
+
5. "Resolve issue PROJECT-123" when deployed
|
|
75
|
+
|
|
76
|
+
### Debugging CI/CD Failures
|
|
77
|
+
1. "Show errors from the last hour in staging environment"
|
|
78
|
+
2. "What's causing the test failures in auth.js?"
|
|
79
|
+
3. "Get stack trace for error EVENT-789"
|
|
80
|
+
4. Fix the issue and push your changes
|
|
81
|
+
|
|
82
|
+
### Performance Optimization
|
|
83
|
+
1. "Find the slowest database queries in production"
|
|
84
|
+
2. "Show me traces for /api/checkout taking over 2 seconds"
|
|
85
|
+
3. "What's the P95 response time for our API?"
|
|
86
|
+
4. Optimize based on the bottlenecks found
|
|
87
|
+
|
|
88
|
+
### Pre-Release Checklist
|
|
89
|
+
1. "Are there any unresolved critical errors?"
|
|
90
|
+
2. "Show errors from the staging environment today"
|
|
91
|
+
3. "What new errors appeared in the last deployment?"
|
|
92
|
+
4. Fix any blockers before release
|
|
93
|
+
|
|
94
|
+
## 💡 Pro Tips
|
|
95
|
+
|
|
96
|
+
### Working with Issue URLs
|
|
97
|
+
Sentry MCP understands multiple URL formats:
|
|
98
|
+
- Full URLs: \`https://myorg.sentry.io/issues/PROJECT-123\`
|
|
99
|
+
- Organization URLs: \`https://sentry.io/organizations/myorg/issues/5678/\`
|
|
100
|
+
- Just paste the link from your browser - it will parse it correctly
|
|
101
|
+
|
|
102
|
+
### Natural Language is Preferred
|
|
103
|
+
The AI understands context:
|
|
104
|
+
- "Fix the TypeError in my checkout flow"
|
|
105
|
+
- "Why is the database timing out?"
|
|
106
|
+
- "Debug the authentication error users are seeing"
|
|
107
|
+
|
|
108
|
+
### Environment-Specific Queries
|
|
109
|
+
- Add "in production" or "in staging" to filter by environment
|
|
110
|
+
- "Show errors from the mobile app" to filter by platform
|
|
111
|
+
- "Errors affecting Chrome users" for browser-specific issues
|
|
112
|
+
|
|
113
|
+
## ⚙️ Key Capabilities
|
|
114
|
+
|
|
115
|
+
### AI-Powered Tools
|
|
116
|
+
With OpenAI API key configured:
|
|
117
|
+
- **Natural language search** - Find issues and events using plain English
|
|
118
|
+
- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer
|
|
119
|
+
- **Smart query translation** - Converts natural language to Sentry's query syntax
|
|
120
|
+
|
|
121
|
+
### Available Resources
|
|
122
|
+
- **SDK Documentation** - Access platform-specific setup guides
|
|
123
|
+
- **This guide** - Available at \`sentry://about\`
|
|
124
|
+
|
|
125
|
+
## 📚 Need Help?
|
|
126
|
+
|
|
127
|
+
- **Report issues**: https://github.com/getsentry/sentry-mcp/issues
|
|
128
|
+
- **Documentation**: https://mcp.sentry.dev
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*`;
|
|
133
|
+
|
|
134
|
+
//#endregion
|
|
135
|
+
export { ABOUT_CONTENT };
|
|
136
|
+
//# sourceMappingURL=about-CDAN_HuU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about-CDAN_HuU.js","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":["/**\n * About content for the Sentry MCP resource.\n * This provides users with information about the service and what they can do with it.\n */\n\nexport const ABOUT_CONTENT = `# About Sentry MCP\n\n## What is Sentry MCP?\n\nThe Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.\n\nThis remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.\n\n## Learn More\n\nVisit **<https://mcp.sentry.dev>** for documentation and updates.\n\n## 🚀 Quick Start for Coding Agents\n\nWhen debugging your application with Sentry MCP:\n\n### Debug a Production Error\nUser reports an error? Just paste the Sentry link:\n- \"Analyze https://myorg.sentry.io/issues/PROJECT-123\"\n- \"Get root cause for https://sentry.io/organizations/myorg/issues/5678/\"\n- \"Explain this error: [paste Sentry issue URL]\"\n\n### Fix Code Based on Errors\nGet AI-powered fixes for your codebase:\n- \"Analyze issue PROJECT-123 with AI and show me the code fix\"\n- \"What's causing the TypeError in checkout.js line 45?\"\n- \"Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789\"\n\n### Investigate Performance Issues\n- \"Show me slow API calls in /api/checkout endpoint\"\n- \"Find database queries taking over 1 second\"\n- \"Analyze trace abc123def456 for performance bottlenecks\"\n\n## 📊 Real-Time Error Monitoring\n\nMonitor errors while you code:\n\n### Check Error Impact\n- \"How many users are affected by error PROJECT-456?\"\n- \"Are there new errors in the last deployment?\"\n- \"Show critical errors from production in the last hour\"\n- \"Which errors are happening most frequently?\"\n\n### Track Deployments\n- \"What errors appeared after release v2.1.0?\"\n- \"Show me issues in the latest release\"\n- \"Find errors introduced in commit abc123\"\n\n## 🛠 Project Configuration for Development\n\nWhen setting up error tracking in your code:\n\n### Get Your DSN\n- \"Get the DSN for my-project\" - For configuring Sentry SDK\n- \"Create a production DSN for my-api\" - For environment-specific setup\n\n### SDK Setup Help\n- \"Search docs for Next.js setup\" - Get integration guides\n- \"How do I configure source maps for React?\"\n- \"Show Python Django integration guide\"\n\n## 🎯 Real-World Developer Workflows\n\n### User Reports a Bug\n1. User sends you a Sentry link or error ID\n2. \"Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI\"\n3. Review the root cause analysis and suggested fixes\n4. Apply the fix to your codebase\n5. \"Resolve issue PROJECT-123\" when deployed\n\n### Debugging CI/CD Failures\n1. \"Show errors from the last hour in staging environment\"\n2. \"What's causing the test failures in auth.js?\"\n3. \"Get stack trace for error EVENT-789\"\n4. Fix the issue and push your changes\n\n### Performance Optimization\n1. \"Find the slowest database queries in production\"\n2. \"Show me traces for /api/checkout taking over 2 seconds\"\n3. \"What's the P95 response time for our API?\"\n4. Optimize based on the bottlenecks found\n\n### Pre-Release Checklist\n1. \"Are there any unresolved critical errors?\"\n2. \"Show errors from the staging environment today\"\n3. \"What new errors appeared in the last deployment?\"\n4. Fix any blockers before release\n\n## 💡 Pro Tips\n\n### Working with Issue URLs\nSentry MCP understands multiple URL formats:\n- Full URLs: \\`https://myorg.sentry.io/issues/PROJECT-123\\`\n- Organization URLs: \\`https://sentry.io/organizations/myorg/issues/5678/\\`\n- Just paste the link from your browser - it will parse it correctly\n\n### Natural Language is Preferred\nThe AI understands context:\n- \"Fix the TypeError in my checkout flow\"\n- \"Why is the database timing out?\"\n- \"Debug the authentication error users are seeing\"\n\n### Environment-Specific Queries\n- Add \"in production\" or \"in staging\" to filter by environment\n- \"Show errors from the mobile app\" to filter by platform\n- \"Errors affecting Chrome users\" for browser-specific issues\n\n## ⚙️ Key Capabilities\n\n### AI-Powered Tools\nWith OpenAI API key configured:\n- **Natural language search** - Find issues and events using plain English\n- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer\n- **Smart query translation** - Converts natural language to Sentry's query syntax\n\n### Available Resources\n- **SDK Documentation** - Access platform-specific setup guides\n- **This guide** - Available at \\`sentry://about\\`\n\n## 📚 Need Help?\n\n- **Report issues**: https://github.com/getsentry/sentry-mcp/issues\n- **Documentation**: https://mcp.sentry.dev\n\n---\n\n*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*`;\n"],"mappings":";;;;;AAKA,MAAa,iBAAiB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/resources/about.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* About content for the Sentry MCP resource.
|
|
4
|
+
* This provides users with information about the service and what they can do with it.
|
|
5
|
+
*/
|
|
6
|
+
declare const ABOUT_CONTENT = "# About Sentry MCP\n\n## What is Sentry MCP?\n\nThe Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.\n\nThis remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.\n\n## Learn More\n\nVisit **<https://mcp.sentry.dev>** for documentation and updates.\n\n## \uD83D\uDE80 Quick Start for Coding Agents\n\nWhen debugging your application with Sentry MCP:\n\n### Debug a Production Error\nUser reports an error? Just paste the Sentry link:\n- \"Analyze https://myorg.sentry.io/issues/PROJECT-123\"\n- \"Get root cause for https://sentry.io/organizations/myorg/issues/5678/\"\n- \"Explain this error: [paste Sentry issue URL]\"\n\n### Fix Code Based on Errors\nGet AI-powered fixes for your codebase:\n- \"Analyze issue PROJECT-123 with AI and show me the code fix\"\n- \"What's causing the TypeError in checkout.js line 45?\"\n- \"Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789\"\n\n### Investigate Performance Issues\n- \"Show me slow API calls in /api/checkout endpoint\"\n- \"Find database queries taking over 1 second\"\n- \"Analyze trace abc123def456 for performance bottlenecks\"\n\n## \uD83D\uDCCA Real-Time Error Monitoring\n\nMonitor errors while you code:\n\n### Check Error Impact\n- \"How many users are affected by error PROJECT-456?\"\n- \"Are there new errors in the last deployment?\"\n- \"Show critical errors from production in the last hour\"\n- \"Which errors are happening most frequently?\"\n\n### Track Deployments\n- \"What errors appeared after release v2.1.0?\"\n- \"Show me issues in the latest release\"\n- \"Find errors introduced in commit abc123\"\n\n## \uD83D\uDEE0 Project Configuration for Development\n\nWhen setting up error tracking in your code:\n\n### Get Your DSN\n- \"Get the DSN for my-project\" - For configuring Sentry SDK\n- \"Create a production DSN for my-api\" - For environment-specific setup\n\n### SDK Setup Help\n- \"Search docs for Next.js setup\" - Get integration guides\n- \"How do I configure source maps for React?\"\n- \"Show Python Django integration guide\"\n\n## \uD83C\uDFAF Real-World Developer Workflows\n\n### User Reports a Bug\n1. User sends you a Sentry link or error ID\n2. \"Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI\"\n3. Review the root cause analysis and suggested fixes\n4. Apply the fix to your codebase\n5. \"Resolve issue PROJECT-123\" when deployed\n\n### Debugging CI/CD Failures\n1. \"Show errors from the last hour in staging environment\"\n2. \"What's causing the test failures in auth.js?\"\n3. \"Get stack trace for error EVENT-789\"\n4. Fix the issue and push your changes\n\n### Performance Optimization\n1. \"Find the slowest database queries in production\"\n2. \"Show me traces for /api/checkout taking over 2 seconds\"\n3. \"What's the P95 response time for our API?\"\n4. Optimize based on the bottlenecks found\n\n### Pre-Release Checklist\n1. \"Are there any unresolved critical errors?\"\n2. \"Show errors from the staging environment today\"\n3. \"What new errors appeared in the last deployment?\"\n4. Fix any blockers before release\n\n## \uD83D\uDCA1 Pro Tips\n\n### Working with Issue URLs\nSentry MCP understands multiple URL formats:\n- Full URLs: `https://myorg.sentry.io/issues/PROJECT-123`\n- Organization URLs: `https://sentry.io/organizations/myorg/issues/5678/`\n- Just paste the link from your browser - it will parse it correctly\n\n### Natural Language is Preferred\nThe AI understands context:\n- \"Fix the TypeError in my checkout flow\"\n- \"Why is the database timing out?\"\n- \"Debug the authentication error users are seeing\"\n\n### Environment-Specific Queries\n- Add \"in production\" or \"in staging\" to filter by environment\n- \"Show errors from the mobile app\" to filter by platform\n- \"Errors affecting Chrome users\" for browser-specific issues\n\n## \u2699\uFE0F Key Capabilities\n\n### AI-Powered Tools\nWith OpenAI API key configured:\n- **Natural language search** - Find issues and events using plain English\n- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer\n- **Smart query translation** - Converts natural language to Sentry's query syntax\n\n### Available Resources\n- **SDK Documentation** - Access platform-specific setup guides\n- **This guide** - Available at `sentry://about`\n\n## \uD83D\uDCDA Need Help?\n\n- **Report issues**: https://github.com/getsentry/sentry-mcp/issues\n- **Documentation**: https://mcp.sentry.dev\n\n---\n\n*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*";
|
|
7
|
+
//# sourceMappingURL=about.d.ts.map
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ABOUT_CONTENT };
|
|
10
|
+
//# sourceMappingURL=about-CteXVo1Q.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about-CteXVo1Q.d.ts","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":[],"mappings":";;AAKA;;;cAAa,aAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/resources/about.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* About content for the Sentry MCP resource.
|
|
4
|
+
* This provides users with information about the service and what they can do with it.
|
|
5
|
+
*/
|
|
6
|
+
declare const ABOUT_CONTENT = "# About Sentry MCP\n\n## What is Sentry MCP?\n\nThe Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.\n\nThis remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.\n\n## Learn More\n\nVisit **<https://mcp.sentry.dev>** for documentation and updates.\n\n## \uD83D\uDE80 Quick Start for Coding Agents\n\nWhen debugging your application with Sentry MCP:\n\n### Debug a Production Error\nUser reports an error? Just paste the Sentry link:\n- \"Analyze https://myorg.sentry.io/issues/PROJECT-123\"\n- \"Get root cause for https://sentry.io/organizations/myorg/issues/5678/\"\n- \"Explain this error: [paste Sentry issue URL]\"\n\n### Fix Code Based on Errors\nGet AI-powered fixes for your codebase:\n- \"Analyze issue PROJECT-123 with AI and show me the code fix\"\n- \"What's causing the TypeError in checkout.js line 45?\"\n- \"Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789\"\n\n### Investigate Performance Issues\n- \"Show me slow API calls in /api/checkout endpoint\"\n- \"Find database queries taking over 1 second\"\n- \"Analyze trace abc123def456 for performance bottlenecks\"\n\n## \uD83D\uDCCA Real-Time Error Monitoring\n\nMonitor errors while you code:\n\n### Check Error Impact\n- \"How many users are affected by error PROJECT-456?\"\n- \"Are there new errors in the last deployment?\"\n- \"Show critical errors from production in the last hour\"\n- \"Which errors are happening most frequently?\"\n\n### Track Deployments\n- \"What errors appeared after release v2.1.0?\"\n- \"Show me issues in the latest release\"\n- \"Find errors introduced in commit abc123\"\n\n## \uD83D\uDEE0 Project Configuration for Development\n\nWhen setting up error tracking in your code:\n\n### Get Your DSN\n- \"Get the DSN for my-project\" - For configuring Sentry SDK\n- \"Create a production DSN for my-api\" - For environment-specific setup\n\n### SDK Setup Help\n- \"Search docs for Next.js setup\" - Get integration guides\n- \"How do I configure source maps for React?\"\n- \"Show Python Django integration guide\"\n\n## \uD83C\uDFAF Real-World Developer Workflows\n\n### User Reports a Bug\n1. User sends you a Sentry link or error ID\n2. \"Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI\"\n3. Review the root cause analysis and suggested fixes\n4. Apply the fix to your codebase\n5. \"Resolve issue PROJECT-123\" when deployed\n\n### Debugging CI/CD Failures\n1. \"Show errors from the last hour in staging environment\"\n2. \"What's causing the test failures in auth.js?\"\n3. \"Get stack trace for error EVENT-789\"\n4. Fix the issue and push your changes\n\n### Performance Optimization\n1. \"Find the slowest database queries in production\"\n2. \"Show me traces for /api/checkout taking over 2 seconds\"\n3. \"What's the P95 response time for our API?\"\n4. Optimize based on the bottlenecks found\n\n### Pre-Release Checklist\n1. \"Are there any unresolved critical errors?\"\n2. \"Show errors from the staging environment today\"\n3. \"What new errors appeared in the last deployment?\"\n4. Fix any blockers before release\n\n## \uD83D\uDCA1 Pro Tips\n\n### Working with Issue URLs\nSentry MCP understands multiple URL formats:\n- Full URLs: `https://myorg.sentry.io/issues/PROJECT-123`\n- Organization URLs: `https://sentry.io/organizations/myorg/issues/5678/`\n- Just paste the link from your browser - it will parse it correctly\n\n### Natural Language is Preferred\nThe AI understands context:\n- \"Fix the TypeError in my checkout flow\"\n- \"Why is the database timing out?\"\n- \"Debug the authentication error users are seeing\"\n\n### Environment-Specific Queries\n- Add \"in production\" or \"in staging\" to filter by environment\n- \"Show errors from the mobile app\" to filter by platform\n- \"Errors affecting Chrome users\" for browser-specific issues\n\n## \u2699\uFE0F Key Capabilities\n\n### AI-Powered Tools\nWith OpenAI API key configured:\n- **Natural language search** - Find issues and events using plain English\n- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer\n- **Smart query translation** - Converts natural language to Sentry's query syntax\n\n### Available Resources\n- **SDK Documentation** - Access platform-specific setup guides\n- **This guide** - Available at `sentry://about`\n\n## \uD83D\uDCDA Need Help?\n\n- **Report issues**: https://github.com/getsentry/sentry-mcp/issues\n- **Documentation**: https://mcp.sentry.dev\n\n---\n\n*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*";
|
|
7
|
+
//# sourceMappingURL=about.d.ts.map
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ABOUT_CONTENT };
|
|
10
|
+
//# sourceMappingURL=about-CwQvsGSc.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about-CwQvsGSc.d.cts","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":[],"mappings":";;AAKA;;;cAAa,aAAA"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/resources/about.ts
|
|
3
|
+
/**
|
|
4
|
+
* About content for the Sentry MCP resource.
|
|
5
|
+
* This provides users with information about the service and what they can do with it.
|
|
6
|
+
*/
|
|
7
|
+
const ABOUT_CONTENT = `# About Sentry MCP
|
|
8
|
+
|
|
9
|
+
## What is Sentry MCP?
|
|
10
|
+
|
|
11
|
+
The Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.
|
|
12
|
+
|
|
13
|
+
This remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.
|
|
14
|
+
|
|
15
|
+
## Learn More
|
|
16
|
+
|
|
17
|
+
Visit **<https://mcp.sentry.dev>** for documentation and updates.
|
|
18
|
+
|
|
19
|
+
## 🚀 Quick Start for Coding Agents
|
|
20
|
+
|
|
21
|
+
When debugging your application with Sentry MCP:
|
|
22
|
+
|
|
23
|
+
### Debug a Production Error
|
|
24
|
+
User reports an error? Just paste the Sentry link:
|
|
25
|
+
- "Analyze https://myorg.sentry.io/issues/PROJECT-123"
|
|
26
|
+
- "Get root cause for https://sentry.io/organizations/myorg/issues/5678/"
|
|
27
|
+
- "Explain this error: [paste Sentry issue URL]"
|
|
28
|
+
|
|
29
|
+
### Fix Code Based on Errors
|
|
30
|
+
Get AI-powered fixes for your codebase:
|
|
31
|
+
- "Analyze issue PROJECT-123 with AI and show me the code fix"
|
|
32
|
+
- "What's causing the TypeError in checkout.js line 45?"
|
|
33
|
+
- "Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789"
|
|
34
|
+
|
|
35
|
+
### Investigate Performance Issues
|
|
36
|
+
- "Show me slow API calls in /api/checkout endpoint"
|
|
37
|
+
- "Find database queries taking over 1 second"
|
|
38
|
+
- "Analyze trace abc123def456 for performance bottlenecks"
|
|
39
|
+
|
|
40
|
+
## 📊 Real-Time Error Monitoring
|
|
41
|
+
|
|
42
|
+
Monitor errors while you code:
|
|
43
|
+
|
|
44
|
+
### Check Error Impact
|
|
45
|
+
- "How many users are affected by error PROJECT-456?"
|
|
46
|
+
- "Are there new errors in the last deployment?"
|
|
47
|
+
- "Show critical errors from production in the last hour"
|
|
48
|
+
- "Which errors are happening most frequently?"
|
|
49
|
+
|
|
50
|
+
### Track Deployments
|
|
51
|
+
- "What errors appeared after release v2.1.0?"
|
|
52
|
+
- "Show me issues in the latest release"
|
|
53
|
+
- "Find errors introduced in commit abc123"
|
|
54
|
+
|
|
55
|
+
## 🛠 Project Configuration for Development
|
|
56
|
+
|
|
57
|
+
When setting up error tracking in your code:
|
|
58
|
+
|
|
59
|
+
### Get Your DSN
|
|
60
|
+
- "Get the DSN for my-project" - For configuring Sentry SDK
|
|
61
|
+
- "Create a production DSN for my-api" - For environment-specific setup
|
|
62
|
+
|
|
63
|
+
### SDK Setup Help
|
|
64
|
+
- "Search docs for Next.js setup" - Get integration guides
|
|
65
|
+
- "How do I configure source maps for React?"
|
|
66
|
+
- "Show Python Django integration guide"
|
|
67
|
+
|
|
68
|
+
## 🎯 Real-World Developer Workflows
|
|
69
|
+
|
|
70
|
+
### User Reports a Bug
|
|
71
|
+
1. User sends you a Sentry link or error ID
|
|
72
|
+
2. "Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI"
|
|
73
|
+
3. Review the root cause analysis and suggested fixes
|
|
74
|
+
4. Apply the fix to your codebase
|
|
75
|
+
5. "Resolve issue PROJECT-123" when deployed
|
|
76
|
+
|
|
77
|
+
### Debugging CI/CD Failures
|
|
78
|
+
1. "Show errors from the last hour in staging environment"
|
|
79
|
+
2. "What's causing the test failures in auth.js?"
|
|
80
|
+
3. "Get stack trace for error EVENT-789"
|
|
81
|
+
4. Fix the issue and push your changes
|
|
82
|
+
|
|
83
|
+
### Performance Optimization
|
|
84
|
+
1. "Find the slowest database queries in production"
|
|
85
|
+
2. "Show me traces for /api/checkout taking over 2 seconds"
|
|
86
|
+
3. "What's the P95 response time for our API?"
|
|
87
|
+
4. Optimize based on the bottlenecks found
|
|
88
|
+
|
|
89
|
+
### Pre-Release Checklist
|
|
90
|
+
1. "Are there any unresolved critical errors?"
|
|
91
|
+
2. "Show errors from the staging environment today"
|
|
92
|
+
3. "What new errors appeared in the last deployment?"
|
|
93
|
+
4. Fix any blockers before release
|
|
94
|
+
|
|
95
|
+
## 💡 Pro Tips
|
|
96
|
+
|
|
97
|
+
### Working with Issue URLs
|
|
98
|
+
Sentry MCP understands multiple URL formats:
|
|
99
|
+
- Full URLs: \`https://myorg.sentry.io/issues/PROJECT-123\`
|
|
100
|
+
- Organization URLs: \`https://sentry.io/organizations/myorg/issues/5678/\`
|
|
101
|
+
- Just paste the link from your browser - it will parse it correctly
|
|
102
|
+
|
|
103
|
+
### Natural Language is Preferred
|
|
104
|
+
The AI understands context:
|
|
105
|
+
- "Fix the TypeError in my checkout flow"
|
|
106
|
+
- "Why is the database timing out?"
|
|
107
|
+
- "Debug the authentication error users are seeing"
|
|
108
|
+
|
|
109
|
+
### Environment-Specific Queries
|
|
110
|
+
- Add "in production" or "in staging" to filter by environment
|
|
111
|
+
- "Show errors from the mobile app" to filter by platform
|
|
112
|
+
- "Errors affecting Chrome users" for browser-specific issues
|
|
113
|
+
|
|
114
|
+
## ⚙️ Key Capabilities
|
|
115
|
+
|
|
116
|
+
### AI-Powered Tools
|
|
117
|
+
With OpenAI API key configured:
|
|
118
|
+
- **Natural language search** - Find issues and events using plain English
|
|
119
|
+
- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer
|
|
120
|
+
- **Smart query translation** - Converts natural language to Sentry's query syntax
|
|
121
|
+
|
|
122
|
+
### Available Resources
|
|
123
|
+
- **SDK Documentation** - Access platform-specific setup guides
|
|
124
|
+
- **This guide** - Available at \`sentry://about\`
|
|
125
|
+
|
|
126
|
+
## 📚 Need Help?
|
|
127
|
+
|
|
128
|
+
- **Report issues**: https://github.com/getsentry/sentry-mcp/issues
|
|
129
|
+
- **Documentation**: https://mcp.sentry.dev
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*`;
|
|
134
|
+
|
|
135
|
+
//#endregion
|
|
136
|
+
Object.defineProperty(exports, 'ABOUT_CONTENT', {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function () {
|
|
139
|
+
return ABOUT_CONTENT;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
//# sourceMappingURL=about-aDGhlM6f.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about-aDGhlM6f.cjs","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":["/**\n * About content for the Sentry MCP resource.\n * This provides users with information about the service and what they can do with it.\n */\n\nexport const ABOUT_CONTENT = `# About Sentry MCP\n\n## What is Sentry MCP?\n\nThe Sentry MCP (Model Context Protocol) service is primarily designed for **human-in-the-loop coding agents**. Our tool selection and priorities are focused on **developer workflows and debugging use cases**, rather than providing a general-purpose MCP server for all Sentry functionality.\n\nThis remote MCP server acts as middleware to the upstream Sentry API, optimized for coding assistants like Cursor, Claude Code, and similar development tools.\n\n## Learn More\n\nVisit **<https://mcp.sentry.dev>** for documentation and updates.\n\n## 🚀 Quick Start for Coding Agents\n\nWhen debugging your application with Sentry MCP:\n\n### Debug a Production Error\nUser reports an error? Just paste the Sentry link:\n- \"Analyze https://myorg.sentry.io/issues/PROJECT-123\"\n- \"Get root cause for https://sentry.io/organizations/myorg/issues/5678/\"\n- \"Explain this error: [paste Sentry issue URL]\"\n\n### Fix Code Based on Errors\nGet AI-powered fixes for your codebase:\n- \"Analyze issue PROJECT-123 with AI and show me the code fix\"\n- \"What's causing the TypeError in checkout.js line 45?\"\n- \"Fix the database connection error from https://myorg.sentry.io/issues/PROJECT-789\"\n\n### Investigate Performance Issues\n- \"Show me slow API calls in /api/checkout endpoint\"\n- \"Find database queries taking over 1 second\"\n- \"Analyze trace abc123def456 for performance bottlenecks\"\n\n## 📊 Real-Time Error Monitoring\n\nMonitor errors while you code:\n\n### Check Error Impact\n- \"How many users are affected by error PROJECT-456?\"\n- \"Are there new errors in the last deployment?\"\n- \"Show critical errors from production in the last hour\"\n- \"Which errors are happening most frequently?\"\n\n### Track Deployments\n- \"What errors appeared after release v2.1.0?\"\n- \"Show me issues in the latest release\"\n- \"Find errors introduced in commit abc123\"\n\n## 🛠 Project Configuration for Development\n\nWhen setting up error tracking in your code:\n\n### Get Your DSN\n- \"Get the DSN for my-project\" - For configuring Sentry SDK\n- \"Create a production DSN for my-api\" - For environment-specific setup\n\n### SDK Setup Help\n- \"Search docs for Next.js setup\" - Get integration guides\n- \"How do I configure source maps for React?\"\n- \"Show Python Django integration guide\"\n\n## 🎯 Real-World Developer Workflows\n\n### User Reports a Bug\n1. User sends you a Sentry link or error ID\n2. \"Analyze https://myorg.sentry.io/issues/PROJECT-123 with AI\"\n3. Review the root cause analysis and suggested fixes\n4. Apply the fix to your codebase\n5. \"Resolve issue PROJECT-123\" when deployed\n\n### Debugging CI/CD Failures\n1. \"Show errors from the last hour in staging environment\"\n2. \"What's causing the test failures in auth.js?\"\n3. \"Get stack trace for error EVENT-789\"\n4. Fix the issue and push your changes\n\n### Performance Optimization\n1. \"Find the slowest database queries in production\"\n2. \"Show me traces for /api/checkout taking over 2 seconds\"\n3. \"What's the P95 response time for our API?\"\n4. Optimize based on the bottlenecks found\n\n### Pre-Release Checklist\n1. \"Are there any unresolved critical errors?\"\n2. \"Show errors from the staging environment today\"\n3. \"What new errors appeared in the last deployment?\"\n4. Fix any blockers before release\n\n## 💡 Pro Tips\n\n### Working with Issue URLs\nSentry MCP understands multiple URL formats:\n- Full URLs: \\`https://myorg.sentry.io/issues/PROJECT-123\\`\n- Organization URLs: \\`https://sentry.io/organizations/myorg/issues/5678/\\`\n- Just paste the link from your browser - it will parse it correctly\n\n### Natural Language is Preferred\nThe AI understands context:\n- \"Fix the TypeError in my checkout flow\"\n- \"Why is the database timing out?\"\n- \"Debug the authentication error users are seeing\"\n\n### Environment-Specific Queries\n- Add \"in production\" or \"in staging\" to filter by environment\n- \"Show errors from the mobile app\" to filter by platform\n- \"Errors affecting Chrome users\" for browser-specific issues\n\n## ⚙️ Key Capabilities\n\n### AI-Powered Tools\nWith OpenAI API key configured:\n- **Natural language search** - Find issues and events using plain English\n- **Root cause analysis** - Get AI-powered debugging with code fixes via Seer\n- **Smart query translation** - Converts natural language to Sentry's query syntax\n\n### Available Resources\n- **SDK Documentation** - Access platform-specific setup guides\n- **This guide** - Available at \\`sentry://about\\`\n\n## 📚 Need Help?\n\n- **Report issues**: https://github.com/getsentry/sentry-mcp/issues\n- **Documentation**: https://mcp.sentry.dev\n\n---\n\n*Ready to debug? Just describe what you're looking for or paste a Sentry issue URL to get started.*`;\n"],"mappings":";;;;;;AAKA,MAAa,iBAAiB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
+
const require_errors = require('./errors-BtJEw2Z-.cjs');
|
|
3
|
+
const require_callEmbeddedAgent = require('./callEmbeddedAgent-BRz60bxa.cjs');
|
|
4
|
+
const require_otel_semantics = require('./otel-semantics-CkUpXWEJ.cjs');
|
|
5
|
+
const require_whoami = require('./whoami-DCgOyVnW.cjs');
|
|
6
|
+
const require_utils = require('./utils-DQ69VZrK.cjs');
|
|
7
|
+
const require_config = require('./config-DsvSjPCG.cjs');
|
|
8
|
+
const zod = require_chunk.__toESM(require("zod"));
|
|
9
|
+
|
|
10
|
+
//#region src/tools/search-events/agent.ts
|
|
11
|
+
const outputSchema = zod.z.object({
|
|
12
|
+
dataset: zod.z.enum([
|
|
13
|
+
"spans",
|
|
14
|
+
"errors",
|
|
15
|
+
"logs"
|
|
16
|
+
]).describe("Which dataset to use for the query"),
|
|
17
|
+
query: zod.z.string().default("").nullish().describe("The Sentry query string for filtering results"),
|
|
18
|
+
fields: zod.z.array(zod.z.string()).describe("Array of field names to return in results."),
|
|
19
|
+
sort: zod.z.string().describe("Sort parameter for results."),
|
|
20
|
+
timeRange: zod.z.union([zod.z.object({ statsPeriod: zod.z.string().describe("Relative time period like '1h', '24h', '7d'") }), zod.z.object({
|
|
21
|
+
start: zod.z.string().describe("ISO 8601 start time"),
|
|
22
|
+
end: zod.z.string().describe("ISO 8601 end time")
|
|
23
|
+
})]).nullish().describe("Time range for filtering events. Use either statsPeriod for relative time or start/end for absolute time."),
|
|
24
|
+
explanation: zod.z.string().describe("Brief explanation of how you translated this query.")
|
|
25
|
+
}).refine((data) => {
|
|
26
|
+
if (!data.sort || !data.fields || data.fields.length === 0) return true;
|
|
27
|
+
const sortField = data.sort.startsWith("-") ? data.sort.substring(1) : data.sort;
|
|
28
|
+
return data.fields.includes(sortField);
|
|
29
|
+
}, { message: "Sort field must be included in the fields array. Sentry requires that any field used for sorting must also be explicitly selected. Add the sort field to the fields array or choose a different sort field that's already included." });
|
|
30
|
+
/**
|
|
31
|
+
* Search events agent - single entry point for translating natural language queries to Sentry search syntax
|
|
32
|
+
* This returns both the translated query result AND the tool calls made by the agent
|
|
33
|
+
*/
|
|
34
|
+
async function searchEventsAgent(options) {
|
|
35
|
+
if (!process.env.OPENAI_API_KEY) throw new require_errors.ConfigurationError("OPENAI_API_KEY environment variable is required for semantic search");
|
|
36
|
+
const datasetAttributesTool = require_utils.createDatasetAttributesTool({
|
|
37
|
+
apiService: options.apiService,
|
|
38
|
+
organizationSlug: options.organizationSlug,
|
|
39
|
+
projectId: options.projectId
|
|
40
|
+
});
|
|
41
|
+
const otelLookupTool = require_otel_semantics.createOtelLookupTool({
|
|
42
|
+
apiService: options.apiService,
|
|
43
|
+
organizationSlug: options.organizationSlug,
|
|
44
|
+
projectId: options.projectId
|
|
45
|
+
});
|
|
46
|
+
const whoamiTool = require_whoami.createWhoamiTool({ apiService: options.apiService });
|
|
47
|
+
return await require_callEmbeddedAgent.callEmbeddedAgent({
|
|
48
|
+
system: require_config.systemPrompt,
|
|
49
|
+
prompt: options.query,
|
|
50
|
+
tools: {
|
|
51
|
+
datasetAttributes: datasetAttributesTool,
|
|
52
|
+
otelSemantics: otelLookupTool,
|
|
53
|
+
whoami: whoamiTool
|
|
54
|
+
},
|
|
55
|
+
schema: outputSchema
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
Object.defineProperty(exports, 'searchEventsAgent', {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return searchEventsAgent;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=agent-BF4d0oSb.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-BF4d0oSb.cjs","names":["options: SearchEventsAgentOptions","ConfigurationError","systemPrompt"],"sources":["../src/tools/search-events/agent.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ConfigurationError } from \"../../errors\";\nimport { callEmbeddedAgent } from \"../../internal/agents/callEmbeddedAgent\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { createOtelLookupTool } from \"../../internal/agents/tools/otel-semantics\";\nimport { createWhoamiTool } from \"../../internal/agents/tools/whoami\";\nimport { createDatasetAttributesTool } from \"./utils\";\nimport { systemPrompt } from \"./config\";\n\nconst outputSchema = z\n .object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"Which dataset to use for the query\"),\n query: z\n .string()\n .default(\"\")\n .nullish()\n .describe(\"The Sentry query string for filtering results\"),\n fields: z\n .array(z.string())\n .describe(\"Array of field names to return in results.\"),\n sort: z.string().describe(\"Sort parameter for results.\"),\n timeRange: z\n .union([\n z.object({\n statsPeriod: z\n .string()\n .describe(\"Relative time period like '1h', '24h', '7d'\"),\n }),\n z.object({\n start: z.string().describe(\"ISO 8601 start time\"),\n end: z.string().describe(\"ISO 8601 end time\"),\n }),\n ])\n .nullish()\n .describe(\n \"Time range for filtering events. Use either statsPeriod for relative time or start/end for absolute time.\",\n ),\n explanation: z\n .string()\n .describe(\"Brief explanation of how you translated this query.\"),\n })\n .refine(\n (data) => {\n // Only validate if both sort and fields are present\n if (!data.sort || !data.fields || data.fields.length === 0) {\n return true;\n }\n\n // Extract the field name from sort parameter (e.g., \"-timestamp\" -> \"timestamp\", \"-count()\" -> \"count()\")\n const sortField = data.sort.startsWith(\"-\")\n ? data.sort.substring(1)\n : data.sort;\n\n // Check if sort field is in fields array\n return data.fields.includes(sortField);\n },\n {\n message:\n \"Sort field must be included in the fields array. Sentry requires that any field used for sorting must also be explicitly selected. Add the sort field to the fields array or choose a different sort field that's already included.\",\n },\n );\n\nexport interface SearchEventsAgentOptions {\n query: string;\n organizationSlug: string;\n apiService: SentryApiService;\n projectId?: string;\n}\n\n/**\n * Search events agent - single entry point for translating natural language queries to Sentry search syntax\n * This returns both the translated query result AND the tool calls made by the agent\n */\nexport async function searchEventsAgent(\n options: SearchEventsAgentOptions,\n): Promise<{\n result: z.infer<typeof outputSchema>;\n toolCalls: any[];\n}> {\n if (!process.env.OPENAI_API_KEY) {\n throw new ConfigurationError(\n \"OPENAI_API_KEY environment variable is required for semantic search\",\n );\n }\n\n // Create tools pre-bound with the provided API service and organization\n const datasetAttributesTool = createDatasetAttributesTool({\n apiService: options.apiService,\n organizationSlug: options.organizationSlug,\n projectId: options.projectId,\n });\n const otelLookupTool = createOtelLookupTool({\n apiService: options.apiService,\n organizationSlug: options.organizationSlug,\n projectId: options.projectId,\n });\n const whoamiTool = createWhoamiTool({ apiService: options.apiService });\n\n // Use callEmbeddedAgent to translate the query with tool call capture\n return await callEmbeddedAgent({\n system: systemPrompt,\n prompt: options.query,\n tools: {\n datasetAttributes: datasetAttributesTool,\n otelSemantics: otelLookupTool,\n whoami: whoamiTool,\n },\n schema: outputSchema,\n });\n}\n"],"mappings":";;;;;;;;;;AASA,MAAM,eAAe,MAClB,OAAO;CACN,SAAS,MACN,KAAK;EAAC;EAAS;EAAU;CAAO,EAAC,CACjC,SAAS,qCAAqC;CACjD,OAAO,MACJ,QAAQ,CACR,QAAQ,GAAG,CACX,SAAS,CACT,SAAS,gDAAgD;CAC5D,QAAQ,MACL,MAAM,MAAE,QAAQ,CAAC,CACjB,SAAS,6CAA6C;CACzD,MAAM,MAAE,QAAQ,CAAC,SAAS,8BAA8B;CACxD,WAAW,MACR,MAAM,CACL,MAAE,OAAO,EACP,aAAa,MACV,QAAQ,CACR,SAAS,8CAA8C,CAC3D,EAAC,EACF,MAAE,OAAO;EACP,OAAO,MAAE,QAAQ,CAAC,SAAS,sBAAsB;EACjD,KAAK,MAAE,QAAQ,CAAC,SAAS,oBAAoB;CAC9C,EAAC,AACH,EAAC,CACD,SAAS,CACT,SACC,4GACD;CACH,aAAa,MACV,QAAQ,CACR,SAAS,sDAAsD;AACnE,EAAC,CACD,OACC,CAAC,SAAS;AAER,MAAK,KAAK,SAAS,KAAK,UAAU,KAAK,OAAO,WAAW,EACvD,QAAO;CAIT,MAAM,YAAY,KAAK,KAAK,WAAW,IAAI,GACvC,KAAK,KAAK,UAAU,EAAE,GACtB,KAAK;AAGT,QAAO,KAAK,OAAO,SAAS,UAAU;AACvC,GACD,EACE,SACE,sOACH,EACF;;;;;AAaH,eAAsB,kBACpBA,SAIC;AACD,MAAK,QAAQ,IAAI,eACf,OAAM,IAAIC,kCACR;CAKJ,MAAM,wBAAwB,0CAA4B;EACxD,YAAY,QAAQ;EACpB,kBAAkB,QAAQ;EAC1B,WAAW,QAAQ;CACpB,EAAC;CACF,MAAM,iBAAiB,4CAAqB;EAC1C,YAAY,QAAQ;EACpB,kBAAkB,QAAQ;EAC1B,WAAW,QAAQ;CACpB,EAAC;CACF,MAAM,aAAa,gCAAiB,EAAE,YAAY,QAAQ,WAAY,EAAC;AAGvE,QAAO,MAAM,4CAAkB;EAC7B,QAAQC;EACR,QAAQ,QAAQ;EAChB,OAAO;GACL,mBAAmB;GACnB,eAAe;GACf,QAAQ;EACT;EACD,QAAQ;CACT,EAAC;AACH"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ConfigurationError } from "./errors-D_R568zP.js";
|
|
2
|
+
import { callEmbeddedAgent } from "./callEmbeddedAgent-C0pC9du1.js";
|
|
3
|
+
import { createOtelLookupTool } from "./otel-semantics-BFRGhf6y.js";
|
|
4
|
+
import { createWhoamiTool } from "./whoami-bRIfclYF.js";
|
|
5
|
+
import { createDatasetAttributesTool } from "./utils-CP4vAzfv.js";
|
|
6
|
+
import { systemPrompt } from "./config-DDf8XyZs.js";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
//#region src/tools/search-events/agent.ts
|
|
10
|
+
const outputSchema = z.object({
|
|
11
|
+
dataset: z.enum([
|
|
12
|
+
"spans",
|
|
13
|
+
"errors",
|
|
14
|
+
"logs"
|
|
15
|
+
]).describe("Which dataset to use for the query"),
|
|
16
|
+
query: z.string().default("").nullish().describe("The Sentry query string for filtering results"),
|
|
17
|
+
fields: z.array(z.string()).describe("Array of field names to return in results."),
|
|
18
|
+
sort: z.string().describe("Sort parameter for results."),
|
|
19
|
+
timeRange: z.union([z.object({ statsPeriod: z.string().describe("Relative time period like '1h', '24h', '7d'") }), z.object({
|
|
20
|
+
start: z.string().describe("ISO 8601 start time"),
|
|
21
|
+
end: z.string().describe("ISO 8601 end time")
|
|
22
|
+
})]).nullish().describe("Time range for filtering events. Use either statsPeriod for relative time or start/end for absolute time."),
|
|
23
|
+
explanation: z.string().describe("Brief explanation of how you translated this query.")
|
|
24
|
+
}).refine((data) => {
|
|
25
|
+
if (!data.sort || !data.fields || data.fields.length === 0) return true;
|
|
26
|
+
const sortField = data.sort.startsWith("-") ? data.sort.substring(1) : data.sort;
|
|
27
|
+
return data.fields.includes(sortField);
|
|
28
|
+
}, { message: "Sort field must be included in the fields array. Sentry requires that any field used for sorting must also be explicitly selected. Add the sort field to the fields array or choose a different sort field that's already included." });
|
|
29
|
+
/**
|
|
30
|
+
* Search events agent - single entry point for translating natural language queries to Sentry search syntax
|
|
31
|
+
* This returns both the translated query result AND the tool calls made by the agent
|
|
32
|
+
*/
|
|
33
|
+
async function searchEventsAgent(options) {
|
|
34
|
+
if (!process.env.OPENAI_API_KEY) throw new ConfigurationError("OPENAI_API_KEY environment variable is required for semantic search");
|
|
35
|
+
const datasetAttributesTool = createDatasetAttributesTool({
|
|
36
|
+
apiService: options.apiService,
|
|
37
|
+
organizationSlug: options.organizationSlug,
|
|
38
|
+
projectId: options.projectId
|
|
39
|
+
});
|
|
40
|
+
const otelLookupTool = createOtelLookupTool({
|
|
41
|
+
apiService: options.apiService,
|
|
42
|
+
organizationSlug: options.organizationSlug,
|
|
43
|
+
projectId: options.projectId
|
|
44
|
+
});
|
|
45
|
+
const whoamiTool = createWhoamiTool({ apiService: options.apiService });
|
|
46
|
+
return await callEmbeddedAgent({
|
|
47
|
+
system: systemPrompt,
|
|
48
|
+
prompt: options.query,
|
|
49
|
+
tools: {
|
|
50
|
+
datasetAttributes: datasetAttributesTool,
|
|
51
|
+
otelSemantics: otelLookupTool,
|
|
52
|
+
whoami: whoamiTool
|
|
53
|
+
},
|
|
54
|
+
schema: outputSchema
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { searchEventsAgent };
|
|
60
|
+
//# sourceMappingURL=agent-CP5e4nTv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-CP5e4nTv.js","names":["options: SearchEventsAgentOptions"],"sources":["../src/tools/search-events/agent.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ConfigurationError } from \"../../errors\";\nimport { callEmbeddedAgent } from \"../../internal/agents/callEmbeddedAgent\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { createOtelLookupTool } from \"../../internal/agents/tools/otel-semantics\";\nimport { createWhoamiTool } from \"../../internal/agents/tools/whoami\";\nimport { createDatasetAttributesTool } from \"./utils\";\nimport { systemPrompt } from \"./config\";\n\nconst outputSchema = z\n .object({\n dataset: z\n .enum([\"spans\", \"errors\", \"logs\"])\n .describe(\"Which dataset to use for the query\"),\n query: z\n .string()\n .default(\"\")\n .nullish()\n .describe(\"The Sentry query string for filtering results\"),\n fields: z\n .array(z.string())\n .describe(\"Array of field names to return in results.\"),\n sort: z.string().describe(\"Sort parameter for results.\"),\n timeRange: z\n .union([\n z.object({\n statsPeriod: z\n .string()\n .describe(\"Relative time period like '1h', '24h', '7d'\"),\n }),\n z.object({\n start: z.string().describe(\"ISO 8601 start time\"),\n end: z.string().describe(\"ISO 8601 end time\"),\n }),\n ])\n .nullish()\n .describe(\n \"Time range for filtering events. Use either statsPeriod for relative time or start/end for absolute time.\",\n ),\n explanation: z\n .string()\n .describe(\"Brief explanation of how you translated this query.\"),\n })\n .refine(\n (data) => {\n // Only validate if both sort and fields are present\n if (!data.sort || !data.fields || data.fields.length === 0) {\n return true;\n }\n\n // Extract the field name from sort parameter (e.g., \"-timestamp\" -> \"timestamp\", \"-count()\" -> \"count()\")\n const sortField = data.sort.startsWith(\"-\")\n ? data.sort.substring(1)\n : data.sort;\n\n // Check if sort field is in fields array\n return data.fields.includes(sortField);\n },\n {\n message:\n \"Sort field must be included in the fields array. Sentry requires that any field used for sorting must also be explicitly selected. Add the sort field to the fields array or choose a different sort field that's already included.\",\n },\n );\n\nexport interface SearchEventsAgentOptions {\n query: string;\n organizationSlug: string;\n apiService: SentryApiService;\n projectId?: string;\n}\n\n/**\n * Search events agent - single entry point for translating natural language queries to Sentry search syntax\n * This returns both the translated query result AND the tool calls made by the agent\n */\nexport async function searchEventsAgent(\n options: SearchEventsAgentOptions,\n): Promise<{\n result: z.infer<typeof outputSchema>;\n toolCalls: any[];\n}> {\n if (!process.env.OPENAI_API_KEY) {\n throw new ConfigurationError(\n \"OPENAI_API_KEY environment variable is required for semantic search\",\n );\n }\n\n // Create tools pre-bound with the provided API service and organization\n const datasetAttributesTool = createDatasetAttributesTool({\n apiService: options.apiService,\n organizationSlug: options.organizationSlug,\n projectId: options.projectId,\n });\n const otelLookupTool = createOtelLookupTool({\n apiService: options.apiService,\n organizationSlug: options.organizationSlug,\n projectId: options.projectId,\n });\n const whoamiTool = createWhoamiTool({ apiService: options.apiService });\n\n // Use callEmbeddedAgent to translate the query with tool call capture\n return await callEmbeddedAgent({\n system: systemPrompt,\n prompt: options.query,\n tools: {\n datasetAttributes: datasetAttributesTool,\n otelSemantics: otelLookupTool,\n whoami: whoamiTool,\n },\n schema: outputSchema,\n });\n}\n"],"mappings":";;;;;;;;;AASA,MAAM,eAAe,EAClB,OAAO;CACN,SAAS,EACN,KAAK;EAAC;EAAS;EAAU;CAAO,EAAC,CACjC,SAAS,qCAAqC;CACjD,OAAO,EACJ,QAAQ,CACR,QAAQ,GAAG,CACX,SAAS,CACT,SAAS,gDAAgD;CAC5D,QAAQ,EACL,MAAM,EAAE,QAAQ,CAAC,CACjB,SAAS,6CAA6C;CACzD,MAAM,EAAE,QAAQ,CAAC,SAAS,8BAA8B;CACxD,WAAW,EACR,MAAM,CACL,EAAE,OAAO,EACP,aAAa,EACV,QAAQ,CACR,SAAS,8CAA8C,CAC3D,EAAC,EACF,EAAE,OAAO;EACP,OAAO,EAAE,QAAQ,CAAC,SAAS,sBAAsB;EACjD,KAAK,EAAE,QAAQ,CAAC,SAAS,oBAAoB;CAC9C,EAAC,AACH,EAAC,CACD,SAAS,CACT,SACC,4GACD;CACH,aAAa,EACV,QAAQ,CACR,SAAS,sDAAsD;AACnE,EAAC,CACD,OACC,CAAC,SAAS;AAER,MAAK,KAAK,SAAS,KAAK,UAAU,KAAK,OAAO,WAAW,EACvD,QAAO;CAIT,MAAM,YAAY,KAAK,KAAK,WAAW,IAAI,GACvC,KAAK,KAAK,UAAU,EAAE,GACtB,KAAK;AAGT,QAAO,KAAK,OAAO,SAAS,UAAU;AACvC,GACD,EACE,SACE,sOACH,EACF;;;;;AAaH,eAAsB,kBACpBA,SAIC;AACD,MAAK,QAAQ,IAAI,eACf,OAAM,IAAI,mBACR;CAKJ,MAAM,wBAAwB,4BAA4B;EACxD,YAAY,QAAQ;EACpB,kBAAkB,QAAQ;EAC1B,WAAW,QAAQ;CACpB,EAAC;CACF,MAAM,iBAAiB,qBAAqB;EAC1C,YAAY,QAAQ;EACpB,kBAAkB,QAAQ;EAC1B,WAAW,QAAQ;CACpB,EAAC;CACF,MAAM,aAAa,iBAAiB,EAAE,YAAY,QAAQ,WAAY,EAAC;AAGvE,QAAO,MAAM,kBAAkB;EAC7B,QAAQ;EACR,QAAQ,QAAQ;EAChB,OAAO;GACL,mBAAmB;GACnB,eAAe;GACf,QAAQ;EACT;EACD,QAAQ;CACT,EAAC;AACH"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
+
const require_errors = require('./errors-BtJEw2Z-.cjs');
|
|
3
|
+
const require_callEmbeddedAgent = require('./callEmbeddedAgent-BRz60bxa.cjs');
|
|
4
|
+
const require_whoami = require('./whoami-DCgOyVnW.cjs');
|
|
5
|
+
const require_dataset_fields = require('./dataset-fields-DacS0qF0.cjs');
|
|
6
|
+
const require_config = require('./config-DFt-16ni.cjs');
|
|
7
|
+
const zod = require_chunk.__toESM(require("zod"));
|
|
8
|
+
|
|
9
|
+
//#region src/tools/search-issues/agent.ts
|
|
10
|
+
const outputSchema = zod.z.object({
|
|
11
|
+
query: zod.z.string().default("").nullish().describe("The Sentry issue search query"),
|
|
12
|
+
sort: zod.z.enum([
|
|
13
|
+
"date",
|
|
14
|
+
"freq",
|
|
15
|
+
"new",
|
|
16
|
+
"user"
|
|
17
|
+
]).default("date").nullish().describe("How to sort the results"),
|
|
18
|
+
explanation: zod.z.string().describe("Brief explanation of how you translated this query.")
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Search issues agent - single entry point for translating natural language queries to Sentry issue search syntax
|
|
22
|
+
* This returns both the translated query result AND the tool calls made by the agent
|
|
23
|
+
*/
|
|
24
|
+
async function searchIssuesAgent(options) {
|
|
25
|
+
if (!process.env.OPENAI_API_KEY) throw new require_errors.ConfigurationError("OPENAI_API_KEY environment variable is required for semantic search");
|
|
26
|
+
return await require_callEmbeddedAgent.callEmbeddedAgent({
|
|
27
|
+
system: require_config.systemPrompt,
|
|
28
|
+
prompt: options.query,
|
|
29
|
+
tools: {
|
|
30
|
+
issueFields: require_dataset_fields.createDatasetFieldsTool({
|
|
31
|
+
apiService: options.apiService,
|
|
32
|
+
organizationSlug: options.organizationSlug,
|
|
33
|
+
dataset: "search_issues",
|
|
34
|
+
projectId: options.projectId
|
|
35
|
+
}),
|
|
36
|
+
whoami: require_whoami.createWhoamiTool({ apiService: options.apiService })
|
|
37
|
+
},
|
|
38
|
+
schema: outputSchema
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
Object.defineProperty(exports, 'searchIssuesAgent', {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return searchIssuesAgent;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=agent-D9xBrLvD.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-D9xBrLvD.cjs","names":["options: SearchIssuesAgentOptions","ConfigurationError","systemPrompt"],"sources":["../src/tools/search-issues/agent.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../api-client\";\nimport { ConfigurationError } from \"../../errors\";\nimport { callEmbeddedAgent } from \"../../internal/agents/callEmbeddedAgent\";\nimport { createDatasetFieldsTool } from \"../../internal/agents/tools/dataset-fields\";\nimport { createWhoamiTool } from \"../../internal/agents/tools/whoami\";\nimport { systemPrompt } from \"./config\";\n\nconst outputSchema = z.object({\n query: z\n .string()\n .default(\"\")\n .nullish()\n .describe(\"The Sentry issue search query\"),\n sort: z\n .enum([\"date\", \"freq\", \"new\", \"user\"])\n .default(\"date\")\n .nullish()\n .describe(\"How to sort the results\"),\n explanation: z\n .string()\n .describe(\"Brief explanation of how you translated this query.\"),\n});\n\nexport interface SearchIssuesAgentOptions {\n query: string;\n organizationSlug: string;\n apiService: SentryApiService;\n projectId?: string;\n}\n\n/**\n * Search issues agent - single entry point for translating natural language queries to Sentry issue search syntax\n * This returns both the translated query result AND the tool calls made by the agent\n */\nexport async function searchIssuesAgent(\n options: SearchIssuesAgentOptions,\n): Promise<{\n result: z.infer<typeof outputSchema>;\n toolCalls: any[];\n}> {\n if (!process.env.OPENAI_API_KEY) {\n throw new ConfigurationError(\n \"OPENAI_API_KEY environment variable is required for semantic search\",\n );\n }\n\n // Create tools pre-bound with the provided API service and organization\n return await callEmbeddedAgent({\n system: systemPrompt,\n prompt: options.query,\n tools: {\n issueFields: createDatasetFieldsTool({\n apiService: options.apiService,\n organizationSlug: options.organizationSlug,\n dataset: \"search_issues\",\n projectId: options.projectId,\n }),\n whoami: createWhoamiTool({ apiService: options.apiService }),\n },\n schema: outputSchema,\n });\n}\n"],"mappings":";;;;;;;;;AAQA,MAAM,eAAe,MAAE,OAAO;CAC5B,OAAO,MACJ,QAAQ,CACR,QAAQ,GAAG,CACX,SAAS,CACT,SAAS,gCAAgC;CAC5C,MAAM,MACH,KAAK;EAAC;EAAQ;EAAQ;EAAO;CAAO,EAAC,CACrC,QAAQ,OAAO,CACf,SAAS,CACT,SAAS,0BAA0B;CACtC,aAAa,MACV,QAAQ,CACR,SAAS,sDAAsD;AACnE,EAAC;;;;;AAaF,eAAsB,kBACpBA,SAIC;AACD,MAAK,QAAQ,IAAI,eACf,OAAM,IAAIC,kCACR;AAKJ,QAAO,MAAM,4CAAkB;EAC7B,QAAQC;EACR,QAAQ,QAAQ;EAChB,OAAO;GACL,aAAa,+CAAwB;IACnC,YAAY,QAAQ;IACpB,kBAAkB,QAAQ;IAC1B,SAAS;IACT,WAAW,QAAQ;GACpB,EAAC;GACF,QAAQ,gCAAiB,EAAE,YAAY,QAAQ,WAAY,EAAC;EAC7D;EACD,QAAQ;CACT,EAAC;AACH"}
|