@sentry/mcp-server 0.9.0 → 0.10.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 +2 -2
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/client.test.cjs +2 -2
- package/dist/api-client/client.test.js +2 -2
- package/dist/api-client/index.cjs +2 -2
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +3 -3
- package/dist/api-client/index.js +2 -2
- package/dist/api-client/schema.cjs +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/schema.js +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{client-DQ837FXP.cjs → client-B4Ux5Zdg.cjs} +7 -4
- package/dist/client-B4Ux5Zdg.cjs.map +1 -0
- package/dist/{client-CTm4cvI7.js → client-Bz_PNC8o.js} +7 -4
- package/dist/client-Bz_PNC8o.js.map +1 -0
- package/dist/{client-1dRfG57H.d.ts → client-J6VSRmQS.d.ts} +5 -3
- package/dist/client-J6VSRmQS.d.ts.map +1 -0
- package/dist/{client-BsYOQsEI.d.cts → client-tE6FD__9.d.cts} +5 -3
- package/dist/client-tE6FD__9.d.cts.map +1 -0
- package/dist/{formatting-C-0bHtbh.cjs → formatting-B0SJqiqX.cjs} +11 -3
- package/dist/formatting-B0SJqiqX.cjs.map +1 -0
- package/dist/{formatting-BQRAzO5v.js → formatting-ggD6YRYR.js} +11 -3
- package/dist/formatting-ggD6YRYR.js.map +1 -0
- package/dist/index.cjs +11 -11
- package/dist/index.js +11 -11
- package/dist/internal/formatting.cjs +1 -1
- package/dist/internal/formatting.d.cts +3 -3
- package/dist/internal/formatting.d.cts.map +1 -1
- package/dist/internal/formatting.d.ts +3 -3
- package/dist/internal/formatting.d.ts.map +1 -1
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.test.cjs +2 -2
- package/dist/internal/issue-helpers.test.cjs.map +1 -1
- package/dist/internal/issue-helpers.test.js +2 -2
- package/dist/internal/issue-helpers.test.js.map +1 -1
- package/dist/{promptDefinitions-Dcz3d9wL.d.cts → promptDefinitions-BR7PxWcH.d.cts} +3 -3
- package/dist/promptDefinitions-BR7PxWcH.d.cts.map +1 -0
- package/dist/{promptDefinitions-CPTadtuI.js → promptDefinitions-DBNOeSg-.js} +5 -5
- package/dist/promptDefinitions-DBNOeSg-.js.map +1 -0
- package/dist/{promptDefinitions-5jiZMBg5.cjs → promptDefinitions-pHRpPOpJ.cjs} +5 -5
- package/dist/promptDefinitions-pHRpPOpJ.cjs.map +1 -0
- package/dist/{promptDefinitions-DrGK-v8n.d.ts → promptDefinitions-tpKruPny.d.ts} +3 -3
- package/dist/promptDefinitions-tpKruPny.d.ts.map +1 -0
- package/dist/promptDefinitions.cjs +2 -2
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +2 -2
- package/dist/prompts.d.cts +5 -5
- package/dist/prompts.d.ts +5 -5
- package/dist/{schema-KEMqYaQn.cjs → schema-3VLYcf4D.cjs} +9 -2
- package/dist/schema-3VLYcf4D.cjs.map +1 -0
- package/dist/{schema-DwPOkoSP.d.ts → schema-B7A-FyIi.d.ts} +341 -263
- package/dist/{schema-DwPOkoSP.d.ts.map → schema-B7A-FyIi.d.ts.map} +1 -1
- package/dist/schema-BKa41TQ4.js +17 -0
- package/dist/schema-BKa41TQ4.js.map +1 -0
- package/dist/{schema-nyYqVk4Y.js → schema-Dltbjui7.js} +9 -2
- package/dist/schema-Dltbjui7.js.map +1 -0
- package/dist/{schema-CaJV2aIO.d.cts → schema-PvgLrC1b.d.cts} +339 -261
- package/dist/{schema-CaJV2aIO.d.cts.map → schema-PvgLrC1b.d.cts.map} +1 -1
- package/dist/schema-jk88gqOu.cjs +78 -0
- package/dist/schema-jk88gqOu.cjs.map +1 -0
- package/dist/schema.cjs +3 -1
- package/dist/schema.d.cts +3 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +3 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/{server-BWoJZj5B.cjs → server-VwFSUPQn.cjs} +5 -5
- package/dist/{server-BWoJZj5B.cjs.map → server-VwFSUPQn.cjs.map} +1 -1
- package/dist/{server-DtNbD1c-.js → server-yb4PkNyo.js} +5 -5
- package/dist/{server-DtNbD1c-.js.map → server-yb4PkNyo.js.map} +1 -1
- package/dist/server.cjs +8 -8
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +8 -8
- package/dist/{stdio-BLzMxGqU.cjs → stdio-65sYKLOk.cjs} +2 -2
- package/dist/{stdio-BLzMxGqU.cjs.map → stdio-65sYKLOk.cjs.map} +1 -1
- package/dist/{stdio-D4oW-qT6.js → stdio-DkU2-spy.js} +2 -2
- package/dist/{stdio-D4oW-qT6.js.map → stdio-DkU2-spy.js.map} +1 -1
- package/dist/test-setup.cjs +1338 -1142
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1338 -1141
- package/dist/test-setup.js.map +1 -1
- package/dist/{toolDefinitions-K_TVqaLU.d.cts → toolDefinitions-B94CNDbt.d.cts} +22 -22
- package/dist/toolDefinitions-B94CNDbt.d.cts.map +1 -0
- package/dist/{toolDefinitions-BF-D81bS.js → toolDefinitions-Bb_1ejkl.js} +83 -78
- package/dist/toolDefinitions-Bb_1ejkl.js.map +1 -0
- package/dist/{toolDefinitions-CO65cU86.cjs → toolDefinitions-DIhvw3vk.cjs} +83 -78
- package/dist/toolDefinitions-DIhvw3vk.cjs.map +1 -0
- package/dist/{toolDefinitions-CCscRQoM.d.ts → toolDefinitions-q_1-70fG.d.ts} +22 -22
- package/dist/toolDefinitions-q_1-70fG.d.ts.map +1 -0
- package/dist/toolDefinitions.cjs +2 -2
- 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 +2 -2
- package/dist/toolDefinitions.test.js +2 -2
- package/dist/{tools-BYt-G6p2.cjs → tools-BdkmyaZo.cjs} +36 -52
- package/dist/tools-BdkmyaZo.cjs.map +1 -0
- package/dist/{tools-B8ufMRZx.js → tools-CMFpMPpD.js} +36 -52
- package/dist/tools-CMFpMPpD.js.map +1 -0
- package/dist/tools.cjs +4 -4
- package/dist/tools.d.cts +24 -24
- package/dist/tools.d.cts.map +1 -1
- package/dist/tools.d.ts +24 -24
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +4 -4
- package/dist/tools.test.cjs +111 -34
- package/dist/tools.test.cjs.map +1 -1
- package/dist/tools.test.js +111 -34
- package/dist/tools.test.js.map +1 -1
- package/dist/transports/stdio.cjs +9 -9
- package/dist/transports/stdio.d.cts +3 -3
- package/dist/transports/stdio.d.ts +3 -3
- package/dist/transports/stdio.js +9 -9
- package/dist/{types-CPuN4Qmi.d.cts → types-B03G337q.d.cts} +2 -2
- package/dist/{types-CPuN4Qmi.d.cts.map → types-B03G337q.d.cts.map} +1 -1
- package/dist/{types-Ds7qzCBB.d.ts → types-CN4NEway.d.ts} +2 -2
- package/dist/{types-Ds7qzCBB.d.ts.map → types-CN4NEway.d.ts.map} +1 -1
- package/dist/{types-TaJcaAVg.d.cts → types-OeoNXRm-.d.cts} +3 -3
- package/dist/{types-TaJcaAVg.d.cts.map → types-OeoNXRm-.d.cts.map} +1 -1
- package/dist/{types-DyM4kaGZ.d.ts → types-jftb-CP9.d.ts} +3 -3
- package/dist/{types-DyM4kaGZ.d.ts.map → types-jftb-CP9.d.ts.map} +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/{version-B0O4KvZ9.cjs → version-CDnh7DyW.cjs} +2 -2
- package/dist/{version-B0O4KvZ9.cjs.map → version-CDnh7DyW.cjs.map} +1 -1
- package/dist/version-TjO7fHpC.js +6 -0
- package/dist/{version-dTEKpaGt.js.map → version-TjO7fHpC.js.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- 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/formatting-BQRAzO5v.js.map +0 -1
- package/dist/formatting-C-0bHtbh.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-KEMqYaQn.cjs.map +0 -1
- package/dist/schema-nyYqVk4Y.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/version-dTEKpaGt.js +0 -6
|
@@ -2,14 +2,14 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/toolDefinitions.d.ts
|
|
4
4
|
declare const TOOL_DEFINITIONS: ({
|
|
5
|
-
name: "
|
|
5
|
+
name: "find_organizations";
|
|
6
6
|
description: string;
|
|
7
7
|
paramsSchema?: undefined;
|
|
8
8
|
} | {
|
|
9
|
-
name: "
|
|
9
|
+
name: "find_teams";
|
|
10
10
|
description: string;
|
|
11
11
|
paramsSchema: {
|
|
12
|
-
organizationSlug: z.
|
|
12
|
+
organizationSlug: z.ZodString;
|
|
13
13
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
14
14
|
projectSlug?: undefined;
|
|
15
15
|
query?: undefined;
|
|
@@ -24,10 +24,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
24
24
|
platform?: undefined;
|
|
25
25
|
};
|
|
26
26
|
} | {
|
|
27
|
-
name: "
|
|
27
|
+
name: "find_projects";
|
|
28
28
|
description: string;
|
|
29
29
|
paramsSchema: {
|
|
30
|
-
organizationSlug: z.
|
|
30
|
+
organizationSlug: z.ZodString;
|
|
31
31
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
32
32
|
projectSlug?: undefined;
|
|
33
33
|
query?: undefined;
|
|
@@ -42,10 +42,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
42
42
|
platform?: undefined;
|
|
43
43
|
};
|
|
44
44
|
} | {
|
|
45
|
-
name: "
|
|
45
|
+
name: "find_issues";
|
|
46
46
|
description: string;
|
|
47
47
|
paramsSchema: {
|
|
48
|
-
organizationSlug: z.
|
|
48
|
+
organizationSlug: z.ZodString;
|
|
49
49
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
50
50
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
51
51
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -60,13 +60,13 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
60
60
|
platform?: undefined;
|
|
61
61
|
};
|
|
62
62
|
} | {
|
|
63
|
-
name: "
|
|
63
|
+
name: "find_releases";
|
|
64
64
|
description: string;
|
|
65
65
|
paramsSchema: {
|
|
66
|
-
organizationSlug: z.
|
|
66
|
+
organizationSlug: z.ZodString;
|
|
67
67
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
68
68
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
69
|
-
query
|
|
69
|
+
query: z.ZodOptional<z.ZodString>;
|
|
70
70
|
sortBy?: undefined;
|
|
71
71
|
issueId?: undefined;
|
|
72
72
|
eventId?: undefined;
|
|
@@ -78,10 +78,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
78
78
|
platform?: undefined;
|
|
79
79
|
};
|
|
80
80
|
} | {
|
|
81
|
-
name: "
|
|
81
|
+
name: "find_tags";
|
|
82
82
|
description: string;
|
|
83
83
|
paramsSchema: {
|
|
84
|
-
organizationSlug: z.
|
|
84
|
+
organizationSlug: z.ZodString;
|
|
85
85
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
86
86
|
projectSlug?: undefined;
|
|
87
87
|
query?: undefined;
|
|
@@ -114,10 +114,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
114
114
|
platform?: undefined;
|
|
115
115
|
};
|
|
116
116
|
} | {
|
|
117
|
-
name: "
|
|
117
|
+
name: "find_errors";
|
|
118
118
|
description: string;
|
|
119
119
|
paramsSchema: {
|
|
120
|
-
organizationSlug: z.
|
|
120
|
+
organizationSlug: z.ZodString;
|
|
121
121
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
122
122
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
123
123
|
filename: z.ZodOptional<z.ZodString>;
|
|
@@ -132,10 +132,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
132
132
|
platform?: undefined;
|
|
133
133
|
};
|
|
134
134
|
} | {
|
|
135
|
-
name: "
|
|
135
|
+
name: "find_transactions";
|
|
136
136
|
description: string;
|
|
137
137
|
paramsSchema: {
|
|
138
|
-
organizationSlug: z.
|
|
138
|
+
organizationSlug: z.ZodString;
|
|
139
139
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
140
140
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
141
141
|
transaction: z.ZodOptional<z.ZodString>;
|
|
@@ -153,7 +153,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
153
153
|
name: "create_team";
|
|
154
154
|
description: string;
|
|
155
155
|
paramsSchema: {
|
|
156
|
-
organizationSlug: z.
|
|
156
|
+
organizationSlug: z.ZodString;
|
|
157
157
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
158
158
|
name: z.ZodString;
|
|
159
159
|
projectSlug?: undefined;
|
|
@@ -171,7 +171,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
171
171
|
name: "create_project";
|
|
172
172
|
description: string;
|
|
173
173
|
paramsSchema: {
|
|
174
|
-
organizationSlug: z.
|
|
174
|
+
organizationSlug: z.ZodString;
|
|
175
175
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
176
176
|
teamSlug: z.ZodString;
|
|
177
177
|
name: z.ZodString;
|
|
@@ -189,7 +189,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
189
189
|
name: "create_dsn";
|
|
190
190
|
description: string;
|
|
191
191
|
paramsSchema: {
|
|
192
|
-
organizationSlug: z.
|
|
192
|
+
organizationSlug: z.ZodString;
|
|
193
193
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
194
194
|
projectSlug: z.ZodString;
|
|
195
195
|
name: z.ZodString;
|
|
@@ -204,10 +204,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
204
204
|
platform?: undefined;
|
|
205
205
|
};
|
|
206
206
|
} | {
|
|
207
|
-
name: "
|
|
207
|
+
name: "find_dsns";
|
|
208
208
|
description: string;
|
|
209
209
|
paramsSchema: {
|
|
210
|
-
organizationSlug: z.
|
|
210
|
+
organizationSlug: z.ZodString;
|
|
211
211
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
212
212
|
projectSlug: z.ZodString;
|
|
213
213
|
query?: undefined;
|
|
@@ -261,4 +261,4 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
261
261
|
|
|
262
262
|
//# sourceMappingURL=toolDefinitions.d.ts.map
|
|
263
263
|
export { TOOL_DEFINITIONS };
|
|
264
|
-
//# sourceMappingURL=toolDefinitions-
|
|
264
|
+
//# sourceMappingURL=toolDefinitions-B94CNDbt.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-B94CNDbt.d.cts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAgBa;;EAAA,WAAA,EAAA,MAubZ;EAAA,YAAA,CAAA,EAAA,SAAA;CAAA,GAAA;;;;sBAAA,CAAA,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
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-BKa41TQ4.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: "find_organizations",
|
|
8
8
|
description: [
|
|
9
|
-
"
|
|
9
|
+
"Find organizations that the user has access to in Sentry.",
|
|
10
10
|
"",
|
|
11
11
|
"Use this tool when you need to:",
|
|
12
12
|
"- View all organizations in Sentry",
|
|
@@ -14,74 +14,65 @@ const TOOL_DEFINITIONS = [
|
|
|
14
14
|
].join("\n")
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
name: "
|
|
17
|
+
name: "find_teams",
|
|
18
18
|
description: [
|
|
19
|
-
"
|
|
19
|
+
"Find teams in an organization in Sentry.",
|
|
20
20
|
"",
|
|
21
21
|
"Use this tool when you need to:",
|
|
22
22
|
"- 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>"
|
|
23
|
+
"- Find a team's slug to aid other tool requests"
|
|
28
24
|
].join("\n"),
|
|
29
25
|
paramsSchema: {
|
|
30
|
-
organizationSlug: ParamOrganizationSlug
|
|
26
|
+
organizationSlug: ParamOrganizationSlug,
|
|
31
27
|
regionUrl: ParamRegionUrl.optional()
|
|
32
28
|
}
|
|
33
29
|
},
|
|
34
30
|
{
|
|
35
|
-
name: "
|
|
31
|
+
name: "find_projects",
|
|
36
32
|
description: [
|
|
37
|
-
"
|
|
33
|
+
"Find projects in Sentry.",
|
|
38
34
|
"",
|
|
39
35
|
"Use this tool when you need to:",
|
|
40
36
|
"- 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>"
|
|
37
|
+
"- Find a project's slug to aid other tool requests"
|
|
46
38
|
].join("\n"),
|
|
47
39
|
paramsSchema: {
|
|
48
|
-
organizationSlug: ParamOrganizationSlug
|
|
40
|
+
organizationSlug: ParamOrganizationSlug,
|
|
49
41
|
regionUrl: ParamRegionUrl.optional()
|
|
50
42
|
}
|
|
51
43
|
},
|
|
52
44
|
{
|
|
53
|
-
name: "
|
|
45
|
+
name: "find_issues",
|
|
54
46
|
description: [
|
|
55
|
-
"
|
|
47
|
+
"Find issues in Sentry.",
|
|
56
48
|
"",
|
|
57
49
|
"Use this tool when you need to:",
|
|
58
50
|
"- View all issues in a Sentry organization",
|
|
59
51
|
"",
|
|
60
|
-
"If you're looking for more granular data beyond a summary of identified problems, you should use the `
|
|
52
|
+
"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
53
|
"",
|
|
62
54
|
"<examples>",
|
|
63
55
|
"### Find the newest unresolved issues across 'my-organization'",
|
|
64
56
|
"",
|
|
65
57
|
"```",
|
|
66
|
-
"
|
|
58
|
+
"find_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')",
|
|
67
59
|
"```",
|
|
68
60
|
"",
|
|
69
61
|
"### Find the most frequently occurring crashes in the 'my-project' project",
|
|
70
62
|
"",
|
|
71
63
|
"```",
|
|
72
|
-
"
|
|
64
|
+
"find_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')",
|
|
73
65
|
"```",
|
|
74
66
|
"",
|
|
75
67
|
"</examples>",
|
|
76
68
|
"",
|
|
77
69
|
"<hints>",
|
|
78
70
|
"- 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.",
|
|
71
|
+
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
81
72
|
"</hints>"
|
|
82
73
|
].join("\n"),
|
|
83
74
|
paramsSchema: {
|
|
84
|
-
organizationSlug: ParamOrganizationSlug
|
|
75
|
+
organizationSlug: ParamOrganizationSlug,
|
|
85
76
|
regionUrl: ParamRegionUrl.optional(),
|
|
86
77
|
projectSlug: ParamProjectSlug.optional(),
|
|
87
78
|
query: ParamQuery.optional(),
|
|
@@ -94,39 +85,50 @@ const TOOL_DEFINITIONS = [
|
|
|
94
85
|
}
|
|
95
86
|
},
|
|
96
87
|
{
|
|
97
|
-
name: "
|
|
88
|
+
name: "find_releases",
|
|
98
89
|
description: [
|
|
99
|
-
"
|
|
90
|
+
"Find releases in Sentry.",
|
|
100
91
|
"",
|
|
101
92
|
"Use this tool when you need to:",
|
|
102
93
|
"- Find recent releases in a Sentry organization",
|
|
103
94
|
"- Find the most recent version released of a specific project",
|
|
104
95
|
"- Determine when a release was deployed to an environment",
|
|
96
|
+
"",
|
|
97
|
+
"<examples>",
|
|
98
|
+
"### Find the most recent releases in the 'my-organization' organization",
|
|
99
|
+
"",
|
|
100
|
+
"```",
|
|
101
|
+
"find_releases(organizationSlug='my-organization')",
|
|
102
|
+
"```",
|
|
103
|
+
"",
|
|
104
|
+
"### Find releases matching '2ce6a27' in the 'my-organization' organization",
|
|
105
|
+
"",
|
|
106
|
+
"```",
|
|
107
|
+
"find_releases(organizationSlug='my-organization', query='2ce6a27')",
|
|
108
|
+
"```",
|
|
109
|
+
"</examples>",
|
|
110
|
+
"",
|
|
105
111
|
"<hints>",
|
|
106
112
|
"- 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
113
|
"</hints>"
|
|
109
114
|
].join("\n"),
|
|
110
115
|
paramsSchema: {
|
|
111
|
-
organizationSlug: ParamOrganizationSlug
|
|
116
|
+
organizationSlug: ParamOrganizationSlug,
|
|
112
117
|
regionUrl: ParamRegionUrl.optional(),
|
|
113
|
-
projectSlug:
|
|
118
|
+
projectSlug: ParamProjectSlugOrAll.optional(),
|
|
119
|
+
query: z.string().trim().describe("Search for versions which contain the provided string.").optional()
|
|
114
120
|
}
|
|
115
121
|
},
|
|
116
122
|
{
|
|
117
|
-
name: "
|
|
123
|
+
name: "find_tags",
|
|
118
124
|
description: [
|
|
119
|
-
"
|
|
125
|
+
"Find tags in Sentry.",
|
|
120
126
|
"",
|
|
121
127
|
"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>"
|
|
128
|
+
"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)"
|
|
127
129
|
].join("\n"),
|
|
128
130
|
paramsSchema: {
|
|
129
|
-
organizationSlug: ParamOrganizationSlug
|
|
131
|
+
organizationSlug: ParamOrganizationSlug,
|
|
130
132
|
regionUrl: ParamRegionUrl.optional()
|
|
131
133
|
}
|
|
132
134
|
},
|
|
@@ -155,21 +157,20 @@ const TOOL_DEFINITIONS = [
|
|
|
155
157
|
"<hints>",
|
|
156
158
|
"- If the user provides the `issueUrl`, you can ignore the other parameters.",
|
|
157
159
|
"- 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
160
|
"</hints>"
|
|
160
161
|
].join("\n"),
|
|
161
162
|
paramsSchema: {
|
|
162
163
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
163
164
|
regionUrl: ParamRegionUrl.optional(),
|
|
164
165
|
issueId: ParamIssueShortId.optional(),
|
|
165
|
-
eventId: z.string().describe("The ID of the event.").optional(),
|
|
166
|
-
issueUrl:
|
|
166
|
+
eventId: z.string().trim().describe("The ID of the event.").optional(),
|
|
167
|
+
issueUrl: ParamIssueUrl.optional()
|
|
167
168
|
}
|
|
168
169
|
},
|
|
169
170
|
{
|
|
170
|
-
name: "
|
|
171
|
+
name: "find_errors",
|
|
171
172
|
description: [
|
|
172
|
-
"
|
|
173
|
+
"Find errors in Sentry using advanced search syntax.",
|
|
173
174
|
"",
|
|
174
175
|
"Use this tool when you need to:",
|
|
175
176
|
"- Search for production errors in a specific file.",
|
|
@@ -182,38 +183,38 @@ const TOOL_DEFINITIONS = [
|
|
|
182
183
|
"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
184
|
"",
|
|
184
185
|
"```",
|
|
185
|
-
"
|
|
186
|
+
"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')",
|
|
186
187
|
"```",
|
|
187
188
|
"",
|
|
188
189
|
"### Find recent crashes from the 'peated' project",
|
|
189
190
|
"",
|
|
190
191
|
"```",
|
|
191
|
-
"
|
|
192
|
+
"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')",
|
|
192
193
|
"```",
|
|
193
194
|
"",
|
|
194
195
|
"</examples>",
|
|
195
196
|
"",
|
|
196
197
|
"<hints>",
|
|
197
198
|
"- 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 `
|
|
199
|
+
"- 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.",
|
|
200
|
+
"- 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",
|
|
201
|
+
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
201
202
|
"</hints>"
|
|
202
203
|
].join("\n"),
|
|
203
204
|
paramsSchema: {
|
|
204
|
-
organizationSlug: ParamOrganizationSlug
|
|
205
|
+
organizationSlug: ParamOrganizationSlug,
|
|
205
206
|
regionUrl: ParamRegionUrl.optional(),
|
|
206
|
-
projectSlug:
|
|
207
|
-
filename: z.string().describe("The filename to search for errors in.").optional(),
|
|
207
|
+
projectSlug: ParamProjectSlugOrAll.optional(),
|
|
208
|
+
filename: z.string().trim().describe("The filename to search for errors in.").optional(),
|
|
208
209
|
transaction: ParamTransaction.optional(),
|
|
209
210
|
query: ParamQuery.optional(),
|
|
210
211
|
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
212
|
}
|
|
212
213
|
},
|
|
213
214
|
{
|
|
214
|
-
name: "
|
|
215
|
+
name: "find_transactions",
|
|
215
216
|
description: [
|
|
216
|
-
"
|
|
217
|
+
"Find transactions in Sentry using advanced search syntax.",
|
|
217
218
|
"",
|
|
218
219
|
"Transactions are segments of traces that are associated with a specific route or endpoint.",
|
|
219
220
|
"",
|
|
@@ -228,21 +229,21 @@ const TOOL_DEFINITIONS = [
|
|
|
228
229
|
"...",
|
|
229
230
|
"",
|
|
230
231
|
"```",
|
|
231
|
-
"
|
|
232
|
+
"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')",
|
|
232
233
|
"```",
|
|
233
234
|
"",
|
|
234
235
|
"</examples>",
|
|
235
236
|
"",
|
|
236
237
|
"<hints>",
|
|
237
238
|
"- 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 `
|
|
239
|
+
"- 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.",
|
|
240
|
+
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
240
241
|
"</hints>"
|
|
241
242
|
].join("\n"),
|
|
242
243
|
paramsSchema: {
|
|
243
|
-
organizationSlug: ParamOrganizationSlug
|
|
244
|
+
organizationSlug: ParamOrganizationSlug,
|
|
244
245
|
regionUrl: ParamRegionUrl.optional(),
|
|
245
|
-
projectSlug:
|
|
246
|
+
projectSlug: ParamProjectSlugOrAll.optional(),
|
|
246
247
|
transaction: ParamTransaction.optional(),
|
|
247
248
|
query: ParamQuery.optional(),
|
|
248
249
|
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 +254,8 @@ const TOOL_DEFINITIONS = [
|
|
|
253
254
|
description: [
|
|
254
255
|
"Create a new team in Sentry.",
|
|
255
256
|
"",
|
|
257
|
+
"Be careful when using this tool!",
|
|
258
|
+
"",
|
|
256
259
|
"Use this tool when you need to:",
|
|
257
260
|
"- Create a new team in a Sentry organization",
|
|
258
261
|
"",
|
|
@@ -261,9 +264,9 @@ const TOOL_DEFINITIONS = [
|
|
|
261
264
|
"</hints>"
|
|
262
265
|
].join("\n"),
|
|
263
266
|
paramsSchema: {
|
|
264
|
-
organizationSlug: ParamOrganizationSlug
|
|
267
|
+
organizationSlug: ParamOrganizationSlug,
|
|
265
268
|
regionUrl: ParamRegionUrl.optional(),
|
|
266
|
-
name: z.string().describe("The name of the team to create.")
|
|
269
|
+
name: z.string().trim().describe("The name of the team to create.")
|
|
267
270
|
}
|
|
268
271
|
},
|
|
269
272
|
{
|
|
@@ -271,6 +274,8 @@ const TOOL_DEFINITIONS = [
|
|
|
271
274
|
description: [
|
|
272
275
|
"Create a new project in Sentry, giving you access to a new SENTRY_DSN.",
|
|
273
276
|
"",
|
|
277
|
+
"Be careful when using this tool!",
|
|
278
|
+
"",
|
|
274
279
|
"Use this tool when you need to:",
|
|
275
280
|
"- Create a new project in a Sentry organization",
|
|
276
281
|
"",
|
|
@@ -289,10 +294,10 @@ const TOOL_DEFINITIONS = [
|
|
|
289
294
|
"</hints>"
|
|
290
295
|
].join("\n"),
|
|
291
296
|
paramsSchema: {
|
|
292
|
-
organizationSlug: ParamOrganizationSlug
|
|
297
|
+
organizationSlug: ParamOrganizationSlug,
|
|
293
298
|
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."),
|
|
299
|
+
teamSlug: ParamTeamSlug,
|
|
300
|
+
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
301
|
platform: ParamPlatform.optional()
|
|
297
302
|
}
|
|
298
303
|
},
|
|
@@ -301,6 +306,8 @@ const TOOL_DEFINITIONS = [
|
|
|
301
306
|
description: [
|
|
302
307
|
"Create a new Sentry DSN for a specific project.",
|
|
303
308
|
"",
|
|
309
|
+
"Be careful when using this tool!",
|
|
310
|
+
"",
|
|
304
311
|
"Use this tool when you need to:",
|
|
305
312
|
"- Create a new DSN for a specific project",
|
|
306
313
|
"",
|
|
@@ -308,7 +315,7 @@ const TOOL_DEFINITIONS = [
|
|
|
308
315
|
"### Create a new DSN for the 'my-project' project",
|
|
309
316
|
"",
|
|
310
317
|
"```",
|
|
311
|
-
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='
|
|
318
|
+
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Production')",
|
|
312
319
|
"```",
|
|
313
320
|
"",
|
|
314
321
|
"</examples>",
|
|
@@ -319,14 +326,14 @@ const TOOL_DEFINITIONS = [
|
|
|
319
326
|
"</hints>"
|
|
320
327
|
].join("\n"),
|
|
321
328
|
paramsSchema: {
|
|
322
|
-
organizationSlug: ParamOrganizationSlug
|
|
329
|
+
organizationSlug: ParamOrganizationSlug,
|
|
323
330
|
regionUrl: ParamRegionUrl.optional(),
|
|
324
|
-
projectSlug:
|
|
325
|
-
name: z.string().describe("The name of the DSN to create.")
|
|
331
|
+
projectSlug: ParamProjectSlug,
|
|
332
|
+
name: z.string().trim().describe("The name of the DSN to create, for example 'Production'.")
|
|
326
333
|
}
|
|
327
334
|
},
|
|
328
335
|
{
|
|
329
|
-
name: "
|
|
336
|
+
name: "find_dsns",
|
|
330
337
|
description: [
|
|
331
338
|
"List all Sentry DSNs for a specific project.",
|
|
332
339
|
"",
|
|
@@ -335,13 +342,13 @@ const TOOL_DEFINITIONS = [
|
|
|
335
342
|
"",
|
|
336
343
|
"<hints>",
|
|
337
344
|
"- 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 `
|
|
345
|
+
"- 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
346
|
"</hints>"
|
|
340
347
|
].join("\n"),
|
|
341
348
|
paramsSchema: {
|
|
342
|
-
organizationSlug: ParamOrganizationSlug
|
|
349
|
+
organizationSlug: ParamOrganizationSlug,
|
|
343
350
|
regionUrl: ParamRegionUrl.optional(),
|
|
344
|
-
projectSlug:
|
|
351
|
+
projectSlug: ParamProjectSlug
|
|
345
352
|
}
|
|
346
353
|
},
|
|
347
354
|
{
|
|
@@ -367,14 +374,13 @@ const TOOL_DEFINITIONS = [
|
|
|
367
374
|
"<hints>",
|
|
368
375
|
"- 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
376
|
"- 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
377
|
"</hints>"
|
|
372
378
|
].join("\n"),
|
|
373
379
|
paramsSchema: {
|
|
374
380
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
375
381
|
regionUrl: ParamRegionUrl.optional(),
|
|
376
382
|
issueId: ParamIssueShortId.optional(),
|
|
377
|
-
issueUrl:
|
|
383
|
+
issueUrl: ParamIssueUrl.optional()
|
|
378
384
|
}
|
|
379
385
|
},
|
|
380
386
|
{
|
|
@@ -397,18 +403,17 @@ const TOOL_DEFINITIONS = [
|
|
|
397
403
|
"",
|
|
398
404
|
"<hints>",
|
|
399
405
|
"- 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
406
|
"</hints>"
|
|
402
407
|
].join("\n"),
|
|
403
408
|
paramsSchema: {
|
|
404
409
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
405
410
|
regionUrl: ParamRegionUrl.optional(),
|
|
406
411
|
issueId: ParamIssueShortId.optional(),
|
|
407
|
-
issueUrl:
|
|
412
|
+
issueUrl: ParamIssueUrl.optional()
|
|
408
413
|
}
|
|
409
414
|
}
|
|
410
415
|
];
|
|
411
416
|
|
|
412
417
|
//#endregion
|
|
413
418
|
export { TOOL_DEFINITIONS };
|
|
414
|
-
//# sourceMappingURL=toolDefinitions-
|
|
419
|
+
//# sourceMappingURL=toolDefinitions-Bb_1ejkl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-Bb_1ejkl.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: \"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 },\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;GACA;EACD,EAAC,KAAK,KAAK;CACb;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"}
|