@sentry/mcp-server 0.10.0 → 0.12.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/dist/api-client/client.cjs +4 -4
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/client.test.cjs +8 -9
- package/dist/api-client/client.test.cjs.map +1 -1
- package/dist/api-client/client.test.js +4 -4
- package/dist/api-client/index.cjs +41 -38
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +5 -5
- package/dist/api-client/schema.cjs +36 -33
- package/dist/api-client/schema.d.cts +2 -2
- package/dist/api-client/schema.d.ts +2 -2
- package/dist/api-client/schema.js +2 -2
- package/dist/api-client/types.cjs +1 -1
- package/dist/api-client/types.d.cts +3 -3
- package/dist/api-client/types.d.ts +3 -3
- package/dist/api-client/types.js +1 -1
- package/dist/{chunk-CsIcISPO.js → chunk-BLXvPPr8.js} +1 -1
- package/dist/{chunk-BtT13l48.cjs → chunk-DWy1uDak.cjs} +0 -1
- package/dist/client-4jq_wVgn.d.ts +522 -0
- package/dist/client-4jq_wVgn.d.ts.map +1 -0
- package/dist/client-B7vZ6JMk.cjs +572 -0
- package/dist/client-B7vZ6JMk.cjs.map +1 -0
- package/dist/client-CAoHZbyK.js +561 -0
- package/dist/client-CAoHZbyK.js.map +1 -0
- package/dist/client-DkY0ifZf.d.cts +522 -0
- package/dist/client-DkY0ifZf.d.cts.map +1 -0
- package/dist/{dist-wiyJYfAH.cjs → dist-BlIWGSIM.cjs} +318 -164
- package/dist/dist-BlIWGSIM.cjs.map +1 -0
- package/dist/{dist-BKh-M1A1.js → dist-DDpQABxe.js} +318 -163
- package/dist/dist-DDpQABxe.js.map +1 -0
- package/dist/errors-B9fwS-aP.cjs +21 -0
- package/dist/errors-B9fwS-aP.cjs.map +1 -0
- package/dist/errors-BJSrT6Ou.js +15 -0
- package/dist/errors-BJSrT6Ou.js.map +1 -0
- package/dist/errors.cjs +3 -0
- package/dist/errors.d.cts +12 -0
- package/dist/errors.d.cts.map +1 -0
- package/dist/errors.d.ts +12 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +3 -0
- package/dist/errors.test.cjs +24 -0
- package/dist/errors.test.cjs.map +1 -0
- package/dist/errors.test.d.cts +1 -0
- package/dist/errors.test.d.ts +1 -0
- package/dist/errors.test.js +24 -0
- package/dist/errors.test.js.map +1 -0
- package/dist/{formatting-ggD6YRYR.js → formatting-BaARL2gT.js} +1 -1
- package/dist/formatting-BaARL2gT.js.map +1 -0
- package/dist/{formatting-B0SJqiqX.cjs → formatting-C2kN0ok6.cjs} +1 -2
- package/dist/formatting-C2kN0ok6.cjs.map +1 -0
- package/dist/index.cjs +19 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -17
- package/dist/index.js.map +1 -1
- package/dist/internal/formatting.cjs +4 -4
- package/dist/internal/formatting.d.cts +5 -5
- package/dist/internal/formatting.d.cts.map +1 -1
- package/dist/internal/formatting.d.ts +5 -5
- package/dist/internal/formatting.d.ts.map +1 -1
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.cjs +4 -4
- package/dist/internal/issue-helpers.d.cts +10 -2
- package/dist/internal/issue-helpers.d.cts.map +1 -1
- package/dist/internal/issue-helpers.d.ts +10 -2
- package/dist/internal/issue-helpers.d.ts.map +1 -1
- package/dist/internal/issue-helpers.js +1 -1
- package/dist/internal/issue-helpers.test.cjs +21 -25
- package/dist/internal/issue-helpers.test.cjs.map +1 -1
- package/dist/internal/issue-helpers.test.js +5 -8
- package/dist/internal/issue-helpers.test.js.map +1 -1
- package/dist/{issue-helpers-CyoHu5j4.js → issue-helpers-BMVLc3mR.js} +16 -2
- package/dist/issue-helpers-BMVLc3mR.js.map +1 -0
- package/dist/{issue-helpers-DbsECZFq.cjs → issue-helpers-D712fGT2.cjs} +16 -3
- package/dist/issue-helpers-D712fGT2.cjs.map +1 -0
- package/dist/{logging-BEMgC5SA.cjs → logging-ByvSjT6V.cjs} +2 -3
- package/dist/logging-ByvSjT6V.cjs.map +1 -0
- package/dist/{logging-Cxm8lQvg.js → logging-CXLD0FFB.js} +1 -1
- package/dist/logging-CXLD0FFB.js.map +1 -0
- package/dist/logging.cjs +2 -2
- package/dist/logging.d.cts +31 -3
- package/dist/logging.d.cts.map +1 -1
- package/dist/logging.d.ts +31 -3
- package/dist/logging.d.ts.map +1 -1
- package/dist/logging.js +1 -1
- package/dist/{magic-string.es-m-ldRjOa.cjs → magic-string.es-CybcVAw7.cjs} +2 -3
- package/dist/{magic-string.es-m-ldRjOa.cjs.map → magic-string.es-CybcVAw7.cjs.map} +1 -1
- package/dist/{promptDefinitions-pHRpPOpJ.cjs → promptDefinitions-BTLIBcGt.cjs} +10 -4
- package/dist/promptDefinitions-BTLIBcGt.cjs.map +1 -0
- package/dist/{promptDefinitions-tpKruPny.d.ts → promptDefinitions-CF2VWdQ6.d.cts} +12 -4
- package/dist/promptDefinitions-CF2VWdQ6.d.cts.map +1 -0
- package/dist/{promptDefinitions-BR7PxWcH.d.cts → promptDefinitions-D5FSQckL.d.ts} +11 -3
- package/dist/promptDefinitions-D5FSQckL.d.ts.map +1 -0
- package/dist/{promptDefinitions-DBNOeSg-.js → promptDefinitions-D8yow1m0.js} +9 -2
- package/dist/promptDefinitions-D8yow1m0.js.map +1 -0
- package/dist/promptDefinitions.cjs +3 -3
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +2 -2
- package/dist/{prompts-nfFU-zY-.cjs → prompts-CDbQrutV.cjs} +3 -3
- package/dist/prompts-CDbQrutV.cjs.map +1 -0
- package/dist/{prompts-DgWOD2rU.js → prompts-Dt3A8Qfl.js} +4 -2
- package/dist/prompts-Dt3A8Qfl.js.map +1 -0
- package/dist/prompts.cjs +3 -2
- package/dist/prompts.d.cts +4 -5
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +4 -5
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +2 -1
- package/dist/{resources-OM3EAnnj.js → resources-Bol20Xuo.js} +13 -1
- package/dist/resources-Bol20Xuo.js.map +1 -0
- package/dist/{resources-BAE7VVZZ.cjs → resources-DNyoutxH.cjs} +13 -2
- package/dist/resources-DNyoutxH.cjs.map +1 -0
- package/dist/resources.cjs +2 -2
- package/dist/resources.d.cts +9 -1
- package/dist/resources.d.cts.map +1 -1
- package/dist/resources.d.ts +9 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +1 -1
- package/dist/{schema-B7A-FyIi.d.ts → schema-BJv7kREf.d.cts} +215 -68
- package/dist/schema-BJv7kREf.d.cts.map +1 -0
- package/dist/{schema-jk88gqOu.cjs → schema-BTfISwFu.cjs} +30 -4
- package/dist/schema-BTfISwFu.cjs.map +1 -0
- package/dist/{schema-PvgLrC1b.d.cts → schema-BnxGHL_i.d.ts} +215 -68
- package/dist/schema-BnxGHL_i.d.ts.map +1 -0
- package/dist/{schema-3VLYcf4D.cjs → schema-BsvGMALe.cjs} +59 -8
- package/dist/schema-BsvGMALe.cjs.map +1 -0
- package/dist/{schema-Dltbjui7.js → schema-C_hp0BR7.js} +41 -7
- package/dist/schema-C_hp0BR7.js.map +1 -0
- package/dist/schema-Dv6aLZgz.js +32 -0
- package/dist/schema-Dv6aLZgz.js.map +1 -0
- package/dist/schema.cjs +13 -11
- package/dist/schema.d.cts +14 -5
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +14 -5
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/{server-yb4PkNyo.js → server-C7cHq_pc.js} +82 -27
- package/dist/server-C7cHq_pc.js.map +1 -0
- package/dist/{server-VwFSUPQn.cjs → server-DeutbO8v.cjs} +83 -29
- package/dist/server-DeutbO8v.cjs.map +1 -0
- package/dist/server.cjs +16 -15
- package/dist/server.d.cts +24 -6
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +24 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +15 -14
- package/dist/stdio-B73CCTly.cjs +47 -0
- package/dist/stdio-B73CCTly.cjs.map +1 -0
- package/dist/stdio-ZQLC-i5Q.js +41 -0
- package/dist/stdio-ZQLC-i5Q.js.map +1 -0
- package/dist/test-setup.cjs +653 -438
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +653 -438
- package/dist/test-setup.js.map +1 -1
- package/dist/{toolDefinitions-B94CNDbt.d.cts → toolDefinitions-BOMF-zIC.d.ts} +148 -18
- package/dist/toolDefinitions-BOMF-zIC.d.ts.map +1 -0
- package/dist/{toolDefinitions-DIhvw3vk.cjs → toolDefinitions-CUegGcWU.cjs} +128 -7
- package/dist/toolDefinitions-CUegGcWU.cjs.map +1 -0
- package/dist/{toolDefinitions-Bb_1ejkl.js → toolDefinitions-DFAxp3nr.js} +127 -5
- package/dist/toolDefinitions-DFAxp3nr.js.map +1 -0
- package/dist/{toolDefinitions-q_1-70fG.d.ts → toolDefinitions-Ipvr4Acw.d.cts} +149 -19
- package/dist/toolDefinitions-Ipvr4Acw.d.cts.map +1 -0
- package/dist/toolDefinitions.cjs +3 -3
- package/dist/toolDefinitions.d.cts +1 -1
- package/dist/toolDefinitions.d.ts +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/toolDefinitions.test.cjs +3 -4
- package/dist/toolDefinitions.test.cjs.map +1 -1
- package/dist/toolDefinitions.test.js +3 -3
- package/dist/{tools-CMFpMPpD.js → tools-DpiQwSTY.js} +156 -13
- package/dist/tools-DpiQwSTY.js.map +1 -0
- package/dist/{tools-BdkmyaZo.cjs → tools-DyOqlsCW.cjs} +157 -15
- package/dist/tools-DyOqlsCW.cjs.map +1 -0
- package/dist/tools.cjs +10 -9
- package/dist/tools.d.cts +121 -8
- package/dist/tools.d.cts.map +1 -1
- package/dist/tools.d.ts +121 -8
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +9 -8
- package/dist/tools.test.cjs +330 -35
- package/dist/tools.test.cjs.map +1 -1
- package/dist/tools.test.js +311 -15
- package/dist/tools.test.js.map +1 -1
- package/dist/transports/stdio.cjs +17 -16
- package/dist/transports/stdio.d.cts +27 -6
- package/dist/transports/stdio.d.cts.map +1 -1
- package/dist/transports/stdio.d.ts +27 -6
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +16 -15
- package/dist/{types-jftb-CP9.d.ts → types-D5TPcOfv.d.ts} +4 -4
- package/dist/types-D5TPcOfv.d.ts.map +1 -0
- package/dist/{types-OeoNXRm-.d.cts → types-DRF2IoP_.d.cts} +4 -4
- package/dist/types-DRF2IoP_.d.cts.map +1 -0
- package/dist/{types-B03G337q.d.cts → types-Daq2fm0E.d.ts} +7 -5
- package/dist/types-Daq2fm0E.d.ts.map +1 -0
- package/dist/{types-CN4NEway.d.ts → types-NIQW7KyF.d.cts} +7 -5
- package/dist/types-NIQW7KyF.d.cts.map +1 -0
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/{version-CDnh7DyW.cjs → version-BNmubeQI.cjs} +2 -3
- package/dist/{version-CDnh7DyW.cjs.map → version-BNmubeQI.cjs.map} +1 -1
- package/dist/version-CRto5Sn_.js +6 -0
- package/dist/{version-TjO7fHpC.js.map → version-CRto5Sn_.js.map} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.d.cts +1 -2
- package/dist/version.d.cts.map +1 -1
- package/dist/version.d.ts +1 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/{vi.ClIskdbk-De9q3829.js → vi.bdSIJ99Y-BfJr7I2s.js} +241 -171
- package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +1 -0
- package/dist/{vi.ClIskdbk-Bs263gvI.cjs → vi.bdSIJ99Y-Dft_B_Ta.cjs} +243 -182
- package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +1 -0
- package/package.json +8 -8
- package/dist/client-B4Ux5Zdg.cjs +0 -227
- package/dist/client-B4Ux5Zdg.cjs.map +0 -1
- package/dist/client-Bz_PNC8o.js +0 -215
- package/dist/client-Bz_PNC8o.js.map +0 -1
- package/dist/client-J6VSRmQS.d.ts +0 -177
- package/dist/client-J6VSRmQS.d.ts.map +0 -1
- package/dist/client-tE6FD__9.d.cts +0 -177
- package/dist/client-tE6FD__9.d.cts.map +0 -1
- package/dist/dist-BKh-M1A1.js.map +0 -1
- package/dist/dist-wiyJYfAH.cjs.map +0 -1
- package/dist/formatting-B0SJqiqX.cjs.map +0 -1
- package/dist/formatting-ggD6YRYR.js.map +0 -1
- package/dist/issue-helpers-CyoHu5j4.js.map +0 -1
- package/dist/issue-helpers-DbsECZFq.cjs.map +0 -1
- package/dist/logging-BEMgC5SA.cjs.map +0 -1
- package/dist/logging-Cxm8lQvg.js.map +0 -1
- package/dist/promptDefinitions-BR7PxWcH.d.cts.map +0 -1
- package/dist/promptDefinitions-DBNOeSg-.js.map +0 -1
- package/dist/promptDefinitions-pHRpPOpJ.cjs.map +0 -1
- package/dist/promptDefinitions-tpKruPny.d.ts.map +0 -1
- package/dist/prompts-DgWOD2rU.js.map +0 -1
- package/dist/prompts-nfFU-zY-.cjs.map +0 -1
- package/dist/resources-BAE7VVZZ.cjs.map +0 -1
- package/dist/resources-OM3EAnnj.js.map +0 -1
- package/dist/schema-3VLYcf4D.cjs.map +0 -1
- package/dist/schema-B7A-FyIi.d.ts.map +0 -1
- package/dist/schema-BKa41TQ4.js +0 -17
- package/dist/schema-BKa41TQ4.js.map +0 -1
- package/dist/schema-Dltbjui7.js.map +0 -1
- package/dist/schema-PvgLrC1b.d.cts.map +0 -1
- package/dist/schema-jk88gqOu.cjs.map +0 -1
- package/dist/server-VwFSUPQn.cjs.map +0 -1
- package/dist/server-yb4PkNyo.js.map +0 -1
- package/dist/stdio-65sYKLOk.cjs +0 -26
- package/dist/stdio-65sYKLOk.cjs.map +0 -1
- package/dist/stdio-DkU2-spy.js +0 -19
- package/dist/stdio-DkU2-spy.js.map +0 -1
- package/dist/toolDefinitions-B94CNDbt.d.cts.map +0 -1
- package/dist/toolDefinitions-Bb_1ejkl.js.map +0 -1
- package/dist/toolDefinitions-DIhvw3vk.cjs.map +0 -1
- package/dist/toolDefinitions-q_1-70fG.d.ts.map +0 -1
- package/dist/tools-BdkmyaZo.cjs.map +0 -1
- package/dist/tools-CMFpMPpD.js.map +0 -1
- package/dist/types-B03G337q.d.cts.map +0 -1
- package/dist/types-CN4NEway.d.ts.map +0 -1
- package/dist/types-OeoNXRm-.d.cts.map +0 -1
- package/dist/types-jftb-CP9.d.ts.map +0 -1
- package/dist/version-TjO7fHpC.js +0 -6
- package/dist/vi.ClIskdbk-Bs263gvI.cjs.map +0 -1
- package/dist/vi.ClIskdbk-De9q3829.js.map +0 -1
- /package/dist/{api-client-9mzrj2HY.js → api-client-CL1WDkw9.cjs} +0 -0
- /package/dist/{api-client-CEBuz3Zu.cjs → api-client-CNv_hbPO.js} +0 -0
- /package/dist/{types-H-TSmRpm.js → types-6zHoEWAx.js} +0 -0
- /package/dist/{types-o3zWarRp.cjs → types-MYBaygjr.cjs} +0 -0
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
import { ParamIssueShortId, ParamIssueUrl, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamProjectSlugOrAll, ParamQuery, ParamRegionUrl, ParamTeamSlug, ParamTransaction } from "./schema-
|
|
1
|
+
import { ParamAssignedTo, ParamIssueShortId, ParamIssueStatus, ParamIssueUrl, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamProjectSlugOrAll, ParamQuery, ParamRegionUrl, ParamTeamSlug, ParamTransaction } from "./schema-Dv6aLZgz.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/toolDefinitions.ts
|
|
5
|
+
/**
|
|
6
|
+
* All MCP tool definitions for the Sentry server.
|
|
7
|
+
*
|
|
8
|
+
* Used by server.ts to register tools with the MCP server and by tools.ts
|
|
9
|
+
* to validate parameters. Each definition includes name, description, and
|
|
10
|
+
* Zod parameter schema.
|
|
11
|
+
*/
|
|
5
12
|
const TOOL_DEFINITIONS = [
|
|
13
|
+
{
|
|
14
|
+
name: "whoami",
|
|
15
|
+
description: [
|
|
16
|
+
"Identify the authenticated user in Sentry.",
|
|
17
|
+
"",
|
|
18
|
+
"Use this tool when you need to:",
|
|
19
|
+
"- Get the user's name and email address."
|
|
20
|
+
].join("\n"),
|
|
21
|
+
paramsSchema: {}
|
|
22
|
+
},
|
|
6
23
|
{
|
|
7
24
|
name: "find_organizations",
|
|
8
25
|
description: [
|
|
@@ -11,7 +28,8 @@ const TOOL_DEFINITIONS = [
|
|
|
11
28
|
"Use this tool when you need to:",
|
|
12
29
|
"- View all organizations in Sentry",
|
|
13
30
|
"- Find an organization's slug to aid other tool requests"
|
|
14
|
-
].join("\n")
|
|
31
|
+
].join("\n"),
|
|
32
|
+
paramsSchema: {}
|
|
15
33
|
},
|
|
16
34
|
{
|
|
17
35
|
name: "find_teams",
|
|
@@ -151,7 +169,7 @@ const TOOL_DEFINITIONS = [
|
|
|
151
169
|
"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'",
|
|
152
170
|
"",
|
|
153
171
|
"```",
|
|
154
|
-
"
|
|
172
|
+
"get_issue_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')",
|
|
155
173
|
"```",
|
|
156
174
|
"</examples>",
|
|
157
175
|
"<hints>",
|
|
@@ -167,6 +185,60 @@ const TOOL_DEFINITIONS = [
|
|
|
167
185
|
issueUrl: ParamIssueUrl.optional()
|
|
168
186
|
}
|
|
169
187
|
},
|
|
188
|
+
{
|
|
189
|
+
name: "update_issue",
|
|
190
|
+
description: [
|
|
191
|
+
"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.",
|
|
192
|
+
"",
|
|
193
|
+
"Use this tool when you need to:",
|
|
194
|
+
"- Resolve an issue that has been fixed",
|
|
195
|
+
"- Assign an issue to a team member or team for investigation",
|
|
196
|
+
"- Mark an issue as ignored to reduce noise",
|
|
197
|
+
"- Reopen a resolved issue by setting status to 'unresolved'",
|
|
198
|
+
"",
|
|
199
|
+
"<examples>",
|
|
200
|
+
"### Resolve an issue",
|
|
201
|
+
"",
|
|
202
|
+
"```",
|
|
203
|
+
"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved')",
|
|
204
|
+
"```",
|
|
205
|
+
"",
|
|
206
|
+
"### Assign an issue to a user",
|
|
207
|
+
"",
|
|
208
|
+
"```",
|
|
209
|
+
"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='john.doe')",
|
|
210
|
+
"```",
|
|
211
|
+
"",
|
|
212
|
+
"### Resolve an issue and assign it to yourself",
|
|
213
|
+
"",
|
|
214
|
+
"```",
|
|
215
|
+
"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved', assignedTo='me')",
|
|
216
|
+
"```",
|
|
217
|
+
"",
|
|
218
|
+
"### Mark an issue as ignored",
|
|
219
|
+
"",
|
|
220
|
+
"```",
|
|
221
|
+
"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='ignored')",
|
|
222
|
+
"```",
|
|
223
|
+
"",
|
|
224
|
+
"</examples>",
|
|
225
|
+
"",
|
|
226
|
+
"<hints>",
|
|
227
|
+
"- If the user provides the `issueUrl`, you can ignore the other required parameters and extract them from the URL.",
|
|
228
|
+
"- At least one of `status` or `assignedTo` must be provided to update the issue.",
|
|
229
|
+
"- Use 'me' as the value for `assignedTo` to assign the issue to the authenticated user.",
|
|
230
|
+
"- Valid status values are: 'resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'.",
|
|
231
|
+
"</hints>"
|
|
232
|
+
].join("\n"),
|
|
233
|
+
paramsSchema: {
|
|
234
|
+
organizationSlug: ParamOrganizationSlug.optional(),
|
|
235
|
+
regionUrl: ParamRegionUrl.optional(),
|
|
236
|
+
issueId: ParamIssueShortId.optional(),
|
|
237
|
+
issueUrl: ParamIssueUrl.optional(),
|
|
238
|
+
status: ParamIssueStatus.optional(),
|
|
239
|
+
assignedTo: ParamAssignedTo.optional()
|
|
240
|
+
}
|
|
241
|
+
},
|
|
170
242
|
{
|
|
171
243
|
name: "find_errors",
|
|
172
244
|
description: [
|
|
@@ -229,7 +301,7 @@ const TOOL_DEFINITIONS = [
|
|
|
229
301
|
"...",
|
|
230
302
|
"",
|
|
231
303
|
"```",
|
|
232
|
-
"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='
|
|
304
|
+
"find_transactions(organizationSlug='my-organization', transaction='/checkout', sortBy='duration')",
|
|
233
305
|
"```",
|
|
234
306
|
"",
|
|
235
307
|
"</examples>",
|
|
@@ -332,6 +404,56 @@ const TOOL_DEFINITIONS = [
|
|
|
332
404
|
name: z.string().trim().describe("The name of the DSN to create, for example 'Production'.")
|
|
333
405
|
}
|
|
334
406
|
},
|
|
407
|
+
{
|
|
408
|
+
name: "update_project",
|
|
409
|
+
description: [
|
|
410
|
+
"Update project settings in Sentry, such as name, slug, platform, and team assignment.",
|
|
411
|
+
"",
|
|
412
|
+
"Be careful when using this tool!",
|
|
413
|
+
"",
|
|
414
|
+
"Use this tool when you need to:",
|
|
415
|
+
"- Update a project's name or slug to fix onboarding mistakes",
|
|
416
|
+
"- Change the platform assigned to a project",
|
|
417
|
+
"- Update team assignment for a project",
|
|
418
|
+
"",
|
|
419
|
+
"<examples>",
|
|
420
|
+
"### Update a project's name and slug",
|
|
421
|
+
"",
|
|
422
|
+
"```",
|
|
423
|
+
"update_project(organizationSlug='my-organization', projectSlug='old-project', name='New Project Name', slug='new-project-slug')",
|
|
424
|
+
"```",
|
|
425
|
+
"",
|
|
426
|
+
"### Assign a project to a different team",
|
|
427
|
+
"",
|
|
428
|
+
"```",
|
|
429
|
+
"update_project(organizationSlug='my-organization', projectSlug='my-project', teamSlug='backend-team')",
|
|
430
|
+
"```",
|
|
431
|
+
"",
|
|
432
|
+
"### Update platform",
|
|
433
|
+
"",
|
|
434
|
+
"```",
|
|
435
|
+
"update_project(organizationSlug='my-organization', projectSlug='my-project', platform='python')",
|
|
436
|
+
"```",
|
|
437
|
+
"",
|
|
438
|
+
"</examples>",
|
|
439
|
+
"",
|
|
440
|
+
"<hints>",
|
|
441
|
+
"- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.",
|
|
442
|
+
"- Team assignment is handled separately from other project settings",
|
|
443
|
+
"- If any parameter is ambiguous, you should clarify with the user what they meant.",
|
|
444
|
+
"- When updating the slug, the project will be accessible at the new slug after the update",
|
|
445
|
+
"</hints>"
|
|
446
|
+
].join("\n"),
|
|
447
|
+
paramsSchema: {
|
|
448
|
+
organizationSlug: ParamOrganizationSlug,
|
|
449
|
+
regionUrl: ParamRegionUrl.optional(),
|
|
450
|
+
projectSlug: ParamProjectSlug,
|
|
451
|
+
name: z.string().trim().describe("The new name for the project").optional(),
|
|
452
|
+
slug: z.string().toLowerCase().trim().describe("The new slug for the project (must be unique)").optional(),
|
|
453
|
+
platform: ParamPlatform.optional(),
|
|
454
|
+
teamSlug: ParamTeamSlug.optional().describe("The team to assign this project to. Note: this will replace the current team assignment.")
|
|
455
|
+
}
|
|
456
|
+
},
|
|
335
457
|
{
|
|
336
458
|
name: "find_dsns",
|
|
337
459
|
description: [
|
|
@@ -416,4 +538,4 @@ const TOOL_DEFINITIONS = [
|
|
|
416
538
|
|
|
417
539
|
//#endregion
|
|
418
540
|
export { TOOL_DEFINITIONS };
|
|
419
|
-
//# sourceMappingURL=toolDefinitions-
|
|
541
|
+
//# sourceMappingURL=toolDefinitions-DFAxp3nr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-DFAxp3nr.js","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["/**\n * Tool definitions for the Sentry MCP server.\n *\n * Declarative definitions for all MCP tools that interface with Sentry's API.\n * Each tool definition includes its name, description, parameter schema, and\n * documentation for LLM consumption.\n *\n * @example Tool Definition Structure\n * ```typescript\n * {\n * name: \"tool_name\" as const,\n * description: [\n * \"Brief tool description.\",\n * \"\",\n * \"Use this tool when you need to:\",\n * \"- Specific use case 1\",\n * \"- Specific use case 2\",\n * ].join(\"\\n\"),\n * paramsSchema: {\n * organizationSlug: ParamOrganizationSlug,\n * optionalParam: ParamSchema.optional(),\n * },\n * }\n * ```\n */\n\n// 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 ParamIssueStatus,\n ParamAssignedTo,\n} from \"./schema\";\nimport { z } from \"zod\";\n\n/**\n * All MCP tool definitions for the Sentry server.\n *\n * Used by server.ts to register tools with the MCP server and by tools.ts\n * to validate parameters. Each definition includes name, description, and\n * Zod parameter schema.\n */\nexport const TOOL_DEFINITIONS = [\n {\n name: \"whoami\" as const,\n description: [\n \"Identify the authenticated user in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Get the user's name and email address.\",\n ].join(\"\\n\"),\n paramsSchema: {\n // No regionUrl parameter - user data must always come from the main API server\n },\n },\n {\n name: \"find_organizations\" as const,\n description: [\n \"Find organizations that the user has access to in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all organizations in Sentry\",\n \"- Find an organization's slug to aid other tool requests\",\n ].join(\"\\n\"),\n paramsSchema: {\n // No regionUrl parameter - user data and region lists must always come from the main API server\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_issue_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: \"update_issue\" as const,\n description: [\n \"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Resolve an issue that has been fixed\",\n \"- Assign an issue to a team member or team for investigation\",\n \"- Mark an issue as ignored to reduce noise\",\n \"- Reopen a resolved issue by setting status to 'unresolved'\",\n \"\",\n \"<examples>\",\n \"### Resolve an issue\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved')\",\n \"```\",\n \"\",\n \"### Assign an issue to a user\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', assignedTo='john.doe')\",\n \"```\",\n \"\",\n \"### Resolve an issue and assign it to yourself\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='resolved', assignedTo='me')\",\n \"```\",\n \"\",\n \"### Mark an issue as ignored\",\n \"\",\n \"```\",\n \"update_issue(organizationSlug='my-organization', issueId='PROJECT-123', status='ignored')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other required parameters and extract them from the URL.\",\n \"- At least one of `status` or `assignedTo` must be provided to update the issue.\",\n \"- Use 'me' as the value for `assignedTo` to assign the issue to the authenticated user.\",\n \"- Valid status values are: 'resolved', 'resolvedInNextRelease', 'unresolved', 'ignored'.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: ParamIssueUrl.optional(),\n status: ParamIssueStatus.optional(),\n assignedTo: ParamAssignedTo.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='duration')\",\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: \"update_project\" as const,\n description: [\n \"Update project settings in Sentry, such as name, slug, platform, and team assignment.\",\n \"\",\n \"Be careful when using this tool!\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Update a project's name or slug to fix onboarding mistakes\",\n \"- Change the platform assigned to a project\",\n \"- Update team assignment for a project\",\n \"\",\n \"<examples>\",\n \"### Update a project's name and slug\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='old-project', name='New Project Name', slug='new-project-slug')\",\n \"```\",\n \"\",\n \"### Assign a project to a different team\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', teamSlug='backend-team')\",\n \"```\",\n \"\",\n \"### Update platform\",\n \"\",\n \"```\",\n \"update_project(organizationSlug='my-organization', projectSlug='my-project', platform='python')\",\n \"```\",\n \"\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- If the user passes a parameter in the form of name/otherName, it's likely in the format of <organizationSlug>/<projectSlug>.\",\n \"- Team assignment is handled separately from other project settings\",\n \"- If any parameter is ambiguous, you should clarify with the user what they meant.\",\n \"- When updating the slug, the project will be accessible at the new slug after the update\",\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 new name for the project\")\n .optional(),\n slug: z\n .string()\n .toLowerCase()\n .trim()\n .describe(\"The new slug for the project (must be unique)\")\n .optional(),\n platform: ParamPlatform.optional(),\n teamSlug: ParamTeamSlug.optional().describe(\n \"The team to assign this project to. Note: this will replace the current team assignment.\",\n ),\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":";;;;;;;;;;;AAmDA,MAAa,mBAAmB;CAC9B;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,CAEb;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,CAEb;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK;IAAC;IAAa;IAAc;IAAS;GAAY,EAAC,CACvD,SACC,mJACD,CACA,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa,sBAAsB,UAAU;GAC7C,OAAO,EACJ,QAAQ,CACR,MAAM,CACN,SAAS,yDAAyD,CAClE,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GAEA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,uBAAuB,CAAC,UAAU;GACtE,UAAU,cAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,cAAc,UAAU;GAClC,QAAQ,iBAAiB,UAAU;GACnC,YAAY,gBAAgB,UAAU;EACvC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa,sBAAsB,UAAU;GAC7C,UAAU,EACP,QAAQ,CACR,MAAM,CACN,SAAS,wCAAwC,CACjD,UAAU;GACb,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,OAAQ,EAAC,CAC5B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,sFACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa,sBAAsB,UAAU;GAC7C,aAAa,iBAAiB,UAAU;GACxC,OAAO,WAAW,UAAU;GAC5B,QAAQ,EACL,KAAK,CAAC,aAAa,UAAW,EAAC,CAC/B,UAAU,CACV,QAAQ,YAAY,CACpB,SACC,8HACD;EACJ;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,kCAAkC;EACpE;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,UAAU;GACV,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SACC,oJACD;GACH,UAAU,cAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa;GACb,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SAAS,2DAA2D;EACxE;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa;GACb,MAAM,EACH,QAAQ,CACR,MAAM,CACN,SAAS,+BAA+B,CACxC,UAAU;GACb,MAAM,EACH,QAAQ,CACR,aAAa,CACb,MAAM,CACN,SAAS,gDAAgD,CACzD,UAAU;GACb,UAAU,cAAc,UAAU;GAClC,UAAU,cAAc,UAAU,CAAC,SACjC,2FACD;EACF;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB;GAClB,WAAW,eAAe,UAAU;GACpC,aAAa;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,cAAc,UAAU;EACnC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,cAAc,UAAU;EACnC;CACF;AACF"}
|
|
@@ -1,124 +1,209 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/toolDefinitions.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* All MCP tool definitions for the Sentry server.
|
|
7
|
+
*
|
|
8
|
+
* Used by server.ts to register tools with the MCP server and by tools.ts
|
|
9
|
+
* to validate parameters. Each definition includes name, description, and
|
|
10
|
+
* Zod parameter schema.
|
|
11
|
+
*/
|
|
4
12
|
declare const TOOL_DEFINITIONS: ({
|
|
13
|
+
name: "whoami";
|
|
14
|
+
description: string;
|
|
15
|
+
paramsSchema: {
|
|
16
|
+
organizationSlug?: undefined;
|
|
17
|
+
regionUrl?: undefined;
|
|
18
|
+
projectSlug?: undefined;
|
|
19
|
+
query?: undefined;
|
|
20
|
+
sortBy?: undefined;
|
|
21
|
+
issueId?: undefined;
|
|
22
|
+
eventId?: undefined;
|
|
23
|
+
issueUrl?: undefined;
|
|
24
|
+
status?: undefined;
|
|
25
|
+
assignedTo?: undefined;
|
|
26
|
+
filename?: undefined;
|
|
27
|
+
transaction?: undefined;
|
|
28
|
+
name?: undefined;
|
|
29
|
+
teamSlug?: undefined;
|
|
30
|
+
platform?: undefined;
|
|
31
|
+
slug?: undefined;
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
5
34
|
name: "find_organizations";
|
|
6
35
|
description: string;
|
|
7
|
-
paramsSchema
|
|
36
|
+
paramsSchema: {
|
|
37
|
+
organizationSlug?: undefined;
|
|
38
|
+
regionUrl?: undefined;
|
|
39
|
+
projectSlug?: undefined;
|
|
40
|
+
query?: undefined;
|
|
41
|
+
sortBy?: undefined;
|
|
42
|
+
issueId?: undefined;
|
|
43
|
+
eventId?: undefined;
|
|
44
|
+
issueUrl?: undefined;
|
|
45
|
+
status?: undefined;
|
|
46
|
+
assignedTo?: undefined;
|
|
47
|
+
filename?: undefined;
|
|
48
|
+
transaction?: undefined;
|
|
49
|
+
name?: undefined;
|
|
50
|
+
teamSlug?: undefined;
|
|
51
|
+
platform?: undefined;
|
|
52
|
+
slug?: undefined;
|
|
53
|
+
};
|
|
8
54
|
} | {
|
|
9
55
|
name: "find_teams";
|
|
10
56
|
description: string;
|
|
11
57
|
paramsSchema: {
|
|
12
58
|
organizationSlug: z.ZodString;
|
|
13
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
59
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
14
60
|
projectSlug?: undefined;
|
|
15
61
|
query?: undefined;
|
|
16
62
|
sortBy?: undefined;
|
|
17
63
|
issueId?: undefined;
|
|
18
64
|
eventId?: undefined;
|
|
19
65
|
issueUrl?: undefined;
|
|
66
|
+
status?: undefined;
|
|
67
|
+
assignedTo?: undefined;
|
|
20
68
|
filename?: undefined;
|
|
21
69
|
transaction?: undefined;
|
|
22
70
|
name?: undefined;
|
|
23
71
|
teamSlug?: undefined;
|
|
24
72
|
platform?: undefined;
|
|
73
|
+
slug?: undefined;
|
|
25
74
|
};
|
|
26
75
|
} | {
|
|
27
76
|
name: "find_projects";
|
|
28
77
|
description: string;
|
|
29
78
|
paramsSchema: {
|
|
30
79
|
organizationSlug: z.ZodString;
|
|
31
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
80
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
32
81
|
projectSlug?: undefined;
|
|
33
82
|
query?: undefined;
|
|
34
83
|
sortBy?: undefined;
|
|
35
84
|
issueId?: undefined;
|
|
36
85
|
eventId?: undefined;
|
|
37
86
|
issueUrl?: undefined;
|
|
87
|
+
status?: undefined;
|
|
88
|
+
assignedTo?: undefined;
|
|
38
89
|
filename?: undefined;
|
|
39
90
|
transaction?: undefined;
|
|
40
91
|
name?: undefined;
|
|
41
92
|
teamSlug?: undefined;
|
|
42
93
|
platform?: undefined;
|
|
94
|
+
slug?: undefined;
|
|
43
95
|
};
|
|
44
96
|
} | {
|
|
45
97
|
name: "find_issues";
|
|
46
98
|
description: string;
|
|
47
99
|
paramsSchema: {
|
|
48
100
|
organizationSlug: z.ZodString;
|
|
49
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
101
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
50
102
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
51
103
|
query: z.ZodOptional<z.ZodString>;
|
|
52
104
|
sortBy: z.ZodOptional<z.ZodEnum<["last_seen", "first_seen", "count", "userCount"]>>;
|
|
53
105
|
issueId?: undefined;
|
|
54
106
|
eventId?: undefined;
|
|
55
107
|
issueUrl?: undefined;
|
|
108
|
+
status?: undefined;
|
|
109
|
+
assignedTo?: undefined;
|
|
56
110
|
filename?: undefined;
|
|
57
111
|
transaction?: undefined;
|
|
58
112
|
name?: undefined;
|
|
59
113
|
teamSlug?: undefined;
|
|
60
114
|
platform?: undefined;
|
|
115
|
+
slug?: undefined;
|
|
61
116
|
};
|
|
62
117
|
} | {
|
|
63
118
|
name: "find_releases";
|
|
64
119
|
description: string;
|
|
65
120
|
paramsSchema: {
|
|
66
121
|
organizationSlug: z.ZodString;
|
|
67
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
122
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
68
123
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
69
124
|
query: z.ZodOptional<z.ZodString>;
|
|
70
125
|
sortBy?: undefined;
|
|
71
126
|
issueId?: undefined;
|
|
72
127
|
eventId?: undefined;
|
|
73
128
|
issueUrl?: undefined;
|
|
129
|
+
status?: undefined;
|
|
130
|
+
assignedTo?: undefined;
|
|
74
131
|
filename?: undefined;
|
|
75
132
|
transaction?: undefined;
|
|
76
133
|
name?: undefined;
|
|
77
134
|
teamSlug?: undefined;
|
|
78
135
|
platform?: undefined;
|
|
136
|
+
slug?: undefined;
|
|
79
137
|
};
|
|
80
138
|
} | {
|
|
81
139
|
name: "find_tags";
|
|
82
140
|
description: string;
|
|
83
141
|
paramsSchema: {
|
|
84
142
|
organizationSlug: z.ZodString;
|
|
85
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
143
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
86
144
|
projectSlug?: undefined;
|
|
87
145
|
query?: undefined;
|
|
88
146
|
sortBy?: undefined;
|
|
89
147
|
issueId?: undefined;
|
|
90
148
|
eventId?: undefined;
|
|
91
149
|
issueUrl?: undefined;
|
|
150
|
+
status?: undefined;
|
|
151
|
+
assignedTo?: undefined;
|
|
92
152
|
filename?: undefined;
|
|
93
153
|
transaction?: undefined;
|
|
94
154
|
name?: undefined;
|
|
95
155
|
teamSlug?: undefined;
|
|
96
156
|
platform?: undefined;
|
|
157
|
+
slug?: undefined;
|
|
97
158
|
};
|
|
98
159
|
} | {
|
|
99
160
|
name: "get_issue_details";
|
|
100
161
|
description: string;
|
|
101
162
|
paramsSchema: {
|
|
102
163
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
103
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
164
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
104
165
|
issueId: z.ZodOptional<z.ZodString>;
|
|
105
166
|
eventId: z.ZodOptional<z.ZodString>;
|
|
106
167
|
issueUrl: z.ZodOptional<z.ZodString>;
|
|
107
168
|
projectSlug?: undefined;
|
|
108
169
|
query?: undefined;
|
|
109
170
|
sortBy?: undefined;
|
|
171
|
+
status?: undefined;
|
|
172
|
+
assignedTo?: undefined;
|
|
173
|
+
filename?: undefined;
|
|
174
|
+
transaction?: undefined;
|
|
175
|
+
name?: undefined;
|
|
176
|
+
teamSlug?: undefined;
|
|
177
|
+
platform?: undefined;
|
|
178
|
+
slug?: undefined;
|
|
179
|
+
};
|
|
180
|
+
} | {
|
|
181
|
+
name: "update_issue";
|
|
182
|
+
description: string;
|
|
183
|
+
paramsSchema: {
|
|
184
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
185
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
186
|
+
issueId: z.ZodOptional<z.ZodString>;
|
|
187
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
188
|
+
status: z.ZodOptional<z.ZodEnum<["resolved", "resolvedInNextRelease", "unresolved", "ignored"]>>;
|
|
189
|
+
assignedTo: z.ZodOptional<z.ZodString>;
|
|
190
|
+
projectSlug?: undefined;
|
|
191
|
+
query?: undefined;
|
|
192
|
+
sortBy?: undefined;
|
|
193
|
+
eventId?: undefined;
|
|
110
194
|
filename?: undefined;
|
|
111
195
|
transaction?: undefined;
|
|
112
196
|
name?: undefined;
|
|
113
197
|
teamSlug?: undefined;
|
|
114
198
|
platform?: undefined;
|
|
199
|
+
slug?: undefined;
|
|
115
200
|
};
|
|
116
201
|
} | {
|
|
117
202
|
name: "find_errors";
|
|
118
203
|
description: string;
|
|
119
204
|
paramsSchema: {
|
|
120
205
|
organizationSlug: z.ZodString;
|
|
121
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
206
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
122
207
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
123
208
|
filename: z.ZodOptional<z.ZodString>;
|
|
124
209
|
transaction: z.ZodOptional<z.ZodString>;
|
|
@@ -127,16 +212,19 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
127
212
|
issueId?: undefined;
|
|
128
213
|
eventId?: undefined;
|
|
129
214
|
issueUrl?: undefined;
|
|
215
|
+
status?: undefined;
|
|
216
|
+
assignedTo?: undefined;
|
|
130
217
|
name?: undefined;
|
|
131
218
|
teamSlug?: undefined;
|
|
132
219
|
platform?: undefined;
|
|
220
|
+
slug?: undefined;
|
|
133
221
|
};
|
|
134
222
|
} | {
|
|
135
223
|
name: "find_transactions";
|
|
136
224
|
description: string;
|
|
137
225
|
paramsSchema: {
|
|
138
226
|
organizationSlug: z.ZodString;
|
|
139
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
227
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
140
228
|
projectSlug: z.ZodOptional<z.ZodString>;
|
|
141
229
|
transaction: z.ZodOptional<z.ZodString>;
|
|
142
230
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -144,17 +232,20 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
144
232
|
issueId?: undefined;
|
|
145
233
|
eventId?: undefined;
|
|
146
234
|
issueUrl?: undefined;
|
|
235
|
+
status?: undefined;
|
|
236
|
+
assignedTo?: undefined;
|
|
147
237
|
filename?: undefined;
|
|
148
238
|
name?: undefined;
|
|
149
239
|
teamSlug?: undefined;
|
|
150
240
|
platform?: undefined;
|
|
241
|
+
slug?: undefined;
|
|
151
242
|
};
|
|
152
243
|
} | {
|
|
153
244
|
name: "create_team";
|
|
154
245
|
description: string;
|
|
155
246
|
paramsSchema: {
|
|
156
247
|
organizationSlug: z.ZodString;
|
|
157
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
248
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
158
249
|
name: z.ZodString;
|
|
159
250
|
projectSlug?: undefined;
|
|
160
251
|
query?: undefined;
|
|
@@ -162,17 +253,20 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
162
253
|
issueId?: undefined;
|
|
163
254
|
eventId?: undefined;
|
|
164
255
|
issueUrl?: undefined;
|
|
256
|
+
status?: undefined;
|
|
257
|
+
assignedTo?: undefined;
|
|
165
258
|
filename?: undefined;
|
|
166
259
|
transaction?: undefined;
|
|
167
260
|
teamSlug?: undefined;
|
|
168
261
|
platform?: undefined;
|
|
262
|
+
slug?: undefined;
|
|
169
263
|
};
|
|
170
264
|
} | {
|
|
171
265
|
name: "create_project";
|
|
172
266
|
description: string;
|
|
173
267
|
paramsSchema: {
|
|
174
268
|
organizationSlug: z.ZodString;
|
|
175
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
269
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
176
270
|
teamSlug: z.ZodString;
|
|
177
271
|
name: z.ZodString;
|
|
178
272
|
platform: z.ZodOptional<z.ZodString>;
|
|
@@ -182,15 +276,18 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
182
276
|
issueId?: undefined;
|
|
183
277
|
eventId?: undefined;
|
|
184
278
|
issueUrl?: undefined;
|
|
279
|
+
status?: undefined;
|
|
280
|
+
assignedTo?: undefined;
|
|
185
281
|
filename?: undefined;
|
|
186
282
|
transaction?: undefined;
|
|
283
|
+
slug?: undefined;
|
|
187
284
|
};
|
|
188
285
|
} | {
|
|
189
286
|
name: "create_dsn";
|
|
190
287
|
description: string;
|
|
191
288
|
paramsSchema: {
|
|
192
289
|
organizationSlug: z.ZodString;
|
|
193
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
290
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
194
291
|
projectSlug: z.ZodString;
|
|
195
292
|
name: z.ZodString;
|
|
196
293
|
query?: undefined;
|
|
@@ -198,67 +295,100 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
198
295
|
issueId?: undefined;
|
|
199
296
|
eventId?: undefined;
|
|
200
297
|
issueUrl?: undefined;
|
|
298
|
+
status?: undefined;
|
|
299
|
+
assignedTo?: undefined;
|
|
201
300
|
filename?: undefined;
|
|
202
301
|
transaction?: undefined;
|
|
203
302
|
teamSlug?: undefined;
|
|
204
303
|
platform?: undefined;
|
|
304
|
+
slug?: undefined;
|
|
305
|
+
};
|
|
306
|
+
} | {
|
|
307
|
+
name: "update_project";
|
|
308
|
+
description: string;
|
|
309
|
+
paramsSchema: {
|
|
310
|
+
organizationSlug: z.ZodString;
|
|
311
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
312
|
+
projectSlug: z.ZodString;
|
|
313
|
+
name: z.ZodOptional<z.ZodString>;
|
|
314
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
315
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
316
|
+
teamSlug: z.ZodOptional<z.ZodString>;
|
|
317
|
+
query?: undefined;
|
|
318
|
+
sortBy?: undefined;
|
|
319
|
+
issueId?: undefined;
|
|
320
|
+
eventId?: undefined;
|
|
321
|
+
issueUrl?: undefined;
|
|
322
|
+
status?: undefined;
|
|
323
|
+
assignedTo?: undefined;
|
|
324
|
+
filename?: undefined;
|
|
325
|
+
transaction?: undefined;
|
|
205
326
|
};
|
|
206
327
|
} | {
|
|
207
328
|
name: "find_dsns";
|
|
208
329
|
description: string;
|
|
209
330
|
paramsSchema: {
|
|
210
331
|
organizationSlug: z.ZodString;
|
|
211
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
332
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
212
333
|
projectSlug: z.ZodString;
|
|
213
334
|
query?: undefined;
|
|
214
335
|
sortBy?: undefined;
|
|
215
336
|
issueId?: undefined;
|
|
216
337
|
eventId?: undefined;
|
|
217
338
|
issueUrl?: undefined;
|
|
339
|
+
status?: undefined;
|
|
340
|
+
assignedTo?: undefined;
|
|
218
341
|
filename?: undefined;
|
|
219
342
|
transaction?: undefined;
|
|
220
343
|
name?: undefined;
|
|
221
344
|
teamSlug?: undefined;
|
|
222
345
|
platform?: undefined;
|
|
346
|
+
slug?: undefined;
|
|
223
347
|
};
|
|
224
348
|
} | {
|
|
225
349
|
name: "begin_seer_issue_fix";
|
|
226
350
|
description: string;
|
|
227
351
|
paramsSchema: {
|
|
228
352
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
229
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
353
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
230
354
|
issueId: z.ZodOptional<z.ZodString>;
|
|
231
355
|
issueUrl: z.ZodOptional<z.ZodString>;
|
|
232
356
|
projectSlug?: undefined;
|
|
233
357
|
query?: undefined;
|
|
234
358
|
sortBy?: undefined;
|
|
235
359
|
eventId?: undefined;
|
|
360
|
+
status?: undefined;
|
|
361
|
+
assignedTo?: undefined;
|
|
236
362
|
filename?: undefined;
|
|
237
363
|
transaction?: undefined;
|
|
238
364
|
name?: undefined;
|
|
239
365
|
teamSlug?: undefined;
|
|
240
366
|
platform?: undefined;
|
|
367
|
+
slug?: undefined;
|
|
241
368
|
};
|
|
242
369
|
} | {
|
|
243
370
|
name: "get_seer_issue_fix_status";
|
|
244
371
|
description: string;
|
|
245
372
|
paramsSchema: {
|
|
246
373
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
247
|
-
regionUrl: z.ZodOptional<z.ZodString
|
|
374
|
+
regionUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
248
375
|
issueId: z.ZodOptional<z.ZodString>;
|
|
249
376
|
issueUrl: z.ZodOptional<z.ZodString>;
|
|
250
377
|
projectSlug?: undefined;
|
|
251
378
|
query?: undefined;
|
|
252
379
|
sortBy?: undefined;
|
|
253
380
|
eventId?: undefined;
|
|
381
|
+
status?: undefined;
|
|
382
|
+
assignedTo?: undefined;
|
|
254
383
|
filename?: undefined;
|
|
255
384
|
transaction?: undefined;
|
|
256
385
|
name?: undefined;
|
|
257
386
|
teamSlug?: undefined;
|
|
258
387
|
platform?: undefined;
|
|
388
|
+
slug?: undefined;
|
|
259
389
|
};
|
|
260
|
-
})[];
|
|
261
|
-
|
|
390
|
+
})[];
|
|
262
391
|
//# sourceMappingURL=toolDefinitions.d.ts.map
|
|
263
|
-
|
|
264
|
-
|
|
392
|
+
//#endregion
|
|
393
|
+
export { TOOL_DEFINITIONS };
|
|
394
|
+
//# sourceMappingURL=toolDefinitions-Ipvr4Acw.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-Ipvr4Acw.d.cts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAmDa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAyjBZ,CAAA,CAAA"}
|
package/dist/toolDefinitions.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('./schema-
|
|
2
|
-
const require_toolDefinitions = require('./toolDefinitions-
|
|
1
|
+
require('./schema-BTfISwFu.cjs');
|
|
2
|
+
const require_toolDefinitions = require('./toolDefinitions-CUegGcWU.cjs');
|
|
3
3
|
|
|
4
|
-
exports.TOOL_DEFINITIONS = require_toolDefinitions.TOOL_DEFINITIONS
|
|
4
|
+
exports.TOOL_DEFINITIONS = require_toolDefinitions.TOOL_DEFINITIONS;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TOOL_DEFINITIONS } from "./toolDefinitions-
|
|
1
|
+
import { TOOL_DEFINITIONS } from "./toolDefinitions-Ipvr4Acw.cjs";
|
|
2
2
|
export { TOOL_DEFINITIONS };
|