@sentry/mcp-server 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -10
- package/dist/{agent-DD6nYWBQ.d.cts → agent-ADO0sPxf.d.cts} +2 -2
- package/dist/{agent-DD6nYWBQ.d.cts.map → agent-ADO0sPxf.d.cts.map} +1 -1
- package/dist/{agent-DAlB2lDx.d.cts → agent-BA98dlM7.d.cts} +2 -2
- package/dist/{agent-DAlB2lDx.d.cts.map → agent-BA98dlM7.d.cts.map} +1 -1
- package/dist/{agent-CP5e4nTv.js → agent-BL7Xae0U.js} +6 -6
- package/dist/{agent-CP5e4nTv.js.map → agent-BL7Xae0U.js.map} +1 -1
- package/dist/{agent-D9xBrLvD.cjs → agent-CbJ6lvV3.cjs} +5 -5
- package/dist/{agent-D9xBrLvD.cjs.map → agent-CbJ6lvV3.cjs.map} +1 -1
- package/dist/{agent-BF4d0oSb.cjs → agent-D7MuFRwE.cjs} +6 -6
- package/dist/{agent-BF4d0oSb.cjs.map → agent-D7MuFRwE.cjs.map} +1 -1
- package/dist/{agent-xEtb_OFK.d.ts → agent-D9DV11tZ.d.ts} +4 -4
- package/dist/{agent-xEtb_OFK.d.ts.map → agent-D9DV11tZ.d.ts.map} +1 -1
- package/dist/{agent-DzpIyyqs.js → agent-DXya3Bcy.js} +5 -5
- package/dist/{agent-DzpIyyqs.js.map → agent-DXya3Bcy.js.map} +1 -1
- package/dist/{agent-UxF0J0wb.d.ts → agent-DhHtOQmP.d.ts} +6 -6
- package/dist/{agent-UxF0J0wb.d.ts.map → agent-DhHtOQmP.d.ts.map} +1 -1
- package/dist/{analyze-issue-with-seer-Cf0jCiKP.cjs → analyze-issue-with-seer-CI8pvCnf.cjs} +16 -11
- package/dist/analyze-issue-with-seer-CI8pvCnf.cjs.map +1 -0
- package/dist/{analyze-issue-with-seer-DqwczSTV.js → analyze-issue-with-seer-DvuKEcbu.js} +16 -11
- package/dist/analyze-issue-with-seer-DvuKEcbu.js.map +1 -0
- package/dist/{api-D9yO5I-i.cjs → api-CZD9zwQ-.cjs} +4 -4
- package/dist/{api-D9yO5I-i.cjs.map → api-CZD9zwQ-.cjs.map} +1 -1
- package/dist/{api-mjnGhOW2.js → api-CkLTFexT.js} +4 -4
- package/dist/{api-mjnGhOW2.js.map → api-CkLTFexT.js.map} +1 -1
- package/dist/api-client/client.cjs +5 -4
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +5 -4
- package/dist/api-client/errors.cjs +1 -1
- package/dist/api-client/errors.d.ts +1 -1
- package/dist/api-client/errors.js +1 -1
- package/dist/api-client/index.cjs +8 -6
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +6 -6
- package/dist/api-client/index.js +8 -7
- package/dist/api-client/schema.cjs +2 -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/{callEmbeddedAgent-C0pC9du1.js → callEmbeddedAgent-B_BMEB_u.js} +3 -3
- package/dist/callEmbeddedAgent-B_BMEB_u.js.map +1 -0
- package/dist/{callEmbeddedAgent-BRz60bxa.cjs → callEmbeddedAgent-BaGxBAdM.cjs} +3 -3
- package/dist/callEmbeddedAgent-BaGxBAdM.cjs.map +1 -0
- package/dist/cli/parse.cjs +1 -1
- package/dist/cli/parse.d.cts +2 -2
- package/dist/cli/parse.d.cts.map +1 -1
- package/dist/cli/parse.d.ts +2 -2
- package/dist/cli/parse.d.ts.map +1 -1
- package/dist/cli/parse.js +1 -1
- package/dist/cli/resolve.cjs +3 -3
- package/dist/cli/resolve.d.cts +2 -2
- package/dist/cli/resolve.d.cts.map +1 -1
- package/dist/cli/resolve.d.ts +2 -2
- package/dist/cli/resolve.d.ts.map +1 -1
- package/dist/cli/resolve.js +3 -3
- package/dist/cli/types.d.cts +2 -2
- package/dist/cli/types.d.ts +2 -2
- package/dist/cli/usage.cjs +1 -1
- package/dist/cli/usage.d.cts +1 -1
- package/dist/cli/usage.d.ts +1 -1
- package/dist/cli/usage.js +1 -1
- package/dist/{client-AVVG7J24.cjs → client-C2TwbSm-.cjs} +75 -19
- package/dist/client-C2TwbSm-.cjs.map +1 -0
- package/dist/{client-BqrNpqZW.js → client-CWgvrDHH.js} +75 -19
- package/dist/client-CWgvrDHH.js.map +1 -0
- package/dist/{client-B0wezrpt.d.cts → client-C_fNdaX8.d.cts} +23 -11
- package/dist/client-C_fNdaX8.d.cts.map +1 -0
- package/dist/{client-D-KqRd94.d.ts → client-VVhTv_ej.d.ts} +24 -12
- package/dist/client-VVhTv_ej.d.ts.map +1 -0
- package/dist/{config-CqdBCqLx.js → config-BMC-126h.js} +1 -1
- package/dist/{config-CqdBCqLx.js.map → config-BMC-126h.js.map} +1 -1
- package/dist/{config-DsvSjPCG.cjs → config-CllFlx5w.cjs} +1 -1
- package/dist/{config-DsvSjPCG.cjs.map → config-CllFlx5w.cjs.map} +1 -1
- package/dist/{config-DFt-16ni.cjs → config-DbQP60oo.cjs} +1 -1
- package/dist/{config-DFt-16ni.cjs.map → config-DbQP60oo.cjs.map} +1 -1
- package/dist/{config-DDf8XyZs.js → config-DlhHLHjD.js} +1 -1
- package/dist/{config-DDf8XyZs.js.map → config-DlhHLHjD.js.map} +1 -1
- package/dist/constraint-helpers-Bey-Pii6.js +64 -0
- package/dist/constraint-helpers-Bey-Pii6.js.map +1 -0
- package/dist/constraint-helpers-BqcuWXad.cjs +76 -0
- package/dist/constraint-helpers-BqcuWXad.cjs.map +1 -0
- package/dist/context-storage-B8onP4Pw.cjs +69 -0
- package/dist/context-storage-B8onP4Pw.cjs.map +1 -0
- package/dist/context-storage-BRwdNVKx.js +51 -0
- package/dist/context-storage-BRwdNVKx.js.map +1 -0
- package/dist/{create-dsn-BhshlP7l.js → create-dsn-Bx2s8Bik.js} +9 -4
- package/dist/create-dsn-Bx2s8Bik.js.map +1 -0
- package/dist/{create-dsn-DaHidLhE.cjs → create-dsn-ggGt0lZf.cjs} +9 -4
- package/dist/create-dsn-ggGt0lZf.cjs.map +1 -0
- package/dist/{create-project-C3laecaU.js → create-project-C0pm6zUK.js} +11 -6
- package/dist/create-project-C0pm6zUK.js.map +1 -0
- package/dist/{create-project-xszOpGTC.cjs → create-project-CZBklXm8.cjs} +11 -6
- package/dist/create-project-CZBklXm8.cjs.map +1 -0
- package/dist/{create-team-CTN-DxOE.js → create-team-BQIns3VD.js} +9 -4
- package/dist/create-team-BQIns3VD.js.map +1 -0
- package/dist/{create-team-DmnJHSIx.cjs → create-team-DmqKw2c1.cjs} +9 -4
- package/dist/create-team-DmqKw2c1.cjs.map +1 -0
- package/dist/{dataset-fields-DacS0qF0.cjs → dataset-fields-C0m-vwNH.cjs} +2 -2
- package/dist/{dataset-fields-DacS0qF0.cjs.map → dataset-fields-C0m-vwNH.cjs.map} +1 -1
- package/dist/{dataset-fields-By43SxJp.js → dataset-fields-C1o_cZrM.js} +2 -2
- package/dist/{dataset-fields-By43SxJp.js.map → dataset-fields-C1o_cZrM.js.map} +1 -1
- package/dist/{enhance-error-C7AVt85N.js → enhance-error-D3QfZOhm.js} +2 -2
- package/dist/{enhance-error-C7AVt85N.js.map → enhance-error-D3QfZOhm.js.map} +1 -1
- package/dist/{enhance-error-CAREhbDf.cjs → enhance-error-DzXrKg85.cjs} +2 -2
- package/dist/{enhance-error-CAREhbDf.cjs.map → enhance-error-DzXrKg85.cjs.map} +1 -1
- package/dist/{error-handling-qfa1BeDb.cjs → error-handling-CxV2m_Dr.cjs} +5 -5
- package/dist/error-handling-CxV2m_Dr.cjs.map +1 -0
- package/dist/{error-handling-efwohgKv.js → error-handling-R4SJQ7n0.js} +5 -5
- package/dist/error-handling-R4SJQ7n0.js.map +1 -0
- package/dist/{errors-CNTY5dED.cjs → errors-Bmqdg5Q6.cjs} +1 -1
- package/dist/{errors-CNTY5dED.cjs.map → errors-Bmqdg5Q6.cjs.map} +1 -1
- package/dist/{errors-Cn4l-BlC.d.ts → errors-Bvit2_Qs.d.ts} +1 -1
- package/dist/{errors-Cn4l-BlC.d.ts.map → errors-Bvit2_Qs.d.ts.map} +1 -1
- package/dist/{errors-Dr7Q6mD5.js → errors-CQZ-QlOB.js} +1 -1
- package/dist/{errors-Dr7Q6mD5.js.map → errors-CQZ-QlOB.js.map} +1 -1
- package/dist/{errors-bxPCd8AO.d.ts → errors-JbBt1G2l.d.ts} +1 -1
- package/dist/{errors-bxPCd8AO.d.ts.map → errors-JbBt1G2l.d.ts.map} +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/{fetch-utils-DRWItYjp.js → fetch-utils-BetJhSli.js} +1 -1
- package/dist/{fetch-utils-DRWItYjp.js.map → fetch-utils-BetJhSli.js.map} +1 -1
- package/dist/{fetch-utils-bHWZV7j9.cjs → fetch-utils-Cp3P-Ai3.cjs} +1 -1
- package/dist/{fetch-utils-bHWZV7j9.cjs.map → fetch-utils-Cp3P-Ai3.cjs.map} +1 -1
- package/dist/{find-dsns-U4CCcoTv.js → find-dsns-BPN8wnUr.js} +7 -3
- package/dist/find-dsns-BPN8wnUr.js.map +1 -0
- package/dist/{find-dsns-D0l3siyF.cjs → find-dsns-Ct6uFZMB.cjs} +7 -3
- package/dist/find-dsns-Ct6uFZMB.cjs.map +1 -0
- package/dist/{find-organizations-Ca-zpAlI.cjs → find-organizations-BGI_WW2q.cjs} +18 -7
- package/dist/find-organizations-BGI_WW2q.cjs.map +1 -0
- package/dist/{find-organizations-HUZFa8ZA.js → find-organizations-DxH9SS3w.js} +18 -7
- package/dist/find-organizations-DxH9SS3w.js.map +1 -0
- package/dist/{find-projects-CWNLthwg.cjs → find-projects-B80qSPpP.cjs} +19 -8
- package/dist/find-projects-B80qSPpP.cjs.map +1 -0
- package/dist/{find-projects-Dy1_O9L0.js → find-projects-DOMBBYAP.js} +19 -8
- package/dist/find-projects-DOMBBYAP.js.map +1 -0
- package/dist/{find-releases-DN_BfQM2.js → find-releases-CfZRMBvh.js} +8 -4
- package/dist/find-releases-CfZRMBvh.js.map +1 -0
- package/dist/{find-releases-BtazPcQH.cjs → find-releases-Cy-Q-Qje.cjs} +8 -4
- package/dist/find-releases-Cy-Q-Qje.cjs.map +1 -0
- package/dist/{find-teams-_zAHPVGx.cjs → find-teams-BuH2ddaL.cjs} +19 -8
- package/dist/find-teams-BuH2ddaL.cjs.map +1 -0
- package/dist/find-teams-D5770X0I.js +51 -0
- package/dist/find-teams-D5770X0I.js.map +1 -0
- package/dist/{formatters-DJSiRyVi.js → formatters-B9XiCNZ_.js} +2 -2
- package/dist/{formatters-DJSiRyVi.js.map → formatters-B9XiCNZ_.js.map} +1 -1
- package/dist/{formatters-Bzx0sr5R.cjs → formatters-CkbVfXEE.cjs} +2 -2
- package/dist/{formatters-Bzx0sr5R.cjs.map → formatters-CkbVfXEE.cjs.map} +1 -1
- package/dist/{formatters-CCZdBmLd.cjs → formatters-DMlTJcHW.cjs} +2 -2
- package/dist/{formatters-CCZdBmLd.cjs.map → formatters-DMlTJcHW.cjs.map} +1 -1
- package/dist/{formatters-DJM9_F3A.js → formatters-MEWHZ83Y.js} +2 -2
- package/dist/{formatters-DJM9_F3A.js.map → formatters-MEWHZ83Y.js.map} +1 -1
- package/dist/{formatting-CfpTtZLo.js → formatting-CAQbf0su.js} +1 -1
- package/dist/{formatting-CfpTtZLo.js.map → formatting-CAQbf0su.js.map} +1 -1
- package/dist/{formatting-CqmsvuAY.cjs → formatting-Cu1Skk_Y.cjs} +444 -10
- package/dist/formatting-Cu1Skk_Y.cjs.map +1 -0
- package/dist/{formatting-BjCK9XwW.js → formatting-DytLf-hH.js} +444 -10
- package/dist/formatting-DytLf-hH.js.map +1 -0
- package/dist/{formatting-CJKoPqjy.cjs → formatting-EM76FrY3.cjs} +1 -1
- package/dist/{formatting-CJKoPqjy.cjs.map → formatting-EM76FrY3.cjs.map} +1 -1
- package/dist/{formatting-l3qx5d7L.d.ts → formatting-FJne_W9i.d.cts} +11 -6
- package/dist/formatting-FJne_W9i.d.cts.map +1 -0
- package/dist/{formatting-XMmhMjRz.d.cts → formatting-ar_6QZRE.d.ts} +11 -6
- package/dist/formatting-ar_6QZRE.d.ts.map +1 -0
- package/dist/{get-doc-JDwOkY2j.js → get-doc-D9Xq7et9.js} +8 -4
- package/dist/get-doc-D9Xq7et9.js.map +1 -0
- package/dist/{get-doc-Euz6NiM3.cjs → get-doc-MxWNTA8R.cjs} +8 -4
- package/dist/get-doc-MxWNTA8R.cjs.map +1 -0
- package/dist/{get-event-attachment-pIJmUfFE.js → get-event-attachment-B_BzSfcE.js} +7 -3
- package/dist/get-event-attachment-B_BzSfcE.js.map +1 -0
- package/dist/{get-event-attachment-DvpQ-dEP.cjs → get-event-attachment-CrtS0QRV.cjs} +7 -3
- package/dist/get-event-attachment-CrtS0QRV.cjs.map +1 -0
- package/dist/{get-issue-details-B1PDMmMY.js → get-issue-details-Bvw1Xi8I.js} +50 -10
- package/dist/get-issue-details-Bvw1Xi8I.js.map +1 -0
- package/dist/{get-issue-details-BH75EnNk.cjs → get-issue-details-DTQ-jXyu.cjs} +50 -10
- package/dist/get-issue-details-DTQ-jXyu.cjs.map +1 -0
- package/dist/{get-trace-details-CaK0JMf4.js → get-trace-details-BL5_jvgs.js} +7 -3
- package/dist/get-trace-details-BL5_jvgs.js.map +1 -0
- package/dist/{get-trace-details-Bksygq21.cjs → get-trace-details-iDp34mms.cjs} +7 -3
- package/dist/get-trace-details-iDp34mms.cjs.map +1 -0
- package/dist/{handler-DyBdUYam.js → handler-B08ITQl8.js} +10 -6
- package/dist/handler-B08ITQl8.js.map +1 -0
- package/dist/{handler-C0zOOLbO.cjs → handler-B7-KeBak.cjs} +10 -6
- package/dist/handler-B7-KeBak.cjs.map +1 -0
- package/dist/{handler-DSYbwPgv.d.cts → handler-BcRR_2MX.d.cts} +2 -2
- package/dist/{handler-DSYbwPgv.d.cts.map → handler-BcRR_2MX.d.cts.map} +1 -1
- package/dist/{handler-CcbbXK_f.d.ts → handler-CdSvAOl6.d.ts} +2 -2
- package/dist/{handler-CcbbXK_f.d.ts.map → handler-CdSvAOl6.d.ts.map} +1 -1
- package/dist/{handler-cy5oD28N.cjs → handler-DIiYPQGL.cjs} +11 -7
- package/dist/handler-DIiYPQGL.cjs.map +1 -0
- package/dist/{handler-RV4XhU8F.d.cts → handler-LaesAQaD.d.cts} +2 -2
- package/dist/{handler-RV4XhU8F.d.cts.map → handler-LaesAQaD.d.cts.map} +1 -1
- package/dist/{handler-BbqDy4DA.js → handler-nILS77E9.js} +11 -7
- package/dist/handler-nILS77E9.js.map +1 -0
- package/dist/{handler-Ct9Z_sTZ.d.ts → handler-uWae09YN.d.ts} +2 -2
- package/dist/{handler-Ct9Z_sTZ.d.ts.map → handler-uWae09YN.d.ts.map} +1 -1
- package/dist/index.cjs +72 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +71 -75
- package/dist/index.js.map +1 -1
- package/dist/internal/agents/callEmbeddedAgent.cjs +2 -1
- package/dist/internal/agents/callEmbeddedAgent.js +2 -1
- package/dist/internal/agents/openai-provider.cjs +4 -0
- package/dist/internal/agents/openai-provider.d.cts +24 -0
- package/dist/internal/agents/openai-provider.d.cts.map +1 -0
- package/dist/internal/agents/openai-provider.d.ts +24 -0
- package/dist/internal/agents/openai-provider.d.ts.map +1 -0
- package/dist/internal/agents/openai-provider.js +3 -0
- package/dist/internal/agents/tools/dataset-fields.cjs +9 -9
- package/dist/internal/agents/tools/dataset-fields.d.cts +7 -7
- package/dist/internal/agents/tools/dataset-fields.d.ts +9 -9
- package/dist/internal/agents/tools/dataset-fields.js +9 -9
- package/dist/internal/agents/tools/otel-semantics.cjs +9 -9
- package/dist/internal/agents/tools/otel-semantics.d.cts +7 -7
- package/dist/internal/agents/tools/otel-semantics.d.ts +9 -9
- package/dist/internal/agents/tools/otel-semantics.js +9 -9
- package/dist/internal/agents/tools/utils.cjs +8 -8
- package/dist/internal/agents/tools/utils.d.cts +1 -1
- package/dist/internal/agents/tools/utils.d.ts +1 -1
- package/dist/internal/agents/tools/utils.js +8 -8
- package/dist/internal/agents/tools/whoami.cjs +9 -9
- package/dist/internal/agents/tools/whoami.d.cts +7 -7
- package/dist/internal/agents/tools/whoami.d.ts +9 -9
- package/dist/internal/agents/tools/whoami.js +9 -9
- package/dist/internal/constraint-helpers.cjs +4 -0
- package/dist/internal/constraint-helpers.d.cts +53 -0
- package/dist/internal/constraint-helpers.d.cts.map +1 -0
- package/dist/internal/constraint-helpers.d.ts +53 -0
- package/dist/internal/constraint-helpers.d.ts.map +1 -0
- package/dist/internal/constraint-helpers.js +3 -0
- package/dist/internal/context-storage.cjs +5 -0
- package/dist/internal/context-storage.d.cts +48 -0
- package/dist/internal/context-storage.d.cts.map +1 -0
- package/dist/internal/context-storage.d.ts +48 -0
- package/dist/internal/context-storage.d.ts.map +1 -0
- package/dist/internal/context-storage.js +3 -0
- package/dist/internal/error-handling.cjs +8 -8
- package/dist/internal/error-handling.d.cts +3 -3
- package/dist/internal/error-handling.d.ts +6 -6
- package/dist/internal/error-handling.js +8 -8
- package/dist/internal/fetch-utils.cjs +1 -1
- package/dist/internal/fetch-utils.js +1 -1
- package/dist/internal/formatting.cjs +2 -2
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +6 -6
- 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/test-fixtures.cjs +12 -2
- package/dist/internal/test-fixtures.cjs.map +1 -1
- package/dist/internal/test-fixtures.d.cts +35 -2133
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +35 -2133
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/internal/test-fixtures.js +12 -2
- package/dist/internal/test-fixtures.js.map +1 -1
- package/dist/internal/tool-helpers/api.cjs +9 -8
- package/dist/internal/tool-helpers/api.d.cts +5 -6
- package/dist/internal/tool-helpers/api.d.cts.map +1 -1
- package/dist/internal/tool-helpers/api.d.ts +7 -8
- package/dist/internal/tool-helpers/api.d.ts.map +1 -1
- package/dist/internal/tool-helpers/api.js +9 -8
- package/dist/internal/tool-helpers/define.d.cts +3 -4
- package/dist/internal/tool-helpers/define.d.cts.map +1 -1
- package/dist/internal/tool-helpers/define.d.ts +3 -4
- package/dist/internal/tool-helpers/define.d.ts.map +1 -1
- package/dist/internal/tool-helpers/enhance-error.cjs +8 -7
- package/dist/internal/tool-helpers/enhance-error.d.cts +3 -3
- package/dist/internal/tool-helpers/enhance-error.d.ts +5 -5
- package/dist/internal/tool-helpers/enhance-error.js +8 -7
- package/dist/internal/tool-helpers/formatting.cjs +1 -1
- package/dist/internal/tool-helpers/formatting.d.cts +3 -3
- package/dist/internal/tool-helpers/formatting.d.ts +5 -5
- package/dist/internal/tool-helpers/formatting.js +1 -1
- package/dist/internal/tool-helpers/issue.cjs +4 -4
- package/dist/internal/tool-helpers/issue.d.cts +5 -5
- package/dist/internal/tool-helpers/issue.d.ts +7 -7
- package/dist/internal/tool-helpers/issue.js +4 -4
- package/dist/internal/tool-helpers/seer.cjs +1 -1
- package/dist/internal/tool-helpers/seer.d.cts +3 -3
- package/dist/internal/tool-helpers/seer.d.ts +5 -5
- package/dist/internal/tool-helpers/seer.js +1 -1
- package/dist/internal/tool-helpers/validate-region-url.cjs +1 -1
- package/dist/internal/tool-helpers/validate-region-url.js +1 -1
- package/dist/{issue-helpers-Bjp6xu5H.js → issue-helpers-8Bubch8E.js} +1 -1
- package/dist/{issue-helpers-Bjp6xu5H.js.map → issue-helpers-8Bubch8E.js.map} +1 -1
- package/dist/{issue-helpers-Cf6mvHG1.d.cts → issue-helpers-CD46ia7_.d.cts} +1 -1
- package/dist/{issue-helpers-Cf6mvHG1.d.cts.map → issue-helpers-CD46ia7_.d.cts.map} +1 -1
- package/dist/{issue-helpers-1qxzc7ww.cjs → issue-helpers-DbPTv_qC.cjs} +1 -1
- package/dist/{issue-helpers-1qxzc7ww.cjs.map → issue-helpers-DbPTv_qC.cjs.map} +1 -1
- package/dist/{issue-helpers-kwhe1ipy.d.ts → issue-helpers-bECziPOG.d.ts} +1 -1
- package/dist/{issue-helpers-kwhe1ipy.d.ts.map → issue-helpers-bECziPOG.d.ts.map} +1 -1
- package/dist/logging-CDYnh7ho.d.cts +31 -0
- package/dist/logging-CDYnh7ho.d.cts.map +1 -0
- package/dist/logging-CkAJKyq2.cjs +298 -0
- package/dist/logging-CkAJKyq2.cjs.map +1 -0
- package/dist/logging-DqqDTe02.js +256 -0
- package/dist/logging-DqqDTe02.js.map +1 -0
- package/dist/logging-PY270KtN.d.ts +31 -0
- package/dist/logging-PY270KtN.d.ts.map +1 -0
- package/dist/openai-provider-BELCfis6.js +29 -0
- package/dist/openai-provider-BELCfis6.js.map +1 -0
- package/dist/openai-provider-CRxXeC9G.cjs +41 -0
- package/dist/openai-provider-CRxXeC9G.cjs.map +1 -0
- package/dist/{otel-semantics-BFRGhf6y.js → otel-semantics-CArUzarp.js} +2 -2
- package/dist/{otel-semantics-BFRGhf6y.js.map → otel-semantics-CArUzarp.js.map} +1 -1
- package/dist/{otel-semantics-CkUpXWEJ.cjs → otel-semantics-onvZv7i9.cjs} +2 -2
- package/dist/{otel-semantics-CkUpXWEJ.cjs.map → otel-semantics-onvZv7i9.cjs.map} +1 -1
- package/dist/{parse-C3tRlsy-.js → parse-8lpnm_2Z.js} +4 -1
- package/dist/parse-8lpnm_2Z.js.map +1 -0
- package/dist/{parse-CeFc4xnt.cjs → parse-shlhKlaL.cjs} +4 -1
- package/dist/parse-shlhKlaL.cjs.map +1 -0
- package/dist/{permissions-C-q0Y5bL.d.ts → permissions-40d2hxK-.d.ts} +2 -2
- package/dist/permissions-40d2hxK-.d.ts.map +1 -0
- package/dist/{permissions-Cm5e34n2.d.cts → permissions-B1meXGie.d.cts} +2 -2
- package/dist/permissions-B1meXGie.d.cts.map +1 -0
- package/dist/{permissions-DRdH39Fe.js → permissions-C_xHmYV4.js} +5 -3
- package/dist/permissions-C_xHmYV4.js.map +1 -0
- package/dist/{permissions-DuDYuCjy.cjs → permissions-D5kR-bZw.cjs} +5 -3
- package/dist/permissions-D5kR-bZw.cjs.map +1 -0
- package/dist/permissions.cjs +1 -1
- package/dist/permissions.d.cts +1 -1
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.js +1 -1
- package/dist/{resolve-CAtC1wN-.cjs → resolve-CBipUzux.cjs} +5 -3
- package/dist/resolve-CBipUzux.cjs.map +1 -0
- package/dist/{resolve-B_Fq13Dk.js → resolve-CZduTbDq.js} +5 -3
- package/dist/resolve-CZduTbDq.js.map +1 -0
- package/dist/{schema-ChvpDxUk.d.cts → schema-0uEmsoCr.d.ts} +2512 -211
- package/dist/schema-0uEmsoCr.d.ts.map +1 -0
- package/dist/{schema-D1CzTJXB.js → schema-CuB-30t5.js} +38 -6
- package/dist/schema-CuB-30t5.js.map +1 -0
- package/dist/{schema-BUBkkdUa.cjs → schema-Cv_VNAHz.cjs} +8 -1
- package/dist/schema-Cv_VNAHz.cjs.map +1 -0
- package/dist/{schema-CbXlt1rW.cjs → schema-DoWJbcHt.cjs} +43 -5
- package/dist/schema-DoWJbcHt.cjs.map +1 -0
- package/dist/{schema-DPJO5nkQ.js → schema-rwexXWFL.js} +3 -2
- package/dist/schema-rwexXWFL.js.map +1 -0
- package/dist/{schema-DOY22v1Q.d.ts → schema-xhCkX5uD.d.cts} +2766 -465
- package/dist/schema-xhCkX5uD.d.cts.map +1 -0
- package/dist/schema.cjs +2 -1
- package/dist/schema.d.cts +2 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +2 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/{search-docs-CpAlMLs8.js → search-docs-B9qNTw49.js} +8 -4
- package/dist/search-docs-B9qNTw49.js.map +1 -0
- package/dist/{search-docs-CH6-1H9_.cjs → search-docs-CTT1Bt1U.cjs} +8 -4
- package/dist/search-docs-CTT1Bt1U.cjs.map +1 -0
- package/dist/{seer-retC9dFI.cjs → seer-B63P5CPi.cjs} +1 -1
- package/dist/{seer-retC9dFI.cjs.map → seer-B63P5CPi.cjs.map} +1 -1
- package/dist/{seer-DLvrFQPo.js → seer-CderEQ-X.js} +1 -1
- package/dist/{seer-DLvrFQPo.js.map → seer-CderEQ-X.js.map} +1 -1
- package/dist/sentry-BhTMff8f.js +104 -0
- package/dist/sentry-BhTMff8f.js.map +1 -0
- package/dist/sentry-DZNWcvcy.d.ts +9 -0
- package/dist/sentry-DZNWcvcy.d.ts.map +1 -0
- package/dist/sentry-Da9wc8eP.cjs +110 -0
- package/dist/sentry-Da9wc8eP.cjs.map +1 -0
- package/dist/sentry-De4G2HDR.d.cts +9 -0
- package/dist/sentry-De4G2HDR.d.cts.map +1 -0
- package/dist/server-B0jJJdAd.js +157 -0
- package/dist/server-B0jJJdAd.js.map +1 -0
- package/dist/server-Bk2YVj60.cjs +163 -0
- package/dist/server-Bk2YVj60.cjs.map +1 -0
- package/dist/server.cjs +59 -61
- package/dist/server.d.cts +32 -19
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +32 -19
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +59 -61
- package/dist/{stdio-CJnMOUAU.cjs → stdio-D_myxOG-.cjs} +17 -15
- package/dist/stdio-D_myxOG-.cjs.map +1 -0
- package/dist/{stdio-DB9muOi8.js → stdio-Uv0oXx1a.js} +17 -15
- package/dist/stdio-Uv0oXx1a.js.map +1 -0
- package/dist/telem/index.cjs +10 -0
- package/dist/telem/index.d.cts +3 -0
- package/dist/telem/index.d.ts +3 -0
- package/dist/telem/index.js +4 -0
- package/dist/telem/logging.cjs +9 -0
- package/dist/telem/logging.d.cts +2 -0
- package/dist/telem/logging.d.ts +2 -0
- package/dist/telem/logging.js +3 -0
- package/dist/telem/sentry.cjs +3 -0
- package/dist/telem/sentry.d.cts +2 -0
- package/dist/telem/sentry.d.ts +2 -0
- package/dist/telem/sentry.js +3 -0
- package/dist/test-setup.cjs +367 -147
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.d.cts +2 -3
- package/dist/test-setup.d.cts.map +1 -1
- package/dist/test-setup.d.ts +2 -3
- package/dist/test-setup.d.ts.map +1 -1
- package/dist/test-setup.js +367 -147
- package/dist/test-setup.js.map +1 -1
- package/dist/test-utils/context.d.cts +2 -3
- package/dist/test-utils/context.d.cts.map +1 -1
- package/dist/test-utils/context.d.ts +2 -3
- package/dist/test-utils/context.d.ts.map +1 -1
- package/dist/toolDefinitions.cjs +636 -127
- package/dist/toolDefinitions.cjs.map +1 -1
- package/dist/toolDefinitions.d.cts +5 -5
- package/dist/toolDefinitions.d.cts.map +1 -1
- package/dist/toolDefinitions.d.ts +5 -5
- package/dist/toolDefinitions.d.ts.map +1 -1
- package/dist/toolDefinitions.js +636 -127
- package/dist/toolDefinitions.js.map +1 -1
- package/dist/tools/analyze-issue-with-seer.cjs +16 -15
- package/dist/tools/analyze-issue-with-seer.d.cts +3 -4
- package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -1
- package/dist/tools/analyze-issue-with-seer.d.ts +3 -4
- package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -1
- package/dist/tools/analyze-issue-with-seer.js +16 -15
- package/dist/tools/create-dsn.cjs +11 -10
- package/dist/tools/create-dsn.d.cts +3 -4
- package/dist/tools/create-dsn.d.cts.map +1 -1
- package/dist/tools/create-dsn.d.ts +3 -4
- package/dist/tools/create-dsn.d.ts.map +1 -1
- package/dist/tools/create-dsn.js +11 -10
- package/dist/tools/create-project.cjs +11 -11
- package/dist/tools/create-project.d.cts +3 -4
- package/dist/tools/create-project.d.cts.map +1 -1
- package/dist/tools/create-project.d.ts +3 -4
- package/dist/tools/create-project.d.ts.map +1 -1
- package/dist/tools/create-project.js +11 -11
- package/dist/tools/create-team.cjs +11 -10
- package/dist/tools/create-team.d.cts +3 -4
- package/dist/tools/create-team.d.cts.map +1 -1
- package/dist/tools/create-team.d.ts +3 -4
- package/dist/tools/create-team.d.ts.map +1 -1
- package/dist/tools/create-team.js +11 -10
- package/dist/tools/find-dsns.cjs +11 -10
- package/dist/tools/find-dsns.d.cts +7 -8
- package/dist/tools/find-dsns.d.ts +7 -8
- package/dist/tools/find-dsns.js +11 -10
- package/dist/tools/find-organizations.cjs +12 -9
- package/dist/tools/find-organizations.d.cts +7 -5
- package/dist/tools/find-organizations.d.ts +7 -5
- package/dist/tools/find-organizations.js +12 -9
- package/dist/tools/find-projects.cjs +11 -10
- package/dist/tools/find-projects.d.cts +7 -7
- package/dist/tools/find-projects.d.ts +7 -7
- package/dist/tools/find-projects.js +11 -10
- package/dist/tools/find-releases.cjs +11 -10
- package/dist/tools/find-releases.d.cts +3 -4
- package/dist/tools/find-releases.d.cts.map +1 -1
- package/dist/tools/find-releases.d.ts +3 -4
- package/dist/tools/find-releases.d.ts.map +1 -1
- package/dist/tools/find-releases.js +11 -10
- package/dist/tools/find-teams.cjs +11 -10
- package/dist/tools/find-teams.d.cts +7 -7
- package/dist/tools/find-teams.d.ts +7 -7
- package/dist/tools/find-teams.js +11 -10
- package/dist/tools/get-doc.cjs +9 -8
- package/dist/tools/get-doc.d.cts +3 -4
- package/dist/tools/get-doc.d.cts.map +1 -1
- package/dist/tools/get-doc.d.ts +3 -4
- package/dist/tools/get-doc.d.ts.map +1 -1
- package/dist/tools/get-doc.js +9 -8
- package/dist/tools/get-event-attachment.cjs +11 -10
- package/dist/tools/get-event-attachment.d.cts +9 -10
- package/dist/tools/get-event-attachment.d.ts +9 -10
- package/dist/tools/get-event-attachment.js +11 -10
- package/dist/tools/get-issue-details.cjs +16 -15
- package/dist/tools/get-issue-details.d.cts +3 -4
- package/dist/tools/get-issue-details.d.cts.map +1 -1
- package/dist/tools/get-issue-details.d.ts +3 -4
- package/dist/tools/get-issue-details.d.ts.map +1 -1
- package/dist/tools/get-issue-details.js +16 -15
- package/dist/tools/get-trace-details.cjs +11 -10
- package/dist/tools/get-trace-details.d.cts +7 -8
- package/dist/tools/get-trace-details.d.ts +7 -8
- package/dist/tools/get-trace-details.js +11 -10
- package/dist/tools/index.cjs +52 -51
- package/dist/tools/index.d.cts +79 -76
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +79 -76
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +52 -51
- package/dist/tools/search-docs.cjs +10 -9
- package/dist/tools/search-docs.d.cts +3 -4
- package/dist/tools/search-docs.d.cts.map +1 -1
- package/dist/tools/search-docs.d.ts +3 -4
- package/dist/tools/search-docs.d.ts.map +1 -1
- package/dist/tools/search-docs.js +10 -9
- package/dist/tools/search-events/agent.cjs +15 -14
- package/dist/tools/search-events/agent.d.cts +4 -4
- package/dist/tools/search-events/agent.d.ts +6 -6
- package/dist/tools/search-events/agent.js +15 -14
- package/dist/tools/search-events/config.cjs +1 -1
- package/dist/tools/search-events/config.js +1 -1
- package/dist/tools/search-events/formatters.cjs +10 -10
- package/dist/tools/search-events/formatters.d.cts +5 -5
- package/dist/tools/search-events/formatters.d.ts +7 -7
- package/dist/tools/search-events/formatters.js +10 -10
- package/dist/tools/search-events/handler.cjs +20 -19
- package/dist/tools/search-events/handler.d.cts +4 -5
- package/dist/tools/search-events/handler.d.ts +4 -5
- package/dist/tools/search-events/handler.js +20 -19
- package/dist/tools/search-events/index.cjs +21 -20
- package/dist/tools/search-events/index.d.cts +8 -9
- package/dist/tools/search-events/index.d.ts +10 -11
- package/dist/tools/search-events/index.js +21 -20
- package/dist/tools/search-events/utils.cjs +9 -9
- package/dist/tools/search-events/utils.d.cts +5 -5
- package/dist/tools/search-events/utils.d.ts +7 -7
- package/dist/tools/search-events/utils.js +9 -9
- package/dist/tools/search-issues/agent.cjs +14 -13
- package/dist/tools/search-issues/agent.d.cts +4 -4
- package/dist/tools/search-issues/agent.d.ts +6 -6
- package/dist/tools/search-issues/agent.js +14 -13
- package/dist/tools/search-issues/config.cjs +1 -1
- package/dist/tools/search-issues/config.js +1 -1
- package/dist/tools/search-issues/formatters.cjs +2 -2
- package/dist/tools/search-issues/formatters.d.cts +3 -3
- package/dist/tools/search-issues/formatters.d.ts +5 -5
- package/dist/tools/search-issues/formatters.js +2 -2
- package/dist/tools/search-issues/handler.cjs +19 -18
- package/dist/tools/search-issues/handler.d.cts +4 -5
- package/dist/tools/search-issues/handler.d.ts +4 -5
- package/dist/tools/search-issues/handler.js +19 -18
- package/dist/tools/search-issues/index.cjs +20 -19
- package/dist/tools/search-issues/index.d.cts +8 -9
- package/dist/tools/search-issues/index.d.ts +10 -11
- package/dist/tools/search-issues/index.js +20 -19
- package/dist/tools/types.d.cts +3 -4
- package/dist/tools/types.d.ts +3 -4
- package/dist/tools/update-issue.cjs +16 -15
- package/dist/tools/update-issue.d.cts +10 -11
- package/dist/tools/update-issue.d.ts +10 -11
- package/dist/tools/update-issue.js +16 -15
- package/dist/tools/update-project.cjs +11 -11
- package/dist/tools/update-project.d.cts +3 -4
- package/dist/tools/update-project.d.cts.map +1 -1
- package/dist/tools/update-project.d.ts +3 -4
- package/dist/tools/update-project.d.ts.map +1 -1
- package/dist/tools/update-project.js +11 -11
- package/dist/tools/whoami.cjs +10 -9
- package/dist/tools/whoami.d.cts +3 -4
- package/dist/tools/whoami.d.ts +3 -4
- package/dist/tools/whoami.js +10 -9
- package/dist/{tools-UZ_biJKC.cjs → tools-DcCN34Xz.cjs} +20 -20
- package/dist/{tools-UZ_biJKC.cjs.map → tools-DcCN34Xz.cjs.map} +1 -1
- package/dist/{tools-BiCRxQiY.js → tools-Du5wLts3.js} +20 -20
- package/dist/{tools-BiCRxQiY.js.map → tools-Du5wLts3.js.map} +1 -1
- package/dist/transports/stdio.cjs +3 -65
- package/dist/transports/stdio.d.cts +12 -9
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +12 -9
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +3 -65
- package/dist/{types-B4nOfch5.d.cts → types-4O1B8U0e.d.ts} +9 -4
- package/dist/types-4O1B8U0e.d.ts.map +1 -0
- package/dist/{types-DTp1ajTT.d.ts → types-B9_8hSal.d.cts} +5 -2
- package/dist/types-B9_8hSal.d.cts.map +1 -0
- package/dist/{types-DLRWzl3K.d.cts → types-BU11bcu2.d.ts} +5 -2
- package/dist/types-BU11bcu2.d.ts.map +1 -0
- package/dist/{types-o23QqDgk.d.cts → types-CZUp4Xzk.d.ts} +10 -5
- package/dist/types-CZUp4Xzk.d.ts.map +1 -0
- package/dist/{types-ryM3umix.d.ts → types-CtnbvcEw.d.cts} +9 -4
- package/dist/types-CtnbvcEw.d.cts.map +1 -0
- package/dist/{types-s3ChfOM9.d.ts → types-DkmHqy15.d.cts} +10 -5
- package/dist/types-DkmHqy15.d.cts.map +1 -0
- package/dist/types-NVsIso1A.d.ts +31 -0
- package/dist/types-NVsIso1A.d.ts.map +1 -0
- package/dist/types-Z4mR2AFK.d.cts +31 -0
- package/dist/types-Z4mR2AFK.d.cts.map +1 -0
- package/dist/types.cjs +16 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +3 -4
- package/dist/types.d.ts +3 -4
- package/dist/types.js +15 -0
- package/dist/types.js.map +1 -0
- package/dist/{update-issue-nq8D_YUe.js → update-issue-CoAkoO66.js} +11 -5
- package/dist/update-issue-CoAkoO66.js.map +1 -0
- package/dist/{update-issue-CD-kp2dt.cjs → update-issue-eELBq_Uy.cjs} +11 -5
- package/dist/update-issue-eELBq_Uy.cjs.map +1 -0
- package/dist/{update-project-DvJfmSmX.js → update-project-CuZlyBPN.js} +13 -7
- package/dist/update-project-CuZlyBPN.js.map +1 -0
- package/dist/{update-project-B_OLM4Ky.cjs → update-project-DMRBdOZ5.cjs} +13 -7
- package/dist/update-project-DMRBdOZ5.cjs.map +1 -0
- package/dist/{url-utils-0OheI87i.cjs → url-utils-Bn5EoScr.cjs} +26 -1
- package/dist/url-utils-Bn5EoScr.cjs.map +1 -0
- package/dist/{url-utils-DF8NBCyH.js → url-utils-d9bPTnOl.js} +21 -2
- package/dist/url-utils-d9bPTnOl.js.map +1 -0
- package/dist/usage-CP6e39yF.cjs +39 -0
- package/dist/usage-CP6e39yF.cjs.map +1 -0
- package/dist/usage-CihInDyq.js +33 -0
- package/dist/usage-CihInDyq.js.map +1 -0
- package/dist/utils/url-utils.cjs +2 -1
- package/dist/utils/url-utils.d.cts +9 -1
- package/dist/utils/url-utils.d.cts.map +1 -1
- package/dist/utils/url-utils.d.ts +9 -1
- package/dist/utils/url-utils.d.ts.map +1 -1
- package/dist/utils/url-utils.js +2 -2
- package/dist/{utils-DQ69VZrK.cjs → utils-C5DuiZoe.cjs} +2 -2
- package/dist/{utils-DQ69VZrK.cjs.map → utils-C5DuiZoe.cjs.map} +1 -1
- package/dist/{utils-CP4vAzfv.js → utils-CwvZS30K.js} +2 -2
- package/dist/{utils-CP4vAzfv.js.map → utils-CwvZS30K.js.map} +1 -1
- package/dist/{utils-Cw6O1ztc.d.ts → utils-DKQuo7b2.d.ts} +4 -4
- package/dist/utils-DKQuo7b2.d.ts.map +1 -0
- package/dist/{utils-Ddvt3CBZ.d.cts → utils-DKgPcA6i.d.cts} +6 -6
- package/dist/{utils-Ddvt3CBZ.d.cts.map → utils-DKgPcA6i.d.cts.map} +1 -1
- package/dist/{utils-BOPpU4-H.cjs → utils-DUJcA3eH.cjs} +16 -7
- package/dist/utils-DUJcA3eH.cjs.map +1 -0
- package/dist/{utils-DA-V9B-n.d.ts → utils-DpeFMEgH.d.ts} +6 -6
- package/dist/{utils-DA-V9B-n.d.ts.map → utils-DpeFMEgH.d.ts.map} +1 -1
- package/dist/{utils-OyJ8CB2S.d.cts → utils-HNrRwq-a.d.cts} +4 -4
- package/dist/utils-HNrRwq-a.d.cts.map +1 -0
- package/dist/{utils-K1XhlGf4.js → utils-iC0Uutcf.js} +16 -7
- package/dist/utils-iC0Uutcf.js.map +1 -0
- package/dist/{validate-region-url-DTUtqFky.js → validate-region-url-CaR6XWB_.js} +1 -1
- package/dist/{validate-region-url-DTUtqFky.js.map → validate-region-url-CaR6XWB_.js.map} +1 -1
- package/dist/{validate-region-url-BhxxcBgE.cjs → validate-region-url-dzz6t54w.cjs} +1 -1
- package/dist/{validate-region-url-BhxxcBgE.cjs.map → validate-region-url-dzz6t54w.cjs.map} +1 -1
- package/dist/version-6dHij-Gk.js +6 -0
- package/dist/{version-CaDh5TML.js.map → version-6dHij-Gk.js.map} +1 -1
- package/dist/{version-DB2IM9qM.cjs → version-Cq6vA9Kc.cjs} +2 -2
- package/dist/{version-DB2IM9qM.cjs.map → version-Cq6vA9Kc.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{whoami-qCGsRPRm.js → whoami-Bh_uOPqO.js} +6 -2
- package/dist/whoami-Bh_uOPqO.js.map +1 -0
- package/dist/{whoami-bRIfclYF.js → whoami-D8-XCgVJ.js} +2 -2
- package/dist/{whoami-bRIfclYF.js.map → whoami-D8-XCgVJ.js.map} +1 -1
- package/dist/{whoami-DCgOyVnW.cjs → whoami-DBSqcCGl.cjs} +2 -2
- package/dist/{whoami-DCgOyVnW.cjs.map → whoami-DBSqcCGl.cjs.map} +1 -1
- package/dist/{whoami-BdiVu0Wr.cjs → whoami-DBlwuDZf.cjs} +6 -2
- package/dist/whoami-DBlwuDZf.cjs.map +1 -0
- package/package.json +29 -27
- package/dist/about-CDAN_HuU.js +0 -136
- package/dist/about-CDAN_HuU.js.map +0 -1
- package/dist/about-CteXVo1Q.d.ts +0 -10
- package/dist/about-CteXVo1Q.d.ts.map +0 -1
- package/dist/about-CwQvsGSc.d.cts +0 -10
- package/dist/about-CwQvsGSc.d.cts.map +0 -1
- package/dist/about-aDGhlM6f.cjs +0 -142
- package/dist/about-aDGhlM6f.cjs.map +0 -1
- package/dist/analyze-issue-with-seer-Cf0jCiKP.cjs.map +0 -1
- package/dist/analyze-issue-with-seer-DqwczSTV.js.map +0 -1
- package/dist/callEmbeddedAgent-BRz60bxa.cjs.map +0 -1
- package/dist/callEmbeddedAgent-C0pC9du1.js.map +0 -1
- package/dist/client-AVVG7J24.cjs.map +0 -1
- package/dist/client-B0wezrpt.d.cts.map +0 -1
- package/dist/client-BqrNpqZW.js.map +0 -1
- package/dist/client-D-KqRd94.d.ts.map +0 -1
- package/dist/create-dsn-BhshlP7l.js.map +0 -1
- package/dist/create-dsn-DaHidLhE.cjs.map +0 -1
- package/dist/create-project-C3laecaU.js.map +0 -1
- package/dist/create-project-xszOpGTC.cjs.map +0 -1
- package/dist/create-team-CTN-DxOE.js.map +0 -1
- package/dist/create-team-DmnJHSIx.cjs.map +0 -1
- package/dist/error-handling-efwohgKv.js.map +0 -1
- package/dist/error-handling-qfa1BeDb.cjs.map +0 -1
- package/dist/find-dsns-D0l3siyF.cjs.map +0 -1
- package/dist/find-dsns-U4CCcoTv.js.map +0 -1
- package/dist/find-organizations-Ca-zpAlI.cjs.map +0 -1
- package/dist/find-organizations-HUZFa8ZA.js.map +0 -1
- package/dist/find-projects-CWNLthwg.cjs.map +0 -1
- package/dist/find-projects-Dy1_O9L0.js.map +0 -1
- package/dist/find-releases-BtazPcQH.cjs.map +0 -1
- package/dist/find-releases-DN_BfQM2.js.map +0 -1
- package/dist/find-teams-CRVT4KOg.js +0 -40
- package/dist/find-teams-CRVT4KOg.js.map +0 -1
- package/dist/find-teams-_zAHPVGx.cjs.map +0 -1
- package/dist/formatting-BjCK9XwW.js.map +0 -1
- package/dist/formatting-CqmsvuAY.cjs.map +0 -1
- package/dist/formatting-XMmhMjRz.d.cts.map +0 -1
- package/dist/formatting-l3qx5d7L.d.ts.map +0 -1
- package/dist/get-doc-Euz6NiM3.cjs.map +0 -1
- package/dist/get-doc-JDwOkY2j.js.map +0 -1
- package/dist/get-event-attachment-DvpQ-dEP.cjs.map +0 -1
- package/dist/get-event-attachment-pIJmUfFE.js.map +0 -1
- package/dist/get-issue-details-B1PDMmMY.js.map +0 -1
- package/dist/get-issue-details-BH75EnNk.cjs.map +0 -1
- package/dist/get-trace-details-Bksygq21.cjs.map +0 -1
- package/dist/get-trace-details-CaK0JMf4.js.map +0 -1
- package/dist/handler-BbqDy4DA.js.map +0 -1
- package/dist/handler-C0zOOLbO.cjs.map +0 -1
- package/dist/handler-DyBdUYam.js.map +0 -1
- package/dist/handler-cy5oD28N.cjs.map +0 -1
- package/dist/internal/sentry-scrubbing.cjs +0 -6
- package/dist/internal/sentry-scrubbing.d.cts +0 -28
- package/dist/internal/sentry-scrubbing.d.cts.map +0 -1
- package/dist/internal/sentry-scrubbing.d.ts +0 -28
- package/dist/internal/sentry-scrubbing.d.ts.map +0 -1
- package/dist/internal/sentry-scrubbing.js +0 -3
- package/dist/logging-CBMxr4i2.js +0 -25
- package/dist/logging-CBMxr4i2.js.map +0 -1
- package/dist/logging-rvUPDKax.cjs +0 -31
- package/dist/logging-rvUPDKax.cjs.map +0 -1
- package/dist/logging.cjs +0 -3
- package/dist/logging.d.cts +0 -37
- package/dist/logging.d.cts.map +0 -1
- package/dist/logging.d.ts +0 -37
- package/dist/logging.d.ts.map +0 -1
- package/dist/logging.js +0 -3
- package/dist/parse-C3tRlsy-.js.map +0 -1
- package/dist/parse-CeFc4xnt.cjs.map +0 -1
- package/dist/permissions-C-q0Y5bL.d.ts.map +0 -1
- package/dist/permissions-Cm5e34n2.d.cts.map +0 -1
- package/dist/permissions-DRdH39Fe.js.map +0 -1
- package/dist/permissions-DuDYuCjy.cjs.map +0 -1
- package/dist/promptDefinitions-02aQWFKD.cjs +0 -37
- package/dist/promptDefinitions-02aQWFKD.cjs.map +0 -1
- package/dist/promptDefinitions-ImFNiWkX.d.cts +0 -34
- package/dist/promptDefinitions-ImFNiWkX.d.cts.map +0 -1
- package/dist/promptDefinitions-Y-mt2_IM.d.ts +0 -34
- package/dist/promptDefinitions-Y-mt2_IM.d.ts.map +0 -1
- package/dist/promptDefinitions-wR6u6ZJE.js +0 -31
- package/dist/promptDefinitions-wR6u6ZJE.js.map +0 -1
- package/dist/promptDefinitions.cjs +0 -6
- package/dist/promptDefinitions.d.cts +0 -2
- package/dist/promptDefinitions.d.ts +0 -2
- package/dist/promptDefinitions.js +0 -6
- package/dist/prompts-BwZJaywH.cjs +0 -41
- package/dist/prompts-BwZJaywH.cjs.map +0 -1
- package/dist/prompts-DCJ0XraB.js +0 -36
- package/dist/prompts-DCJ0XraB.js.map +0 -1
- package/dist/prompts.cjs +0 -4
- package/dist/prompts.d.cts +0 -31
- package/dist/prompts.d.cts.map +0 -1
- package/dist/prompts.d.ts +0 -31
- package/dist/prompts.d.ts.map +0 -1
- package/dist/prompts.js +0 -4
- package/dist/resolve-B_Fq13Dk.js.map +0 -1
- package/dist/resolve-CAtC1wN-.cjs.map +0 -1
- package/dist/resources/about.cjs +0 -3
- package/dist/resources/about.d.cts +0 -2
- package/dist/resources/about.d.ts +0 -2
- package/dist/resources/about.js +0 -3
- package/dist/resources/index.cjs +0 -4
- package/dist/resources/index.d.cts +0 -2
- package/dist/resources/index.d.ts +0 -2
- package/dist/resources/index.js +0 -4
- package/dist/resources-B4ropjfD.cjs +0 -94
- package/dist/resources-B4ropjfD.cjs.map +0 -1
- package/dist/resources-DaEUMw3Y.js +0 -82
- package/dist/resources-DaEUMw3Y.js.map +0 -1
- package/dist/resources.cjs +0 -8
- package/dist/resources.d.cts +0 -37
- package/dist/resources.d.cts.map +0 -1
- package/dist/resources.d.ts +0 -37
- package/dist/resources.d.ts.map +0 -1
- package/dist/resources.js +0 -7
- package/dist/schema-BUBkkdUa.cjs.map +0 -1
- package/dist/schema-CbXlt1rW.cjs.map +0 -1
- package/dist/schema-ChvpDxUk.d.cts.map +0 -1
- package/dist/schema-D1CzTJXB.js.map +0 -1
- package/dist/schema-DOY22v1Q.d.ts.map +0 -1
- package/dist/schema-DPJO5nkQ.js.map +0 -1
- package/dist/search-docs-CH6-1H9_.cjs.map +0 -1
- package/dist/search-docs-CpAlMLs8.js.map +0 -1
- package/dist/sentry-scrubbing-BrjExjlM.js +0 -94
- package/dist/sentry-scrubbing-BrjExjlM.js.map +0 -1
- package/dist/sentry-scrubbing-CDcE4n-D.cjs +0 -118
- package/dist/sentry-scrubbing-CDcE4n-D.cjs.map +0 -1
- package/dist/server-BjizUxVR.js +0 -238
- package/dist/server-BjizUxVR.js.map +0 -1
- package/dist/server-RKq8MlNM.cjs +0 -244
- package/dist/server-RKq8MlNM.cjs.map +0 -1
- package/dist/stdio-CJnMOUAU.cjs.map +0 -1
- package/dist/stdio-DB9muOi8.js.map +0 -1
- package/dist/types-B4nOfch5.d.cts.map +0 -1
- package/dist/types-CKPddlfS.cjs +0 -0
- package/dist/types-Cy4S5lN-.js +0 -0
- package/dist/types-DLRWzl3K.d.cts.map +0 -1
- package/dist/types-DTp1ajTT.d.ts.map +0 -1
- package/dist/types-Dj36Sq2V.d.cts +0 -41
- package/dist/types-Dj36Sq2V.d.cts.map +0 -1
- package/dist/types-m-t7jx2f.d.ts +0 -41
- package/dist/types-m-t7jx2f.d.ts.map +0 -1
- package/dist/types-o23QqDgk.d.cts.map +0 -1
- package/dist/types-ryM3umix.d.ts.map +0 -1
- package/dist/types-s3ChfOM9.d.ts.map +0 -1
- package/dist/update-issue-CD-kp2dt.cjs.map +0 -1
- package/dist/update-issue-nq8D_YUe.js.map +0 -1
- package/dist/update-project-B_OLM4Ky.cjs.map +0 -1
- package/dist/update-project-DvJfmSmX.js.map +0 -1
- package/dist/url-utils-0OheI87i.cjs.map +0 -1
- package/dist/url-utils-DF8NBCyH.js.map +0 -1
- package/dist/usage-Do2a2NJi.cjs +0 -44
- package/dist/usage-Do2a2NJi.cjs.map +0 -1
- package/dist/usage-OGOjVeAz.js +0 -38
- package/dist/usage-OGOjVeAz.js.map +0 -1
- package/dist/utils-BOPpU4-H.cjs.map +0 -1
- package/dist/utils-Cw6O1ztc.d.ts.map +0 -1
- package/dist/utils-K1XhlGf4.js.map +0 -1
- package/dist/utils-OyJ8CB2S.d.cts.map +0 -1
- package/dist/version-CaDh5TML.js +0 -6
- package/dist/whoami-BdiVu0Wr.cjs.map +0 -1
- package/dist/whoami-qCGsRPRm.js.map +0 -1
- /package/dist/{api-client-T99a5Vta.js → api-client-BR5WolLe.js} +0 -0
- /package/dist/{api-client-_2QFWf0d.cjs → api-client-BsHWi0-I.cjs} +0 -0
- /package/dist/{index-DCwqskfg.d.ts → index-DZJ9s9rm.d.ts} +0 -0
- /package/dist/{issue-DKr8zNay.js → issue-B7cgiWKp.cjs} +0 -0
- /package/dist/{issue-DrgpqPbF.cjs → issue-BLm6gohl.js} +0 -0
- /package/dist/{resources-BlsH_EDg.cjs → search-events-Bc2a_R3A.cjs} +0 -0
- /package/dist/{resources-U-u5ze91.js → search-events-Bo5bAsOv.js} +0 -0
- /package/dist/{search-events-CUvQ_Jch.js → search-issues-AaiYCZ6J.cjs} +0 -0
- /package/dist/{search-events-DSY2Z_Eh.cjs → search-issues-DVHuKDdB.js} +0 -0
- /package/dist/{search-issues-BOmdyuUf.js → types-Bx1EKe0v.js} +0 -0
- /package/dist/{search-issues-BxO2JE3D.cjs → types-D10T4PdD.cjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineTool } from "./define-2Lj8Lm1t.js";
|
|
2
|
-
import { apiServiceFromContext } from "./api-
|
|
2
|
+
import { apiServiceFromContext } from "./api-CkLTFexT.js";
|
|
3
3
|
|
|
4
4
|
//#region src/tools/whoami.ts
|
|
5
5
|
var whoami_default = defineTool({
|
|
@@ -12,6 +12,10 @@ var whoami_default = defineTool({
|
|
|
12
12
|
].join("\n"),
|
|
13
13
|
inputSchema: {},
|
|
14
14
|
requiredScopes: [],
|
|
15
|
+
annotations: {
|
|
16
|
+
readOnlyHint: true,
|
|
17
|
+
openWorldHint: true
|
|
18
|
+
},
|
|
15
19
|
async handler(params, context) {
|
|
16
20
|
const apiService = apiServiceFromContext(context);
|
|
17
21
|
const user = await apiService.getAuthenticatedUser();
|
|
@@ -30,4 +34,4 @@ var whoami_default = defineTool({
|
|
|
30
34
|
|
|
31
35
|
//#endregion
|
|
32
36
|
export { whoami_default };
|
|
33
|
-
//# sourceMappingURL=whoami-
|
|
37
|
+
//# sourceMappingURL=whoami-Bh_uOPqO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whoami-Bh_uOPqO.js","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"whoami\",\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n inputSchema: {},\n requiredScopes: [], // No specific scopes required - uses authentication token\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n // API client will throw ApiClientError/ApiServerError which the MCP server wrapper handles\n const user = await apiService.getAuthenticatedUser();\n\n let output = `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n\n // Add constraints information\n const constraints = context.constraints;\n if (\n constraints.organizationSlug ||\n constraints.projectSlug ||\n constraints.regionUrl\n ) {\n output += \"\\n\\n## Session Constraints\\n\\n\";\n\n if (constraints.organizationSlug) {\n output += `- **Organization**: ${constraints.organizationSlug}\\n`;\n }\n if (constraints.projectSlug) {\n output += `- **Project**: ${constraints.projectSlug}\\n`;\n }\n if (constraints.regionUrl) {\n output += `- **Region URL**: ${constraints.regionUrl}\\n`;\n }\n\n output += \"\\nThese constraints limit the scope of this MCP session.\";\n }\n\n return output;\n },\n});\n"],"mappings":";;;;AAIA,qBAAe,WAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,gBAAgB,CAAE;CAClB,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,sBAAsB,QAAQ;EAEjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;EAEpD,IAAI,UAAU,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;EAGzG,MAAM,cAAc,QAAQ;AAC5B,MACE,YAAY,oBACZ,YAAY,eACZ,YAAY,WACZ;AACA,aAAU;AAEV,OAAI,YAAY,iBACd,YAAW,sBAAsB,YAAY,iBAAiB;AAEhE,OAAI,YAAY,YACd,YAAW,iBAAiB,YAAY,YAAY;AAEtD,OAAI,YAAY,UACd,YAAW,oBAAoB,YAAY,UAAU;AAGvD,aAAU;EACX;AAED,SAAO;CACR;AACF,EAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { agentTool } from "./utils-
|
|
1
|
+
import { agentTool } from "./utils-iC0Uutcf.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/internal/agents/tools/whoami.ts
|
|
@@ -31,4 +31,4 @@ function createWhoamiTool(options) {
|
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
export { createWhoamiTool, getCurrentUser };
|
|
34
|
-
//# sourceMappingURL=whoami-
|
|
34
|
+
//# sourceMappingURL=whoami-D8-XCgVJ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whoami-
|
|
1
|
+
{"version":3,"file":"whoami-D8-XCgVJ.js","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,UAAU;EACf,aAAa;EACb,YAAY,EAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_utils = require('./utils-
|
|
2
|
+
const require_utils = require('./utils-DUJcA3eH.cjs');
|
|
3
3
|
const zod = require_chunk.__toESM(require("zod"));
|
|
4
4
|
|
|
5
5
|
//#region src/internal/agents/tools/whoami.ts
|
|
@@ -43,4 +43,4 @@ Object.defineProperty(exports, 'getCurrentUser', {
|
|
|
43
43
|
return getCurrentUser;
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
//# sourceMappingURL=whoami-
|
|
46
|
+
//# sourceMappingURL=whoami-DBSqcCGl.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whoami-
|
|
1
|
+
{"version":3,"file":"whoami-DBSqcCGl.cjs","names":["apiService: SentryApiService","options: { apiService: SentryApiService }"],"sources":["../src/internal/agents/tools/whoami.ts"],"sourcesContent":["import { z } from \"zod\";\nimport type { SentryApiService } from \"../../../api-client\";\nimport { agentTool } from \"./utils\";\n\nexport interface WhoamiResult {\n id: string | number;\n name: string | null;\n email: string;\n}\n\n/**\n * Get the current authenticated user's information from Sentry API\n */\nexport async function getCurrentUser(\n apiService: SentryApiService,\n): Promise<WhoamiResult> {\n // API client throws ApiClientError/ApiServerError which wrapAgentToolExecute handles\n const user = await apiService.getAuthenticatedUser();\n return {\n id: user.id,\n name: user.name,\n email: user.email,\n };\n}\n\n/**\n * Create a tool for getting current user information\n * The tool is pre-bound with the API service configured for the appropriate region\n */\nexport function createWhoamiTool(options: { apiService: SentryApiService }) {\n const { apiService } = options;\n return agentTool({\n description: \"Get the current authenticated user's information\",\n parameters: z.object({}),\n execute: async () => {\n const user = await getCurrentUser(apiService);\n return `Current user: ${user.name || \"Unknown\"} (${user.email}, ID: ${user.id})`;\n },\n });\n}\n"],"mappings":";;;;;;;;AAaA,eAAsB,eACpBA,YACuB;CAEvB,MAAM,OAAO,MAAM,WAAW,sBAAsB;AACpD,QAAO;EACL,IAAI,KAAK;EACT,MAAM,KAAK;EACX,OAAO,KAAK;CACb;AACF;;;;;AAMD,SAAgB,iBAAiBC,SAA2C;CAC1E,MAAM,EAAE,YAAY,GAAG;AACvB,QAAO,wBAAU;EACf,aAAa;EACb,YAAY,MAAE,OAAO,CAAE,EAAC;EACxB,SAAS,YAAY;GACnB,MAAM,OAAO,MAAM,eAAe,WAAW;AAC7C,WAAQ,gBAAgB,KAAK,QAAQ,UAAU,IAAI,KAAK,MAAM,QAAQ,KAAK,GAAG;EAC/E;CACF,EAAC;AACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_define = require('./define-BfP4rFlE.cjs');
|
|
2
|
-
const require_api = require('./api-
|
|
2
|
+
const require_api = require('./api-CZD9zwQ-.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/tools/whoami.ts
|
|
5
5
|
var whoami_default = require_define.defineTool({
|
|
@@ -12,6 +12,10 @@ var whoami_default = require_define.defineTool({
|
|
|
12
12
|
].join("\n"),
|
|
13
13
|
inputSchema: {},
|
|
14
14
|
requiredScopes: [],
|
|
15
|
+
annotations: {
|
|
16
|
+
readOnlyHint: true,
|
|
17
|
+
openWorldHint: true
|
|
18
|
+
},
|
|
15
19
|
async handler(params, context) {
|
|
16
20
|
const apiService = require_api.apiServiceFromContext(context);
|
|
17
21
|
const user = await apiService.getAuthenticatedUser();
|
|
@@ -35,4 +39,4 @@ Object.defineProperty(exports, 'whoami_default', {
|
|
|
35
39
|
return whoami_default;
|
|
36
40
|
}
|
|
37
41
|
});
|
|
38
|
-
//# sourceMappingURL=whoami-
|
|
42
|
+
//# sourceMappingURL=whoami-DBlwuDZf.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whoami-DBlwuDZf.cjs","names":["context: ServerContext"],"sources":["../src/tools/whoami.ts"],"sourcesContent":["import { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport type { ServerContext } from \"../types\";\n\nexport default defineTool({\n name: \"whoami\",\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n inputSchema: {},\n requiredScopes: [], // No specific scopes required - uses authentication token\n annotations: {\n readOnlyHint: true,\n openWorldHint: true,\n },\n async handler(params, context: ServerContext) {\n // User data endpoints (like /auth/) should never use regionUrl\n // as they must always query the main API server, not region-specific servers\n const apiService = apiServiceFromContext(context);\n // API client will throw ApiClientError/ApiServerError which the MCP server wrapper handles\n const user = await apiService.getAuthenticatedUser();\n\n let output = `You are authenticated as ${user.name} (${user.email}).\\n\\nYour Sentry User ID is ${user.id}.`;\n\n // Add constraints information\n const constraints = context.constraints;\n if (\n constraints.organizationSlug ||\n constraints.projectSlug ||\n constraints.regionUrl\n ) {\n output += \"\\n\\n## Session Constraints\\n\\n\";\n\n if (constraints.organizationSlug) {\n output += `- **Organization**: ${constraints.organizationSlug}\\n`;\n }\n if (constraints.projectSlug) {\n output += `- **Project**: ${constraints.projectSlug}\\n`;\n }\n if (constraints.regionUrl) {\n output += `- **Region URL**: ${constraints.regionUrl}\\n`;\n }\n\n output += \"\\nThese constraints limit the scope of this MCP session.\";\n }\n\n return output;\n },\n});\n"],"mappings":";;;;AAIA,qBAAe,0BAAW;CACxB,MAAM;CACN,aAAa;EACX;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa,CAAE;CACf,gBAAgB,CAAE;CAClB,aAAa;EACX,cAAc;EACd,eAAe;CAChB;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAG5C,MAAM,aAAa,kCAAsB,QAAQ;EAEjD,MAAM,OAAO,MAAM,WAAW,sBAAsB;EAEpD,IAAI,UAAU,2BAA2B,KAAK,KAAK,IAAI,KAAK,MAAM,+BAA+B,KAAK,GAAG;EAGzG,MAAM,cAAc,QAAQ;AAC5B,MACE,YAAY,oBACZ,YAAY,eACZ,YAAY,WACZ;AACA,aAAU;AAEV,OAAI,YAAY,iBACd,YAAW,sBAAsB,YAAY,iBAAiB;AAEhE,OAAI,YAAY,YACd,YAAW,iBAAiB,YAAY,YAAY;AAEtD,OAAI,YAAY,UACd,YAAW,oBAAoB,YAAY,UAAU;AAGvD,aAAU;EACX;AAED,SAAO;CACR;AACF,EAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -41,9 +41,17 @@
|
|
|
41
41
|
"types": "./dist/constants.ts",
|
|
42
42
|
"default": "./dist/constants.js"
|
|
43
43
|
},
|
|
44
|
-
"./
|
|
45
|
-
"types": "./dist/
|
|
46
|
-
"default": "./dist/
|
|
44
|
+
"./telem": {
|
|
45
|
+
"types": "./dist/telem/index.ts",
|
|
46
|
+
"default": "./dist/telem/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./telem/logging": {
|
|
49
|
+
"types": "./dist/telem/logging.ts",
|
|
50
|
+
"default": "./dist/telem/logging.js"
|
|
51
|
+
},
|
|
52
|
+
"./telem/sentry": {
|
|
53
|
+
"types": "./dist/telem/sentry.ts",
|
|
54
|
+
"default": "./dist/telem/sentry.js"
|
|
47
55
|
},
|
|
48
56
|
"./permissions": {
|
|
49
57
|
"types": "./dist/permissions.ts",
|
|
@@ -57,18 +65,6 @@
|
|
|
57
65
|
"types": "./dist/server.ts",
|
|
58
66
|
"default": "./dist/server.js"
|
|
59
67
|
},
|
|
60
|
-
"./promptDefinitions": {
|
|
61
|
-
"types": "./dist/promptDefinitions.ts",
|
|
62
|
-
"default": "./dist/promptDefinitions.js"
|
|
63
|
-
},
|
|
64
|
-
"./prompts": {
|
|
65
|
-
"types": "./dist/prompts.ts",
|
|
66
|
-
"default": "./dist/prompts.js"
|
|
67
|
-
},
|
|
68
|
-
"./resources": {
|
|
69
|
-
"types": "./dist/resources.ts",
|
|
70
|
-
"default": "./dist/resources.js"
|
|
71
|
-
},
|
|
72
68
|
"./toolDefinitions": {
|
|
73
69
|
"types": "./dist/toolDefinitions.ts",
|
|
74
70
|
"default": "./dist/toolDefinitions.js"
|
|
@@ -100,35 +96,41 @@
|
|
|
100
96
|
"./internal/agents/callEmbeddedAgent": {
|
|
101
97
|
"types": "./dist/internal/agents/callEmbeddedAgent.ts",
|
|
102
98
|
"default": "./dist/internal/agents/callEmbeddedAgent.js"
|
|
99
|
+
},
|
|
100
|
+
"./internal/context-storage": {
|
|
101
|
+
"types": "./dist/internal/context-storage.ts",
|
|
102
|
+
"default": "./dist/internal/context-storage.js"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"msw": "^2.10.2",
|
|
107
107
|
"yaml": "^2.6.1",
|
|
108
108
|
"zod-to-json-schema": "^3.24.6",
|
|
109
|
-
"@sentry/mcp-server-
|
|
110
|
-
"@sentry/mcp-server-
|
|
109
|
+
"@sentry/mcp-server-mocks": "0.19.0",
|
|
110
|
+
"@sentry/mcp-server-tsconfig": "0.19.0"
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@ai-sdk/openai": "^1.3.22",
|
|
114
|
-
"@
|
|
115
|
-
"@sentry
|
|
116
|
-
"@
|
|
114
|
+
"@logtape/logtape": "^1.1.1",
|
|
115
|
+
"@logtape/sentry": "^1.1.1",
|
|
116
|
+
"@modelcontextprotocol/sdk": "^1.20.2",
|
|
117
|
+
"@sentry/core": "10.22.0",
|
|
118
|
+
"@sentry/node": "10.22.0",
|
|
117
119
|
"ai": "^4.3.16",
|
|
118
120
|
"dotenv": "^16.6.1",
|
|
119
121
|
"zod": "^3.25.67"
|
|
120
122
|
},
|
|
121
123
|
"scripts": {
|
|
122
|
-
"prebuild": "pnpm run generate-
|
|
124
|
+
"prebuild": "pnpm run generate-definitions",
|
|
123
125
|
"build": "tsdown",
|
|
124
|
-
"dev": "pnpm run generate-
|
|
126
|
+
"dev": "pnpm run generate-definitions && tsdown -w",
|
|
125
127
|
"start": "tsx src/index.ts",
|
|
126
|
-
"pretest": "pnpm run generate-
|
|
128
|
+
"pretest": "pnpm run generate-definitions",
|
|
127
129
|
"test": "vitest run",
|
|
128
|
-
"test:ci": "pnpm run generate-
|
|
129
|
-
"test:watch": "pnpm run generate-
|
|
130
|
+
"test:ci": "pnpm run generate-definitions && vitest run --coverage --reporter=default --reporter=junit --outputFile=tests.junit.xml",
|
|
131
|
+
"test:watch": "pnpm run generate-definitions && vitest",
|
|
130
132
|
"tsc": "tsc --noEmit",
|
|
131
|
-
"generate-
|
|
133
|
+
"generate-definitions": "tsx scripts/generate-definitions.ts",
|
|
132
134
|
"generate-otel-namespaces": "tsx scripts/generate-otel-namespaces.ts"
|
|
133
135
|
}
|
|
134
136
|
}
|
package/dist/about-CDAN_HuU.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/about-CteXVo1Q.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"about-CteXVo1Q.d.ts","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":[],"mappings":";;AAKA;;;cAAa,aAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"about-CwQvsGSc.d.cts","names":[],"sources":["../src/resources/about.ts"],"sourcesContent":[],"mappings":";;AAKA;;;cAAa,aAAA"}
|
package/dist/about-aDGhlM6f.cjs
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyze-issue-with-seer-Cf0jCiKP.cjs","names":["context: ServerContext","SEER_MAX_RETRIES","SEER_INITIAL_RETRY_DELAY","ApiServerError","ApiError","SEER_TIMEOUT","SEER_POLLING_INTERVAL"],"sources":["../src/tools/analyze-issue-with-seer.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { setTag } from \"@sentry/core\";\nimport { defineTool } from \"../internal/tool-helpers/define\";\nimport { apiServiceFromContext } from \"../internal/tool-helpers/api\";\nimport { parseIssueParams } from \"../internal/tool-helpers/issue\";\nimport {\n getStatusDisplayName,\n isTerminalStatus,\n getHumanInterventionGuidance,\n getOutputForAutofixStep,\n SEER_POLLING_INTERVAL,\n SEER_TIMEOUT,\n SEER_MAX_RETRIES,\n SEER_INITIAL_RETRY_DELAY,\n} from \"../internal/tool-helpers/seer\";\nimport { retryWithBackoff } from \"../internal/fetch-utils\";\nimport type { ServerContext } from \"../types\";\nimport { ApiError, ApiServerError } from \"../api-client/index\";\nimport {\n ParamOrganizationSlug,\n ParamRegionUrl,\n ParamIssueShortId,\n ParamIssueUrl,\n} from \"../schema\";\n\nexport default defineTool({\n name: \"analyze_issue_with_seer\",\n requiredScopes: [\"event:read\"],\n description: [\n \"Use Seer AI to analyze production errors and get detailed root cause analysis with specific code fixes.\",\n \"\",\n \"Use this tool when you need:\",\n \"- Detailed AI-powered root cause analysis\",\n \"- Specific code fixes and implementation guidance\",\n \"- Step-by-step troubleshooting for complex issues\",\n \"- Understanding why an error is happening in production\",\n \"\",\n \"What this tool provides:\",\n \"- Root cause analysis with code-level explanations\",\n \"- Specific file locations and line numbers where errors occur\",\n \"- Concrete code fixes you can apply\",\n \"- Step-by-step implementation guidance\",\n \"\",\n \"This tool automatically:\",\n \"1. Checks if analysis already exists (instant results)\",\n \"2. Starts new AI analysis if needed (~2-5 minutes)\",\n \"3. Returns complete fix recommendations\",\n \"\",\n \"<examples>\",\n '### User: \"What\\'s causing this error? https://my-org.sentry.io/issues/PROJECT-1Z43\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(issueUrl='https://my-org.sentry.io/issues/PROJECT-1Z43')\",\n \"```\",\n \"\",\n '### User: \"Can you help me understand why this is failing in production?\"',\n \"\",\n \"```\",\n \"analyze_issue_with_seer(organizationSlug='my-organization', issueId='ERROR-456')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Use this tool when you need deeper analysis beyond basic issue details\",\n \"- If the user provides an issueUrl, extract it and use that parameter alone\",\n \"- The analysis includes actual code snippets and fixes, not just error descriptions\",\n \"- Results are cached - subsequent calls return instantly\",\n \"</hints>\",\n ].join(\"\\n\"),\n inputSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n instruction: z\n .string()\n .describe(\"Optional custom instruction for the AI analysis\")\n .optional(),\n },\n async handler(params, context: ServerContext) {\n const apiService = apiServiceFromContext(context, {\n regionUrl: params.regionUrl,\n });\n const { organizationSlug: orgSlug, issueId: parsedIssueId } =\n parseIssueParams({\n organizationSlug: params.organizationSlug,\n issueId: params.issueId,\n issueUrl: params.issueUrl,\n });\n\n setTag(\"organization.slug\", orgSlug);\n\n let output = `# Seer AI Analysis for Issue ${parsedIssueId}\\n\\n`;\n\n // Step 1: Check if analysis already exists\n let autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n\n // Step 2: Start analysis if none exists\n if (!autofixState.autofix) {\n output += `Starting new analysis...\\n\\n`;\n const startResult = await apiService.startAutofix({\n organizationSlug: orgSlug,\n issueId: parsedIssueId,\n instruction: params.instruction,\n });\n output += `Analysis started with Run ID: ${startResult.run_id}\\n\\n`;\n\n // Give it a moment to initialize\n await new Promise((resolve) => setTimeout(resolve, 1000));\n\n // Refresh state with retry logic\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n } else {\n output += `Found existing analysis (Run ID: ${autofixState.autofix.run_id})\\n\\n`;\n\n // Check if existing analysis is already complete\n const existingStatus = autofixState.autofix.status;\n if (isTerminalStatus(existingStatus)) {\n // Return results immediately, no polling needed\n output += `## Analysis ${getStatusDisplayName(existingStatus)}\\n\\n`;\n\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (existingStatus !== \"COMPLETED\") {\n output += `\\n**Status**: ${existingStatus}\\n`;\n output += getHumanInterventionGuidance(existingStatus);\n output += \"\\n\";\n }\n\n return output;\n }\n }\n\n // Step 3: Poll until complete or timeout (only for non-terminal states)\n const startTime = Date.now();\n let lastStatus = \"\";\n let consecutiveErrors = 0;\n\n while (Date.now() - startTime < SEER_TIMEOUT) {\n if (!autofixState.autofix) {\n output += `Error: Analysis state lost. Please try again by running:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n const status = autofixState.autofix.status;\n\n // Check if completed (terminal state)\n if (isTerminalStatus(status)) {\n output += `## Analysis ${getStatusDisplayName(status)}\\n\\n`;\n\n // Add all step outputs\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n\n if (status !== \"COMPLETED\") {\n output += `\\n**Status**: ${status}\\n`;\n output += getHumanInterventionGuidance(status);\n }\n\n return output;\n }\n\n // Update status if changed\n if (status !== lastStatus) {\n const activeStep = autofixState.autofix.steps.find(\n (step) =>\n step.status === \"PROCESSING\" || step.status === \"IN_PROGRESS\",\n );\n if (activeStep) {\n output += `Processing: ${activeStep.title}...\\n`;\n }\n lastStatus = status;\n }\n\n // Wait before next poll\n await new Promise((resolve) =>\n setTimeout(resolve, SEER_POLLING_INTERVAL),\n );\n\n // Refresh state with error handling\n try {\n autofixState = await retryWithBackoff(\n () =>\n apiService.getAutofixState({\n organizationSlug: orgSlug,\n issueId: parsedIssueId!,\n }),\n {\n maxRetries: SEER_MAX_RETRIES,\n initialDelay: SEER_INITIAL_RETRY_DELAY,\n shouldRetry: (error) => {\n // Retry on server errors (5xx) or non-API errors (network issues)\n return (\n error instanceof ApiServerError || !(error instanceof ApiError)\n );\n },\n },\n );\n consecutiveErrors = 0; // Reset error counter on success\n } catch (error) {\n consecutiveErrors++;\n\n // If we've had too many consecutive errors, give up\n if (consecutiveErrors >= 3) {\n output += `\\n## Error During Analysis\\n\\n`;\n output += `Unable to retrieve analysis status after multiple attempts.\\n`;\n output += `Error: ${error instanceof Error ? error.message : String(error)}\\n\\n`;\n output += `You can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n return output;\n }\n\n // Log the error but continue polling\n output += `Temporary error retrieving status (attempt ${consecutiveErrors}/3), retrying...\\n`;\n }\n }\n\n // Show current progress\n if (autofixState.autofix) {\n output += `**Current Status**: ${getStatusDisplayName(autofixState.autofix.status)}\\n\\n`;\n for (const step of autofixState.autofix.steps) {\n output += getOutputForAutofixStep(step);\n output += \"\\n\";\n }\n }\n\n // Timeout reached\n output += `\\n## Analysis Timed Out\\n\\n`;\n output += `The analysis is taking longer than expected (>${SEER_TIMEOUT / 1000}s).\\n\\n`;\n\n output += `\\nYou can check the status later by running the same command again:\\n`;\n output += `\\`\\`\\`\\n`;\n output += params.issueUrl\n ? `analyze_issue_with_seer(issueUrl=\"${params.issueUrl}\")`\n : `analyze_issue_with_seer(organizationSlug=\"${orgSlug}\", issueId=\"${parsedIssueId}\")`;\n output += `\\n\\`\\`\\`\\n`;\n\n return output;\n },\n});\n"],"mappings":";;;;;;;;;;;;AAyBA,sCAAe,0BAAW;CACxB,MAAM;CACN,gBAAgB,CAAC,YAAa;CAC9B,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,KAAK,KAAK;CACZ,aAAa;EACX,kBAAkB,qCAAsB,UAAU;EAClD,WAAW,8BAAe,UAAU;EACpC,SAAS,iCAAkB,UAAU;EACrC,UAAU,6BAAc,UAAU;EAClC,aAAa,MACV,QAAQ,CACR,SAAS,kDAAkD,CAC3D,UAAU;CACd;CACD,MAAM,QAAQ,QAAQA,SAAwB;EAC5C,MAAM,aAAa,kCAAsB,SAAS,EAChD,WAAW,OAAO,UACnB,EAAC;EACF,MAAM,EAAE,kBAAkB,SAAS,SAAS,eAAe,GACzD,uCAAiB;GACf,kBAAkB,OAAO;GACzB,SAAS,OAAO;GAChB,UAAU,OAAO;EAClB,EAAC;AAEJ,4BAAO,qBAAqB,QAAQ;EAEpC,IAAI,UAAU,+BAA+B,cAAc;EAG3D,IAAI,eAAe,MAAM,qCACvB,MACE,WAAW,gBAAgB;GACzB,kBAAkB;GAClB,SAAS;EACV,EAAC,EACJ;GACE,YAAYC;GACZ,cAAcC;GACd,aAAa,CAAC,UAAU;AAEtB,WACE,iBAAiBC,mCAAoB,iBAAiBC;GAEzD;EACF,EACF;AAGD,OAAK,aAAa,SAAS;AACzB,cAAW;GACX,MAAM,cAAc,MAAM,WAAW,aAAa;IAChD,kBAAkB;IAClB,SAAS;IACT,aAAa,OAAO;GACrB,EAAC;AACF,cAAW,gCAAgC,YAAY,OAAO;AAG9D,SAAM,IAAI,QAAQ,CAAC,YAAY,WAAW,SAAS,IAAK;AAGxD,kBAAe,MAAM,qCACnB,MACE,WAAW,gBAAgB;IACzB,kBAAkB;IAClB,SAAS;GACV,EAAC,EACJ;IACE,YAAYH;IACZ,cAAcC;IACd,aAAa,CAAC,UAAU;AAEtB,YACE,iBAAiBC,mCAAoB,iBAAiBC;IAEzD;GACF,EACF;EACF,OAAM;AACL,cAAW,mCAAmC,aAAa,QAAQ,OAAO;GAG1E,MAAM,iBAAiB,aAAa,QAAQ;AAC5C,OAAI,8BAAiB,eAAe,EAAE;AAEpC,eAAW,cAAc,kCAAqB,eAAe,CAAC;AAE9D,SAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,eAAU,qCAAwB,KAAK;AACvC,eAAU;IACX;AAED,QAAI,mBAAmB,aAAa;AAClC,gBAAW,gBAAgB,eAAe;AAC1C,eAAU,0CAA6B,eAAe;AACtD,eAAU;IACX;AAED,WAAO;GACR;EACF;EAGD,MAAM,YAAY,KAAK,KAAK;EAC5B,IAAI,aAAa;EACjB,IAAI,oBAAoB;AAExB,SAAO,KAAK,KAAK,GAAG,YAAYC,2BAAc;AAC5C,QAAK,aAAa,SAAS;AACzB,eAAW;AACX,eAAW;AACX,cAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,eAAW;AACX,WAAO;GACR;GAED,MAAM,SAAS,aAAa,QAAQ;AAGpC,OAAI,8BAAiB,OAAO,EAAE;AAC5B,eAAW,cAAc,kCAAqB,OAAO,CAAC;AAGtD,SAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,eAAU,qCAAwB,KAAK;AACvC,eAAU;IACX;AAED,QAAI,WAAW,aAAa;AAC1B,gBAAW,gBAAgB,OAAO;AAClC,eAAU,0CAA6B,OAAO;IAC/C;AAED,WAAO;GACR;AAGD,OAAI,WAAW,YAAY;IACzB,MAAM,aAAa,aAAa,QAAQ,MAAM,KAC5C,CAAC,SACC,KAAK,WAAW,gBAAgB,KAAK,WAAW,cACnD;AACD,QAAI,WACF,YAAW,cAAc,WAAW,MAAM;AAE5C,iBAAa;GACd;AAGD,SAAM,IAAI,QAAQ,CAAC,YACjB,WAAW,SAASC,mCAAsB;AAI5C,OAAI;AACF,mBAAe,MAAM,qCACnB,MACE,WAAW,gBAAgB;KACzB,kBAAkB;KAClB,SAAS;IACV,EAAC,EACJ;KACE,YAAYL;KACZ,cAAcC;KACd,aAAa,CAAC,UAAU;AAEtB,aACE,iBAAiBC,mCAAoB,iBAAiBC;KAEzD;IACF,EACF;AACD,wBAAoB;GACrB,SAAQ,OAAO;AACd;AAGA,QAAI,qBAAqB,GAAG;AAC1B,gBAAW;AACX,gBAAW;AACX,gBAAW,SAAS,iBAAiB,QAAQ,MAAM,UAAU,OAAO,MAAM,CAAC;AAC3E,gBAAW;AACX,gBAAW;AACX,eAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,gBAAW;AACX,YAAO;IACR;AAGD,eAAW,6CAA6C,kBAAkB;GAC3E;EACF;AAGD,MAAI,aAAa,SAAS;AACxB,cAAW,sBAAsB,kCAAqB,aAAa,QAAQ,OAAO,CAAC;AACnF,QAAK,MAAM,QAAQ,aAAa,QAAQ,OAAO;AAC7C,cAAU,qCAAwB,KAAK;AACvC,cAAU;GACX;EACF;AAGD,aAAW;AACX,aAAW,gDAAgDC,4BAAe,IAAK;AAE/E,aAAW;AACX,aAAW;AACX,YAAU,OAAO,YACZ,oCAAoC,OAAO,SAAS,OACpD,4CAA4C,QAAQ,cAAc,cAAc;AACrF,aAAW;AAEX,SAAO;CACR;AACF,EAAC"}
|