@sentry/mcp-server 0.7.1 → 0.8.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 +2 -2
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/client.test.cjs +2 -2
- package/dist/api-client/client.test.js +2 -2
- package/dist/api-client/index.cjs +2 -2
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +3 -3
- package/dist/api-client/index.js +2 -2
- package/dist/api-client/schema.cjs +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/schema.js +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{client-7aaWrjcF.d.ts → client-CRlGzHly.d.ts} +7 -7
- package/dist/{client-7aaWrjcF.d.ts.map → client-CRlGzHly.d.ts.map} +1 -1
- package/dist/{client-D9mOWh6s.js → client-CXUzhM1I.js} +2 -3
- package/dist/client-CXUzhM1I.js.map +1 -0
- package/dist/{client-CLuQEpjg.cjs → client-Cp-Y1PHr.cjs} +2 -3
- package/dist/client-Cp-Y1PHr.cjs.map +1 -0
- package/dist/{client-Ch0w22UE.d.cts → client-TjRMJC41.d.cts} +6 -6
- package/dist/{client-Ch0w22UE.d.cts.map → client-TjRMJC41.d.cts.map} +1 -1
- package/dist/index.cjs +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/internal/formatting.d.cts +3 -3
- package/dist/internal/formatting.d.ts +3 -3
- package/dist/internal/issue-helpers.cjs +1 -1
- package/dist/internal/issue-helpers.d.cts.map +1 -1
- 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 +1 -1
- package/dist/internal/issue-helpers.test.js +1 -1
- package/dist/{issue-helpers-Cx6bFCUv.js → issue-helpers-CyoHu5j4.js} +3 -1
- package/dist/issue-helpers-CyoHu5j4.js.map +1 -0
- package/dist/{issue-helpers-CdWMhVWJ.cjs → issue-helpers-DbsECZFq.cjs} +3 -1
- package/dist/issue-helpers-DbsECZFq.cjs.map +1 -0
- package/dist/{promptDefinitions-OnJHLqrZ.cjs → promptDefinitions-5jiZMBg5.cjs} +10 -2
- package/dist/promptDefinitions-5jiZMBg5.cjs.map +1 -0
- package/dist/promptDefinitions-CPTadtuI.js +24 -0
- package/dist/promptDefinitions-CPTadtuI.js.map +1 -0
- package/dist/promptDefinitions-Dcz3d9wL.d.cts +26 -0
- package/dist/promptDefinitions-Dcz3d9wL.d.cts.map +1 -0
- package/dist/promptDefinitions-DrGK-v8n.d.ts +26 -0
- package/dist/promptDefinitions-DrGK-v8n.d.ts.map +1 -0
- package/dist/promptDefinitions.cjs +2 -2
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +2 -2
- package/dist/prompts-DgWOD2rU.js +32 -0
- package/dist/prompts-DgWOD2rU.js.map +1 -0
- package/dist/prompts-nfFU-zY-.cjs +39 -0
- package/dist/prompts-nfFU-zY-.cjs.map +1 -0
- package/dist/prompts.cjs +1 -1
- package/dist/prompts.d.cts +21 -11
- package/dist/prompts.d.cts.map +1 -1
- package/dist/prompts.d.ts +21 -11
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +1 -1
- package/dist/{schema-_xqdSRLo.cjs → schema-BCkBPgjj.cjs} +6 -6
- package/dist/schema-BCkBPgjj.cjs.map +1 -0
- package/dist/{schema-BnXdl41H.cjs → schema-BuByiEkr.cjs} +5 -2
- package/dist/schema-BuByiEkr.cjs.map +1 -0
- package/dist/{schema-BnIwkBRb.d.ts → schema-BzLH7LPa.d.ts} +335 -335
- package/dist/schema-BzLH7LPa.d.ts.map +1 -0
- package/dist/schema-CJrk_GUH.js +15 -0
- package/dist/schema-CJrk_GUH.js.map +1 -0
- package/dist/{schema-BbqVXLZS.d.cts → schema-DpID9ztC.d.cts} +537 -537
- package/dist/schema-DpID9ztC.d.cts.map +1 -0
- package/dist/{schema-BzPfPMq7.js → schema-Drnljuwf.js} +5 -2
- package/dist/schema-Drnljuwf.js.map +1 -0
- package/dist/schema.cjs +1 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/{server-zkB6OPEz.js → server-BCmPE_Kt.js} +40 -10
- package/dist/server-BCmPE_Kt.js.map +1 -0
- package/dist/{server-D35uvgO3.cjs → server-fYrkDOmy.cjs} +40 -10
- package/dist/server-fYrkDOmy.cjs.map +1 -0
- package/dist/server.cjs +9 -9
- package/dist/server.d.cts +3 -3
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts +3 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +9 -9
- package/dist/{stdio-Be17vc2M.cjs → stdio-BxJq3OU7.cjs} +2 -2
- package/dist/{stdio-Be17vc2M.cjs.map → stdio-BxJq3OU7.cjs.map} +1 -1
- package/dist/{stdio-DQcBQF6y.js → stdio-QBN7-Am6.js} +2 -2
- package/dist/{stdio-DQcBQF6y.js.map → stdio-QBN7-Am6.js.map} +1 -1
- package/dist/test-setup.cjs +2 -2
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +2 -2
- package/dist/test-setup.js.map +1 -1
- package/dist/{toolDefinitions-CRtHauHJ.cjs → toolDefinitions-1SnflztE.cjs} +12 -12
- package/dist/toolDefinitions-1SnflztE.cjs.map +1 -0
- package/dist/{toolDefinitions-CfNXEIaX.js → toolDefinitions-D13S3vQE.js} +12 -12
- package/dist/toolDefinitions-D13S3vQE.js.map +1 -0
- package/dist/{toolDefinitions-abNbVXb5.d.ts → toolDefinitions-DkO9-iEg.d.ts} +3 -3
- package/dist/toolDefinitions-DkO9-iEg.d.ts.map +1 -0
- package/dist/{toolDefinitions-DPePAe0y.d.cts → toolDefinitions-Z-JGBEIN.d.cts} +3 -3
- package/dist/toolDefinitions-Z-JGBEIN.d.cts.map +1 -0
- package/dist/toolDefinitions.cjs +2 -2
- package/dist/toolDefinitions.d.cts +1 -1
- package/dist/toolDefinitions.d.ts +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/toolDefinitions.test.cjs +2 -2
- package/dist/toolDefinitions.test.js +2 -2
- package/dist/{tools-LuDiLnAX.cjs → tools-BgrGdS8I.cjs} +10 -10
- package/dist/{tools-LuDiLnAX.cjs.map → tools-BgrGdS8I.cjs.map} +1 -1
- package/dist/{tools-DtHRkHKh.js → tools-CnVttgaS.js} +10 -10
- package/dist/{tools-DtHRkHKh.js.map → tools-CnVttgaS.js.map} +1 -1
- package/dist/tools.cjs +4 -4
- package/dist/tools.d.cts +5 -5
- package/dist/tools.d.ts +8 -8
- package/dist/tools.js +4 -4
- package/dist/tools.test.cjs +12 -12
- package/dist/tools.test.cjs.map +1 -1
- package/dist/tools.test.js +12 -12
- package/dist/tools.test.js.map +1 -1
- package/dist/transports/stdio.cjs +10 -10
- package/dist/transports/stdio.d.cts +3 -3
- package/dist/transports/stdio.d.ts +3 -3
- package/dist/transports/stdio.js +10 -10
- package/dist/{types-DFKY4nvR.d.cts → types-BO0mZ8vj.d.cts} +7 -6
- package/dist/types-BO0mZ8vj.d.cts.map +1 -0
- package/dist/{types-BqMKv2m7.d.cts → types-CczA6AH1.d.cts} +2 -2
- package/dist/{types-BqMKv2m7.d.cts.map → types-CczA6AH1.d.cts.map} +1 -1
- package/dist/{types-X3ot7x0d.d.ts → types-Cis1PiVW.d.ts} +7 -6
- package/dist/types-Cis1PiVW.d.ts.map +1 -0
- package/dist/{types-RxedZjnY.d.ts → types-X5Epdrlo.d.ts} +2 -2
- package/dist/{types-RxedZjnY.d.ts.map → types-X5Epdrlo.d.ts.map} +1 -1
- package/dist/types.d.cts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/version-DtWIv-x9.js +6 -0
- package/dist/{version-BMRCgO0F.js.map → version-DtWIv-x9.js.map} +1 -1
- package/dist/{version-BkjSM_wB.cjs → version-sY-gY_s6.cjs} +2 -2
- package/dist/{version-BkjSM_wB.cjs.map → version-sY-gY_s6.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
- package/dist/client-CLuQEpjg.cjs.map +0 -1
- package/dist/client-D9mOWh6s.js.map +0 -1
- package/dist/issue-helpers-CdWMhVWJ.cjs.map +0 -1
- package/dist/issue-helpers-Cx6bFCUv.js.map +0 -1
- package/dist/promptDefinitions-C85r2wAk.d.ts +0 -15
- package/dist/promptDefinitions-C85r2wAk.d.ts.map +0 -1
- package/dist/promptDefinitions-C9aGYWZ6.js +0 -16
- package/dist/promptDefinitions-C9aGYWZ6.js.map +0 -1
- package/dist/promptDefinitions-CkGJr3c4.d.cts +0 -15
- package/dist/promptDefinitions-CkGJr3c4.d.cts.map +0 -1
- package/dist/promptDefinitions-OnJHLqrZ.cjs.map +0 -1
- package/dist/prompts--QCiXmR2.cjs +0 -26
- package/dist/prompts--QCiXmR2.cjs.map +0 -1
- package/dist/prompts-Tz-qECa0.js +0 -19
- package/dist/prompts-Tz-qECa0.js.map +0 -1
- package/dist/schema-BbqVXLZS.d.cts.map +0 -1
- package/dist/schema-BnIwkBRb.d.ts.map +0 -1
- package/dist/schema-BnXdl41H.cjs.map +0 -1
- package/dist/schema-BzPfPMq7.js.map +0 -1
- package/dist/schema-_xqdSRLo.cjs.map +0 -1
- package/dist/schema-pZrPEvtp.js +0 -15
- package/dist/schema-pZrPEvtp.js.map +0 -1
- package/dist/server-D35uvgO3.cjs.map +0 -1
- package/dist/server-zkB6OPEz.js.map +0 -1
- package/dist/toolDefinitions-CRtHauHJ.cjs.map +0 -1
- package/dist/toolDefinitions-CfNXEIaX.js.map +0 -1
- package/dist/toolDefinitions-DPePAe0y.d.cts.map +0 -1
- package/dist/toolDefinitions-abNbVXb5.d.ts.map +0 -1
- package/dist/types-DFKY4nvR.d.cts.map +0 -1
- package/dist/types-X3ot7x0d.d.ts.map +0 -1
- package/dist/version-BMRCgO0F.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-BtT13l48.cjs');
|
|
3
|
-
const require_schema = require('./schema-
|
|
3
|
+
const require_schema = require('./schema-BCkBPgjj.cjs');
|
|
4
4
|
const zod = require_chunk.__toESM(require("zod"));
|
|
5
5
|
|
|
6
6
|
//#region src/toolDefinitions.ts
|
|
@@ -315,7 +315,7 @@ const TOOL_DEFINITIONS = [
|
|
|
315
315
|
paramsSchema: {
|
|
316
316
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
317
317
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
318
|
-
teamSlug: zod.z.string().describe("The team's slug."),
|
|
318
|
+
teamSlug: zod.z.string().toLowerCase().describe("The team's slug."),
|
|
319
319
|
name: zod.z.string().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
|
|
320
320
|
platform: require_schema.ParamPlatform.optional()
|
|
321
321
|
}
|
|
@@ -345,7 +345,7 @@ const TOOL_DEFINITIONS = [
|
|
|
345
345
|
paramsSchema: {
|
|
346
346
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
347
347
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
348
|
-
projectSlug: zod.z.string().describe("The project's slug."),
|
|
348
|
+
projectSlug: zod.z.string().toLowerCase().describe("The project's slug."),
|
|
349
349
|
name: zod.z.string().describe("The name of the DSN to create.")
|
|
350
350
|
}
|
|
351
351
|
},
|
|
@@ -365,31 +365,31 @@ const TOOL_DEFINITIONS = [
|
|
|
365
365
|
paramsSchema: {
|
|
366
366
|
organizationSlug: require_schema.ParamOrganizationSlug.optional(),
|
|
367
367
|
regionUrl: require_schema.ParamRegionUrl.optional(),
|
|
368
|
-
projectSlug: zod.z.string().describe("The project's slug.")
|
|
368
|
+
projectSlug: zod.z.string().toLowerCase().describe("The project's slug.")
|
|
369
369
|
}
|
|
370
370
|
},
|
|
371
371
|
{
|
|
372
|
-
name: "
|
|
372
|
+
name: "begin_seer_issue_fix",
|
|
373
373
|
description: [
|
|
374
|
-
"
|
|
374
|
+
"Use Seer to analyze an issue in Sentry, identify a root cause, and suggest a fix for it.",
|
|
375
375
|
"",
|
|
376
376
|
"Use this tool when you need to:",
|
|
377
377
|
"- Determine the root cause of an issue.",
|
|
378
378
|
"- Generate a plan for fixing an issue.",
|
|
379
379
|
"- Implement a fix for an issue.",
|
|
380
380
|
"",
|
|
381
|
-
"This operation may take some time, so you should call `
|
|
381
|
+
"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.",
|
|
382
382
|
"",
|
|
383
383
|
"<examples>",
|
|
384
384
|
"### Analyze and propose a fix for 'ISSUE-123' in Sentry",
|
|
385
385
|
"",
|
|
386
386
|
"```",
|
|
387
|
-
"
|
|
387
|
+
"begin_seer_issue_fix(organizationSlug='my-organization', issueId='ISSUE-123')",
|
|
388
388
|
"```",
|
|
389
389
|
"</examples>",
|
|
390
390
|
"",
|
|
391
391
|
"<hints>",
|
|
392
|
-
"- Always check to see if an
|
|
392
|
+
"- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.",
|
|
393
393
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
394
394
|
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
395
395
|
"</hints>"
|
|
@@ -402,7 +402,7 @@ const TOOL_DEFINITIONS = [
|
|
|
402
402
|
}
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
|
-
name: "
|
|
405
|
+
name: "get_seer_issue_fix_status",
|
|
406
406
|
description: [
|
|
407
407
|
"Get the status of a root cause analysis for an issue in Sentry.",
|
|
408
408
|
"",
|
|
@@ -414,7 +414,7 @@ const TOOL_DEFINITIONS = [
|
|
|
414
414
|
"### Get the status of a fix for the 'ISSUE-123' issue",
|
|
415
415
|
"",
|
|
416
416
|
"```",
|
|
417
|
-
"
|
|
417
|
+
"get_seer_issue_fix_status(organizationSlug='my-organization', issueId='ISSUE-123')",
|
|
418
418
|
"```",
|
|
419
419
|
"",
|
|
420
420
|
"</examples>",
|
|
@@ -440,4 +440,4 @@ Object.defineProperty(exports, 'TOOL_DEFINITIONS', {
|
|
|
440
440
|
return TOOL_DEFINITIONS;
|
|
441
441
|
}
|
|
442
442
|
});
|
|
443
|
-
//# sourceMappingURL=toolDefinitions-
|
|
443
|
+
//# sourceMappingURL=toolDefinitions-1SnflztE.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-1SnflztE.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 ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n ParamRegionUrl,\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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 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: \"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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 \"<examples>\",\n \"### Get details for issue ID 'CLOUDFLARE-MCP-41'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'\",\n \"\",\n \"```\",\n \"get_event_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"- 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 regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().describe(\"The ID of the event.\").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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.optional(),\n teamSlug: z.string().toLowerCase().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 regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().toLowerCase().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 regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().toLowerCase().describe(\"The project's slug.\"),\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 \"- 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 regionUrl: ParamRegionUrl.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_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 \"- 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 regionUrl: ParamRegionUrl.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;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;EACrC;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,WAAW,8BAAe,UAAU;EACrC;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;GACxC,OAAO,0BAAW,UAAU;GAC5B,QAAQ,MACL,KAAK;IAAC;IAAa;IAAc;IAAS;GAAY,EAAC,CACvD,SACC,mJACD,CACA,UAAU;EACd;CACF;CACD;EACE,MAAM;EACN,aAAa;GACX;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,aAAa,gCAAiB,UAAU;EACzC;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,WAAW,8BAAe,UAAU;EACrC;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,WAAW,8BAAe,UAAU;GACpC,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;GAEA;GACA;GACA;GACA;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,qCAAsB,UAAU;GAClD,WAAW,8BAAe,UAAU;GACpC,SAAS,iCAAkB,UAAU;GACrC,SAAS,MAAE,QAAQ,CAAC,SAAS,uBAAuB,CAAC,UAAU;GAC/D,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,WAAW,8BAAe,UAAU;GACpC,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,WAAW,8BAAe,UAAU;GACpC,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,WAAW,8BAAe,UAAU;GACpC,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,WAAW,8BAAe,UAAU;GACpC,UAAU,MAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,mBAAmB;GAC/D,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,WAAW,8BAAe,UAAU;GACpC,aAAa,MAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,sBAAsB;GACrE,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,WAAW,8BAAe,UAAU;GACpC,aAAa,MAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,sBAAsB;EACtE;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,WAAW,8BAAe,UAAU;GACpC,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,WAAW,8BAAe,UAAU;GACpC,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, ParamRegionUrl, ParamTransaction } from "./schema-
|
|
1
|
+
import { ParamIssueShortId, ParamOrganizationSlug, ParamPlatform, ParamProjectSlug, ParamQuery, ParamRegionUrl, ParamTransaction } from "./schema-CJrk_GUH.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/toolDefinitions.ts
|
|
@@ -313,7 +313,7 @@ const TOOL_DEFINITIONS = [
|
|
|
313
313
|
paramsSchema: {
|
|
314
314
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
315
315
|
regionUrl: ParamRegionUrl.optional(),
|
|
316
|
-
teamSlug: z.string().describe("The team's slug."),
|
|
316
|
+
teamSlug: z.string().toLowerCase().describe("The team's slug."),
|
|
317
317
|
name: z.string().describe("The name of the project to create. Typically this is commonly the name of the repository or service. It is only used as a visual label in Sentry."),
|
|
318
318
|
platform: ParamPlatform.optional()
|
|
319
319
|
}
|
|
@@ -343,7 +343,7 @@ const TOOL_DEFINITIONS = [
|
|
|
343
343
|
paramsSchema: {
|
|
344
344
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
345
345
|
regionUrl: ParamRegionUrl.optional(),
|
|
346
|
-
projectSlug: z.string().describe("The project's slug."),
|
|
346
|
+
projectSlug: z.string().toLowerCase().describe("The project's slug."),
|
|
347
347
|
name: z.string().describe("The name of the DSN to create.")
|
|
348
348
|
}
|
|
349
349
|
},
|
|
@@ -363,31 +363,31 @@ const TOOL_DEFINITIONS = [
|
|
|
363
363
|
paramsSchema: {
|
|
364
364
|
organizationSlug: ParamOrganizationSlug.optional(),
|
|
365
365
|
regionUrl: ParamRegionUrl.optional(),
|
|
366
|
-
projectSlug: z.string().describe("The project's slug.")
|
|
366
|
+
projectSlug: z.string().toLowerCase().describe("The project's slug.")
|
|
367
367
|
}
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
|
-
name: "
|
|
370
|
+
name: "begin_seer_issue_fix",
|
|
371
371
|
description: [
|
|
372
|
-
"
|
|
372
|
+
"Use Seer to analyze an issue in Sentry, identify a root cause, and suggest a fix for it.",
|
|
373
373
|
"",
|
|
374
374
|
"Use this tool when you need to:",
|
|
375
375
|
"- Determine the root cause of an issue.",
|
|
376
376
|
"- Generate a plan for fixing an issue.",
|
|
377
377
|
"- Implement a fix for an issue.",
|
|
378
378
|
"",
|
|
379
|
-
"This operation may take some time, so you should call `
|
|
379
|
+
"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.",
|
|
380
380
|
"",
|
|
381
381
|
"<examples>",
|
|
382
382
|
"### Analyze and propose a fix for 'ISSUE-123' in Sentry",
|
|
383
383
|
"",
|
|
384
384
|
"```",
|
|
385
|
-
"
|
|
385
|
+
"begin_seer_issue_fix(organizationSlug='my-organization', issueId='ISSUE-123')",
|
|
386
386
|
"```",
|
|
387
387
|
"</examples>",
|
|
388
388
|
"",
|
|
389
389
|
"<hints>",
|
|
390
|
-
"- Always check to see if an
|
|
390
|
+
"- Always check to see if an issue fix is already in progress for before calling this tool by using `get_seer_issue_fix_status()`.",
|
|
391
391
|
"- If the user provides the issueUrl, you can ignore the organizationSlug and issueId parameters.",
|
|
392
392
|
"- If you're uncertain about which organization to query, you should call `list_organizations()` first. This especially important if an issueId is passed.",
|
|
393
393
|
"</hints>"
|
|
@@ -400,7 +400,7 @@ const TOOL_DEFINITIONS = [
|
|
|
400
400
|
}
|
|
401
401
|
},
|
|
402
402
|
{
|
|
403
|
-
name: "
|
|
403
|
+
name: "get_seer_issue_fix_status",
|
|
404
404
|
description: [
|
|
405
405
|
"Get the status of a root cause analysis for an issue in Sentry.",
|
|
406
406
|
"",
|
|
@@ -412,7 +412,7 @@ const TOOL_DEFINITIONS = [
|
|
|
412
412
|
"### Get the status of a fix for the 'ISSUE-123' issue",
|
|
413
413
|
"",
|
|
414
414
|
"```",
|
|
415
|
-
"
|
|
415
|
+
"get_seer_issue_fix_status(organizationSlug='my-organization', issueId='ISSUE-123')",
|
|
416
416
|
"```",
|
|
417
417
|
"",
|
|
418
418
|
"</examples>",
|
|
@@ -433,4 +433,4 @@ const TOOL_DEFINITIONS = [
|
|
|
433
433
|
|
|
434
434
|
//#endregion
|
|
435
435
|
export { TOOL_DEFINITIONS };
|
|
436
|
-
//# sourceMappingURL=toolDefinitions-
|
|
436
|
+
//# sourceMappingURL=toolDefinitions-D13S3vQE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-D13S3vQE.js","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":["// TODO: this gets imported by the client code and thus is separated from server code\n// to avoid bundling issues. We'd like to find a better solution that isnt so brittle and keeps this code co-located w/ its tool calls.\nimport {\n ParamOrganizationSlug,\n ParamIssueShortId,\n ParamPlatform,\n ParamProjectSlug,\n ParamQuery,\n ParamTransaction,\n ParamRegionUrl,\n} 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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 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: \"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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 \"<examples>\",\n \"### Get details for issue ID 'CLOUDFLARE-MCP-41'\",\n \"\",\n \"```\",\n \"get_issue_details(organizationSlug='my-organization', issueId='CLOUDFLARE-MCP-41')\",\n \"```\",\n \"\",\n \"### Get details for event ID 'c49541c747cb4d8aa3efb70ca5aba243'\",\n \"\",\n \"```\",\n \"get_event_details(organizationSlug='my-organization', eventId='c49541c747cb4d8aa3efb70ca5aba243')\",\n \"```\",\n \"</examples>\",\n\n \"<hints>\",\n \"- If the user provides the `issueUrl`, you can ignore the other parameters.\",\n \"- If the user provides `issueId` or `eventId` (only one is needed), `organizationSlug` is required.\",\n \"- 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 regionUrl: ParamRegionUrl.optional(),\n issueId: ParamIssueShortId.optional(),\n eventId: z.string().describe(\"The ID of the event.\").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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.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 regionUrl: ParamRegionUrl.optional(),\n teamSlug: z.string().toLowerCase().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 regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().toLowerCase().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 regionUrl: ParamRegionUrl.optional(),\n projectSlug: z.string().toLowerCase().describe(\"The project's slug.\"),\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 \"- 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 regionUrl: ParamRegionUrl.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_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 \"- 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 regionUrl: ParamRegionUrl.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;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;EACrC;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,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;GACA;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,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;EACD,EAAC,KAAK,KAAK;EACZ,cAAc;GACZ,kBAAkB,sBAAsB,UAAU;GAClD,WAAW,eAAe,UAAU;GACpC,aAAa,iBAAiB,UAAU;EACzC;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,WAAW,eAAe,UAAU;EACrC;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,WAAW,eAAe,UAAU;GACpC,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;GAEA;GACA;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,SAAS,uBAAuB,CAAC,UAAU;GAC/D,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,WAAW,eAAe,UAAU;GACpC,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,WAAW,eAAe,UAAU;GACpC,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,WAAW,eAAe,UAAU;GACpC,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,WAAW,eAAe,UAAU;GACpC,UAAU,EAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,mBAAmB;GAC/D,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,WAAW,eAAe,UAAU;GACpC,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,sBAAsB;GACrE,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,WAAW,eAAe,UAAU;GACpC,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,SAAS,sBAAsB;EACtE;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,WAAW,eAAe,UAAU;GACpC,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,WAAW,eAAe,UAAU;GACpC,SAAS,kBAAkB,UAAU;GACrC,UAAU,EACP,QAAQ,CACR,KAAK,CACL,SAAS,gDAAgD,CACzD,UAAU;EACd;CACF;AACF"}
|
|
@@ -240,7 +240,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
240
240
|
platform?: undefined;
|
|
241
241
|
};
|
|
242
242
|
} | {
|
|
243
|
-
name: "
|
|
243
|
+
name: "begin_seer_issue_fix";
|
|
244
244
|
description: string;
|
|
245
245
|
paramsSchema: {
|
|
246
246
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
@@ -258,7 +258,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
258
258
|
platform?: undefined;
|
|
259
259
|
};
|
|
260
260
|
} | {
|
|
261
|
-
name: "
|
|
261
|
+
name: "get_seer_issue_fix_status";
|
|
262
262
|
description: string;
|
|
263
263
|
paramsSchema: {
|
|
264
264
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
@@ -279,4 +279,4 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
279
279
|
|
|
280
280
|
//# sourceMappingURL=toolDefinitions.d.ts.map
|
|
281
281
|
export { TOOL_DEFINITIONS as TOOL_DEFINITIONS$1 };
|
|
282
|
-
//# sourceMappingURL=toolDefinitions-
|
|
282
|
+
//# sourceMappingURL=toolDefinitions-DkO9-iEg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-DkO9-iEg.d.ts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAaa;;EAAA,WAAA,EAAA,MA+cZ;EAAA,YAAA,CAAA,EAAA,SAAA;CAAA,GAAA;;;;oCAAA,CAAA,CAAA"}
|
|
@@ -240,7 +240,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
240
240
|
platform?: undefined;
|
|
241
241
|
};
|
|
242
242
|
} | {
|
|
243
|
-
name: "
|
|
243
|
+
name: "begin_seer_issue_fix";
|
|
244
244
|
description: string;
|
|
245
245
|
paramsSchema: {
|
|
246
246
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
@@ -258,7 +258,7 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
258
258
|
platform?: undefined;
|
|
259
259
|
};
|
|
260
260
|
} | {
|
|
261
|
-
name: "
|
|
261
|
+
name: "get_seer_issue_fix_status";
|
|
262
262
|
description: string;
|
|
263
263
|
paramsSchema: {
|
|
264
264
|
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
@@ -279,4 +279,4 @@ declare const TOOL_DEFINITIONS: ({
|
|
|
279
279
|
|
|
280
280
|
//# sourceMappingURL=toolDefinitions.d.ts.map
|
|
281
281
|
export { TOOL_DEFINITIONS };
|
|
282
|
-
//# sourceMappingURL=toolDefinitions-
|
|
282
|
+
//# sourceMappingURL=toolDefinitions-Z-JGBEIN.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolDefinitions-Z-JGBEIN.d.cts","names":[],"sources":["../src/toolDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAaa;;EAAA,WAAA,EAAA,MA+cZ;EAAA,YAAA,CAAA,EAAA,SAAA;CAAA,GAAA;;;;oCAAA,CAAA,CAAA"}
|
package/dist/toolDefinitions.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('./schema-
|
|
2
|
-
const require_toolDefinitions = require('./toolDefinitions-
|
|
1
|
+
require('./schema-BCkBPgjj.cjs');
|
|
2
|
+
const require_toolDefinitions = require('./toolDefinitions-1SnflztE.cjs');
|
|
3
3
|
|
|
4
4
|
exports.TOOL_DEFINITIONS = require_toolDefinitions.TOOL_DEFINITIONS
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TOOL_DEFINITIONS } from "./toolDefinitions-
|
|
1
|
+
import { TOOL_DEFINITIONS } from "./toolDefinitions-Z-JGBEIN.cjs";
|
|
2
2
|
export { TOOL_DEFINITIONS };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TOOL_DEFINITIONS$1 as TOOL_DEFINITIONS } from "./toolDefinitions-
|
|
1
|
+
import { TOOL_DEFINITIONS$1 as TOOL_DEFINITIONS } from "./toolDefinitions-DkO9-iEg.js";
|
|
2
2
|
export { TOOL_DEFINITIONS };
|
package/dist/toolDefinitions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
require('./schema-
|
|
3
|
-
const require_toolDefinitions = require('./toolDefinitions-
|
|
2
|
+
require('./schema-BCkBPgjj.cjs');
|
|
3
|
+
const require_toolDefinitions = require('./toolDefinitions-1SnflztE.cjs');
|
|
4
4
|
const require_dist = require('./dist-wiyJYfAH.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/toolDefinitions.test.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./schema-
|
|
2
|
-
import { TOOL_DEFINITIONS } from "./toolDefinitions-
|
|
1
|
+
import "./schema-CJrk_GUH.js";
|
|
2
|
+
import { TOOL_DEFINITIONS } from "./toolDefinitions-D13S3vQE.js";
|
|
3
3
|
import { assert, test } from "./dist-BKh-M1A1.js";
|
|
4
4
|
|
|
5
5
|
//#region src/toolDefinitions.test.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-BtT13l48.cjs');
|
|
3
|
-
const require_client = require('./client-
|
|
3
|
+
const require_client = require('./client-Cp-Y1PHr.cjs');
|
|
4
4
|
const require_formatting = require('./formatting-BmbJ5-Uh.cjs');
|
|
5
|
-
const require_issue_helpers = require('./issue-helpers-
|
|
5
|
+
const require_issue_helpers = require('./issue-helpers-DbsECZFq.cjs');
|
|
6
6
|
const require_logging = require('./logging-BEMgC5SA.cjs');
|
|
7
7
|
const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
|
|
8
8
|
|
|
@@ -400,7 +400,7 @@ const TOOL_HANDLERS = {
|
|
|
400
400
|
output += "- The `SENTRY_DSN` value is a URL that you can use to initialize Sentry's SDKs.\n";
|
|
401
401
|
return output;
|
|
402
402
|
},
|
|
403
|
-
|
|
403
|
+
begin_seer_issue_fix: async (context, params) => {
|
|
404
404
|
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
405
405
|
const { organizationSlug: orgSlug, issueId: parsedIssueId } = require_issue_helpers.parseIssueParams({
|
|
406
406
|
organizationSlug: params.organizationSlug ?? context.organizationSlug,
|
|
@@ -413,20 +413,20 @@ const TOOL_HANDLERS = {
|
|
|
413
413
|
issueId: parsedIssueId
|
|
414
414
|
});
|
|
415
415
|
return [
|
|
416
|
-
`#
|
|
416
|
+
`# Issue Fix Started for Issue ${parsedIssueId}`,
|
|
417
417
|
"",
|
|
418
418
|
`**Run ID:**: ${data.run_id}`,
|
|
419
419
|
"",
|
|
420
|
-
"This operation may take some time, so you should call `
|
|
420
|
+
"This operation may take some time, so you should call `get_seer_issue_fix_status()` to check the status of the analysis, and repeat the process until its finished.",
|
|
421
421
|
"",
|
|
422
422
|
"You should also inform the user that the operation may take some time, and give them updates whenever you check the status of the operation..",
|
|
423
423
|
"",
|
|
424
424
|
"```",
|
|
425
|
-
params.issueUrl ? `
|
|
425
|
+
params.issueUrl ? `get_seer_issue_fix_status(issueUrl="${params.issueUrl}")` : `get_seer_issue_fix_status(organizationSlug="${orgSlug}", issueId="${parsedIssueId}")`,
|
|
426
426
|
"```"
|
|
427
427
|
].join("\n");
|
|
428
428
|
},
|
|
429
|
-
|
|
429
|
+
get_seer_issue_fix_status: async (context, params) => {
|
|
430
430
|
const apiService = apiServiceFromContext(context, { regionUrl: params.regionUrl });
|
|
431
431
|
const { organizationSlug: orgSlug, issueId: parsedIssueId } = require_issue_helpers.parseIssueParams({
|
|
432
432
|
organizationSlug: params.organizationSlug ?? context.organizationSlug,
|
|
@@ -438,9 +438,9 @@ const TOOL_HANDLERS = {
|
|
|
438
438
|
organizationSlug: orgSlug,
|
|
439
439
|
issueId: parsedIssueId
|
|
440
440
|
});
|
|
441
|
-
let output = `#
|
|
441
|
+
let output = `# Issue Fix Status for Issue ${parsedIssueId}\n\n`;
|
|
442
442
|
if (!autofix) {
|
|
443
|
-
output += `No
|
|
443
|
+
output += `No issue fix process found for ${parsedIssueId}.\n\nYou can initiate a new issue fix execution using the \`begin_seer_issue_fix\` tool.`;
|
|
444
444
|
return output;
|
|
445
445
|
}
|
|
446
446
|
for (const step of autofix.steps) {
|
|
@@ -498,4 +498,4 @@ Object.defineProperty(exports, 'TOOL_HANDLERS', {
|
|
|
498
498
|
return TOOL_HANDLERS;
|
|
499
499
|
}
|
|
500
500
|
});
|
|
501
|
-
//# sourceMappingURL=tools-
|
|
501
|
+
//# sourceMappingURL=tools-BgrGdS8I.cjs.map
|