@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,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-BtT13l48.cjs');
|
|
3
|
-
const require_schema = require('./schema-
|
|
3
|
+
const require_schema = require('./schema-jk88gqOu.cjs');
|
|
4
4
|
const zod = require_chunk.__toESM(require("zod"));
|
|
5
5
|
|
|
6
6
|
//#region src/toolDefinitions.ts
|
|
7
7
|
const TOOL_DEFINITIONS = [
|
|
8
8
|
{
|
|
9
|
-
name: "
|
|
9
|
+
name: "find_organizations",
|
|
10
10
|
description: [
|
|
11
|
-
"
|
|
11
|
+
"Find organizations that the user has access to in Sentry.",
|
|
12
12
|
"",
|
|
13
13
|
"Use this tool when you need to:",
|
|
14
14
|
"- View all organizations in Sentry",
|
|
@@ -16,74 +16,65 @@ const TOOL_DEFINITIONS = [
|
|
|
16
16
|
].join("\n")
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
name: "
|
|
19
|
+
name: "find_teams",
|
|
20
20
|
description: [
|
|
21
|
-
"
|
|
21
|
+
"Find teams in an organization in Sentry.",
|
|
22
22
|
"",
|
|
23
23
|
"Use this tool when you need to:",
|
|
24
24
|
"- View all teams in a Sentry organization",
|
|
25
|
-
"- Find
|
|
26
|
-
"",
|
|
27
|
-
"<hints>",
|
|
28
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
29
|
-
"</hints>"
|
|
25
|
+
"- Find a team's slug to aid other tool requests"
|
|
30
26
|
].join("\n"),
|
|
31
27
|
paramsSchema: {
|
|
32
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
28
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
33
29
|
regionUrl: require_schema.ParamRegionUrl.optional()
|
|
34
30
|
}
|
|
35
31
|
},
|
|
36
32
|
{
|
|
37
|
-
name: "
|
|
33
|
+
name: "find_projects",
|
|
38
34
|
description: [
|
|
39
|
-
"
|
|
35
|
+
"Find projects in Sentry.",
|
|
40
36
|
"",
|
|
41
37
|
"Use this tool when you need to:",
|
|
42
38
|
"- View all projects in a Sentry organization",
|
|
43
|
-
"- Find
|
|
44
|
-
"",
|
|
45
|
-
"<hints>",
|
|
46
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
47
|
-
"</hints>"
|
|
39
|
+
"- Find a project's slug to aid other tool requests"
|
|
48
40
|
].join("\n"),
|
|
49
41
|
paramsSchema: {
|
|
50
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
42
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
51
43
|
regionUrl: require_schema.ParamRegionUrl.optional()
|
|
52
44
|
}
|
|
53
45
|
},
|
|
54
46
|
{
|
|
55
|
-
name: "
|
|
47
|
+
name: "find_issues",
|
|
56
48
|
description: [
|
|
57
|
-
"
|
|
49
|
+
"Find issues in Sentry.",
|
|
58
50
|
"",
|
|
59
51
|
"Use this tool when you need to:",
|
|
60
52
|
"- View all issues in a Sentry organization",
|
|
61
53
|
"",
|
|
62
|
-
"If you're looking for more granular data beyond a summary of identified problems, you should use the `
|
|
54
|
+
"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.",
|
|
63
55
|
"",
|
|
64
56
|
"<examples>",
|
|
65
57
|
"### Find the newest unresolved issues across 'my-organization'",
|
|
66
58
|
"",
|
|
67
59
|
"```",
|
|
68
|
-
"
|
|
60
|
+
"find_issues(organizationSlug='my-organization', query='is:unresolved', sortBy='last_seen')",
|
|
69
61
|
"```",
|
|
70
62
|
"",
|
|
71
63
|
"### Find the most frequently occurring crashes in the 'my-project' project",
|
|
72
64
|
"",
|
|
73
65
|
"```",
|
|
74
|
-
"
|
|
66
|
+
"find_issues(organizationSlug='my-organization', projectSlug='my-project', query='is:unresolved error.handled:false', sortBy='count')",
|
|
75
67
|
"```",
|
|
76
68
|
"",
|
|
77
69
|
"</examples>",
|
|
78
70
|
"",
|
|
79
71
|
"<hints>",
|
|
80
72
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
81
|
-
"-
|
|
82
|
-
"- You can use the `list_tags()` tool to see what user-defined tags are available.",
|
|
73
|
+
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
83
74
|
"</hints>"
|
|
84
75
|
].join("\n"),
|
|
85
76
|
paramsSchema: {
|
|
86
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
77
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
87
78
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
88
79
|
projectSlug: require_schema.ParamProjectSlug.optional(),
|
|
89
80
|
query: require_schema.ParamQuery.optional(),
|
|
@@ -96,64 +87,53 @@ const TOOL_DEFINITIONS = [
|
|
|
96
87
|
}
|
|
97
88
|
},
|
|
98
89
|
{
|
|
99
|
-
name: "
|
|
90
|
+
name: "find_releases",
|
|
100
91
|
description: [
|
|
101
|
-
"
|
|
92
|
+
"Find releases in Sentry.",
|
|
102
93
|
"",
|
|
103
94
|
"Use this tool when you need to:",
|
|
104
95
|
"- Find recent releases in a Sentry organization",
|
|
105
96
|
"- Find the most recent version released of a specific project",
|
|
106
97
|
"- Determine when a release was deployed to an environment",
|
|
98
|
+
"",
|
|
99
|
+
"<examples>",
|
|
100
|
+
"### Find the most recent releases in the 'my-organization' organization",
|
|
101
|
+
"",
|
|
102
|
+
"```",
|
|
103
|
+
"find_releases(organizationSlug='my-organization')",
|
|
104
|
+
"```",
|
|
105
|
+
"",
|
|
106
|
+
"### Find releases matching '2ce6a27' in the 'my-organization' organization",
|
|
107
|
+
"",
|
|
108
|
+
"```",
|
|
109
|
+
"find_releases(organizationSlug='my-organization', query='2ce6a27')",
|
|
110
|
+
"```",
|
|
111
|
+
"</examples>",
|
|
112
|
+
"",
|
|
107
113
|
"<hints>",
|
|
108
114
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
109
|
-
"- 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.",
|
|
110
115
|
"</hints>"
|
|
111
116
|
].join("\n"),
|
|
112
117
|
paramsSchema: {
|
|
113
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
118
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
114
119
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
115
|
-
projectSlug: require_schema.
|
|
120
|
+
projectSlug: require_schema.ParamProjectSlugOrAll.optional(),
|
|
121
|
+
query: zod.z.string().trim().describe("Search for versions which contain the provided string.").optional()
|
|
116
122
|
}
|
|
117
123
|
},
|
|
118
124
|
{
|
|
119
|
-
name: "
|
|
125
|
+
name: "find_tags",
|
|
120
126
|
description: [
|
|
121
|
-
"
|
|
127
|
+
"Find tags in Sentry.",
|
|
122
128
|
"",
|
|
123
129
|
"Use this tool when you need to:",
|
|
124
|
-
"- Find tags available to use in
|
|
125
|
-
"",
|
|
126
|
-
"<hints>",
|
|
127
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
128
|
-
"</hints>"
|
|
130
|
+
"- Find tags available to use in search queries (such as `find_issues()` or `find_errors()`)"
|
|
129
131
|
].join("\n"),
|
|
130
132
|
paramsSchema: {
|
|
131
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
133
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
132
134
|
regionUrl: require_schema.ParamRegionUrl.optional()
|
|
133
135
|
}
|
|
134
136
|
},
|
|
135
|
-
{
|
|
136
|
-
name: "get_issue_summary",
|
|
137
|
-
description: [
|
|
138
|
-
"Retrieve a summary of an issue in Sentry.",
|
|
139
|
-
"",
|
|
140
|
-
"Use this tool when you need to:",
|
|
141
|
-
"- View a summary of an issue in Sentry",
|
|
142
|
-
"",
|
|
143
|
-
"If the issue is an error, or you want additional information like the stacktrace, you should use `get_issue_details()` tool instead.",
|
|
144
|
-
"",
|
|
145
|
-
"<hints>",
|
|
146
|
-
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
147
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
148
|
-
"</hints>"
|
|
149
|
-
].join("\n"),
|
|
150
|
-
paramsSchema: {
|
|
151
|
-
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
152
|
-
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
153
|
-
issueId: require_schema.ParamIssueShortId.optional(),
|
|
154
|
-
issueUrl: zod.z.string().url().describe("The URL of the issue to retrieve details for.").optional()
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
137
|
{
|
|
158
138
|
name: "get_issue_details",
|
|
159
139
|
description: [
|
|
@@ -179,21 +159,20 @@ const TOOL_DEFINITIONS = [
|
|
|
179
159
|
"<hints>",
|
|
180
160
|
"- If the user provides the `issueUrl`, you can ignore the other parameters.",
|
|
181
161
|
"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.",
|
|
182
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
183
162
|
"</hints>"
|
|
184
163
|
].join("\n"),
|
|
185
164
|
paramsSchema: {
|
|
186
165
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
187
166
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
188
167
|
issueId: require_schema.ParamIssueShortId.optional(),
|
|
189
|
-
eventId: zod.z.string().describe("The ID of the event.").optional(),
|
|
190
|
-
issueUrl:
|
|
168
|
+
eventId: zod.z.string().trim().describe("The ID of the event.").optional(),
|
|
169
|
+
issueUrl: require_schema.ParamIssueUrl.optional()
|
|
191
170
|
}
|
|
192
171
|
},
|
|
193
172
|
{
|
|
194
|
-
name: "
|
|
173
|
+
name: "find_errors",
|
|
195
174
|
description: [
|
|
196
|
-
"
|
|
175
|
+
"Find errors in Sentry using advanced search syntax.",
|
|
197
176
|
"",
|
|
198
177
|
"Use this tool when you need to:",
|
|
199
178
|
"- Search for production errors in a specific file.",
|
|
@@ -206,38 +185,38 @@ const TOOL_DEFINITIONS = [
|
|
|
206
185
|
"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.",
|
|
207
186
|
"",
|
|
208
187
|
"```",
|
|
209
|
-
"
|
|
188
|
+
"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')",
|
|
210
189
|
"```",
|
|
211
190
|
"",
|
|
212
191
|
"### Find recent crashes from the 'peated' project",
|
|
213
192
|
"",
|
|
214
193
|
"```",
|
|
215
|
-
"
|
|
194
|
+
"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')",
|
|
216
195
|
"```",
|
|
217
196
|
"",
|
|
218
197
|
"</examples>",
|
|
219
198
|
"",
|
|
220
199
|
"<hints>",
|
|
221
200
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
222
|
-
"- 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 `
|
|
223
|
-
"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `
|
|
224
|
-
"- You can use the `
|
|
201
|
+
"- 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.",
|
|
202
|
+
"- 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",
|
|
203
|
+
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
225
204
|
"</hints>"
|
|
226
205
|
].join("\n"),
|
|
227
206
|
paramsSchema: {
|
|
228
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
207
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
229
208
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
230
|
-
projectSlug: require_schema.
|
|
231
|
-
filename: zod.z.string().describe("The filename to search for errors in.").optional(),
|
|
209
|
+
projectSlug: require_schema.ParamProjectSlugOrAll.optional(),
|
|
210
|
+
filename: zod.z.string().trim().describe("The filename to search for errors in.").optional(),
|
|
232
211
|
transaction: require_schema.ParamTransaction.optional(),
|
|
233
212
|
query: require_schema.ParamQuery.optional(),
|
|
234
213
|
sortBy: zod.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.")
|
|
235
214
|
}
|
|
236
215
|
},
|
|
237
216
|
{
|
|
238
|
-
name: "
|
|
217
|
+
name: "find_transactions",
|
|
239
218
|
description: [
|
|
240
|
-
"
|
|
219
|
+
"Find transactions in Sentry using advanced search syntax.",
|
|
241
220
|
"",
|
|
242
221
|
"Transactions are segments of traces that are associated with a specific route or endpoint.",
|
|
243
222
|
"",
|
|
@@ -252,21 +231,21 @@ const TOOL_DEFINITIONS = [
|
|
|
252
231
|
"...",
|
|
253
232
|
"",
|
|
254
233
|
"```",
|
|
255
|
-
"
|
|
234
|
+
"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')",
|
|
256
235
|
"```",
|
|
257
236
|
"",
|
|
258
237
|
"</examples>",
|
|
259
238
|
"",
|
|
260
239
|
"<hints>",
|
|
261
240
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
262
|
-
"- 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 `
|
|
263
|
-
"- You can use the `
|
|
241
|
+
"- 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.",
|
|
242
|
+
"- You can use the `find_tags()` tool to see what user-defined tags are available.",
|
|
264
243
|
"</hints>"
|
|
265
244
|
].join("\n"),
|
|
266
245
|
paramsSchema: {
|
|
267
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
246
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
268
247
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
269
|
-
projectSlug: require_schema.
|
|
248
|
+
projectSlug: require_schema.ParamProjectSlugOrAll.optional(),
|
|
270
249
|
transaction: require_schema.ParamTransaction.optional(),
|
|
271
250
|
query: require_schema.ParamQuery.optional(),
|
|
272
251
|
sortBy: zod.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).")
|
|
@@ -277,6 +256,8 @@ const TOOL_DEFINITIONS = [
|
|
|
277
256
|
description: [
|
|
278
257
|
"Create a new team in Sentry.",
|
|
279
258
|
"",
|
|
259
|
+
"Be careful when using this tool!",
|
|
260
|
+
"",
|
|
280
261
|
"Use this tool when you need to:",
|
|
281
262
|
"- Create a new team in a Sentry organization",
|
|
282
263
|
"",
|
|
@@ -285,9 +266,9 @@ const TOOL_DEFINITIONS = [
|
|
|
285
266
|
"</hints>"
|
|
286
267
|
].join("\n"),
|
|
287
268
|
paramsSchema: {
|
|
288
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
269
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
289
270
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
290
|
-
name: zod.z.string().describe("The name of the team to create.")
|
|
271
|
+
name: zod.z.string().trim().describe("The name of the team to create.")
|
|
291
272
|
}
|
|
292
273
|
},
|
|
293
274
|
{
|
|
@@ -295,6 +276,8 @@ const TOOL_DEFINITIONS = [
|
|
|
295
276
|
description: [
|
|
296
277
|
"Create a new project in Sentry, giving you access to a new SENTRY_DSN.",
|
|
297
278
|
"",
|
|
279
|
+
"Be careful when using this tool!",
|
|
280
|
+
"",
|
|
298
281
|
"Use this tool when you need to:",
|
|
299
282
|
"- Create a new project in a Sentry organization",
|
|
300
283
|
"",
|
|
@@ -313,10 +296,10 @@ const TOOL_DEFINITIONS = [
|
|
|
313
296
|
"</hints>"
|
|
314
297
|
].join("\n"),
|
|
315
298
|
paramsSchema: {
|
|
316
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
299
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
317
300
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
318
|
-
teamSlug:
|
|
319
|
-
name: zod.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."),
|
|
301
|
+
teamSlug: require_schema.ParamTeamSlug,
|
|
302
|
+
name: zod.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."),
|
|
320
303
|
platform: require_schema.ParamPlatform.optional()
|
|
321
304
|
}
|
|
322
305
|
},
|
|
@@ -325,6 +308,8 @@ const TOOL_DEFINITIONS = [
|
|
|
325
308
|
description: [
|
|
326
309
|
"Create a new Sentry DSN for a specific project.",
|
|
327
310
|
"",
|
|
311
|
+
"Be careful when using this tool!",
|
|
312
|
+
"",
|
|
328
313
|
"Use this tool when you need to:",
|
|
329
314
|
"- Create a new DSN for a specific project",
|
|
330
315
|
"",
|
|
@@ -332,7 +317,7 @@ const TOOL_DEFINITIONS = [
|
|
|
332
317
|
"### Create a new DSN for the 'my-project' project",
|
|
333
318
|
"",
|
|
334
319
|
"```",
|
|
335
|
-
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='
|
|
320
|
+
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Production')",
|
|
336
321
|
"```",
|
|
337
322
|
"",
|
|
338
323
|
"</examples>",
|
|
@@ -343,14 +328,14 @@ const TOOL_DEFINITIONS = [
|
|
|
343
328
|
"</hints>"
|
|
344
329
|
].join("\n"),
|
|
345
330
|
paramsSchema: {
|
|
346
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
331
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
347
332
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
348
|
-
projectSlug:
|
|
349
|
-
name: zod.z.string().describe("The name of the DSN to create.")
|
|
333
|
+
projectSlug: require_schema.ParamProjectSlug,
|
|
334
|
+
name: zod.z.string().trim().describe("The name of the DSN to create, for example 'Production'.")
|
|
350
335
|
}
|
|
351
336
|
},
|
|
352
337
|
{
|
|
353
|
-
name: "
|
|
338
|
+
name: "find_dsns",
|
|
354
339
|
description: [
|
|
355
340
|
"List all Sentry DSNs for a specific project.",
|
|
356
341
|
"",
|
|
@@ -359,13 +344,13 @@ const TOOL_DEFINITIONS = [
|
|
|
359
344
|
"",
|
|
360
345
|
"<hints>",
|
|
361
346
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
362
|
-
"- 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 `
|
|
347
|
+
"- 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.",
|
|
363
348
|
"</hints>"
|
|
364
349
|
].join("\n"),
|
|
365
350
|
paramsSchema: {
|
|
366
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
351
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
367
352
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
368
|
-
projectSlug:
|
|
353
|
+
projectSlug: require_schema.ParamProjectSlug
|
|
369
354
|
}
|
|
370
355
|
},
|
|
371
356
|
{
|
|
@@ -391,14 +376,13 @@ const TOOL_DEFINITIONS = [
|
|
|
391
376
|
"<hints>",
|
|
392
377
|
"- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.",
|
|
393
378
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
394
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
395
379
|
"</hints>"
|
|
396
380
|
].join("\n"),
|
|
397
381
|
paramsSchema: {
|
|
398
382
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
399
383
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
400
384
|
issueId: require_schema.ParamIssueShortId.optional(),
|
|
401
|
-
issueUrl:
|
|
385
|
+
issueUrl: require_schema.ParamIssueUrl.optional()
|
|
402
386
|
}
|
|
403
387
|
},
|
|
404
388
|
{
|
|
@@ -421,14 +405,13 @@ const TOOL_DEFINITIONS = [
|
|
|
421
405
|
"",
|
|
422
406
|
"<hints>",
|
|
423
407
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
424
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
425
408
|
"</hints>"
|
|
426
409
|
].join("\n"),
|
|
427
410
|
paramsSchema: {
|
|
428
411
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
429
412
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
430
413
|
issueId: require_schema.ParamIssueShortId.optional(),
|
|
431
|
-
issueUrl:
|
|
414
|
+
issueUrl: require_schema.ParamIssueUrl.optional()
|
|
432
415
|
}
|
|
433
416
|
}
|
|
434
417
|
];
|
|
@@ -440,4 +423,4 @@ Object.defineProperty(exports, 'TOOL_DEFINITIONS', {
|
|
|
440
423
|
return TOOL_DEFINITIONS;
|
|
441
424
|
}
|
|
442
425
|
});
|
|
443
|
-
//# sourceMappingURL=toolDefinitions-
|
|
426
|
+
//# sourceMappingURL=toolDefinitions-DIhvw3vk.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-DIhvw3vk.cjs","names":["ParamOrganizationSlug","ParamTeamSlug","ParamProjectSlug"],"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,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkBA;GAClB,WAAW,8BAAe,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,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,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,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAa,qCAAsB,UAAU;GAC7C,OAAO,MACJ,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,kBAAkBA;GAClB,WAAW,8BAAe,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,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,SAAS,MAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;GACtE,UAAU,6BAAc,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,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAa,qCAAsB,UAAU;GAC7C,UAAU,MACP,QAAQ,CACR,MAAM,CACN,SAAS,wCAAwC,CACjD,UAAU;GACb,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,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,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAa,qCAAsB,UAAU;GAC7C,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,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,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,MAAM,MAAE,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,kBAAkBA;GAClB,WAAW,8BAAe,UAAU;GACpC,UAAUC;GACV,MAAM,MACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;GACH,UAAU,6BAAc,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,kBAAkBD;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAaE;GACb,MAAM,MACH,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,kBAAkBF;GAClB,WAAW,8BAAe,UAAU;GACpC,aAAaE;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,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,UAAU,6BAAc,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,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,UAAU,6BAAc,UAAU;EACnC;CACF;AACF"}
|