@sentry/mcp-server 0.2.1 → 0.3.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 -4
- package/dist/api-client/client.d.ts +3 -4
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/client.test.cjs +4 -4
- package/dist/api-client/client.test.js +4 -4
- package/dist/api-client/index.cjs +2 -2
- package/dist/api-client/index.d.cts +3 -4
- package/dist/api-client/index.d.ts +4 -5
- package/dist/api-client/index.js +2 -2
- package/dist/api-client/schema.cjs +1 -1
- package/dist/api-client/schema.d.cts +1 -2
- package/dist/api-client/schema.d.ts +1 -2
- package/dist/api-client/schema.js +1 -1
- package/dist/api-client/types.d.cts +2 -3
- package/dist/api-client/types.d.ts +2 -3
- package/dist/{client-D1XjYhij.js → client-DxiTKQNA.js} +2 -2
- package/dist/{client-D1XjYhij.js.map → client-DxiTKQNA.js.map} +1 -1
- package/dist/{client-BlG0jPGS.cjs → client-vbeGrziA.cjs} +2 -2
- package/dist/{client-BlG0jPGS.cjs.map → client-vbeGrziA.cjs.map} +1 -1
- package/dist/client.d-BHQtkq-8.d.ts +162 -0
- package/dist/client.d-BHQtkq-8.d.ts.map +1 -0
- package/dist/client.d-Bpmxknxb.d.cts +162 -0
- package/dist/client.d-Bpmxknxb.d.cts.map +1 -0
- package/dist/{dist-B914BQU9.cjs → dist-3oa5SxPp.cjs} +1 -1
- package/dist/{dist-B914BQU9.cjs.map → dist-3oa5SxPp.cjs.map} +1 -1
- package/dist/{dist-DJoL0rVQ.js → dist-Bewd5-7a.js} +1 -1
- package/dist/{dist-DJoL0rVQ.js.map → dist-Bewd5-7a.js.map} +1 -1
- package/dist/index.cjs +33 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +33 -15
- package/dist/index.js.map +1 -1
- package/dist/internal/formatting.d.cts +3 -3
- package/dist/internal/formatting.d.cts.map +1 -0
- package/dist/internal/formatting.d.ts +4 -4
- package/dist/internal/formatting.d.ts.map +1 -1
- package/dist/internal/issue-helpers.d.cts +4 -7
- package/dist/internal/issue-helpers.d.cts.map +1 -0
- package/dist/internal/issue-helpers.d.ts +4 -7
- package/dist/internal/issue-helpers.d.ts.map +1 -1
- package/dist/internal/issue-helpers.test.cjs +2 -2
- package/dist/internal/issue-helpers.test.js +2 -2
- package/dist/logging.d.cts.map +1 -0
- package/dist/logging.d.ts.map +1 -1
- package/dist/{magic-string.es-qySpjS4V.js → magic-string.es-DY8GVHw9.js} +1 -1
- package/dist/{magic-string.es-qySpjS4V.js.map → magic-string.es-DY8GVHw9.js.map} +1 -1
- package/dist/{magic-string.es-COkPNEcb.cjs → magic-string.es-m-ldRjOa.cjs} +1 -1
- package/dist/{magic-string.es-COkPNEcb.cjs.map → magic-string.es-m-ldRjOa.cjs.map} +1 -1
- package/dist/promptDefinitions.d-CCDURYp_.d.cts +14 -0
- package/dist/promptDefinitions.d-CCDURYp_.d.cts.map +1 -0
- package/dist/promptDefinitions.d-DTdCommR.d.ts +14 -0
- package/dist/promptDefinitions.d-DTdCommR.d.ts.map +1 -0
- package/dist/promptDefinitions.d.cts +1 -2
- package/dist/promptDefinitions.d.ts +1 -2
- package/dist/prompts.d.cts +16 -15
- package/dist/prompts.d.cts.map +1 -0
- package/dist/prompts.d.ts +16 -15
- package/dist/prompts.d.ts.map +1 -1
- package/dist/resources.d.cts +5 -5
- package/dist/resources.d.cts.map +1 -0
- package/dist/resources.d.ts +5 -5
- package/dist/resources.d.ts.map +1 -1
- package/dist/{schema-CyHM0GZH.cjs → schema-C5yrrdxi.cjs} +2 -5
- package/dist/schema-C5yrrdxi.cjs.map +1 -0
- package/dist/{schema-Bvva80Pn.js → schema-RGcdX0Wv.js} +2 -5
- package/dist/schema-RGcdX0Wv.js.map +1 -0
- package/dist/schema.d-ByCtugKR.d.ts +4973 -0
- package/dist/schema.d-ByCtugKR.d.ts.map +1 -0
- package/dist/schema.d-FmRW0syQ.d.cts +4973 -0
- package/dist/schema.d-FmRW0syQ.d.cts.map +1 -0
- package/dist/schema.d.cts.map +1 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/{server-DY8wjV9H.cjs → server-B34pA5oS.cjs} +4 -4
- package/dist/{server-DY8wjV9H.cjs.map → server-B34pA5oS.cjs.map} +1 -1
- package/dist/{server-DuRPgdH4.js → server-COaB88ia.js} +4 -4
- package/dist/{server-DuRPgdH4.js.map → server-COaB88ia.js.map} +1 -1
- package/dist/server.cjs +5 -5
- package/dist/server.d.cts +11 -7
- package/dist/server.d.cts.map +1 -0
- package/dist/server.d.ts +11 -7
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +5 -5
- package/dist/{stdio-Ce5DHKZ4.js → stdio-DTuB-jKa.js} +2 -2
- package/dist/{stdio-Ce5DHKZ4.js.map → stdio-DTuB-jKa.js.map} +1 -1
- package/dist/{stdio-CSJMThag.cjs → stdio-DaxI6M_M.cjs} +2 -2
- package/dist/{stdio-CSJMThag.cjs.map → stdio-DaxI6M_M.cjs.map} +1 -1
- package/dist/test-setup.cjs +37 -37
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +37 -37
- package/dist/test-setup.js.map +1 -1
- package/dist/{toolDefinitions-DS7wXdsP.cjs → toolDefinitions-BJ0cyDce.cjs} +6 -6
- package/dist/toolDefinitions-BJ0cyDce.cjs.map +1 -0
- package/dist/{toolDefinitions-CMNKyt4H.js → toolDefinitions-L20Lv3AW.js} +7 -7
- package/dist/{toolDefinitions-CMNKyt4H.js.map → toolDefinitions-L20Lv3AW.js.map} +1 -1
- package/dist/toolDefinitions.cjs +1 -1
- package/dist/toolDefinitions.d-9LTzR2LX.d.cts +250 -0
- package/dist/toolDefinitions.d-9LTzR2LX.d.cts.map +1 -0
- package/dist/toolDefinitions.d-CbYRvBJ1.d.ts +250 -0
- package/dist/toolDefinitions.d-CbYRvBJ1.d.ts.map +1 -0
- package/dist/toolDefinitions.d.cts +1 -2
- package/dist/toolDefinitions.d.ts +1 -2
- package/dist/toolDefinitions.js +1 -1
- package/dist/toolDefinitions.test.cjs +2 -2
- package/dist/toolDefinitions.test.js +2 -2
- package/dist/{tools-BfTTqLNG.cjs → tools-BRttVOoi.cjs} +5 -5
- package/dist/tools-BRttVOoi.cjs.map +1 -0
- package/dist/{tools-qkapmf3p.js → tools-Z1MCuRZ8.js} +5 -5
- package/dist/tools-Z1MCuRZ8.js.map +1 -0
- package/dist/tools.cjs +3 -3
- package/dist/tools.d.cts +258 -202
- package/dist/tools.d.cts.map +1 -0
- package/dist/tools.d.ts +258 -202
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +3 -3
- package/dist/tools.test.cjs +5 -5
- package/dist/tools.test.js +5 -5
- package/dist/transports/stdio.cjs +6 -6
- package/dist/transports/stdio.d.cts +3 -3
- package/dist/transports/stdio.d.cts.map +1 -0
- package/dist/transports/stdio.d.ts +3 -3
- package/dist/transports/stdio.d.ts.map +1 -1
- package/dist/transports/stdio.js +6 -6
- package/dist/{types.d-B8gSnrcY.d.cts → types.d-Cel0nqay.d.cts} +14 -20
- package/dist/types.d-Cel0nqay.d.cts.map +1 -0
- package/dist/{types.d-8fZD-L6R.d.ts → types.d-DlgZjn1W.d.ts} +2 -2
- package/dist/types.d-DlgZjn1W.d.ts.map +1 -0
- package/dist/{types.d-aQMIov7s.d.cts → types.d-oEf8CZVd.d.cts} +2 -2
- package/dist/types.d-oEf8CZVd.d.cts.map +1 -0
- package/dist/{types.d-Bj1fPi3b.d.ts → types.d-q6emF6li.d.ts} +14 -20
- package/dist/types.d-q6emF6li.d.ts.map +1 -0
- package/dist/types.d.cts +3 -4
- package/dist/types.d.ts +3 -4
- package/dist/version-B7TqnRB0.cjs +13 -0
- package/dist/version-B7TqnRB0.cjs.map +1 -0
- package/dist/version-DpGZwWmP.js +6 -0
- package/dist/version-DpGZwWmP.js.map +1 -0
- package/dist/version.cjs +3 -0
- package/dist/version.d.cts +6 -0
- package/dist/version.d.cts.map +1 -0
- package/dist/version.d.ts +6 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +3 -0
- package/dist/{vi.ClIskdbk-CiLaali_.js → vi.ClIskdbk-BKalcjBt.js} +7 -7
- package/dist/{vi.ClIskdbk-CiLaali_.js.map → vi.ClIskdbk-BKalcjBt.js.map} +1 -1
- package/dist/{vi.ClIskdbk-BhK8y4UO.cjs → vi.ClIskdbk-DKEVY0E0.cjs} +7 -7
- package/dist/{vi.ClIskdbk-BhK8y4UO.cjs.map → vi.ClIskdbk-DKEVY0E0.cjs.map} +1 -1
- package/package.json +14 -4
- package/dist/client.d-5v3p8aTc.d.cts +0 -108
- package/dist/client.d-Bn_APKcl.d.ts +0 -108
- package/dist/client.d-Bn_APKcl.d.ts.map +0 -1
- package/dist/promptDefinitions.d-X_QALSRc.d.cts +0 -15
- package/dist/promptDefinitions.d-qzT7TH_Z.d.ts +0 -15
- package/dist/promptDefinitions.d-qzT7TH_Z.d.ts.map +0 -1
- package/dist/schema-Bvva80Pn.js.map +0 -1
- package/dist/schema-CyHM0GZH.cjs.map +0 -1
- package/dist/schema.d-CmSYiCnk.d.cts +0 -4978
- package/dist/schema.d-CyRxxXr0.d.ts +0 -4978
- package/dist/schema.d-CyRxxXr0.d.ts.map +0 -1
- package/dist/toolDefinitions-DS7wXdsP.cjs.map +0 -1
- package/dist/toolDefinitions.d-CIXKiX81.d.cts +0 -252
- package/dist/toolDefinitions.d-DkYVHG7Y.d.ts +0 -252
- package/dist/toolDefinitions.d-DkYVHG7Y.d.ts.map +0 -1
- package/dist/tools-BfTTqLNG.cjs.map +0 -1
- package/dist/tools-qkapmf3p.js.map +0 -1
- package/dist/types.d-8fZD-L6R.d.ts.map +0 -1
- package/dist/types.d-Bj1fPi3b.d.ts.map +0 -1
- /package/dist/{index.d-Db2MND9s.d.ts → index.d-kYckfDWv.d.ts} +0 -0
|
@@ -283,7 +283,7 @@ const TOOL_DEFINITIONS = [
|
|
|
283
283
|
].join("\n"),
|
|
284
284
|
paramsSchema: {
|
|
285
285
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
286
|
-
teamSlug:
|
|
286
|
+
teamSlug: zod.z.string().describe("The team's slug."),
|
|
287
287
|
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."),
|
|
288
288
|
platform: require_schema.ParamPlatform.optional()
|
|
289
289
|
}
|
|
@@ -291,7 +291,7 @@ const TOOL_DEFINITIONS = [
|
|
|
291
291
|
{
|
|
292
292
|
name: "create_dsn",
|
|
293
293
|
description: [
|
|
294
|
-
"Create a new DSN for a specific project.",
|
|
294
|
+
"Create a new Sentry DSN for a specific project.",
|
|
295
295
|
"",
|
|
296
296
|
"Use this tool when you need to:",
|
|
297
297
|
"- Create a new DSN for a specific project",
|
|
@@ -312,14 +312,14 @@ const TOOL_DEFINITIONS = [
|
|
|
312
312
|
].join("\n"),
|
|
313
313
|
paramsSchema: {
|
|
314
314
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
315
|
-
projectSlug:
|
|
315
|
+
projectSlug: zod.z.string().describe("The project's slug."),
|
|
316
316
|
name: zod.z.string().describe("The name of the DSN to create.")
|
|
317
317
|
}
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
name: "list_dsns",
|
|
321
321
|
description: [
|
|
322
|
-
"List all DSNs for a specific project.",
|
|
322
|
+
"List all Sentry DSNs for a specific project.",
|
|
323
323
|
"",
|
|
324
324
|
"Use this tool when you need to:",
|
|
325
325
|
"- Retrieve a SENTRY_DSN for a specific project",
|
|
@@ -331,7 +331,7 @@ const TOOL_DEFINITIONS = [
|
|
|
331
331
|
].join("\n"),
|
|
332
332
|
paramsSchema: {
|
|
333
333
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
334
|
-
projectSlug:
|
|
334
|
+
projectSlug: zod.z.string().describe("The project's slug.")
|
|
335
335
|
}
|
|
336
336
|
},
|
|
337
337
|
{
|
|
@@ -404,4 +404,4 @@ Object.defineProperty(exports, 'TOOL_DEFINITIONS', {
|
|
|
404
404
|
return TOOL_DEFINITIONS;
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
|
-
//# sourceMappingURL=toolDefinitions-
|
|
407
|
+
//# sourceMappingURL=toolDefinitions-BJ0cyDce.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-BJ0cyDce.cjs","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["// TODO: this gets imported by the client code and thus is separated from server code\n// to avoid bundling issues. We'd like to find a better solution that isnt so brittle and keeps this code co-located w/ its tool calls.\nimport {\n ParamOrganizationSlug,\n ParamIssueShortId,\n ParamTeamSlug,\n ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n} from \"./schema\";\nimport { z } from \"zod\";\n\nexport const TOOL_DEFINITIONS = [\n {\n name: \"list_organizations\" as const,\n description: [\n \"List all 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: \"list_teams\" as const,\n description: [\n \"List all 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 an team's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n },\n },\n {\n name: \"list_projects\" as const,\n description: [\n \"Retrieve a list of projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find an project's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n },\n },\n {\n name: \"list_issues\" as const,\n description: [\n \"List all 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 `search_errors()` or `search_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"list_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 \"list_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 \"- 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.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.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: \"list_releases\" as const,\n description: [\n \"List all 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 \"<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 `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug.optional(),\n },\n },\n {\n name: \"list_tags\" as const,\n description: [\n \"List all tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in searches\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n },\n },\n {\n name: \"get_issue_summary\" as const,\n description: [\n \"Retrieve a summary of an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View a summary of an issue in Sentry\",\n \"\",\n \"If the issue is an error, or you want additional information like the stacktrace, you should use `get_issue_details()` tool instead.\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .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 \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"search_errors\" as const,\n description: [\n \"Query Sentry for errors 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 \"search_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"search_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 `list_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 `list_issues()` tool\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug.optional(),\n filename: z\n .string()\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: \"search_transactions\" as const,\n description: [\n \"Query Sentry for transactions 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 \"search_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 `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug.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 \"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.optional(),\n name: z.string().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 \"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.optional(),\n teamSlug: z.string().describe(\"The team's slug.\"),\n name: z\n .string()\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 \"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='Default')\",\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.optional(),\n projectSlug: z.string().describe(\"The project's slug.\"),\n name: z.string().describe(\"The name of the DSN to create.\"),\n },\n },\n {\n name: \"list_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 `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: z.string().describe(\"The project's slug.\"),\n },\n },\n {\n name: \"begin_autofix\" as const,\n description: [\n \"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_autofix_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_autofix(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Always check to see if an autofix is in progress for before calling this tool by using `get_autofix_status()`.\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"get_autofix_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_autofix_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 \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n];\n"],"mappings":";;;;;;AAaA,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;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,kBAAkB,qCAAsB,UAAU,CACnD;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,kBAAkB,qCAAsB,UAAU,CACnD;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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,aAAa,gCAAiB,UAAU;EACzC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,kBAAkB,qCAAsB,UAAU,CACnD;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,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;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,aAAa,gCAAiB,UAAU;GACxC,UAAU,MACP,QAAQ,CACR,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,kBAAkB,qCAAsB,UAAU;GAClD,aAAa,gCAAiB,UAAU;GACxC,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,MAAM,MAAE,QAAQ,CAAC,SAAS,kCAAkC;EAC7D;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,UAAU,MAAE,QAAQ,CAAC,SAAS,mBAAmB;GACjD,MAAM,MACH,QAAQ,CACR,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,aAAa,MAAE,QAAQ,CAAC,SAAS,sBAAsB;GACvD,MAAM,MAAE,QAAQ,CAAC,SAAS,iCAAiC;EAC5D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,aAAa,MAAE,QAAQ,CAAC,SAAS,sBAAsB;EACxD;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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,SAAS,iCAAkB,UAAU;GACrC,UAAU,MACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParamIssueShortId, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamQuery,
|
|
1
|
+
import { ParamIssueShortId, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamQuery, ParamTransaction } from "./schema-k04PdSCK.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/toolDefinitions.ts
|
|
@@ -281,7 +281,7 @@ const TOOL_DEFINITIONS = [
|
|
|
281
281
|
].join("\n"),
|
|
282
282
|
paramsSchema: {
|
|
283
283
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
284
|
-
teamSlug:
|
|
284
|
+
teamSlug: z.string().describe("The team's slug."),
|
|
285
285
|
name: z.string().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
|
|
286
286
|
platform: ParamPlatform.optional()
|
|
287
287
|
}
|
|
@@ -289,7 +289,7 @@ const TOOL_DEFINITIONS = [
|
|
|
289
289
|
{
|
|
290
290
|
name: "create_dsn",
|
|
291
291
|
description: [
|
|
292
|
-
"Create a new DSN for a specific project.",
|
|
292
|
+
"Create a new Sentry DSN for a specific project.",
|
|
293
293
|
"",
|
|
294
294
|
"Use this tool when you need to:",
|
|
295
295
|
"- Create a new DSN for a specific project",
|
|
@@ -310,14 +310,14 @@ const TOOL_DEFINITIONS = [
|
|
|
310
310
|
].join("\n"),
|
|
311
311
|
paramsSchema: {
|
|
312
312
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
313
|
-
projectSlug:
|
|
313
|
+
projectSlug: z.string().describe("The project's slug."),
|
|
314
314
|
name: z.string().describe("The name of the DSN to create.")
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
name: "list_dsns",
|
|
319
319
|
description: [
|
|
320
|
-
"List all DSNs for a specific project.",
|
|
320
|
+
"List all Sentry DSNs for a specific project.",
|
|
321
321
|
"",
|
|
322
322
|
"Use this tool when you need to:",
|
|
323
323
|
"- Retrieve a SENTRY_DSN for a specific project",
|
|
@@ -329,7 +329,7 @@ const TOOL_DEFINITIONS = [
|
|
|
329
329
|
].join("\n"),
|
|
330
330
|
paramsSchema: {
|
|
331
331
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
332
|
-
projectSlug:
|
|
332
|
+
projectSlug: z.string().describe("The project's slug.")
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
335
|
{
|
|
@@ -397,4 +397,4 @@ const TOOL_DEFINITIONS = [
|
|
|
397
397
|
|
|
398
398
|
//#endregion
|
|
399
399
|
export { TOOL_DEFINITIONS };
|
|
400
|
-
//# sourceMappingURL=toolDefinitions-
|
|
400
|
+
//# sourceMappingURL=toolDefinitions-L20Lv3AW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolDefinitions-CMNKyt4H.js","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["// TODO: this gets imported by the client code and thus is separated from server code\n// to avoid bundling issues. We'd like to find a better solution that isnt so brittle and keeps this code co-located w/ its tool calls.\nimport {\n ParamOrganizationSlug,\n ParamIssueShortId,\n ParamTeamSlug,\n ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n} from \"./schema\";\nimport { z } from \"zod\";\n\nexport const TOOL_DEFINITIONS = [\n {\n name: \"list_organizations\" as const,\n description: [\n \"List all 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: \"list_teams\" as const,\n description: [\n \"List all 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 an team's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n },\n },\n {\n name: \"list_projects\" as const,\n description: [\n \"Retrieve a list of projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find an project's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n },\n },\n {\n name: \"list_issues\" as const,\n description: [\n \"List all 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 `search_errors()` or `search_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"list_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 \"list_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 \"- 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.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.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: \"list_releases\" as const,\n description: [\n \"List all 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 \"<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 `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug.optional(),\n },\n },\n {\n name: \"list_tags\" as const,\n description: [\n \"List all tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in searches\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n },\n },\n {\n name: \"get_issue_summary\" as const,\n description: [\n \"Retrieve a summary of an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View a summary of an issue in Sentry\",\n \"\",\n \"If the issue is an error, or you want additional information like the stacktrace, you should use `get_issue_details()` tool instead.\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .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 \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"search_errors\" as const,\n description: [\n \"Query Sentry for errors 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 \"search_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"search_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 `list_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 `list_issues()` tool\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug.optional(),\n filename: z\n .string()\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: \"search_transactions\" as const,\n description: [\n \"Query Sentry for transactions 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 \"search_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 `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug.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 \"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.optional(),\n name: z.string().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 \"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.optional(),\n teamSlug: ParamTeamSlug,\n name: z\n .string()\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 DSN for a specific project.\",\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='Default')\",\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.optional(),\n projectSlug: ParamProjectSlug,\n name: z.string().describe(\"The name of the DSN to create.\"),\n },\n },\n {\n name: \"list_dsns\" as const,\n description: [\n \"List all 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 `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug,\n },\n },\n {\n name: \"begin_autofix\" as const,\n description: [\n \"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_autofix_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_autofix(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Always check to see if an autofix is in progress for before calling this tool by using `get_autofix_status()`.\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"get_autofix_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_autofix_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 \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n];\n"],"mappings":";;;;AAaA,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;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,kBAAkB,sBAAsB,UAAU,CACnD;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,kBAAkB,sBAAsB,UAAU,CACnD;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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,aAAa,iBAAiB,UAAU;EACzC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,kBAAkB,sBAAsB,UAAU,CACnD;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,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;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,aAAa,iBAAiB,UAAU;GACxC,UAAU,EACP,QAAQ,CACR,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,sBAAsB,UAAU;GAClD,aAAa,iBAAiB,UAAU;GACxC,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,MAAM,EAAE,QAAQ,CAAC,SAAS,kCAAkC;EAC7D;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,UAAU;GACV,MAAM,EACH,QAAQ,CACR,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,aAAa;GACb,MAAM,EAAE,QAAQ,CAAC,SAAS,iCAAiC;EAC5D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,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;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"toolDefinitions-L20Lv3AW.js","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["// TODO: this gets imported by the client code and thus is separated from server code\n// to avoid bundling issues. We'd like to find a better solution that isnt so brittle and keeps this code co-located w/ its tool calls.\nimport {\n ParamOrganizationSlug,\n ParamIssueShortId,\n ParamTeamSlug,\n ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n} from \"./schema\";\nimport { z } from \"zod\";\n\nexport const TOOL_DEFINITIONS = [\n {\n name: \"list_organizations\" as const,\n description: [\n \"List all 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: \"list_teams\" as const,\n description: [\n \"List all 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 an team's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n },\n },\n {\n name: \"list_projects\" as const,\n description: [\n \"Retrieve a list of projects in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View all projects in a Sentry organization\",\n \"- Find an project's slug to aid other tool requests\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n },\n },\n {\n name: \"list_issues\" as const,\n description: [\n \"List all 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 `search_errors()` or `search_transactions()` tools instead.\",\n \"\",\n \"<examples>\",\n \"### Find the newest unresolved issues across 'my-organization'\",\n \"\",\n \"```\",\n \"list_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 \"list_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 \"- 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.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.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: \"list_releases\" as const,\n description: [\n \"List all 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 \"<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 `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug.optional(),\n },\n },\n {\n name: \"list_tags\" as const,\n description: [\n \"List all tags in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- Find tags available to use in searches\",\n \"\",\n \"<hints>\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n },\n },\n {\n name: \"get_issue_summary\" as const,\n description: [\n \"Retrieve a summary of an issue in Sentry.\",\n \"\",\n \"Use this tool when you need to:\",\n \"- View a summary of an issue in Sentry\",\n \"\",\n \"If the issue is an error, or you want additional information like the stacktrace, you should use `get_issue_details()` tool instead.\",\n \"\",\n \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .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 \"<hints>\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"search_errors\" as const,\n description: [\n \"Query Sentry for errors 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 \"search_errors(organizationSlug='my-organization', filename='index.js', sortBy='count')\",\n \"```\",\n \"\",\n \"### Find recent crashes from the 'peated' project\",\n \"\",\n \"```\",\n \"search_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 `list_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 `list_issues()` tool\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug.optional(),\n filename: z\n .string()\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: \"search_transactions\" as const,\n description: [\n \"Query Sentry for transactions 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 \"search_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 `list_organizations()` first.\",\n \"- You can use the `list_tags()` tool to see what user-defined tags are available.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: ParamProjectSlug.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 \"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.optional(),\n name: z.string().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 \"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.optional(),\n teamSlug: z.string().describe(\"The team's slug.\"),\n name: z\n .string()\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 \"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='Default')\",\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.optional(),\n projectSlug: z.string().describe(\"The project's slug.\"),\n name: z.string().describe(\"The name of the DSN to create.\"),\n },\n },\n {\n name: \"list_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 `list_organizations()` first.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n projectSlug: z.string().describe(\"The project's slug.\"),\n },\n },\n {\n name: \"begin_autofix\" as const,\n description: [\n \"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_autofix_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_autofix(organizationSlug='my-organization', issueId='ISSUE-123')\",\n \"```\",\n \"</examples>\",\n \"\",\n \"<hints>\",\n \"- Always check to see if an autofix is in progress for before calling this tool by using `get_autofix_status()`.\",\n \"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.\",\n \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n {\n name: \"get_autofix_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_autofix_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 \"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.\",\n \"</hints>\",\n ].join(\"\\n\"),\n paramsSchema: {\n organizationSlug: ParamOrganizationSlug.optional(),\n issueId: ParamIssueShortId.optional(),\n issueUrl: z\n .string()\n .url()\n .describe(\"The URL of the issue to retrieve details for.\")\n .optional(),\n },\n },\n];\n"],"mappings":";;;;AAaA,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;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,kBAAkB,sBAAsB,UAAU,CACnD;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,kBAAkB,sBAAsB,UAAU,CACnD;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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,aAAa,iBAAiB,UAAU;EACzC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc,EACZ,kBAAkB,sBAAsB,UAAU,CACnD;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,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;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,aAAa,iBAAiB,UAAU;GACxC,UAAU,EACP,QAAQ,CACR,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,sBAAsB,UAAU;GAClD,aAAa,iBAAiB,UAAU;GACxC,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,MAAM,EAAE,QAAQ,CAAC,SAAS,kCAAkC;EAC7D;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,UAAU,EAAE,QAAQ,CAAC,SAAS,mBAAmB;GACjD,MAAM,EACH,QAAQ,CACR,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,aAAa,EAAE,QAAQ,CAAC,SAAS,sBAAsB;GACvD,MAAM,EAAE,QAAQ,CAAC,SAAS,iCAAiC;EAC5D;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,aAAa,EAAE,QAAQ,CAAC,SAAS,sBAAsB;EACxD;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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;AACF"}
|
package/dist/toolDefinitions.cjs
CHANGED
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/toolDefinitions.d.ts
|
|
4
|
+
declare const TOOL_DEFINITIONS: ({
|
|
5
|
+
name: "list_organizations";
|
|
6
|
+
description: string;
|
|
7
|
+
paramsSchema?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
name: "list_teams";
|
|
10
|
+
description: string;
|
|
11
|
+
paramsSchema: {
|
|
12
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
13
|
+
projectSlug?: undefined;
|
|
14
|
+
query?: undefined;
|
|
15
|
+
sortBy?: undefined;
|
|
16
|
+
issueId?: undefined;
|
|
17
|
+
issueUrl?: undefined;
|
|
18
|
+
filename?: undefined;
|
|
19
|
+
transaction?: undefined;
|
|
20
|
+
name?: undefined;
|
|
21
|
+
teamSlug?: undefined;
|
|
22
|
+
platform?: undefined;
|
|
23
|
+
};
|
|
24
|
+
} | {
|
|
25
|
+
name: "list_projects";
|
|
26
|
+
description: string;
|
|
27
|
+
paramsSchema: {
|
|
28
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
29
|
+
projectSlug?: undefined;
|
|
30
|
+
query?: undefined;
|
|
31
|
+
sortBy?: undefined;
|
|
32
|
+
issueId?: undefined;
|
|
33
|
+
issueUrl?: undefined;
|
|
34
|
+
filename?: undefined;
|
|
35
|
+
transaction?: undefined;
|
|
36
|
+
name?: undefined;
|
|
37
|
+
teamSlug?: undefined;
|
|
38
|
+
platform?: undefined;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
name: "list_issues";
|
|
42
|
+
description: string;
|
|
43
|
+
paramsSchema: {
|
|
44
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
45
|
+
projectSlug: z.ZodOptional<z.ZodString>;
|
|
46
|
+
query: z.ZodOptional<z.ZodString>;
|
|
47
|
+
sortBy: z.ZodOptional<z.ZodEnum<["last_seen", "first_seen", "count", "userCount"]>>;
|
|
48
|
+
issueId?: undefined;
|
|
49
|
+
issueUrl?: undefined;
|
|
50
|
+
filename?: undefined;
|
|
51
|
+
transaction?: undefined;
|
|
52
|
+
name?: undefined;
|
|
53
|
+
teamSlug?: undefined;
|
|
54
|
+
platform?: undefined;
|
|
55
|
+
};
|
|
56
|
+
} | {
|
|
57
|
+
name: "list_releases";
|
|
58
|
+
description: string;
|
|
59
|
+
paramsSchema: {
|
|
60
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
61
|
+
projectSlug: z.ZodOptional<z.ZodString>;
|
|
62
|
+
query?: undefined;
|
|
63
|
+
sortBy?: undefined;
|
|
64
|
+
issueId?: undefined;
|
|
65
|
+
issueUrl?: undefined;
|
|
66
|
+
filename?: undefined;
|
|
67
|
+
transaction?: undefined;
|
|
68
|
+
name?: undefined;
|
|
69
|
+
teamSlug?: undefined;
|
|
70
|
+
platform?: undefined;
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
name: "list_tags";
|
|
74
|
+
description: string;
|
|
75
|
+
paramsSchema: {
|
|
76
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
77
|
+
projectSlug?: undefined;
|
|
78
|
+
query?: undefined;
|
|
79
|
+
sortBy?: undefined;
|
|
80
|
+
issueId?: undefined;
|
|
81
|
+
issueUrl?: undefined;
|
|
82
|
+
filename?: undefined;
|
|
83
|
+
transaction?: undefined;
|
|
84
|
+
name?: undefined;
|
|
85
|
+
teamSlug?: undefined;
|
|
86
|
+
platform?: undefined;
|
|
87
|
+
};
|
|
88
|
+
} | {
|
|
89
|
+
name: "get_issue_summary";
|
|
90
|
+
description: string;
|
|
91
|
+
paramsSchema: {
|
|
92
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
93
|
+
issueId: z.ZodOptional<z.ZodString>;
|
|
94
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
95
|
+
projectSlug?: undefined;
|
|
96
|
+
query?: undefined;
|
|
97
|
+
sortBy?: undefined;
|
|
98
|
+
filename?: undefined;
|
|
99
|
+
transaction?: undefined;
|
|
100
|
+
name?: undefined;
|
|
101
|
+
teamSlug?: undefined;
|
|
102
|
+
platform?: undefined;
|
|
103
|
+
};
|
|
104
|
+
} | {
|
|
105
|
+
name: "get_issue_details";
|
|
106
|
+
description: string;
|
|
107
|
+
paramsSchema: {
|
|
108
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
109
|
+
issueId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
111
|
+
projectSlug?: undefined;
|
|
112
|
+
query?: undefined;
|
|
113
|
+
sortBy?: undefined;
|
|
114
|
+
filename?: undefined;
|
|
115
|
+
transaction?: undefined;
|
|
116
|
+
name?: undefined;
|
|
117
|
+
teamSlug?: undefined;
|
|
118
|
+
platform?: undefined;
|
|
119
|
+
};
|
|
120
|
+
} | {
|
|
121
|
+
name: "search_errors";
|
|
122
|
+
description: string;
|
|
123
|
+
paramsSchema: {
|
|
124
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
125
|
+
projectSlug: z.ZodOptional<z.ZodString>;
|
|
126
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
127
|
+
transaction: z.ZodOptional<z.ZodString>;
|
|
128
|
+
query: z.ZodOptional<z.ZodString>;
|
|
129
|
+
sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["last_seen", "count"]>>>;
|
|
130
|
+
issueId?: undefined;
|
|
131
|
+
issueUrl?: undefined;
|
|
132
|
+
name?: undefined;
|
|
133
|
+
teamSlug?: undefined;
|
|
134
|
+
platform?: undefined;
|
|
135
|
+
};
|
|
136
|
+
} | {
|
|
137
|
+
name: "search_transactions";
|
|
138
|
+
description: string;
|
|
139
|
+
paramsSchema: {
|
|
140
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
141
|
+
projectSlug: z.ZodOptional<z.ZodString>;
|
|
142
|
+
transaction: z.ZodOptional<z.ZodString>;
|
|
143
|
+
query: z.ZodOptional<z.ZodString>;
|
|
144
|
+
sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["timestamp", "duration"]>>>;
|
|
145
|
+
issueId?: undefined;
|
|
146
|
+
issueUrl?: undefined;
|
|
147
|
+
filename?: undefined;
|
|
148
|
+
name?: undefined;
|
|
149
|
+
teamSlug?: undefined;
|
|
150
|
+
platform?: undefined;
|
|
151
|
+
};
|
|
152
|
+
} | {
|
|
153
|
+
name: "create_team";
|
|
154
|
+
description: string;
|
|
155
|
+
paramsSchema: {
|
|
156
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
projectSlug?: undefined;
|
|
159
|
+
query?: undefined;
|
|
160
|
+
sortBy?: undefined;
|
|
161
|
+
issueId?: undefined;
|
|
162
|
+
issueUrl?: undefined;
|
|
163
|
+
filename?: undefined;
|
|
164
|
+
transaction?: undefined;
|
|
165
|
+
teamSlug?: undefined;
|
|
166
|
+
platform?: undefined;
|
|
167
|
+
};
|
|
168
|
+
} | {
|
|
169
|
+
name: "create_project";
|
|
170
|
+
description: string;
|
|
171
|
+
paramsSchema: {
|
|
172
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
173
|
+
teamSlug: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
176
|
+
projectSlug?: undefined;
|
|
177
|
+
query?: undefined;
|
|
178
|
+
sortBy?: undefined;
|
|
179
|
+
issueId?: undefined;
|
|
180
|
+
issueUrl?: undefined;
|
|
181
|
+
filename?: undefined;
|
|
182
|
+
transaction?: undefined;
|
|
183
|
+
};
|
|
184
|
+
} | {
|
|
185
|
+
name: "create_dsn";
|
|
186
|
+
description: string;
|
|
187
|
+
paramsSchema: {
|
|
188
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
189
|
+
projectSlug: z.ZodString;
|
|
190
|
+
name: z.ZodString;
|
|
191
|
+
query?: undefined;
|
|
192
|
+
sortBy?: undefined;
|
|
193
|
+
issueId?: undefined;
|
|
194
|
+
issueUrl?: undefined;
|
|
195
|
+
filename?: undefined;
|
|
196
|
+
transaction?: undefined;
|
|
197
|
+
teamSlug?: undefined;
|
|
198
|
+
platform?: undefined;
|
|
199
|
+
};
|
|
200
|
+
} | {
|
|
201
|
+
name: "list_dsns";
|
|
202
|
+
description: string;
|
|
203
|
+
paramsSchema: {
|
|
204
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
205
|
+
projectSlug: z.ZodString;
|
|
206
|
+
query?: undefined;
|
|
207
|
+
sortBy?: undefined;
|
|
208
|
+
issueId?: undefined;
|
|
209
|
+
issueUrl?: undefined;
|
|
210
|
+
filename?: undefined;
|
|
211
|
+
transaction?: undefined;
|
|
212
|
+
name?: undefined;
|
|
213
|
+
teamSlug?: undefined;
|
|
214
|
+
platform?: undefined;
|
|
215
|
+
};
|
|
216
|
+
} | {
|
|
217
|
+
name: "begin_autofix";
|
|
218
|
+
description: string;
|
|
219
|
+
paramsSchema: {
|
|
220
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
221
|
+
issueId: z.ZodOptional<z.ZodString>;
|
|
222
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
223
|
+
projectSlug?: undefined;
|
|
224
|
+
query?: undefined;
|
|
225
|
+
sortBy?: undefined;
|
|
226
|
+
filename?: undefined;
|
|
227
|
+
transaction?: undefined;
|
|
228
|
+
name?: undefined;
|
|
229
|
+
teamSlug?: undefined;
|
|
230
|
+
platform?: undefined;
|
|
231
|
+
};
|
|
232
|
+
} | {
|
|
233
|
+
name: "get_autofix_status";
|
|
234
|
+
description: string;
|
|
235
|
+
paramsSchema: {
|
|
236
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
237
|
+
issueId: z.ZodOptional<z.ZodString>;
|
|
238
|
+
issueUrl: z.ZodOptional<z.ZodString>;
|
|
239
|
+
projectSlug?: undefined;
|
|
240
|
+
query?: undefined;
|
|
241
|
+
sortBy?: undefined;
|
|
242
|
+
filename?: undefined;
|
|
243
|
+
transaction?: undefined;
|
|
244
|
+
name?: undefined;
|
|
245
|
+
teamSlug?: undefined;
|
|
246
|
+
platform?: undefined;
|
|
247
|
+
};
|
|
248
|
+
})[]; //#endregion
|
|
249
|
+
export { TOOL_DEFINITIONS };
|
|
250
|
+
//# sourceMappingURL=toolDefinitions.d-9LTzR2LX.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions.d-9LTzR2LX.d.cts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAaa;;EAAA,WAAA,EAAA,MAgbZ;EAAA,YAAA,CAAA,EAAA,SAAA;CAAA,GAAA;;;;oCAAA,CAAA,CAAA"}
|