@sentry/mcp-server 0.8.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 +14 -6
- 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 +3 -3
- package/dist/api-client/client.test.js +3 -3
- package/dist/api-client/index.cjs +3 -2
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +3 -3
- package/dist/api-client/schema.cjs +2 -1
- package/dist/api-client/schema.d.cts +2 -2
- package/dist/api-client/schema.d.ts +2 -2
- package/dist/api-client/schema.js +2 -2
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{client-Cp-Y1PHr.cjs → client-B4Ux5Zdg.cjs} +7 -4
- package/dist/client-B4Ux5Zdg.cjs.map +1 -0
- package/dist/{client-CXUzhM1I.js → client-Bz_PNC8o.js} +7 -4
- package/dist/client-Bz_PNC8o.js.map +1 -0
- package/dist/{client-CRlGzHly.d.ts → client-J6VSRmQS.d.ts} +10 -8
- package/dist/client-J6VSRmQS.d.ts.map +1 -0
- package/dist/{client-TjRMJC41.d.cts → client-tE6FD__9.d.cts} +6 -4
- package/dist/client-tE6FD__9.d.cts.map +1 -0
- package/dist/{formatting-BmbJ5-Uh.cjs → formatting-B0SJqiqX.cjs} +33 -11
- package/dist/formatting-B0SJqiqX.cjs.map +1 -0
- package/dist/formatting-ggD6YRYR.js +68 -0
- package/dist/formatting-ggD6YRYR.js.map +1 -0
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- 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 +3 -3
- package/dist/internal/issue-helpers.test.cjs.map +1 -1
- package/dist/internal/issue-helpers.test.js +3 -3
- 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-BuByiEkr.cjs → schema-3VLYcf4D.cjs} +19 -2
- package/dist/schema-3VLYcf4D.cjs.map +1 -0
- package/dist/{schema-BzLH7LPa.d.ts → schema-B7A-FyIi.d.ts} +176 -88
- package/dist/schema-B7A-FyIi.d.ts.map +1 -0
- package/dist/schema-BKa41TQ4.js +17 -0
- package/dist/schema-BKa41TQ4.js.map +1 -0
- package/dist/{schema-Drnljuwf.js → schema-Dltbjui7.js} +14 -3
- package/dist/schema-Dltbjui7.js.map +1 -0
- package/dist/{schema-DpID9ztC.d.cts → schema-PvgLrC1b.d.cts} +358 -270
- package/dist/schema-PvgLrC1b.d.cts.map +1 -0
- 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-fYrkDOmy.cjs → server-VwFSUPQn.cjs} +5 -5
- package/dist/{server-fYrkDOmy.cjs.map → server-VwFSUPQn.cjs.map} +1 -1
- package/dist/{server-BCmPE_Kt.js → server-yb4PkNyo.js} +5 -5
- package/dist/{server-BCmPE_Kt.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-BxJq3OU7.cjs → stdio-65sYKLOk.cjs} +2 -2
- package/dist/{stdio-BxJq3OU7.cjs.map → stdio-65sYKLOk.cjs.map} +1 -1
- package/dist/{stdio-QBN7-Am6.js → stdio-DkU2-spy.js} +2 -2
- package/dist/{stdio-QBN7-Am6.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-Z-JGBEIN.d.cts → toolDefinitions-B94CNDbt.d.cts} +33 -51
- package/dist/toolDefinitions-B94CNDbt.d.cts.map +1 -0
- package/dist/{toolDefinitions-D13S3vQE.js → toolDefinitions-Bb_1ejkl.js} +83 -100
- package/dist/toolDefinitions-Bb_1ejkl.js.map +1 -0
- package/dist/{toolDefinitions-1SnflztE.cjs → toolDefinitions-DIhvw3vk.cjs} +83 -100
- package/dist/toolDefinitions-DIhvw3vk.cjs.map +1 -0
- package/dist/{toolDefinitions-DkO9-iEg.d.ts → toolDefinitions-q_1-70fG.d.ts} +33 -51
- 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-BgrGdS8I.cjs → tools-BdkmyaZo.cjs} +36 -77
- package/dist/tools-BdkmyaZo.cjs.map +1 -0
- package/dist/{tools-CnVttgaS.js → tools-CMFpMPpD.js} +36 -77
- package/dist/tools-CMFpMPpD.js.map +1 -0
- package/dist/tools.cjs +4 -4
- package/dist/tools.d.cts +35 -50
- package/dist/tools.d.cts.map +1 -1
- package/dist/tools.d.ts +38 -53
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +4 -4
- package/dist/tools.test.cjs +128 -88
- package/dist/tools.test.cjs.map +1 -1
- package/dist/tools.test.js +128 -88
- 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-CczA6AH1.d.cts → types-B03G337q.d.cts} +2 -2
- package/dist/{types-CczA6AH1.d.cts.map → types-B03G337q.d.cts.map} +1 -1
- package/dist/{types-X5Epdrlo.d.ts → types-CN4NEway.d.ts} +2 -2
- package/dist/{types-X5Epdrlo.d.ts.map → types-CN4NEway.d.ts.map} +1 -1
- package/dist/{types-BO0mZ8vj.d.cts → types-OeoNXRm-.d.cts} +3 -3
- package/dist/{types-BO0mZ8vj.d.cts.map → types-OeoNXRm-.d.cts.map} +1 -1
- package/dist/{types-Cis1PiVW.d.ts → types-jftb-CP9.d.ts} +3 -3
- package/dist/{types-Cis1PiVW.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-sY-gY_s6.cjs → version-CDnh7DyW.cjs} +2 -2
- package/dist/{version-sY-gY_s6.cjs.map → version-CDnh7DyW.cjs.map} +1 -1
- package/dist/version-TjO7fHpC.js +6 -0
- package/dist/{version-DtWIv-x9.js.map → version-TjO7fHpC.js.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{vi.ClIskdbk-TqmAThAO.cjs → vi.ClIskdbk-Bs263gvI.cjs} +5 -5
- package/dist/{vi.ClIskdbk-TqmAThAO.cjs.map → vi.ClIskdbk-Bs263gvI.cjs.map} +1 -1
- package/dist/{vi.ClIskdbk-BbUmO3mx.js → vi.ClIskdbk-De9q3829.js} +5 -5
- package/dist/{vi.ClIskdbk-BbUmO3mx.js.map → vi.ClIskdbk-De9q3829.js.map} +1 -1
- package/package.json +6 -6
- package/dist/client-CRlGzHly.d.ts.map +0 -1
- package/dist/client-CXUzhM1I.js.map +0 -1
- package/dist/client-Cp-Y1PHr.cjs.map +0 -1
- package/dist/client-TjRMJC41.d.cts.map +0 -1
- package/dist/formatting-BmbJ5-Uh.cjs.map +0 -1
- package/dist/formatting-C6Py2iOz.js +0 -46
- package/dist/formatting-C6Py2iOz.js.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-BuByiEkr.cjs.map +0 -1
- package/dist/schema-BzLH7LPa.d.ts.map +0 -1
- package/dist/schema-CJrk_GUH.js +0 -15
- package/dist/schema-CJrk_GUH.js.map +0 -1
- package/dist/schema-DpID9ztC.d.cts.map +0 -1
- package/dist/schema-Drnljuwf.js.map +0 -1
- package/dist/toolDefinitions-1SnflztE.cjs.map +0 -1
- package/dist/toolDefinitions-D13S3vQE.js.map +0 -1
- package/dist/toolDefinitions-DkO9-iEg.d.ts.map +0 -1
- package/dist/toolDefinitions-Z-JGBEIN.d.cts.map +0 -1
- package/dist/tools-BgrGdS8I.cjs.map +0 -1
- package/dist/tools-CnVttgaS.js.map +0 -1
- package/dist/version-DtWIv-x9.js +0 -6
|
@@ -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,64 +85,53 @@ 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
|
},
|
|
133
|
-
{
|
|
134
|
-
name: "get_issue_summary",
|
|
135
|
-
description: [
|
|
136
|
-
"Retrieve a summary of an issue in Sentry.",
|
|
137
|
-
"",
|
|
138
|
-
"Use this tool when you need to:",
|
|
139
|
-
"- View a summary of an issue in Sentry",
|
|
140
|
-
"",
|
|
141
|
-
"If the issue is an error, or you want additional information like the stacktrace, you should use `get_issue_details()` tool instead.",
|
|
142
|
-
"",
|
|
143
|
-
"<hints>",
|
|
144
|
-
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
145
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
146
|
-
"</hints>"
|
|
147
|
-
].join("\n"),
|
|
148
|
-
paramsSchema: {
|
|
149
|
-
organizationSlug: ParamOrganizationSlug.optional(),
|
|
150
|
-
regionUrl: ParamRegionUrl.optional(),
|
|
151
|
-
issueId: ParamIssueShortId.optional(),
|
|
152
|
-
issueUrl: z.string().url().describe("The URL of the issue to retrieve details for.").optional()
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
135
|
{
|
|
156
136
|
name: "get_issue_details",
|
|
157
137
|
description: [
|
|
@@ -177,21 +157,20 @@ const TOOL_DEFINITIONS = [
|
|
|
177
157
|
"<hints>",
|
|
178
158
|
"- If the user provides the `issueUrl`, you can ignore the other parameters.",
|
|
179
159
|
"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.",
|
|
180
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
181
160
|
"</hints>"
|
|
182
161
|
].join("\n"),
|
|
183
162
|
paramsSchema: {
|
|
184
163
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
185
164
|
regionUrl: ParamRegionUrl.optional(),
|
|
186
165
|
issueId: ParamIssueShortId.optional(),
|
|
187
|
-
eventId: z.string().describe("The ID of the event.").optional(),
|
|
188
|
-
issueUrl:
|
|
166
|
+
eventId: z.string().trim().describe("The ID of the event.").optional(),
|
|
167
|
+
issueUrl: ParamIssueUrl.optional()
|
|
189
168
|
}
|
|
190
169
|
},
|
|
191
170
|
{
|
|
192
|
-
name: "
|
|
171
|
+
name: "find_errors",
|
|
193
172
|
description: [
|
|
194
|
-
"
|
|
173
|
+
"Find errors in Sentry using advanced search syntax.",
|
|
195
174
|
"",
|
|
196
175
|
"Use this tool when you need to:",
|
|
197
176
|
"- Search for production errors in a specific file.",
|
|
@@ -204,38 +183,38 @@ const TOOL_DEFINITIONS = [
|
|
|
204
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.",
|
|
205
184
|
"",
|
|
206
185
|
"```",
|
|
207
|
-
"
|
|
186
|
+
"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')",
|
|
208
187
|
"```",
|
|
209
188
|
"",
|
|
210
189
|
"### Find recent crashes from the 'peated' project",
|
|
211
190
|
"",
|
|
212
191
|
"```",
|
|
213
|
-
"
|
|
192
|
+
"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')",
|
|
214
193
|
"```",
|
|
215
194
|
"",
|
|
216
195
|
"</examples>",
|
|
217
196
|
"",
|
|
218
197
|
"<hints>",
|
|
219
198
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
220
|
-
"- 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 `
|
|
221
|
-
"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `
|
|
222
|
-
"- 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.",
|
|
223
202
|
"</hints>"
|
|
224
203
|
].join("\n"),
|
|
225
204
|
paramsSchema: {
|
|
226
|
-
organizationSlug: ParamOrganizationSlug
|
|
205
|
+
organizationSlug: ParamOrganizationSlug,
|
|
227
206
|
regionUrl: ParamRegionUrl.optional(),
|
|
228
|
-
projectSlug:
|
|
229
|
-
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(),
|
|
230
209
|
transaction: ParamTransaction.optional(),
|
|
231
210
|
query: ParamQuery.optional(),
|
|
232
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.")
|
|
233
212
|
}
|
|
234
213
|
},
|
|
235
214
|
{
|
|
236
|
-
name: "
|
|
215
|
+
name: "find_transactions",
|
|
237
216
|
description: [
|
|
238
|
-
"
|
|
217
|
+
"Find transactions in Sentry using advanced search syntax.",
|
|
239
218
|
"",
|
|
240
219
|
"Transactions are segments of traces that are associated with a specific route or endpoint.",
|
|
241
220
|
"",
|
|
@@ -250,21 +229,21 @@ const TOOL_DEFINITIONS = [
|
|
|
250
229
|
"...",
|
|
251
230
|
"",
|
|
252
231
|
"```",
|
|
253
|
-
"
|
|
232
|
+
"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')",
|
|
254
233
|
"```",
|
|
255
234
|
"",
|
|
256
235
|
"</examples>",
|
|
257
236
|
"",
|
|
258
237
|
"<hints>",
|
|
259
238
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
260
|
-
"- 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 `
|
|
261
|
-
"- 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.",
|
|
262
241
|
"</hints>"
|
|
263
242
|
].join("\n"),
|
|
264
243
|
paramsSchema: {
|
|
265
|
-
organizationSlug: ParamOrganizationSlug
|
|
244
|
+
organizationSlug: ParamOrganizationSlug,
|
|
266
245
|
regionUrl: ParamRegionUrl.optional(),
|
|
267
|
-
projectSlug:
|
|
246
|
+
projectSlug: ParamProjectSlugOrAll.optional(),
|
|
268
247
|
transaction: ParamTransaction.optional(),
|
|
269
248
|
query: ParamQuery.optional(),
|
|
270
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).")
|
|
@@ -275,6 +254,8 @@ const TOOL_DEFINITIONS = [
|
|
|
275
254
|
description: [
|
|
276
255
|
"Create a new team in Sentry.",
|
|
277
256
|
"",
|
|
257
|
+
"Be careful when using this tool!",
|
|
258
|
+
"",
|
|
278
259
|
"Use this tool when you need to:",
|
|
279
260
|
"- Create a new team in a Sentry organization",
|
|
280
261
|
"",
|
|
@@ -283,9 +264,9 @@ const TOOL_DEFINITIONS = [
|
|
|
283
264
|
"</hints>"
|
|
284
265
|
].join("\n"),
|
|
285
266
|
paramsSchema: {
|
|
286
|
-
organizationSlug: ParamOrganizationSlug
|
|
267
|
+
organizationSlug: ParamOrganizationSlug,
|
|
287
268
|
regionUrl: ParamRegionUrl.optional(),
|
|
288
|
-
name: z.string().describe("The name of the team to create.")
|
|
269
|
+
name: z.string().trim().describe("The name of the team to create.")
|
|
289
270
|
}
|
|
290
271
|
},
|
|
291
272
|
{
|
|
@@ -293,6 +274,8 @@ const TOOL_DEFINITIONS = [
|
|
|
293
274
|
description: [
|
|
294
275
|
"Create a new project in Sentry, giving you access to a new SENTRY_DSN.",
|
|
295
276
|
"",
|
|
277
|
+
"Be careful when using this tool!",
|
|
278
|
+
"",
|
|
296
279
|
"Use this tool when you need to:",
|
|
297
280
|
"- Create a new project in a Sentry organization",
|
|
298
281
|
"",
|
|
@@ -311,10 +294,10 @@ const TOOL_DEFINITIONS = [
|
|
|
311
294
|
"</hints>"
|
|
312
295
|
].join("\n"),
|
|
313
296
|
paramsSchema: {
|
|
314
|
-
organizationSlug: ParamOrganizationSlug
|
|
297
|
+
organizationSlug: ParamOrganizationSlug,
|
|
315
298
|
regionUrl: ParamRegionUrl.optional(),
|
|
316
|
-
teamSlug:
|
|
317
|
-
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."),
|
|
318
301
|
platform: ParamPlatform.optional()
|
|
319
302
|
}
|
|
320
303
|
},
|
|
@@ -323,6 +306,8 @@ const TOOL_DEFINITIONS = [
|
|
|
323
306
|
description: [
|
|
324
307
|
"Create a new Sentry DSN for a specific project.",
|
|
325
308
|
"",
|
|
309
|
+
"Be careful when using this tool!",
|
|
310
|
+
"",
|
|
326
311
|
"Use this tool when you need to:",
|
|
327
312
|
"- Create a new DSN for a specific project",
|
|
328
313
|
"",
|
|
@@ -330,7 +315,7 @@ const TOOL_DEFINITIONS = [
|
|
|
330
315
|
"### Create a new DSN for the 'my-project' project",
|
|
331
316
|
"",
|
|
332
317
|
"```",
|
|
333
|
-
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='
|
|
318
|
+
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Production')",
|
|
334
319
|
"```",
|
|
335
320
|
"",
|
|
336
321
|
"</examples>",
|
|
@@ -341,14 +326,14 @@ const TOOL_DEFINITIONS = [
|
|
|
341
326
|
"</hints>"
|
|
342
327
|
].join("\n"),
|
|
343
328
|
paramsSchema: {
|
|
344
|
-
organizationSlug: ParamOrganizationSlug
|
|
329
|
+
organizationSlug: ParamOrganizationSlug,
|
|
345
330
|
regionUrl: ParamRegionUrl.optional(),
|
|
346
|
-
projectSlug:
|
|
347
|
-
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'.")
|
|
348
333
|
}
|
|
349
334
|
},
|
|
350
335
|
{
|
|
351
|
-
name: "
|
|
336
|
+
name: "find_dsns",
|
|
352
337
|
description: [
|
|
353
338
|
"List all Sentry DSNs for a specific project.",
|
|
354
339
|
"",
|
|
@@ -357,13 +342,13 @@ const TOOL_DEFINITIONS = [
|
|
|
357
342
|
"",
|
|
358
343
|
"<hints>",
|
|
359
344
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
360
|
-
"- 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.",
|
|
361
346
|
"</hints>"
|
|
362
347
|
].join("\n"),
|
|
363
348
|
paramsSchema: {
|
|
364
|
-
organizationSlug: ParamOrganizationSlug
|
|
349
|
+
organizationSlug: ParamOrganizationSlug,
|
|
365
350
|
regionUrl: ParamRegionUrl.optional(),
|
|
366
|
-
projectSlug:
|
|
351
|
+
projectSlug: ParamProjectSlug
|
|
367
352
|
}
|
|
368
353
|
},
|
|
369
354
|
{
|
|
@@ -389,14 +374,13 @@ const TOOL_DEFINITIONS = [
|
|
|
389
374
|
"<hints>",
|
|
390
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()`.",
|
|
391
376
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
392
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
393
377
|
"</hints>"
|
|
394
378
|
].join("\n"),
|
|
395
379
|
paramsSchema: {
|
|
396
380
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
397
381
|
regionUrl: ParamRegionUrl.optional(),
|
|
398
382
|
issueId: ParamIssueShortId.optional(),
|
|
399
|
-
issueUrl:
|
|
383
|
+
issueUrl: ParamIssueUrl.optional()
|
|
400
384
|
}
|
|
401
385
|
},
|
|
402
386
|
{
|
|
@@ -419,18 +403,17 @@ const TOOL_DEFINITIONS = [
|
|
|
419
403
|
"",
|
|
420
404
|
"<hints>",
|
|
421
405
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
422
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
423
406
|
"</hints>"
|
|
424
407
|
].join("\n"),
|
|
425
408
|
paramsSchema: {
|
|
426
409
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
427
410
|
regionUrl: ParamRegionUrl.optional(),
|
|
428
411
|
issueId: ParamIssueShortId.optional(),
|
|
429
|
-
issueUrl:
|
|
412
|
+
issueUrl: ParamIssueUrl.optional()
|
|
430
413
|
}
|
|
431
414
|
}
|
|
432
415
|
];
|
|
433
416
|
|
|
434
417
|
//#endregion
|
|
435
418
|
export { TOOL_DEFINITIONS };
|
|
436
|
-
//# 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"}
|