@sentry/mcp-server 0.9.0 → 0.11.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 +1 -1
- package/dist/api-client/client.cjs +4 -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 +2 -2
- package/dist/api-client/client.test.cjs +8 -9
- package/dist/api-client/client.test.cjs.map +1 -1
- package/dist/api-client/client.test.js +4 -4
- package/dist/api-client/index.cjs +40 -38
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +5 -5
- package/dist/api-client/schema.cjs +35 -33
- 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/{chunk-CsIcISPO.js → chunk-BLXvPPr8.js} +1 -1
- package/dist/{chunk-BtT13l48.cjs → chunk-DWy1uDak.cjs} +0 -1
- package/dist/{client-1dRfG57H.d.ts → client-Bxf4MxOz.d.cts} +10 -6
- package/dist/client-Bxf4MxOz.d.cts.map +1 -0
- package/dist/{client-CTm4cvI7.js → client-D5xFZtxK.js} +19 -7
- package/dist/client-D5xFZtxK.js.map +1 -0
- package/dist/{client-BsYOQsEI.d.cts → client-DOhBiaMJ.d.ts} +9 -5
- package/dist/client-DOhBiaMJ.d.ts.map +1 -0
- package/dist/{client-DQ837FXP.cjs → client-GKHZSXgV.cjs} +19 -8
- package/dist/client-GKHZSXgV.cjs.map +1 -0
- package/dist/{dist-wiyJYfAH.cjs → dist-BlIWGSIM.cjs} +318 -164
- package/dist/dist-BlIWGSIM.cjs.map +1 -0
- package/dist/{dist-BKh-M1A1.js → dist-DDpQABxe.js} +318 -163
- package/dist/dist-DDpQABxe.js.map +1 -0
- package/dist/errors-B9fwS-aP.cjs +21 -0
- package/dist/errors-B9fwS-aP.cjs.map +1 -0
- package/dist/errors-BJSrT6Ou.js +15 -0
- package/dist/errors-BJSrT6Ou.js.map +1 -0
- package/dist/errors.cjs +3 -0
- package/dist/errors.d.cts +12 -0
- package/dist/errors.d.cts.map +1 -0
- package/dist/errors.d.ts +12 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +3 -0
- package/dist/errors.test.cjs +24 -0
- package/dist/errors.test.cjs.map +1 -0
- package/dist/errors.test.d.cts +1 -0
- package/dist/errors.test.d.ts +1 -0
- package/dist/errors.test.js +24 -0
- package/dist/errors.test.js.map +1 -0
- package/dist/{formatting-BQRAzO5v.js → formatting-BaARL2gT.js} +11 -3
- package/dist/formatting-BaARL2gT.js.map +1 -0
- package/dist/{formatting-C-0bHtbh.cjs → formatting-C2kN0ok6.cjs} +11 -4
- package/dist/formatting-C2kN0ok6.cjs.map +1 -0
- package/dist/index.cjs +19 -19
- package/dist/index.js +18 -17
- package/dist/index.js.map +1 -1
- package/dist/internal/formatting.cjs +4 -4
- package/dist/internal/formatting.d.cts +4 -5
- package/dist/internal/formatting.d.cts.map +1 -1
- package/dist/internal/formatting.d.ts +4 -5
- package/dist/internal/formatting.d.ts.map +1 -1
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.cjs +4 -4
- package/dist/internal/issue-helpers.d.cts +2 -2
- package/dist/internal/issue-helpers.d.cts.map +1 -1
- package/dist/internal/issue-helpers.d.ts +2 -2
- package/dist/internal/issue-helpers.d.ts.map +1 -1
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/issue-helpers.test.cjs +23 -27
- package/dist/internal/issue-helpers.test.cjs.map +1 -1
- package/dist/internal/issue-helpers.test.js +7 -10
- package/dist/internal/issue-helpers.test.js.map +1 -1
- package/dist/{issue-helpers-DbsECZFq.cjs → issue-helpers-71XgJVXC.cjs} +8 -3
- package/dist/issue-helpers-71XgJVXC.cjs.map +1 -0
- package/dist/{issue-helpers-CyoHu5j4.js → issue-helpers-CSNNO03f.js} +8 -2
- package/dist/issue-helpers-CSNNO03f.js.map +1 -0
- package/dist/{logging-BEMgC5SA.cjs → logging-ByvSjT6V.cjs} +2 -3
- package/dist/{logging-BEMgC5SA.cjs.map → logging-ByvSjT6V.cjs.map} +1 -1
- package/dist/{logging-Cxm8lQvg.js → logging-CXLD0FFB.js} +1 -1
- package/dist/{logging-Cxm8lQvg.js.map → logging-CXLD0FFB.js.map} +1 -1
- package/dist/logging.cjs +2 -2
- package/dist/logging.d.cts +1 -2
- package/dist/logging.d.cts.map +1 -1
- package/dist/logging.d.ts +1 -2
- package/dist/logging.d.ts.map +1 -1
- package/dist/logging.js +1 -1
- package/dist/{magic-string.es-m-ldRjOa.cjs → magic-string.es-CybcVAw7.cjs} +2 -3
- package/dist/{magic-string.es-m-ldRjOa.cjs.map → magic-string.es-CybcVAw7.cjs.map} +1 -1
- package/dist/{promptDefinitions-5jiZMBg5.cjs → promptDefinitions-D3ll3qCd.cjs} +6 -7
- package/dist/promptDefinitions-D3ll3qCd.cjs.map +1 -0
- package/dist/{promptDefinitions-Dcz3d9wL.d.cts → promptDefinitions-DMucOchd.d.cts} +5 -5
- package/dist/promptDefinitions-DMucOchd.d.cts.map +1 -0
- package/dist/{promptDefinitions-DrGK-v8n.d.ts → promptDefinitions-H0q1_X-K.d.ts} +6 -6
- package/dist/promptDefinitions-H0q1_X-K.d.ts.map +1 -0
- package/dist/{promptDefinitions-CPTadtuI.js → promptDefinitions-aKmUZWWO.js} +5 -5
- package/dist/promptDefinitions-aKmUZWWO.js.map +1 -0
- package/dist/promptDefinitions.cjs +3 -3
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +2 -2
- package/dist/{prompts-DgWOD2rU.js → prompts-CzD0yl7Z.js} +1 -1
- package/dist/{prompts-DgWOD2rU.js.map → prompts-CzD0yl7Z.js.map} +1 -1
- package/dist/{prompts-nfFU-zY-.cjs → prompts-DMwoay8l.cjs} +1 -2
- package/dist/{prompts-nfFU-zY-.cjs.map → prompts-DMwoay8l.cjs.map} +1 -1
- package/dist/prompts.cjs +2 -2
- package/dist/prompts.d.cts +6 -7
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +6 -7
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +1 -1
- package/dist/{resources-BAE7VVZZ.cjs → resources-D6TW2ER0.cjs} +1 -2
- package/dist/{resources-BAE7VVZZ.cjs.map → resources-D6TW2ER0.cjs.map} +1 -1
- package/dist/{resources-OM3EAnnj.js → resources-x-GaokG8.js} +1 -1
- package/dist/{resources-OM3EAnnj.js.map → resources-x-GaokG8.js.map} +1 -1
- package/dist/resources.cjs +2 -2
- package/dist/resources.d.cts +0 -1
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts +0 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +1 -1
- package/dist/schema-B8lT632E.cjs +77 -0
- package/dist/schema-B8lT632E.cjs.map +1 -0
- package/dist/schema-BkHf97d7.js +17 -0
- package/dist/schema-BkHf97d7.js.map +1 -0
- package/dist/{schema-CaJV2aIO.d.cts → schema-C-MLkWMc.d.ts} +385 -272
- package/dist/schema-C-MLkWMc.d.ts.map +1 -0
- package/dist/{schema-nyYqVk4Y.js → schema-CewAKS9A.js} +19 -3
- package/dist/schema-CewAKS9A.js.map +1 -0
- package/dist/{schema-KEMqYaQn.cjs → schema-DkyWSqp_.cjs} +31 -4
- package/dist/schema-DkyWSqp_.cjs.map +1 -0
- package/dist/{schema-DwPOkoSP.d.ts → schema-DqxkW9Tx.d.cts} +387 -274
- package/dist/schema-DqxkW9Tx.d.cts.map +1 -0
- package/dist/schema.cjs +11 -9
- package/dist/schema.d.cts +4 -3
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +4 -3
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/{server-BWoJZj5B.cjs → server-pGtEIwE3.cjs} +33 -27
- package/dist/server-pGtEIwE3.cjs.map +1 -0
- package/dist/{server-DtNbD1c-.js → server-qpWdf-ST.js} +32 -25
- package/dist/server-qpWdf-ST.js.map +1 -0
- package/dist/server.cjs +16 -15
- package/dist/server.d.cts +4 -5
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +4 -5
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +15 -14
- package/dist/{stdio-D4oW-qT6.js → stdio-D8u2W847.js} +2 -2
- package/dist/{stdio-D4oW-qT6.js.map → stdio-D8u2W847.js.map} +1 -1
- package/dist/{stdio-BLzMxGqU.cjs → stdio-DydB2Pxu.cjs} +3 -4
- package/dist/{stdio-BLzMxGqU.cjs.map → stdio-DydB2Pxu.cjs.map} +1 -1
- package/dist/test-setup.cjs +1568 -1320
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1568 -1319
- package/dist/test-setup.js.map +1 -1
- package/dist/{toolDefinitions-BF-D81bS.js → toolDefinitions-BSC2D_S-.js} +95 -79
- package/dist/toolDefinitions-BSC2D_S-.js.map +1 -0
- package/dist/{toolDefinitions-CO65cU86.cjs → toolDefinitions-BtHN8t_d.cjs} +96 -81
- package/dist/toolDefinitions-BtHN8t_d.cjs.map +1 -0
- package/dist/{toolDefinitions-CCscRQoM.d.ts → toolDefinitions-Dp13BpEu.d.cts} +58 -26
- package/dist/toolDefinitions-Dp13BpEu.d.cts.map +1 -0
- package/dist/{toolDefinitions-K_TVqaLU.d.cts → toolDefinitions-fQrpWznJ.d.ts} +57 -25
- package/dist/toolDefinitions-fQrpWznJ.d.ts.map +1 -0
- package/dist/toolDefinitions.cjs +3 -3
- package/dist/toolDefinitions.d.cts +1 -1
- package/dist/toolDefinitions.d.ts +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/toolDefinitions.test.cjs +3 -4
- package/dist/toolDefinitions.test.cjs.map +1 -1
- package/dist/toolDefinitions.test.js +3 -3
- package/dist/{tools-B8ufMRZx.js → tools-4Rtn4WEf.js} +58 -57
- package/dist/tools-4Rtn4WEf.js.map +1 -0
- package/dist/{tools-BYt-G6p2.cjs → tools-DHHqAqP9.cjs} +59 -59
- package/dist/tools-DHHqAqP9.cjs.map +1 -0
- package/dist/tools.cjs +10 -9
- package/dist/tools.d.cts +55 -26
- package/dist/tools.d.cts.map +1 -1
- package/dist/tools.d.ts +55 -26
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +9 -8
- package/dist/tools.test.cjs +154 -62
- package/dist/tools.test.cjs.map +1 -1
- package/dist/tools.test.js +135 -42
- package/dist/tools.test.js.map +1 -1
- package/dist/transports/stdio.cjs +17 -16
- package/dist/transports/stdio.d.cts +4 -5
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +4 -5
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +16 -15
- package/dist/{types-TaJcaAVg.d.cts → types-CbLyQvVe.d.cts} +3 -4
- package/dist/types-CbLyQvVe.d.cts.map +1 -0
- package/dist/{types-Ds7qzCBB.d.ts → types-CcffrLXB.d.cts} +5 -5
- package/dist/types-CcffrLXB.d.cts.map +1 -0
- package/dist/{types-DyM4kaGZ.d.ts → types-CfJ51LyL.d.ts} +3 -4
- package/dist/types-CfJ51LyL.d.ts.map +1 -0
- package/dist/{types-CPuN4Qmi.d.cts → types-DuUmV9zh.d.ts} +5 -5
- package/dist/types-DuUmV9zh.d.ts.map +1 -0
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/version-BT9r_3jm.js +6 -0
- package/dist/{version-dTEKpaGt.js.map → version-BT9r_3jm.js.map} +1 -1
- package/dist/{version-B0O4KvZ9.cjs → version-CRzAHHGZ.cjs} +2 -3
- package/dist/{version-B0O4KvZ9.cjs.map → version-CRzAHHGZ.cjs.map} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.d.cts +1 -2
- package/dist/version.d.cts.map +1 -1
- package/dist/version.d.ts +1 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/{vi.ClIskdbk-De9q3829.js → vi.bdSIJ99Y-BfJr7I2s.js} +241 -171
- package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +1 -0
- package/dist/{vi.ClIskdbk-Bs263gvI.cjs → vi.bdSIJ99Y-Dft_B_Ta.cjs} +243 -182
- package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +1 -0
- package/package.json +8 -8
- package/dist/client-1dRfG57H.d.ts.map +0 -1
- package/dist/client-BsYOQsEI.d.cts.map +0 -1
- package/dist/client-CTm4cvI7.js.map +0 -1
- package/dist/client-DQ837FXP.cjs.map +0 -1
- package/dist/dist-BKh-M1A1.js.map +0 -1
- package/dist/dist-wiyJYfAH.cjs.map +0 -1
- package/dist/formatting-BQRAzO5v.js.map +0 -1
- package/dist/formatting-C-0bHtbh.cjs.map +0 -1
- package/dist/issue-helpers-CyoHu5j4.js.map +0 -1
- package/dist/issue-helpers-DbsECZFq.cjs.map +0 -1
- package/dist/promptDefinitions-5jiZMBg5.cjs.map +0 -1
- package/dist/promptDefinitions-CPTadtuI.js.map +0 -1
- package/dist/promptDefinitions-Dcz3d9wL.d.cts.map +0 -1
- package/dist/promptDefinitions-DrGK-v8n.d.ts.map +0 -1
- package/dist/schema-BCkBPgjj.cjs +0 -64
- package/dist/schema-BCkBPgjj.cjs.map +0 -1
- package/dist/schema-CJrk_GUH.js +0 -15
- package/dist/schema-CJrk_GUH.js.map +0 -1
- package/dist/schema-CaJV2aIO.d.cts.map +0 -1
- package/dist/schema-DwPOkoSP.d.ts.map +0 -1
- package/dist/schema-KEMqYaQn.cjs.map +0 -1
- package/dist/schema-nyYqVk4Y.js.map +0 -1
- package/dist/server-BWoJZj5B.cjs.map +0 -1
- package/dist/server-DtNbD1c-.js.map +0 -1
- package/dist/toolDefinitions-BF-D81bS.js.map +0 -1
- package/dist/toolDefinitions-CCscRQoM.d.ts.map +0 -1
- package/dist/toolDefinitions-CO65cU86.cjs.map +0 -1
- package/dist/toolDefinitions-K_TVqaLU.d.cts.map +0 -1
- package/dist/tools-B8ufMRZx.js.map +0 -1
- package/dist/tools-BYt-G6p2.cjs.map +0 -1
- package/dist/types-CPuN4Qmi.d.cts.map +0 -1
- package/dist/types-Ds7qzCBB.d.ts.map +0 -1
- package/dist/types-DyM4kaGZ.d.ts.map +0 -1
- package/dist/types-TaJcaAVg.d.cts.map +0 -1
- package/dist/version-dTEKpaGt.js +0 -6
- package/dist/vi.ClIskdbk-Bs263gvI.cjs.map +0 -1
- package/dist/vi.ClIskdbk-De9q3829.js.map +0 -1
- /package/dist/{api-client-9mzrj2HY.js → api-client-CL1WDkw9.cjs} +0 -0
- /package/dist/{api-client-CEBuz3Zu.cjs → api-client-CNv_hbPO.js} +0 -0
- /package/dist/{types-H-TSmRpm.js → types-6zHoEWAx.js} +0 -0
- /package/dist/{types-o3zWarRp.cjs → types-MYBaygjr.cjs} +0 -0
|
@@ -1,87 +1,89 @@
|
|
|
1
|
-
import { ParamIssueShortId, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamQuery, ParamRegionUrl, ParamTransaction } from "./schema-
|
|
1
|
+
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamProjectSlugOrAll, ParamQuery, ParamRegionUrl, ParamTeamSlug, ParamTransaction } from "./schema-BkHf97d7.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/toolDefinitions.ts
|
|
5
5
|
const TOOL_DEFINITIONS = [
|
|
6
6
|
{
|
|
7
|
-
name: "
|
|
7
|
+
name: "whoami",
|
|
8
8
|
description: [
|
|
9
|
-
"
|
|
9
|
+
"Identify the authenticated user in Sentry.",
|
|
10
|
+
"",
|
|
11
|
+
"Use this tool when you need to:",
|
|
12
|
+
"- Get the user's name and email address."
|
|
13
|
+
].join("\n"),
|
|
14
|
+
paramsSchema: { regionUrl: ParamRegionUrl.optional() }
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "find_organizations",
|
|
18
|
+
description: [
|
|
19
|
+
"Find organizations that the user has access to in Sentry.",
|
|
10
20
|
"",
|
|
11
21
|
"Use this tool when you need to:",
|
|
12
22
|
"- View all organizations in Sentry",
|
|
13
23
|
"- Find an organization's slug to aid other tool requests"
|
|
14
|
-
].join("\n")
|
|
24
|
+
].join("\n"),
|
|
25
|
+
paramsSchema: { regionUrl: ParamRegionUrl.optional() }
|
|
15
26
|
},
|
|
16
27
|
{
|
|
17
|
-
name: "
|
|
28
|
+
name: "find_teams",
|
|
18
29
|
description: [
|
|
19
|
-
"
|
|
30
|
+
"Find teams in an organization in Sentry.",
|
|
20
31
|
"",
|
|
21
32
|
"Use this tool when you need to:",
|
|
22
33
|
"- View all teams in a Sentry organization",
|
|
23
|
-
"- Find
|
|
24
|
-
"",
|
|
25
|
-
"<hints>",
|
|
26
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
27
|
-
"</hints>"
|
|
34
|
+
"- Find a team's slug to aid other tool requests"
|
|
28
35
|
].join("\n"),
|
|
29
36
|
paramsSchema: {
|
|
30
|
-
organizationSlug: ParamOrganizationSlug
|
|
37
|
+
organizationSlug: ParamOrganizationSlug,
|
|
31
38
|
regionUrl: ParamRegionUrl.optional()
|
|
32
39
|
}
|
|
33
40
|
},
|
|
34
41
|
{
|
|
35
|
-
name: "
|
|
42
|
+
name: "find_projects",
|
|
36
43
|
description: [
|
|
37
|
-
"
|
|
44
|
+
"Find projects in Sentry.",
|
|
38
45
|
"",
|
|
39
46
|
"Use this tool when you need to:",
|
|
40
47
|
"- View all projects in a Sentry organization",
|
|
41
|
-
"- Find
|
|
42
|
-
"",
|
|
43
|
-
"<hints>",
|
|
44
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
45
|
-
"</hints>"
|
|
48
|
+
"- Find a project's slug to aid other tool requests"
|
|
46
49
|
].join("\n"),
|
|
47
50
|
paramsSchema: {
|
|
48
|
-
organizationSlug: ParamOrganizationSlug
|
|
51
|
+
organizationSlug: ParamOrganizationSlug,
|
|
49
52
|
regionUrl: ParamRegionUrl.optional()
|
|
50
53
|
}
|
|
51
54
|
},
|
|
52
55
|
{
|
|
53
|
-
name: "
|
|
56
|
+
name: "find_issues",
|
|
54
57
|
description: [
|
|
55
|
-
"
|
|
58
|
+
"Find issues in Sentry.",
|
|
56
59
|
"",
|
|
57
60
|
"Use this tool when you need to:",
|
|
58
61
|
"- View all issues in a Sentry organization",
|
|
59
62
|
"",
|
|
60
|
-
"If you're looking for more granular data beyond a summary of identified problems, you should use the `
|
|
63
|
+
"If you're looking for more granular data beyond a summary of identified problems, you should use the `find_errors()` or `find_transactions()` tools instead.",
|
|
61
64
|
"",
|
|
62
65
|
"<examples>",
|
|
63
66
|
"### Find the newest unresolved issues across 'my-organization'",
|
|
64
67
|
"",
|
|
65
68
|
"```",
|
|
66
|
-
"
|
|
69
|
+
"find_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')",
|
|
67
70
|
"```",
|
|
68
71
|
"",
|
|
69
72
|
"### Find the most frequently occurring crashes in the 'my-project' project",
|
|
70
73
|
"",
|
|
71
74
|
"```",
|
|
72
|
-
"
|
|
75
|
+
"find_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')",
|
|
73
76
|
"```",
|
|
74
77
|
"",
|
|
75
78
|
"</examples>",
|
|
76
79
|
"",
|
|
77
80
|
"<hints>",
|
|
78
81
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
79
|
-
"-
|
|
80
|
-
"- You can use the `list_tags()` tool to see what user-defined tags are available.",
|
|
82
|
+
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
81
83
|
"</hints>"
|
|
82
84
|
].join("\n"),
|
|
83
85
|
paramsSchema: {
|
|
84
|
-
organizationSlug: ParamOrganizationSlug
|
|
86
|
+
organizationSlug: ParamOrganizationSlug,
|
|
85
87
|
regionUrl: ParamRegionUrl.optional(),
|
|
86
88
|
projectSlug: ParamProjectSlug.optional(),
|
|
87
89
|
query: ParamQuery.optional(),
|
|
@@ -94,39 +96,50 @@ const TOOL_DEFINITIONS = [
|
|
|
94
96
|
}
|
|
95
97
|
},
|
|
96
98
|
{
|
|
97
|
-
name: "
|
|
99
|
+
name: "find_releases",
|
|
98
100
|
description: [
|
|
99
|
-
"
|
|
101
|
+
"Find releases in Sentry.",
|
|
100
102
|
"",
|
|
101
103
|
"Use this tool when you need to:",
|
|
102
104
|
"- Find recent releases in a Sentry organization",
|
|
103
105
|
"- Find the most recent version released of a specific project",
|
|
104
106
|
"- Determine when a release was deployed to an environment",
|
|
107
|
+
"",
|
|
108
|
+
"<examples>",
|
|
109
|
+
"### Find the most recent releases in the 'my-organization' organization",
|
|
110
|
+
"",
|
|
111
|
+
"```",
|
|
112
|
+
"find_releases(organizationSlug='my-organization')",
|
|
113
|
+
"```",
|
|
114
|
+
"",
|
|
115
|
+
"### Find releases matching '2ce6a27' in the 'my-organization' organization",
|
|
116
|
+
"",
|
|
117
|
+
"```",
|
|
118
|
+
"find_releases(organizationSlug='my-organization', query='2ce6a27')",
|
|
119
|
+
"```",
|
|
120
|
+
"</examples>",
|
|
121
|
+
"",
|
|
105
122
|
"<hints>",
|
|
106
123
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
107
|
-
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `list_organizations()` first.",
|
|
108
124
|
"</hints>"
|
|
109
125
|
].join("\n"),
|
|
110
126
|
paramsSchema: {
|
|
111
|
-
organizationSlug: ParamOrganizationSlug
|
|
127
|
+
organizationSlug: ParamOrganizationSlug,
|
|
112
128
|
regionUrl: ParamRegionUrl.optional(),
|
|
113
|
-
projectSlug:
|
|
129
|
+
projectSlug: ParamProjectSlugOrAll.optional(),
|
|
130
|
+
query: z.string().trim().describe("Search for versions which contain the provided string.").optional()
|
|
114
131
|
}
|
|
115
132
|
},
|
|
116
133
|
{
|
|
117
|
-
name: "
|
|
134
|
+
name: "find_tags",
|
|
118
135
|
description: [
|
|
119
|
-
"
|
|
136
|
+
"Find tags in Sentry.",
|
|
120
137
|
"",
|
|
121
138
|
"Use this tool when you need to:",
|
|
122
|
-
"- Find tags available to use in
|
|
123
|
-
"",
|
|
124
|
-
"<hints>",
|
|
125
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
126
|
-
"</hints>"
|
|
139
|
+
"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)"
|
|
127
140
|
].join("\n"),
|
|
128
141
|
paramsSchema: {
|
|
129
|
-
organizationSlug: ParamOrganizationSlug
|
|
142
|
+
organizationSlug: ParamOrganizationSlug,
|
|
130
143
|
regionUrl: ParamRegionUrl.optional()
|
|
131
144
|
}
|
|
132
145
|
},
|
|
@@ -155,21 +168,20 @@ const TOOL_DEFINITIONS = [
|
|
|
155
168
|
"<hints>",
|
|
156
169
|
"- If the user provides the `issueUrl`, you can ignore the other parameters.",
|
|
157
170
|
"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.",
|
|
158
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
159
171
|
"</hints>"
|
|
160
172
|
].join("\n"),
|
|
161
173
|
paramsSchema: {
|
|
162
174
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
163
175
|
regionUrl: ParamRegionUrl.optional(),
|
|
164
176
|
issueId: ParamIssueShortId.optional(),
|
|
165
|
-
eventId: z.string().describe("The ID of the event.").optional(),
|
|
166
|
-
issueUrl:
|
|
177
|
+
eventId: z.string().trim().describe("The ID of the event.").optional(),
|
|
178
|
+
issueUrl: ParamIssueUrl.optional()
|
|
167
179
|
}
|
|
168
180
|
},
|
|
169
181
|
{
|
|
170
|
-
name: "
|
|
182
|
+
name: "find_errors",
|
|
171
183
|
description: [
|
|
172
|
-
"
|
|
184
|
+
"Find errors in Sentry using advanced search syntax.",
|
|
173
185
|
"",
|
|
174
186
|
"Use this tool when you need to:",
|
|
175
187
|
"- Search for production errors in a specific file.",
|
|
@@ -182,38 +194,38 @@ const TOOL_DEFINITIONS = [
|
|
|
182
194
|
"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.",
|
|
183
195
|
"",
|
|
184
196
|
"```",
|
|
185
|
-
"
|
|
197
|
+
"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')",
|
|
186
198
|
"```",
|
|
187
199
|
"",
|
|
188
200
|
"### Find recent crashes from the 'peated' project",
|
|
189
201
|
"",
|
|
190
202
|
"```",
|
|
191
|
-
"
|
|
203
|
+
"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')",
|
|
192
204
|
"```",
|
|
193
205
|
"",
|
|
194
206
|
"</examples>",
|
|
195
207
|
"",
|
|
196
208
|
"<hints>",
|
|
197
209
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
198
|
-
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `
|
|
199
|
-
"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `
|
|
200
|
-
"- You can use the `
|
|
210
|
+
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `find_organizations()` first.",
|
|
211
|
+
"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `find_issues()` tool",
|
|
212
|
+
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
201
213
|
"</hints>"
|
|
202
214
|
].join("\n"),
|
|
203
215
|
paramsSchema: {
|
|
204
|
-
organizationSlug: ParamOrganizationSlug
|
|
216
|
+
organizationSlug: ParamOrganizationSlug,
|
|
205
217
|
regionUrl: ParamRegionUrl.optional(),
|
|
206
|
-
projectSlug:
|
|
207
|
-
filename: z.string().describe("The filename to search for errors in.").optional(),
|
|
218
|
+
projectSlug: ParamProjectSlugOrAll.optional(),
|
|
219
|
+
filename: z.string().trim().describe("The filename to search for errors in.").optional(),
|
|
208
220
|
transaction: ParamTransaction.optional(),
|
|
209
221
|
query: ParamQuery.optional(),
|
|
210
222
|
sortBy: z.enum(["last_seen", "count"]).optional().default("last_seen").describe("Sort the results either by the last time they occurred or the count of occurrences.")
|
|
211
223
|
}
|
|
212
224
|
},
|
|
213
225
|
{
|
|
214
|
-
name: "
|
|
226
|
+
name: "find_transactions",
|
|
215
227
|
description: [
|
|
216
|
-
"
|
|
228
|
+
"Find transactions in Sentry using advanced search syntax.",
|
|
217
229
|
"",
|
|
218
230
|
"Transactions are segments of traces that are associated with a specific route or endpoint.",
|
|
219
231
|
"",
|
|
@@ -228,21 +240,21 @@ const TOOL_DEFINITIONS = [
|
|
|
228
240
|
"...",
|
|
229
241
|
"",
|
|
230
242
|
"```",
|
|
231
|
-
"
|
|
243
|
+
"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')",
|
|
232
244
|
"```",
|
|
233
245
|
"",
|
|
234
246
|
"</examples>",
|
|
235
247
|
"",
|
|
236
248
|
"<hints>",
|
|
237
249
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
238
|
-
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `
|
|
239
|
-
"- You can use the `
|
|
250
|
+
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.",
|
|
251
|
+
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
240
252
|
"</hints>"
|
|
241
253
|
].join("\n"),
|
|
242
254
|
paramsSchema: {
|
|
243
|
-
organizationSlug: ParamOrganizationSlug
|
|
255
|
+
organizationSlug: ParamOrganizationSlug,
|
|
244
256
|
regionUrl: ParamRegionUrl.optional(),
|
|
245
|
-
projectSlug:
|
|
257
|
+
projectSlug: ParamProjectSlugOrAll.optional(),
|
|
246
258
|
transaction: ParamTransaction.optional(),
|
|
247
259
|
query: ParamQuery.optional(),
|
|
248
260
|
sortBy: z.enum(["timestamp", "duration"]).optional().default("timestamp").describe("Sort the results either by the timestamp of the request (most recent first) or the duration of the request (longest first).")
|
|
@@ -253,6 +265,8 @@ const TOOL_DEFINITIONS = [
|
|
|
253
265
|
description: [
|
|
254
266
|
"Create a new team in Sentry.",
|
|
255
267
|
"",
|
|
268
|
+
"Be careful when using this tool!",
|
|
269
|
+
"",
|
|
256
270
|
"Use this tool when you need to:",
|
|
257
271
|
"- Create a new team in a Sentry organization",
|
|
258
272
|
"",
|
|
@@ -261,9 +275,9 @@ const TOOL_DEFINITIONS = [
|
|
|
261
275
|
"</hints>"
|
|
262
276
|
].join("\n"),
|
|
263
277
|
paramsSchema: {
|
|
264
|
-
organizationSlug: ParamOrganizationSlug
|
|
278
|
+
organizationSlug: ParamOrganizationSlug,
|
|
265
279
|
regionUrl: ParamRegionUrl.optional(),
|
|
266
|
-
name: z.string().describe("The name of the team to create.")
|
|
280
|
+
name: z.string().trim().describe("The name of the team to create.")
|
|
267
281
|
}
|
|
268
282
|
},
|
|
269
283
|
{
|
|
@@ -271,6 +285,8 @@ const TOOL_DEFINITIONS = [
|
|
|
271
285
|
description: [
|
|
272
286
|
"Create a new project in Sentry, giving you access to a new SENTRY_DSN.",
|
|
273
287
|
"",
|
|
288
|
+
"Be careful when using this tool!",
|
|
289
|
+
"",
|
|
274
290
|
"Use this tool when you need to:",
|
|
275
291
|
"- Create a new project in a Sentry organization",
|
|
276
292
|
"",
|
|
@@ -289,10 +305,10 @@ const TOOL_DEFINITIONS = [
|
|
|
289
305
|
"</hints>"
|
|
290
306
|
].join("\n"),
|
|
291
307
|
paramsSchema: {
|
|
292
|
-
organizationSlug: ParamOrganizationSlug
|
|
308
|
+
organizationSlug: ParamOrganizationSlug,
|
|
293
309
|
regionUrl: ParamRegionUrl.optional(),
|
|
294
|
-
teamSlug:
|
|
295
|
-
name: z.string().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
|
|
310
|
+
teamSlug: ParamTeamSlug,
|
|
311
|
+
name: z.string().trim().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
|
|
296
312
|
platform: ParamPlatform.optional()
|
|
297
313
|
}
|
|
298
314
|
},
|
|
@@ -301,6 +317,8 @@ const TOOL_DEFINITIONS = [
|
|
|
301
317
|
description: [
|
|
302
318
|
"Create a new Sentry DSN for a specific project.",
|
|
303
319
|
"",
|
|
320
|
+
"Be careful when using this tool!",
|
|
321
|
+
"",
|
|
304
322
|
"Use this tool when you need to:",
|
|
305
323
|
"- Create a new DSN for a specific project",
|
|
306
324
|
"",
|
|
@@ -308,7 +326,7 @@ const TOOL_DEFINITIONS = [
|
|
|
308
326
|
"### Create a new DSN for the 'my-project' project",
|
|
309
327
|
"",
|
|
310
328
|
"```",
|
|
311
|
-
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='
|
|
329
|
+
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Production')",
|
|
312
330
|
"```",
|
|
313
331
|
"",
|
|
314
332
|
"</examples>",
|
|
@@ -319,14 +337,14 @@ const TOOL_DEFINITIONS = [
|
|
|
319
337
|
"</hints>"
|
|
320
338
|
].join("\n"),
|
|
321
339
|
paramsSchema: {
|
|
322
|
-
organizationSlug: ParamOrganizationSlug
|
|
340
|
+
organizationSlug: ParamOrganizationSlug,
|
|
323
341
|
regionUrl: ParamRegionUrl.optional(),
|
|
324
|
-
projectSlug:
|
|
325
|
-
name: z.string().describe("The name of the DSN to create.")
|
|
342
|
+
projectSlug: ParamProjectSlug,
|
|
343
|
+
name: z.string().trim().describe("The name of the DSN to create, for example 'Production'.")
|
|
326
344
|
}
|
|
327
345
|
},
|
|
328
346
|
{
|
|
329
|
-
name: "
|
|
347
|
+
name: "find_dsns",
|
|
330
348
|
description: [
|
|
331
349
|
"List all Sentry DSNs for a specific project.",
|
|
332
350
|
"",
|
|
@@ -335,13 +353,13 @@ const TOOL_DEFINITIONS = [
|
|
|
335
353
|
"",
|
|
336
354
|
"<hints>",
|
|
337
355
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
338
|
-
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `
|
|
356
|
+
"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.",
|
|
339
357
|
"</hints>"
|
|
340
358
|
].join("\n"),
|
|
341
359
|
paramsSchema: {
|
|
342
|
-
organizationSlug: ParamOrganizationSlug
|
|
360
|
+
organizationSlug: ParamOrganizationSlug,
|
|
343
361
|
regionUrl: ParamRegionUrl.optional(),
|
|
344
|
-
projectSlug:
|
|
362
|
+
projectSlug: ParamProjectSlug
|
|
345
363
|
}
|
|
346
364
|
},
|
|
347
365
|
{
|
|
@@ -367,14 +385,13 @@ const TOOL_DEFINITIONS = [
|
|
|
367
385
|
"<hints>",
|
|
368
386
|
"- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.",
|
|
369
387
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
370
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
371
388
|
"</hints>"
|
|
372
389
|
].join("\n"),
|
|
373
390
|
paramsSchema: {
|
|
374
391
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
375
392
|
regionUrl: ParamRegionUrl.optional(),
|
|
376
393
|
issueId: ParamIssueShortId.optional(),
|
|
377
|
-
issueUrl:
|
|
394
|
+
issueUrl: ParamIssueUrl.optional()
|
|
378
395
|
}
|
|
379
396
|
},
|
|
380
397
|
{
|
|
@@ -397,18 +414,17 @@ const TOOL_DEFINITIONS = [
|
|
|
397
414
|
"",
|
|
398
415
|
"<hints>",
|
|
399
416
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
400
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
401
417
|
"</hints>"
|
|
402
418
|
].join("\n"),
|
|
403
419
|
paramsSchema: {
|
|
404
420
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
405
421
|
regionUrl: ParamRegionUrl.optional(),
|
|
406
422
|
issueId: ParamIssueShortId.optional(),
|
|
407
|
-
issueUrl:
|
|
423
|
+
issueUrl: ParamIssueUrl.optional()
|
|
408
424
|
}
|
|
409
425
|
}
|
|
410
426
|
];
|
|
411
427
|
|
|
412
428
|
//#endregion
|
|
413
429
|
export { TOOL_DEFINITIONS };
|
|
414
|
-
//# sourceMappingURL=toolDefinitions-
|
|
430
|
+
//# sourceMappingURL=toolDefinitions-BSC2D_S-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-BSC2D_S-.js","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["// TODO: this gets imported by the client code and thus is separated from server code\n// to avoid bundling issues. We'd like to find a better solution that isnt so brittle and keeps this code co-located w/ its tool calls.\nimport {\n ParamOrganizationSlug,\n ParamIssueShortId,\n ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n ParamRegionUrl,\n ParamProjectSlugOrAll,\n ParamIssueUrl,\n ParamTeamSlug,\n} from \"./schema\";\nimport { z } from \"zod\";\n\nexport const TOOL_DEFINITIONS = [\n {\n name: \"whoami\" as const,\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 paramsSchema: {\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"find_organizations\" as const,\n description: [\n \"Find organizations that the user has access to in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all organizations in Sentry\",\n \"- Find an organization's slug to aid other tool requests\",\n ].join(\"\\n\"),\n paramsSchema: {\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"find_teams\" as const,\n description: [\n \"Find teams in an organization in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all teams in a Sentry organization\",\n \"- Find a team's slug to aid other tool requests\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"find_projects\" as const,\n description: [\n \"Find projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find a project's slug to aid other tool requests\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"find_issues\" as const,\n description: [\n \"Find issues in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all issues in a Sentry organization\",\n \"\",\n \"If you're looking for more granular data beyond a summary of identified problems, you should use the `find_errors()` or `find_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"find_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"### Find the most frequently occurring crashes in the 'my-project' project\",\n \"\",\n \"```\",\n \"find_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"first_seen\", \"count\", \"userCount\"])\n .describe(\n \"Sort the results either by the last time they occurred, the first time they occurred, the count of occurrences, or the number of users affected.\",\n )\n .optional(),\n },\n },\n {\n name: \"find_releases\" as const,\n description: [\n \"Find releases in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find recent releases in a Sentry organization\",\n \"- Find the most recent version released of a specific project\",\n \"- Determine when a release was deployed to an environment\",\n \"\",\n \"<examples>\",\n \"### Find the most recent releases in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"find_releases(organizationSlug='my-organization')\",\n \"```\",\n \"\",\n \"### Find releases matching '2ce6a27' in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"find_releases(organizationSlug='my-organization', query='2ce6a27')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n query: z\n .string()\n .trim()\n .describe(\"Search for versions which contain the provided string.\")\n .optional(),\n },\n },\n {\n name: \"find_tags\" as const,\n description: [\n \"Find tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n },\n },\n {\n name: \"get_issue_details\" as const,\n description: [\n \"Retrieve issue details from Sentry for a specific Issue ID, including the stacktrace and error message if available. Either issueId or issueUrl MUST be provided.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Investigate a specific production error\",\n \"- Access detailed error information and stacktraces from Sentry\",\n \"\",\n \"<examples>\",\n \"### Get details for issue ID 'CLOUDFLARE-MCP-41'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'\",\n \"\",\n \"```\",\n \"get_event_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().trim().describe(\"The ID of the event.\").optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n },\n {\n name: \"find_errors\" as const,\n description: [\n \"Find errors in Sentry using advanced search syntax.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production errors in a specific file.\",\n \"- Analyze error patterns and frequencies.\",\n \"- Find recent or frequently occurring errors.\",\n \"\",\n \"<examples>\",\n \"### Find common errors within a file\",\n \"\",\n \"To find common errors within a file, you can use the `filename` parameter. This is a suffix based search, so only using the filename or the direct parent folder of the file. The parent folder is preferred when the filename is in a subfolder or a common filename. If you provide generic filenames like `index.js` you're going to end up finding errors that are might be from completely different projects.\",\n \"\",\n \"```\",\n \"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you should call `find_organizations()` first.\",\n \"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `find_issues()` tool\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n filename: z\n .string()\n .trim()\n .describe(\"The filename to search for errors in.\")\n .optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"last_seen\", \"count\"])\n .optional()\n .default(\"last_seen\")\n .describe(\n \"Sort the results either by the last time they occurred or the count of occurrences.\",\n ),\n },\n },\n {\n name: \"find_transactions\" as const,\n description: [\n \"Find transactions in Sentry using advanced search syntax.\",\n \"\",\n \"Transactions are segments of traces that are associated with a specific route or endpoint.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Search for production transaction data to understand performance.\",\n \"- Analyze traces and latency patterns.\",\n \"- Find examples of recent requests to endpoints.\",\n \"\",\n \"<examples>\",\n \"### Find slow requests to a route\",\n \"\",\n \"...\",\n \"\",\n \"```\",\n \"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.\",\n \"- You can use the `find_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlugOrAll.optional(),\n transaction: ParamTransaction.optional(),\n query: ParamQuery.optional(),\n sortBy: z\n .enum([\"timestamp\", \"duration\"])\n .optional()\n .default(\"timestamp\")\n .describe(\n \"Sort the results either by the timestamp of the request (most recent first) or the duration of the request (longest first).\",\n ),\n },\n },\n {\n name: \"create_team\" as const,\n description: [\n \"Create a new team in Sentry.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new team in a Sentry organization\",\n \"\",\n \"<hints>\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n name: z.string().trim().describe(\"The name of the team to create.\"),\n },\n },\n {\n name: \"create_project\" as const,\n description: [\n \"Create a new project in Sentry, giving you access to a new SENTRY_DSN.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new project in a Sentry organization\",\n \"\",\n \"<examples>\",\n \"### Create a new javascript project in the 'my-organization' organization\",\n \"\",\n \"```\",\n \"create_project(organizationSlug='my-organization', teamSlug='my-team', name='my-project', platform='javascript')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<teamSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\n .trim()\n .describe(\n \"The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry.\",\n ),\n platform: ParamPlatform.optional(),\n },\n },\n {\n name: \"create_dsn\" as const,\n description: [\n \"Create a new Sentry DSN for a specific project.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Create a new DSN for a specific project\",\n \"\",\n \"<examples>\",\n \"### Create a new DSN for the 'my-project' project\",\n \"\",\n \"```\",\n \"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Production')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n name: z\n .string()\n .trim()\n .describe(\"The name of the DSN to create, for example 'Production'.\"),\n },\n },\n {\n name: \"find_dsns\" as const,\n description: [\n \"List all Sentry DSNs for a specific project.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Retrieve a SENTRY_DSN for a specific project\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- If only one parameter is provided, and it could be either `organizationSlug` or `projectSlug`, its probably `organizationSlug`, but if you're really uncertain you might want to call `find_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug,\n regionUrl: ParamRegionUrl.optional(),\n projectSlug: ParamProjectSlug,\n },\n },\n {\n name: \"begin_seer_issue_fix\" as const,\n description: [\n \"Use Seer to analyze an issue in Sentry, identify a root cause, and suggest a fix for it.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Determine the root cause of an issue.\",\n \"- Generate a plan for fixing an issue.\",\n \"- Implement a fix for an issue.\",\n \"\",\n \"This operation may take some time, so you should call `get_seer_issue_fix_status()` to check the status of the analysis after you begin it.\",\n \"\",\n \"<examples>\",\n \"### Analyze and propose a fix for 'ISSUE-123' in Sentry\",\n \"\",\n \"```\",\n \"begin_seer_issue_fix(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n },\n {\n name: \"get_seer_issue_fix_status\" as const,\n description: [\n \"Get the status of a root cause analysis for an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the root cause analysis for an issue.\",\n \"- Get the status of a fix for an issue.\",\n \"\",\n \"<examples>\",\n \"### Get the status of a fix for the 'ISSUE-123' issue\",\n \"\",\n \"```\",\n \"get_seer_issue_fix_status(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n },\n },\n];\n"],"mappings":";;;;AAgBA,MAAa,mBAAmB;CAC9B;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,WAAW,eAAe,UAAU,CACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,WAAW,eAAe,UAAU,CACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK;IAAC;IAAa;IAAc;IAAS;GAAY,EAAC,CACvD,SACC,mJACD,CACA,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa,sBAAsB,UAAU;GAC7C,OAAO,EACJ,QAAQ,CACR,MAAM,CACN,SAAS,yDAAyD,CAClE,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GAEA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;GACtE,UAAU,cAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa,sBAAsB,UAAU;GAC7C,UAAU,EACP,QAAQ,CACR,MAAM,CACN,SAAS,wCAAwC,CACjD,UAAU;GACb,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,OAAQ,EAAC,CAC5B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,sFACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa,sBAAsB,UAAU;GAC7C,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,UAAW,EAAC,CAC/B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,8HACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;EACpE;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,UAAU;GACV,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;GACH,UAAU,cAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa;GACb,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SAAS,2DAA2D;EACxE;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,cAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,cAAc,UAAU;EACnC;CACF;AACF"}
|