@sentry/mcp-server 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api-client/client.cjs +2 -2
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/client.test.cjs +2 -2
- package/dist/api-client/client.test.js +2 -2
- package/dist/api-client/index.cjs +2 -2
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +3 -3
- package/dist/api-client/index.js +2 -2
- package/dist/api-client/schema.cjs +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/schema.js +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{client-DQ837FXP.cjs → client-B4Ux5Zdg.cjs} +7 -4
- package/dist/client-B4Ux5Zdg.cjs.map +1 -0
- package/dist/{client-CTm4cvI7.js → client-Bz_PNC8o.js} +7 -4
- package/dist/client-Bz_PNC8o.js.map +1 -0
- package/dist/{client-1dRfG57H.d.ts → client-J6VSRmQS.d.ts} +5 -3
- package/dist/client-J6VSRmQS.d.ts.map +1 -0
- package/dist/{client-BsYOQsEI.d.cts → client-tE6FD__9.d.cts} +5 -3
- package/dist/client-tE6FD__9.d.cts.map +1 -0
- package/dist/{formatting-C-0bHtbh.cjs → formatting-B0SJqiqX.cjs} +11 -3
- package/dist/formatting-B0SJqiqX.cjs.map +1 -0
- package/dist/{formatting-BQRAzO5v.js → formatting-ggD6YRYR.js} +11 -3
- package/dist/formatting-ggD6YRYR.js.map +1 -0
- package/dist/index.cjs +11 -11
- package/dist/index.js +11 -11
- package/dist/internal/formatting.cjs +1 -1
- package/dist/internal/formatting.d.cts +3 -3
- package/dist/internal/formatting.d.cts.map +1 -1
- package/dist/internal/formatting.d.ts +3 -3
- package/dist/internal/formatting.d.ts.map +1 -1
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.test.cjs +2 -2
- package/dist/internal/issue-helpers.test.cjs.map +1 -1
- package/dist/internal/issue-helpers.test.js +2 -2
- package/dist/internal/issue-helpers.test.js.map +1 -1
- package/dist/{promptDefinitions-Dcz3d9wL.d.cts → promptDefinitions-BR7PxWcH.d.cts} +3 -3
- package/dist/promptDefinitions-BR7PxWcH.d.cts.map +1 -0
- package/dist/{promptDefinitions-CPTadtuI.js → promptDefinitions-DBNOeSg-.js} +5 -5
- package/dist/promptDefinitions-DBNOeSg-.js.map +1 -0
- package/dist/{promptDefinitions-5jiZMBg5.cjs → promptDefinitions-pHRpPOpJ.cjs} +5 -5
- package/dist/promptDefinitions-pHRpPOpJ.cjs.map +1 -0
- package/dist/{promptDefinitions-DrGK-v8n.d.ts → promptDefinitions-tpKruPny.d.ts} +3 -3
- package/dist/promptDefinitions-tpKruPny.d.ts.map +1 -0
- package/dist/promptDefinitions.cjs +2 -2
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +2 -2
- package/dist/prompts.d.cts +5 -5
- package/dist/prompts.d.ts +5 -5
- package/dist/{schema-KEMqYaQn.cjs → schema-3VLYcf4D.cjs} +9 -2
- package/dist/schema-3VLYcf4D.cjs.map +1 -0
- package/dist/{schema-DwPOkoSP.d.ts → schema-B7A-FyIi.d.ts} +341 -263
- package/dist/{schema-DwPOkoSP.d.ts.map → schema-B7A-FyIi.d.ts.map} +1 -1
- package/dist/schema-BKa41TQ4.js +17 -0
- package/dist/schema-BKa41TQ4.js.map +1 -0
- package/dist/{schema-nyYqVk4Y.js → schema-Dltbjui7.js} +9 -2
- package/dist/schema-Dltbjui7.js.map +1 -0
- package/dist/{schema-CaJV2aIO.d.cts → schema-PvgLrC1b.d.cts} +339 -261
- package/dist/{schema-CaJV2aIO.d.cts.map → schema-PvgLrC1b.d.cts.map} +1 -1
- package/dist/schema-jk88gqOu.cjs +78 -0
- package/dist/schema-jk88gqOu.cjs.map +1 -0
- package/dist/schema.cjs +3 -1
- package/dist/schema.d.cts +3 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +3 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/{server-BWoJZj5B.cjs → server-VwFSUPQn.cjs} +5 -5
- package/dist/{server-BWoJZj5B.cjs.map → server-VwFSUPQn.cjs.map} +1 -1
- package/dist/{server-DtNbD1c-.js → server-yb4PkNyo.js} +5 -5
- package/dist/{server-DtNbD1c-.js.map → server-yb4PkNyo.js.map} +1 -1
- package/dist/server.cjs +8 -8
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +8 -8
- package/dist/{stdio-BLzMxGqU.cjs → stdio-65sYKLOk.cjs} +2 -2
- package/dist/{stdio-BLzMxGqU.cjs.map → stdio-65sYKLOk.cjs.map} +1 -1
- package/dist/{stdio-D4oW-qT6.js → stdio-DkU2-spy.js} +2 -2
- package/dist/{stdio-D4oW-qT6.js.map → stdio-DkU2-spy.js.map} +1 -1
- package/dist/test-setup.cjs +1338 -1142
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1338 -1141
- package/dist/test-setup.js.map +1 -1
- package/dist/{toolDefinitions-K_TVqaLU.d.cts → toolDefinitions-B94CNDbt.d.cts} +22 -22
- package/dist/toolDefinitions-B94CNDbt.d.cts.map +1 -0
- package/dist/{toolDefinitions-BF-D81bS.js → toolDefinitions-Bb_1ejkl.js} +83 -78
- package/dist/toolDefinitions-Bb_1ejkl.js.map +1 -0
- package/dist/{toolDefinitions-CO65cU86.cjs → toolDefinitions-DIhvw3vk.cjs} +83 -78
- package/dist/toolDefinitions-DIhvw3vk.cjs.map +1 -0
- package/dist/{toolDefinitions-CCscRQoM.d.ts → toolDefinitions-q_1-70fG.d.ts} +22 -22
- package/dist/toolDefinitions-q_1-70fG.d.ts.map +1 -0
- package/dist/toolDefinitions.cjs +2 -2
- package/dist/toolDefinitions.d.cts +1 -1
- package/dist/toolDefinitions.d.ts +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/toolDefinitions.test.cjs +2 -2
- package/dist/toolDefinitions.test.js +2 -2
- package/dist/{tools-BYt-G6p2.cjs → tools-BdkmyaZo.cjs} +36 -52
- package/dist/tools-BdkmyaZo.cjs.map +1 -0
- package/dist/{tools-B8ufMRZx.js → tools-CMFpMPpD.js} +36 -52
- package/dist/tools-CMFpMPpD.js.map +1 -0
- package/dist/tools.cjs +4 -4
- package/dist/tools.d.cts +24 -24
- package/dist/tools.d.cts.map +1 -1
- package/dist/tools.d.ts +24 -24
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +4 -4
- package/dist/tools.test.cjs +111 -34
- package/dist/tools.test.cjs.map +1 -1
- package/dist/tools.test.js +111 -34
- package/dist/tools.test.js.map +1 -1
- package/dist/transports/stdio.cjs +9 -9
- package/dist/transports/stdio.d.cts +3 -3
- package/dist/transports/stdio.d.ts +3 -3
- package/dist/transports/stdio.js +9 -9
- package/dist/{types-CPuN4Qmi.d.cts → types-B03G337q.d.cts} +2 -2
- package/dist/{types-CPuN4Qmi.d.cts.map → types-B03G337q.d.cts.map} +1 -1
- package/dist/{types-Ds7qzCBB.d.ts → types-CN4NEway.d.ts} +2 -2
- package/dist/{types-Ds7qzCBB.d.ts.map → types-CN4NEway.d.ts.map} +1 -1
- package/dist/{types-TaJcaAVg.d.cts → types-OeoNXRm-.d.cts} +3 -3
- package/dist/{types-TaJcaAVg.d.cts.map → types-OeoNXRm-.d.cts.map} +1 -1
- package/dist/{types-DyM4kaGZ.d.ts → types-jftb-CP9.d.ts} +3 -3
- package/dist/{types-DyM4kaGZ.d.ts.map → types-jftb-CP9.d.ts.map} +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/{version-B0O4KvZ9.cjs → version-CDnh7DyW.cjs} +2 -2
- package/dist/{version-B0O4KvZ9.cjs.map → version-CDnh7DyW.cjs.map} +1 -1
- package/dist/version-TjO7fHpC.js +6 -0
- package/dist/{version-dTEKpaGt.js.map → version-TjO7fHpC.js.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/client-1dRfG57H.d.ts.map +0 -1
- package/dist/client-BsYOQsEI.d.cts.map +0 -1
- package/dist/client-CTm4cvI7.js.map +0 -1
- package/dist/client-DQ837FXP.cjs.map +0 -1
- package/dist/formatting-BQRAzO5v.js.map +0 -1
- package/dist/formatting-C-0bHtbh.cjs.map +0 -1
- package/dist/promptDefinitions-5jiZMBg5.cjs.map +0 -1
- package/dist/promptDefinitions-CPTadtuI.js.map +0 -1
- package/dist/promptDefinitions-Dcz3d9wL.d.cts.map +0 -1
- package/dist/promptDefinitions-DrGK-v8n.d.ts.map +0 -1
- package/dist/schema-BCkBPgjj.cjs +0 -64
- package/dist/schema-BCkBPgjj.cjs.map +0 -1
- package/dist/schema-CJrk_GUH.js +0 -15
- package/dist/schema-CJrk_GUH.js.map +0 -1
- package/dist/schema-KEMqYaQn.cjs.map +0 -1
- package/dist/schema-nyYqVk4Y.js.map +0 -1
- package/dist/toolDefinitions-BF-D81bS.js.map +0 -1
- package/dist/toolDefinitions-CCscRQoM.d.ts.map +0 -1
- package/dist/toolDefinitions-CO65cU86.cjs.map +0 -1
- package/dist/toolDefinitions-K_TVqaLU.d.cts.map +0 -1
- package/dist/tools-B8ufMRZx.js.map +0 -1
- package/dist/tools-BYt-G6p2.cjs.map +0 -1
- package/dist/version-dTEKpaGt.js +0 -6
|
@@ -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,39 +87,50 @@ 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
|
},
|
|
@@ -157,21 +159,20 @@ const TOOL_DEFINITIONS = [
|
|
|
157
159
|
"<hints>",
|
|
158
160
|
"- If the user provides the `issueUrl`, you can ignore the other parameters.",
|
|
159
161
|
"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.",
|
|
160
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first.",
|
|
161
162
|
"</hints>"
|
|
162
163
|
].join("\n"),
|
|
163
164
|
paramsSchema: {
|
|
164
165
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
165
166
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
166
167
|
issueId: require_schema.ParamIssueShortId.optional(),
|
|
167
|
-
eventId: zod.z.string().describe("The ID of the event.").optional(),
|
|
168
|
-
issueUrl:
|
|
168
|
+
eventId: zod.z.string().trim().describe("The ID of the event.").optional(),
|
|
169
|
+
issueUrl: require_schema.ParamIssueUrl.optional()
|
|
169
170
|
}
|
|
170
171
|
},
|
|
171
172
|
{
|
|
172
|
-
name: "
|
|
173
|
+
name: "find_errors",
|
|
173
174
|
description: [
|
|
174
|
-
"
|
|
175
|
+
"Find errors in Sentry using advanced search syntax.",
|
|
175
176
|
"",
|
|
176
177
|
"Use this tool when you need to:",
|
|
177
178
|
"- Search for production errors in a specific file.",
|
|
@@ -184,38 +185,38 @@ const TOOL_DEFINITIONS = [
|
|
|
184
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.",
|
|
185
186
|
"",
|
|
186
187
|
"```",
|
|
187
|
-
"
|
|
188
|
+
"find_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')",
|
|
188
189
|
"```",
|
|
189
190
|
"",
|
|
190
191
|
"### Find recent crashes from the 'peated' project",
|
|
191
192
|
"",
|
|
192
193
|
"```",
|
|
193
|
-
"
|
|
194
|
+
"find_errors(organizationSlug='my-organization', query='is:unresolved error.handled:false', projectSlug='peated', sortBy='last_seen')",
|
|
194
195
|
"```",
|
|
195
196
|
"",
|
|
196
197
|
"</examples>",
|
|
197
198
|
"",
|
|
198
199
|
"<hints>",
|
|
199
200
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
200
|
-
"- 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 `
|
|
201
|
-
"- If you are looking for issues, in a way that you might be looking for something like 'unresolved errors', you should use the `
|
|
202
|
-
"- 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.",
|
|
203
204
|
"</hints>"
|
|
204
205
|
].join("\n"),
|
|
205
206
|
paramsSchema: {
|
|
206
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
207
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
207
208
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
208
|
-
projectSlug: require_schema.
|
|
209
|
-
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(),
|
|
210
211
|
transaction: require_schema.ParamTransaction.optional(),
|
|
211
212
|
query: require_schema.ParamQuery.optional(),
|
|
212
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.")
|
|
213
214
|
}
|
|
214
215
|
},
|
|
215
216
|
{
|
|
216
|
-
name: "
|
|
217
|
+
name: "find_transactions",
|
|
217
218
|
description: [
|
|
218
|
-
"
|
|
219
|
+
"Find transactions in Sentry using advanced search syntax.",
|
|
219
220
|
"",
|
|
220
221
|
"Transactions are segments of traces that are associated with a specific route or endpoint.",
|
|
221
222
|
"",
|
|
@@ -230,21 +231,21 @@ const TOOL_DEFINITIONS = [
|
|
|
230
231
|
"...",
|
|
231
232
|
"",
|
|
232
233
|
"```",
|
|
233
|
-
"
|
|
234
|
+
"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='latency')",
|
|
234
235
|
"```",
|
|
235
236
|
"",
|
|
236
237
|
"</examples>",
|
|
237
238
|
"",
|
|
238
239
|
"<hints>",
|
|
239
240
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
240
|
-
"- 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 `
|
|
241
|
-
"- 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.",
|
|
242
243
|
"</hints>"
|
|
243
244
|
].join("\n"),
|
|
244
245
|
paramsSchema: {
|
|
245
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
246
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
246
247
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
247
|
-
projectSlug: require_schema.
|
|
248
|
+
projectSlug: require_schema.ParamProjectSlugOrAll.optional(),
|
|
248
249
|
transaction: require_schema.ParamTransaction.optional(),
|
|
249
250
|
query: require_schema.ParamQuery.optional(),
|
|
250
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).")
|
|
@@ -255,6 +256,8 @@ const TOOL_DEFINITIONS = [
|
|
|
255
256
|
description: [
|
|
256
257
|
"Create a new team in Sentry.",
|
|
257
258
|
"",
|
|
259
|
+
"Be careful when using this tool!",
|
|
260
|
+
"",
|
|
258
261
|
"Use this tool when you need to:",
|
|
259
262
|
"- Create a new team in a Sentry organization",
|
|
260
263
|
"",
|
|
@@ -263,9 +266,9 @@ const TOOL_DEFINITIONS = [
|
|
|
263
266
|
"</hints>"
|
|
264
267
|
].join("\n"),
|
|
265
268
|
paramsSchema: {
|
|
266
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
269
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
267
270
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
268
|
-
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.")
|
|
269
272
|
}
|
|
270
273
|
},
|
|
271
274
|
{
|
|
@@ -273,6 +276,8 @@ const TOOL_DEFINITIONS = [
|
|
|
273
276
|
description: [
|
|
274
277
|
"Create a new project in Sentry, giving you access to a new SENTRY_DSN.",
|
|
275
278
|
"",
|
|
279
|
+
"Be careful when using this tool!",
|
|
280
|
+
"",
|
|
276
281
|
"Use this tool when you need to:",
|
|
277
282
|
"- Create a new project in a Sentry organization",
|
|
278
283
|
"",
|
|
@@ -291,10 +296,10 @@ const TOOL_DEFINITIONS = [
|
|
|
291
296
|
"</hints>"
|
|
292
297
|
].join("\n"),
|
|
293
298
|
paramsSchema: {
|
|
294
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
299
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
295
300
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
296
|
-
teamSlug:
|
|
297
|
-
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."),
|
|
298
303
|
platform: require_schema.ParamPlatform.optional()
|
|
299
304
|
}
|
|
300
305
|
},
|
|
@@ -303,6 +308,8 @@ const TOOL_DEFINITIONS = [
|
|
|
303
308
|
description: [
|
|
304
309
|
"Create a new Sentry DSN for a specific project.",
|
|
305
310
|
"",
|
|
311
|
+
"Be careful when using this tool!",
|
|
312
|
+
"",
|
|
306
313
|
"Use this tool when you need to:",
|
|
307
314
|
"- Create a new DSN for a specific project",
|
|
308
315
|
"",
|
|
@@ -310,7 +317,7 @@ const TOOL_DEFINITIONS = [
|
|
|
310
317
|
"### Create a new DSN for the 'my-project' project",
|
|
311
318
|
"",
|
|
312
319
|
"```",
|
|
313
|
-
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='
|
|
320
|
+
"create_dsn(organizationSlug='my-organization', projectSlug='my-project', name='Production')",
|
|
314
321
|
"```",
|
|
315
322
|
"",
|
|
316
323
|
"</examples>",
|
|
@@ -321,14 +328,14 @@ const TOOL_DEFINITIONS = [
|
|
|
321
328
|
"</hints>"
|
|
322
329
|
].join("\n"),
|
|
323
330
|
paramsSchema: {
|
|
324
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
331
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
325
332
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
326
|
-
projectSlug:
|
|
327
|
-
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'.")
|
|
328
335
|
}
|
|
329
336
|
},
|
|
330
337
|
{
|
|
331
|
-
name: "
|
|
338
|
+
name: "find_dsns",
|
|
332
339
|
description: [
|
|
333
340
|
"List all Sentry DSNs for a specific project.",
|
|
334
341
|
"",
|
|
@@ -337,13 +344,13 @@ const TOOL_DEFINITIONS = [
|
|
|
337
344
|
"",
|
|
338
345
|
"<hints>",
|
|
339
346
|
"- If the user passes a parameter in the form of name/otherName, its likely in the format of <organizationSlug>/<projectSlug>.",
|
|
340
|
-
"- 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.",
|
|
341
348
|
"</hints>"
|
|
342
349
|
].join("\n"),
|
|
343
350
|
paramsSchema: {
|
|
344
|
-
organizationSlug: require_schema.ParamOrganizationSlug
|
|
351
|
+
organizationSlug: require_schema.ParamOrganizationSlug,
|
|
345
352
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
346
|
-
projectSlug:
|
|
353
|
+
projectSlug: require_schema.ParamProjectSlug
|
|
347
354
|
}
|
|
348
355
|
},
|
|
349
356
|
{
|
|
@@ -369,14 +376,13 @@ const TOOL_DEFINITIONS = [
|
|
|
369
376
|
"<hints>",
|
|
370
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()`.",
|
|
371
378
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
372
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
373
379
|
"</hints>"
|
|
374
380
|
].join("\n"),
|
|
375
381
|
paramsSchema: {
|
|
376
382
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
377
383
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
378
384
|
issueId: require_schema.ParamIssueShortId.optional(),
|
|
379
|
-
issueUrl:
|
|
385
|
+
issueUrl: require_schema.ParamIssueUrl.optional()
|
|
380
386
|
}
|
|
381
387
|
},
|
|
382
388
|
{
|
|
@@ -399,14 +405,13 @@ const TOOL_DEFINITIONS = [
|
|
|
399
405
|
"",
|
|
400
406
|
"<hints>",
|
|
401
407
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
402
|
-
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
403
408
|
"</hints>"
|
|
404
409
|
].join("\n"),
|
|
405
410
|
paramsSchema: {
|
|
406
411
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
407
412
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
408
413
|
issueId: require_schema.ParamIssueShortId.optional(),
|
|
409
|
-
issueUrl:
|
|
414
|
+
issueUrl: require_schema.ParamIssueUrl.optional()
|
|
410
415
|
}
|
|
411
416
|
}
|
|
412
417
|
];
|
|
@@ -418,4 +423,4 @@ Object.defineProperty(exports, 'TOOL_DEFINITIONS', {
|
|
|
418
423
|
return TOOL_DEFINITIONS;
|
|
419
424
|
}
|
|
420
425
|
});
|
|
421
|
-
//# 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"}
|
|
@@ -2,14 +2,14 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/toolDefinitions.d.ts
|
|
4
4
|
declare const TOOL_DEFINITIONS: ({
|
|
5
|
-
name: "
|
|
5
|
+
name: "find_organizations";
|
|
6
6
|
description: string;
|
|
7
7
|
paramsSchema?: undefined;
|
|
8
8
|
} | {
|
|
9
|
-
name: "
|
|
9
|
+
name: "find_teams";
|
|
10
10
|
description: string;
|
|
11
11
|
paramsSchema: {
|
|
12
|
-
organizationSlug: z.
|
|
12
|
+
organizationSlug: z.ZodString;
|
|
13
13
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
14
14
|
projectSlug?: undefined;
|
|
15
15
|
query?: undefined;
|
|
@@ -24,10 +24,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
24
24
|
platform?: undefined;
|
|
25
25
|
};
|
|
26
26
|
} | {
|
|
27
|
-
name: "
|
|
27
|
+
name: "find_projects";
|
|
28
28
|
description: string;
|
|
29
29
|
paramsSchema: {
|
|
30
|
-
organizationSlug: z.
|
|
30
|
+
organizationSlug: z.ZodString;
|
|
31
31
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
32
32
|
projectSlug?: undefined;
|
|
33
33
|
query?: undefined;
|
|
@@ -42,10 +42,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
42
42
|
platform?: undefined;
|
|
43
43
|
};
|
|
44
44
|
} | {
|
|
45
|
-
name: "
|
|
45
|
+
name: "find_issues";
|
|
46
46
|
description: string;
|
|
47
47
|
paramsSchema: {
|
|
48
|
-
organizationSlug: z.
|
|
48
|
+
organizationSlug: z.ZodString;
|
|
49
49
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
50
50
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
51
51
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -60,13 +60,13 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
60
60
|
platform?: undefined;
|
|
61
61
|
};
|
|
62
62
|
} | {
|
|
63
|
-
name: "
|
|
63
|
+
name: "find_releases";
|
|
64
64
|
description: string;
|
|
65
65
|
paramsSchema: {
|
|
66
|
-
organizationSlug: z.
|
|
66
|
+
organizationSlug: z.ZodString;
|
|
67
67
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
68
68
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
69
|
-
query
|
|
69
|
+
query: z.ZodOptional<z.ZodString>;
|
|
70
70
|
sortBy?: undefined;
|
|
71
71
|
issueId?: undefined;
|
|
72
72
|
eventId?: undefined;
|
|
@@ -78,10 +78,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
78
78
|
platform?: undefined;
|
|
79
79
|
};
|
|
80
80
|
} | {
|
|
81
|
-
name: "
|
|
81
|
+
name: "find_tags";
|
|
82
82
|
description: string;
|
|
83
83
|
paramsSchema: {
|
|
84
|
-
organizationSlug: z.
|
|
84
|
+
organizationSlug: z.ZodString;
|
|
85
85
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
86
86
|
projectSlug?: undefined;
|
|
87
87
|
query?: undefined;
|
|
@@ -114,10 +114,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
114
114
|
platform?: undefined;
|
|
115
115
|
};
|
|
116
116
|
} | {
|
|
117
|
-
name: "
|
|
117
|
+
name: "find_errors";
|
|
118
118
|
description: string;
|
|
119
119
|
paramsSchema: {
|
|
120
|
-
organizationSlug: z.
|
|
120
|
+
organizationSlug: z.ZodString;
|
|
121
121
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
122
122
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
123
123
|
filename: z.ZodOptional<z.ZodString>;
|
|
@@ -132,10 +132,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
132
132
|
platform?: undefined;
|
|
133
133
|
};
|
|
134
134
|
} | {
|
|
135
|
-
name: "
|
|
135
|
+
name: "find_transactions";
|
|
136
136
|
description: string;
|
|
137
137
|
paramsSchema: {
|
|
138
|
-
organizationSlug: z.
|
|
138
|
+
organizationSlug: z.ZodString;
|
|
139
139
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
140
140
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
141
141
|
transaction: z.ZodOptional<z.ZodString>;
|
|
@@ -153,7 +153,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
153
153
|
name: "create_team";
|
|
154
154
|
description: string;
|
|
155
155
|
paramsSchema: {
|
|
156
|
-
organizationSlug: z.
|
|
156
|
+
organizationSlug: z.ZodString;
|
|
157
157
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
158
158
|
name: z.ZodString;
|
|
159
159
|
projectSlug?: undefined;
|
|
@@ -171,7 +171,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
171
171
|
name: "create_project";
|
|
172
172
|
description: string;
|
|
173
173
|
paramsSchema: {
|
|
174
|
-
organizationSlug: z.
|
|
174
|
+
organizationSlug: z.ZodString;
|
|
175
175
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
176
176
|
teamSlug: z.ZodString;
|
|
177
177
|
name: z.ZodString;
|
|
@@ -189,7 +189,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
189
189
|
name: "create_dsn";
|
|
190
190
|
description: string;
|
|
191
191
|
paramsSchema: {
|
|
192
|
-
organizationSlug: z.
|
|
192
|
+
organizationSlug: z.ZodString;
|
|
193
193
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
194
194
|
projectSlug: z.ZodString;
|
|
195
195
|
name: z.ZodString;
|
|
@@ -204,10 +204,10 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
204
204
|
platform?: undefined;
|
|
205
205
|
};
|
|
206
206
|
} | {
|
|
207
|
-
name: "
|
|
207
|
+
name: "find_dsns";
|
|
208
208
|
description: string;
|
|
209
209
|
paramsSchema: {
|
|
210
|
-
organizationSlug: z.
|
|
210
|
+
organizationSlug: z.ZodString;
|
|
211
211
|
regionUrl: z.ZodOptional<z.ZodString>;
|
|
212
212
|
projectSlug: z.ZodString;
|
|
213
213
|
query?: undefined;
|
|
@@ -261,4 +261,4 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
261
261
|
|
|
262
262
|
//# sourceMappingURL=toolDefinitions.d.ts.map
|
|
263
263
|
export { TOOL_DEFINITIONS as TOOL_DEFINITIONS$1 };
|
|
264
|
-
//# sourceMappingURL=toolDefinitions-
|
|
264
|
+
//# sourceMappingURL=toolDefinitions-q_1-70fG.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-q_1-70fG.d.ts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAgBa;;EAAA,WAAA,EAAA,MAubZ;EAAA,YAAA,CAAA,EAAA,SAAA;CAAA,GAAA;;;;sBAAA,CAAA,CAAA"}
|
package/dist/toolDefinitions.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('./schema-
|
|
2
|
-
const require_toolDefinitions = require('./toolDefinitions-
|
|
1
|
+
require('./schema-jk88gqOu.cjs');
|
|
2
|
+
const require_toolDefinitions = require('./toolDefinitions-DIhvw3vk.cjs');
|
|
3
3
|
|
|
4
4
|
exports.TOOL_DEFINITIONS = require_toolDefinitions.TOOL_DEFINITIONS
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TOOL_DEFINITIONS } from "./toolDefinitions-
|
|
1
|
+
import { TOOL_DEFINITIONS } from "./toolDefinitions-B94CNDbt.cjs";
|
|
2
2
|
export { TOOL_DEFINITIONS };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TOOL_DEFINITIONS$1 as TOOL_DEFINITIONS } from "./toolDefinitions-
|
|
1
|
+
import { TOOL_DEFINITIONS$1 as TOOL_DEFINITIONS } from "./toolDefinitions-q_1-70fG.js";
|
|
2
2
|
export { TOOL_DEFINITIONS };
|
package/dist/toolDefinitions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
require('./schema-
|
|
3
|
-
const require_toolDefinitions = require('./toolDefinitions-
|
|
2
|
+
require('./schema-jk88gqOu.cjs');
|
|
3
|
+
const require_toolDefinitions = require('./toolDefinitions-DIhvw3vk.cjs');
|
|
4
4
|
const require_dist = require('./dist-wiyJYfAH.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/toolDefinitions.test.ts
|