@sentry/mcp-server 0.38.0 → 0.39.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.
Files changed (37) hide show
  1. package/dist/auth/device-code-flow.cjs +2 -2
  2. package/dist/auth/device-code-flow.js +2 -2
  3. package/dist/auth/resolve-token.cjs +3 -3
  4. package/dist/auth/resolve-token.js +3 -3
  5. package/dist/{auth-CmWwtW3L.js → auth-BmLsTuwM.js} +2 -2
  6. package/dist/{auth-CmWwtW3L.js.map → auth-BmLsTuwM.js.map} +1 -1
  7. package/dist/{auth-BlhX8Vom.cjs → auth-CMwoYDhh.cjs} +2 -2
  8. package/dist/{auth-BlhX8Vom.cjs.map → auth-CMwoYDhh.cjs.map} +1 -1
  9. package/dist/cli/commands/auth.cjs +3 -3
  10. package/dist/cli/commands/auth.js +3 -3
  11. package/dist/cli/parse.d.ts.map +1 -1
  12. package/dist/{device-code-flow-D8_wFtpA.js → device-code-flow-BRSc_1Sh.js} +2 -2
  13. package/dist/{device-code-flow-D8_wFtpA.js.map → device-code-flow-BRSc_1Sh.js.map} +1 -1
  14. package/dist/{device-code-flow-R-ZBimNL.cjs → device-code-flow-Btx7zPjy.cjs} +2 -2
  15. package/dist/{device-code-flow-R-ZBimNL.cjs.map → device-code-flow-Btx7zPjy.cjs.map} +1 -1
  16. package/dist/index.cjs +193 -135
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.js +193 -135
  19. package/dist/index.js.map +1 -1
  20. package/dist/{resolve-token-6Nwn0wwt.js → resolve-token-D8oZbjtT.js} +2 -2
  21. package/dist/{resolve-token-6Nwn0wwt.js.map → resolve-token-D8oZbjtT.js.map} +1 -1
  22. package/dist/{resolve-token-D8ViFyUf.cjs → resolve-token-TOq9-TtB.cjs} +2 -2
  23. package/dist/{resolve-token-D8ViFyUf.cjs.map → resolve-token-TOq9-TtB.cjs.map} +1 -1
  24. package/dist/{stdio-BAG9vDZV.cjs → stdio-DFPpP3Gf.cjs} +2 -2
  25. package/dist/{stdio-BAG9vDZV.cjs.map → stdio-DFPpP3Gf.cjs.map} +1 -1
  26. package/dist/{stdio-DFJbp9zP.js → stdio-DrtNVy01.js} +2 -2
  27. package/dist/{stdio-DFJbp9zP.js.map → stdio-DrtNVy01.js.map} +1 -1
  28. package/dist/transports/stdio.cjs +2 -2
  29. package/dist/transports/stdio.js +2 -2
  30. package/dist/{version-CXUk1-K3.cjs → version-BHLBRM5t.cjs} +3 -3
  31. package/dist/version-BHLBRM5t.cjs.map +1 -0
  32. package/dist/version-BWR2MRdi.js +7 -0
  33. package/dist/version-BWR2MRdi.js.map +1 -0
  34. package/package.json +4 -4
  35. package/dist/version-CXUk1-K3.cjs.map +0 -1
  36. package/dist/version-Duuvuy5h.js +0 -7
  37. package/dist/version-Duuvuy5h.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -2,19 +2,19 @@
2
2
  const require_chunk = require('./chunk-Cv9WC9bY.cjs');
3
3
  const require_resolve = require('./resolve-BsYckCew.cjs');
4
4
  const require_constants = require('./constants-BF1H5JLS.cjs');
5
- const require_version = require('./version-CXUk1-K3.cjs');
5
+ const require_version = require('./version-BHLBRM5t.cjs');
6
6
  const require_token_error$1 = require('./token-error-x_miDBP3.cjs');
7
7
  const require_blob_utils_CdbE_jsd = require('./blob-utils-CdbE_jsd-zazUDulT.cjs');
8
8
  const require_config_BqCCImAX = require('./config-BqCCImAX-CqsS5Qiu.cjs');
9
- const require_stdio = require('./stdio-BAG9vDZV.cjs');
9
+ const require_stdio = require('./stdio-DFPpP3Gf.cjs');
10
10
  const require_usage = require('./usage-Crfzx1qJ.cjs');
11
11
  const require_output = require('./output-DEoNyYz7.cjs');
12
12
  const require_parse = require('./parse-CPY7-_2_.cjs');
13
13
  require('./types-dghCRFW4.cjs');
14
- require('./device-code-flow-R-ZBimNL.cjs');
14
+ require('./device-code-flow-Btx7zPjy.cjs');
15
15
  require('./token-cache-ATUcs1cg.cjs');
16
- const require_resolve_token = require('./resolve-token-D8ViFyUf.cjs');
17
- const require_auth = require('./auth-BlhX8Vom.cjs');
16
+ const require_resolve_token = require('./resolve-token-TOq9-TtB.cjs');
17
+ const require_auth = require('./auth-CMwoYDhh.cjs');
18
18
  const zod = require_chunk.__toESM(require("zod"));
19
19
  const __sentry_core = require_chunk.__toESM(require("@sentry/core"));
20
20
  const node_util = require_chunk.__toESM(require("node:util"));
@@ -2107,7 +2107,7 @@ function isApiAuthenticationErrorDeep(error) {
2107
2107
  }
2108
2108
 
2109
2109
  //#endregion
2110
- //#region ../mcp-core/dist/schema-D5iIJpgN.js
2110
+ //#region ../mcp-core/dist/schema-BYZYkgA1.js
2111
2111
  /**
2112
2112
  * Schema for Sentry API error responses.
2113
2113
  *
@@ -3531,11 +3531,27 @@ const AgenticOnboardingStageStatusUpdateSchema = zod.z.enum([
3531
3531
  "skipped",
3532
3532
  "failed"
3533
3533
  ]);
3534
- const AgenticOnboardingStageStateSchema = zod.z.object({
3535
- stage: AgenticOnboardingStageSchema,
3534
+ const AgenticOnboardingCreateProjectExtraSchema = zod.z.object({ projectSlugs: zod.z.array(zod.z.string().trim().min(1)) }).strict();
3535
+ const AgenticOnboardingVerificationErrorExtraSchema = zod.z.object({ issueIds: zod.z.array(zod.z.string().trim().min(1)) }).strict();
3536
+ const AgenticOnboardingStageWithoutExtraSchema = AgenticOnboardingStageSchema.exclude(["create_project", "receive_verification_error"]);
3537
+ const AgenticOnboardingStageStateBaseSchema = zod.z.object({
3536
3538
  status: AgenticOnboardingStageStatusSchema.nullable(),
3537
3539
  eventNote: zod.z.string().nullable()
3538
3540
  });
3541
+ const AgenticOnboardingStageStateSchema = zod.z.discriminatedUnion("stage", [
3542
+ AgenticOnboardingStageStateBaseSchema.extend({
3543
+ stage: zod.z.literal("create_project"),
3544
+ extra: AgenticOnboardingCreateProjectExtraSchema.nullable()
3545
+ }),
3546
+ AgenticOnboardingStageStateBaseSchema.extend({
3547
+ stage: zod.z.literal("receive_verification_error"),
3548
+ extra: AgenticOnboardingVerificationErrorExtraSchema.nullable()
3549
+ }),
3550
+ AgenticOnboardingStageStateBaseSchema.extend({
3551
+ stage: AgenticOnboardingStageWithoutExtraSchema,
3552
+ extra: zod.z.null()
3553
+ })
3554
+ ]);
3539
3555
  const AgenticOnboardingRunStatusSchema = zod.z.enum([
3540
3556
  "active",
3541
3557
  "completed",
@@ -3543,16 +3559,28 @@ const AgenticOnboardingRunStatusSchema = zod.z.enum([
3543
3559
  "cancelled"
3544
3560
  ]);
3545
3561
  const AgenticOnboardingRunStatusUpdateSchema = zod.z.enum(["completed", "failed"]);
3546
- const AgenticOnboardingStatusUpdateSchema = zod.z.object({
3562
+ const AgenticOnboardingRunTokenSchema = zod.z.string().regex(/^[A-Za-z0-9]{10}$/);
3563
+ const AgenticOnboardingStatusUpdateBaseSchema = zod.z.object({
3547
3564
  schemaVersion: zod.z.literal(1),
3548
- runToken: zod.z.string().regex(/^[A-Za-z0-9]{10}$/),
3549
- stage: AgenticOnboardingStageSchema,
3565
+ runToken: AgenticOnboardingRunTokenSchema,
3550
3566
  status: AgenticOnboardingStageStatusUpdateSchema,
3551
3567
  runStatus: AgenticOnboardingRunStatusUpdateSchema.optional(),
3552
- eventNote: zod.z.string().trim().min(1).max(256).optional(),
3553
- projectSlugs: zod.z.array(zod.z.string().trim().min(1)).min(1).max(100).optional(),
3554
- issueIds: zod.z.array(zod.z.string().trim().min(1)).min(1).max(100).optional()
3568
+ eventNote: zod.z.string().trim().min(1).max(256).optional()
3555
3569
  });
3570
+ const AgenticOnboardingStatusUpdateSchema = zod.z.discriminatedUnion("stage", [
3571
+ AgenticOnboardingStatusUpdateBaseSchema.extend({
3572
+ stage: zod.z.literal("create_project"),
3573
+ extra: AgenticOnboardingCreateProjectExtraSchema.optional()
3574
+ }),
3575
+ AgenticOnboardingStatusUpdateBaseSchema.extend({
3576
+ stage: zod.z.literal("receive_verification_error"),
3577
+ extra: AgenticOnboardingVerificationErrorExtraSchema.optional()
3578
+ }),
3579
+ AgenticOnboardingStatusUpdateBaseSchema.extend({
3580
+ stage: AgenticOnboardingStageWithoutExtraSchema,
3581
+ extra: zod.z.never().optional()
3582
+ })
3583
+ ]);
3556
3584
  const AgenticOnboardingRunSchema = zod.z.object({
3557
3585
  schemaVersion: zod.z.literal(1),
3558
3586
  runId: zod.z.string(),
@@ -3564,13 +3592,11 @@ const AgenticOnboardingRunSchema = zod.z.object({
3564
3592
  expiresAt: zod.z.string(),
3565
3593
  continueUpdates: zod.z.boolean(),
3566
3594
  runStatus: AgenticOnboardingRunStatusSchema,
3567
- projectSlugs: zod.z.array(zod.z.string()).nullable().transform((projectSlugs) => projectSlugs ?? []),
3568
- issueIds: zod.z.array(zod.z.string()).nullable().transform((issueIds) => issueIds ?? []),
3569
3595
  stages: zod.z.array(AgenticOnboardingStageStateSchema)
3570
3596
  });
3571
3597
 
3572
3598
  //#endregion
3573
- //#region ../mcp-core/dist/client-D6yDDtIP.js
3599
+ //#region ../mcp-core/dist/client-IUNQkit5.js
3574
3600
  const SENTRY_MCP_SEARCH_EVENTS_REFERRER = "api.mcp.search-events";
3575
3601
  /**
3576
3602
  * Mapping of common network error codes to user-friendly messages.
@@ -5480,7 +5506,7 @@ var SentryApiService = class {
5480
5506
  const projects = Array.isArray(project) ? project : [project];
5481
5507
  for (const projectId of projects) queryParams.append("project", projectId);
5482
5508
  if (cursor) queryParams.set("cursor", cursor);
5483
- const response = await this.request(apiPath`/organizations/${organizationSlug}/ai-conversations/${conversationId}/` + `?${queryParams.toString()}`, void 0, opts);
5509
+ const response = await this.request(apiPath`/organizations/${organizationSlug}/agents/conversations/${conversationId}/` + `?${queryParams.toString()}`, void 0, opts);
5484
5510
  const body = await this.parseJsonResponse(response);
5485
5511
  const details = AIConversationDetailsResponseSchema.parse(body);
5486
5512
  title = details.title;
@@ -5512,7 +5538,7 @@ var SentryApiService = class {
5512
5538
  this.applyTimeParams(queryParams, statsPeriod, start, end);
5513
5539
  if (limit !== void 0) queryParams.set("per_page", String(limit));
5514
5540
  if (cursor) queryParams.set("cursor", cursor);
5515
- const response = await this.request(apiPath`/organizations/${organizationSlug}/ai-conversations/` + `?${queryParams.toString()}`, void 0, opts);
5541
+ const response = await this.request(apiPath`/organizations/${organizationSlug}/agents/conversations/` + `?${queryParams.toString()}`, void 0, opts);
5516
5542
  const body = await this.parseJsonResponse(response);
5517
5543
  return {
5518
5544
  conversations: AIConversationSummaryListSchema.parse(body),
@@ -13585,7 +13611,7 @@ function validateRegionUrl(regionUrl, baseHost) {
13585
13611
  }
13586
13612
 
13587
13613
  //#endregion
13588
- //#region ../mcp-core/dist/api-DMaAtiOC.js
13614
+ //#region ../mcp-core/dist/api-EaEPyKlQ.js
13589
13615
  /**
13590
13616
  * Create a Sentry API service from server context with optional region override
13591
13617
  * @param context - Server context containing host and access token
@@ -13621,7 +13647,7 @@ function structuredResult(structuredContent) {
13621
13647
  }
13622
13648
 
13623
13649
  //#endregion
13624
- //#region ../mcp-core/dist/whoami-Bcwm9KLI.js
13650
+ //#region ../mcp-core/dist/whoami-Bz6QKirR.js
13625
13651
  const whoamiOutputSchema = zod.z.object({
13626
13652
  user: zod.z.object({
13627
13653
  id: zod.z.string(),
@@ -13672,7 +13698,7 @@ var whoami_default = defineTool({
13672
13698
  });
13673
13699
 
13674
13700
  //#endregion
13675
- //#region ../mcp-core/dist/find-organizations-B8eEvMSe.js
13701
+ //#region ../mcp-core/dist/find-organizations-CXTZEMsb.js
13676
13702
  const RESULT_LIMIT$3 = 25;
13677
13703
  const findOrganizationsOutputSchema = zod.z.object({
13678
13704
  organizations: zod.z.array(zod.z.object({
@@ -13724,7 +13750,7 @@ var find_organizations_default = defineTool({
13724
13750
  });
13725
13751
 
13726
13752
  //#endregion
13727
- //#region ../mcp-core/dist/find-teams-BBN0maj8.js
13753
+ //#region ../mcp-core/dist/find-teams-ZsyAWNb7.js
13728
13754
  const RESULT_LIMIT$2 = 25;
13729
13755
  const findTeamsOutputSchema = zod.z.object({
13730
13756
  teams: zod.z.array(zod.z.object({
@@ -13782,7 +13808,7 @@ var find_teams_default = defineTool({
13782
13808
  });
13783
13809
 
13784
13810
  //#endregion
13785
- //#region ../mcp-core/dist/find-projects-BQlOuzsn.js
13811
+ //#region ../mcp-core/dist/find-projects-BYeZfQDF.js
13786
13812
  const RESULT_LIMIT$1 = 25;
13787
13813
  const findProjectsOutputSchema = zod.z.object({
13788
13814
  projects: zod.z.array(zod.z.object({ slug: zod.z.string() })),
@@ -13830,7 +13856,7 @@ var find_projects_default = defineTool({
13830
13856
  });
13831
13857
 
13832
13858
  //#endregion
13833
- //#region ../mcp-core/dist/find-releases-DMfxQgqG.js
13859
+ //#region ../mcp-core/dist/find-releases-fkgr4qqZ.js
13834
13860
  const RESULT_LIMIT = 25;
13835
13861
  const findReleasesOutputSchema = zod.z.object({
13836
13862
  releases: zod.z.array(zod.z.object({
@@ -13999,7 +14025,7 @@ function assertProjectListContainsConstraint({ resourceLabel, scopedProjectSlug,
13999
14025
  }
14000
14026
 
14001
14027
  //#endregion
14002
- //#region ../mcp-core/dist/get-release-details-CljC6wCl.js
14028
+ //#region ../mcp-core/dist/get-release-details-0bKoH-Gv.js
14003
14029
  function formatProjects(release) {
14004
14030
  if (!release.projects || release.projects.length === 0) return null;
14005
14031
  return release.projects.map((project) => project.slug ?? project.name).join(", ");
@@ -14283,7 +14309,7 @@ async function resolveDashboardId({ apiService, organizationSlug, dashboardIdOrT
14283
14309
  }
14284
14310
 
14285
14311
  //#endregion
14286
- //#region ../mcp-core/dist/find-dashboards-B3KQsHFB.js
14312
+ //#region ../mcp-core/dist/find-dashboards-DE0x5cIv.js
14287
14313
  const PROJECT_DASHBOARD_CURSOR_PREFIX = "mcp-dashboard-project:";
14288
14314
  const dashboardSummarySchema = zod.z.object({
14289
14315
  id: zod.z.string(),
@@ -14494,7 +14520,7 @@ var find_dashboards_default = defineTool({
14494
14520
  });
14495
14521
 
14496
14522
  //#endregion
14497
- //#region ../mcp-core/dist/get-dashboard-details-BkdZdrcO.js
14523
+ //#region ../mcp-core/dist/get-dashboard-details-7tf-4Q_F.js
14498
14524
  var get_dashboard_details_default = defineTool({
14499
14525
  name: "get_dashboard_details",
14500
14526
  skills: ["inspect"],
@@ -14568,7 +14594,7 @@ var get_dashboard_details_default = defineTool({
14568
14594
  });
14569
14595
 
14570
14596
  //#endregion
14571
- //#region ../mcp-core/dist/find-monitors-BuLPVVfF.js
14597
+ //#region ../mcp-core/dist/find-monitors-DOaVdrCU.js
14572
14598
  const ENVIRONMENT_LIMIT = 5;
14573
14599
  const monitorScheduleOutputSchema = zod.z.object({
14574
14600
  type: zod.z.string().nullable(),
@@ -14746,7 +14772,7 @@ var find_monitors_default = defineTool({
14746
14772
  });
14747
14773
 
14748
14774
  //#endregion
14749
- //#region ../mcp-core/dist/get-monitor-details-Dw08JE5C.js
14775
+ //#region ../mcp-core/dist/get-monitor-details-CP_Cj6P3.js
14750
14776
  function formatProject(monitor) {
14751
14777
  if (!monitor.project) return null;
14752
14778
  return monitor.project.slug ?? monitor.project.name ?? null;
@@ -15039,7 +15065,7 @@ function toUptimeMonitorSummary(monitor, webUrl) {
15039
15065
  }
15040
15066
 
15041
15067
  //#endregion
15042
- //#region ../mcp-core/dist/find-uptime-monitors-wwvEqMJm.js
15068
+ //#region ../mcp-core/dist/find-uptime-monitors-NZjkNLjM.js
15043
15069
  const findUptimeMonitorsOutputSchema = zod.z.object({
15044
15070
  monitors: zod.z.array(uptimeMonitorListItemSchema),
15045
15071
  hasMore: zod.z.boolean()
@@ -15107,7 +15133,7 @@ var find_uptime_monitors_default = defineTool({
15107
15133
  });
15108
15134
 
15109
15135
  //#endregion
15110
- //#region ../mcp-core/dist/get-uptime-monitor-details-Bs3wfI9g.js
15136
+ //#region ../mcp-core/dist/get-uptime-monitor-details-DfFRiDqD.js
15111
15137
  function formatCheck(check, monitorEnvironment) {
15112
15138
  const time = formatDate(check.timestamp) ?? formatDate(check.scheduledCheckTime) ?? "unknown time";
15113
15139
  const status = check.checkStatus ?? "unknown";
@@ -15229,7 +15255,7 @@ var get_uptime_monitor_details_default = defineTool({
15229
15255
  });
15230
15256
 
15231
15257
  //#endregion
15232
- //#region ../mcp-core/dist/create-uptime-monitor-bTFB8aG1.js
15258
+ //#region ../mcp-core/dist/create-uptime-monitor-fo-rIhsm.js
15233
15259
  const createUptimeMonitorOutputSchema = zod.z.object({ monitor: uptimeMonitorSummarySchema });
15234
15260
  var create_uptime_monitor_default = defineTool({
15235
15261
  name: "create_uptime_monitor",
@@ -15310,7 +15336,7 @@ var create_uptime_monitor_default = defineTool({
15310
15336
  });
15311
15337
 
15312
15338
  //#endregion
15313
- //#region ../mcp-core/dist/update-uptime-monitor-vaGtuRpk.js
15339
+ //#region ../mcp-core/dist/update-uptime-monitor-CXyi5lFD.js
15314
15340
  const updateUptimeMonitorOutputSchema = zod.z.object({ monitor: uptimeMonitorSummarySchema });
15315
15341
  function hasDefinedUpdate(value) {
15316
15342
  return value !== void 0;
@@ -15401,7 +15427,7 @@ var update_uptime_monitor_default = defineTool({
15401
15427
  });
15402
15428
 
15403
15429
  //#endregion
15404
- //#region ../mcp-core/dist/delete-uptime-monitor-BS1mdGQc.js
15430
+ //#region ../mcp-core/dist/delete-uptime-monitor-CHj4Cluv.js
15405
15431
  const deleteUptimeMonitorOutputSchema = zod.z.object({
15406
15432
  success: zod.z.literal(true),
15407
15433
  uptimeMonitorId: zod.z.string(),
@@ -15460,7 +15486,7 @@ var delete_uptime_monitor_default = defineTool({
15460
15486
  });
15461
15487
 
15462
15488
  //#endregion
15463
- //#region ../mcp-core/dist/find-alert-rules-sqKdwc-V.js
15489
+ //#region ../mcp-core/dist/find-alert-rules-Co9XjMKY.js
15464
15490
  const AlertRuleKind$1 = zod.z.enum([
15465
15491
  "all",
15466
15492
  "issue",
@@ -15881,7 +15907,7 @@ async function resolveMetricAlertRule(apiService, params) {
15881
15907
  }
15882
15908
 
15883
15909
  //#endregion
15884
- //#region ../mcp-core/dist/get-alert-rule-B1A6bUlg.js
15910
+ //#region ../mcp-core/dist/get-alert-rule-WfTdEa_v.js
15885
15911
  const AlertRuleKind = zod.z.enum([
15886
15912
  "all",
15887
15913
  "issue",
@@ -16073,7 +16099,7 @@ function formatAvailableToolCallInstruction({ toolName, experimentalMode, purpos
16073
16099
  }
16074
16100
 
16075
16101
  //#endregion
16076
- //#region ../mcp-core/dist/ai-conversation-actions-IfSDkbl6.js
16102
+ //#region ../mcp-core/dist/ai-conversation-actions-rbKawWyG.js
16077
16103
  const MAX_SUGGESTED_ACTIONS = 3;
16078
16104
  function formatInlineCode$1(value) {
16079
16105
  const backtickRuns = value.match(/`+/g) ?? [];
@@ -16084,8 +16110,8 @@ function formatInlineCode$1(value) {
16084
16110
  }
16085
16111
  /** Builds transcript actions that match the session's direct or catalog surface. */
16086
16112
  function getAIConversationSuggestedActions({ organizationSlug, aiConversations, experimentalMode, availableToolNames, directToolNames }) {
16087
- if (aiConversations.length === 0 || !isToolAvailableInSession("get_ai_conversation_details", availableToolNames)) return [];
16088
- const targetIsDirect = directToolNames ? directToolNames.has("get_ai_conversation_details") : isTopLevelToolName("get_ai_conversation_details", experimentalMode);
16113
+ if (aiConversations.length === 0 || !isToolAvailableInSession("get_agent_conversation_details", availableToolNames)) return [];
16114
+ const targetIsDirect = directToolNames ? directToolNames.has("get_agent_conversation_details") : isTopLevelToolName("get_agent_conversation_details", experimentalMode);
16089
16115
  const executeToolIsDirect = directToolNames ? directToolNames.has("execute_sentry_tool") : isTopLevelToolName("execute_sentry_tool", experimentalMode);
16090
16116
  const useCatalogGateway = !targetIsDirect && executeToolIsDirect && isToolAvailableInSession("execute_sentry_tool", availableToolNames);
16091
16117
  if (!targetIsDirect && !useCatalogGateway) return [];
@@ -16096,17 +16122,17 @@ function getAIConversationSuggestedActions({ organizationSlug, aiConversations,
16096
16122
  };
16097
16123
  return targetIsDirect ? {
16098
16124
  type: "tool_call",
16099
- toolName: "get_ai_conversation_details",
16125
+ toolName: "get_agent_conversation_details",
16100
16126
  arguments: targetArguments,
16101
- reason: "Fetch the full transcript for this AI conversation."
16127
+ reason: "Fetch the full transcript for this agent conversation."
16102
16128
  } : {
16103
16129
  type: "tool_call",
16104
16130
  toolName: "execute_sentry_tool",
16105
16131
  arguments: {
16106
- name: "get_ai_conversation_details",
16132
+ name: "get_agent_conversation_details",
16107
16133
  arguments: targetArguments
16108
16134
  },
16109
- reason: "Fetch the full transcript for this AI conversation."
16135
+ reason: "Fetch the full transcript for this agent conversation."
16110
16136
  };
16111
16137
  });
16112
16138
  }
@@ -16119,7 +16145,7 @@ function formatAIConversationActionInstructions({ organizationSlug, aiConversati
16119
16145
  availableToolNames,
16120
16146
  directToolNames
16121
16147
  });
16122
- if (actions.length === 0) return ["AI conversation detail lookup is not available in this session."];
16148
+ if (actions.length === 0) return ["Agent conversation detail lookup is not available in this session."];
16123
16149
  return actions.map((action) => `Use the Sentry tool ${formatInlineCode$1(formatToolCall({
16124
16150
  toolName: action.toolName,
16125
16151
  arguments: action.arguments
@@ -16476,7 +16502,7 @@ function formatUserGeoSummary(value) {
16476
16502
  }
16477
16503
 
16478
16504
  //#endregion
16479
- //#region ../mcp-core/dist/formatting-BFdyKVeP.js
16505
+ //#region ../mcp-core/dist/formatting-Cviy8-dX.js
16480
16506
  /**
16481
16507
  * Convert Seer fixability score to actionability label.
16482
16508
  * Thresholds match Sentry core: src/sentry/seer/autofix/constants.py
@@ -17735,10 +17761,10 @@ function formatAIConversationResponseNote({ aiConversations, organizationSlug, e
17735
17761
  if (aiConversations.length === 1) {
17736
17762
  const [conversation] = aiConversations;
17737
17763
  const spanSuffix = conversation.spanId ? ` Matching span: \`${conversation.spanId}\`.` : "";
17738
- return `- AI conversation found in this trace: \`${conversation.conversationId}\`.${spanSuffix}\n${instructions.map((instruction) => `- ${instruction}`).join("\n")}\n`;
17764
+ return `- Agent conversation found in this trace: \`${conversation.conversationId}\`.${spanSuffix}\n${instructions.map((instruction) => `- ${instruction}`).join("\n")}\n`;
17739
17765
  }
17740
17766
  const conversationIds = aiConversations.map((conversation) => `\`${conversation.conversationId}\``).join(", ");
17741
- return `- Multiple AI conversations were found in this trace: ${conversationIds}.\n${instructions.map((instruction) => `- ${instruction}`).join("\n")}\n`;
17767
+ return `- Multiple agent conversations were found in this trace: ${conversationIds}.\n${instructions.map((instruction) => `- ${instruction}`).join("\n")}\n`;
17742
17768
  }
17743
17769
  const MAX_DISPLAY_REPLAYS = 5;
17744
17770
  function formatIssueReplayOutput({ apiService, organizationSlug, event, relatedReplayIds, experimentalMode, availableToolNames, directToolNames }) {
@@ -17846,7 +17872,7 @@ async function ensureIssueWithinProjectConstraint({ apiService, organizationSlug
17846
17872
  }
17847
17873
 
17848
17874
  //#endregion
17849
- //#region ../mcp-core/dist/code-location-SdL4udQr.js
17875
+ //#region ../mcp-core/dist/code-location-C0fIXD0V.js
17850
17876
  const CODE_LOCATION_TIMEOUT_MS = 3e3;
17851
17877
  /** Resolves a verified source location, omitting optional enrichment failures. */
17852
17878
  async function resolveCodeLocation({ apiService, organizationSlug, projectSlug: projectSlug$1, event }) {
@@ -17949,7 +17975,7 @@ function getString$1(value) {
17949
17975
  }
17950
17976
 
17951
17977
  //#endregion
17952
- //#region ../mcp-core/dist/get-issue-details-DcUAzK0X.js
17978
+ //#region ../mcp-core/dist/get-issue-details-DHDUffp5.js
17953
17979
  const MAX_AI_CONVERSATION_MATCHES = 3;
17954
17980
  const AI_CONVERSATION_LOOKUP_WINDOW_MS = 24 * 60 * 60 * 1e3;
17955
17981
  const TRACE_ID_PATTERN = /^[0-9a-fA-F]{32}$/;
@@ -18323,7 +18349,7 @@ function getReplayDataSource(issue) {
18323
18349
  }
18324
18350
 
18325
18351
  //#endregion
18326
- //#region ../mcp-core/dist/event-stacktrace-DXjbyEvk.js
18352
+ //#region ../mcp-core/dist/event-stacktrace-DNVGqkZt.js
18327
18353
  /**
18328
18354
  * Fetches an issue event and formats the selected thread stacktrace.
18329
18355
  */
@@ -18402,7 +18428,7 @@ function selectUnique(threads, predicate, notFoundMessage, ambiguousMessage) {
18402
18428
  }
18403
18429
 
18404
18430
  //#endregion
18405
- //#region ../mcp-core/dist/get-event-stacktrace-CuHY3ND9.js
18431
+ //#region ../mcp-core/dist/get-event-stacktrace-ODRk7GSR.js
18406
18432
  var get_event_stacktrace_default = defineTool({
18407
18433
  name: "get_event_stacktrace",
18408
18434
  skills: [
@@ -18473,7 +18499,7 @@ var get_event_stacktrace_default = defineTool({
18473
18499
  });
18474
18500
 
18475
18501
  //#endregion
18476
- //#region ../mcp-core/dist/get-issue-activity-5KDCJR-p.js
18502
+ //#region ../mcp-core/dist/get-issue-activity-CKhQWy99.js
18477
18503
  function getActivityText(activity) {
18478
18504
  const data = activity.data;
18479
18505
  if (!data) return null;
@@ -18630,7 +18656,7 @@ function cleanAndTruncate(str, maxLen) {
18630
18656
  }
18631
18657
 
18632
18658
  //#endregion
18633
- //#region ../mcp-core/dist/get-issue-breadcrumbs-DC2bbtD9.js
18659
+ //#region ../mcp-core/dist/get-issue-breadcrumbs-D5AeF8Vm.js
18634
18660
  var get_issue_breadcrumbs_default = defineTool({
18635
18661
  name: "get_issue_breadcrumbs",
18636
18662
  skills: ["inspect", "triage"],
@@ -18692,7 +18718,7 @@ var get_issue_breadcrumbs_default = defineTool({
18692
18718
  });
18693
18719
 
18694
18720
  //#endregion
18695
- //#region ../mcp-core/dist/get-issue-tag-values-s2UCqwFY.js
18721
+ //#region ../mcp-core/dist/get-issue-tag-values-DtJZnl37.js
18696
18722
  const getIssueTagValuesOutputSchema = zod.z.object({ tag: zod.z.object({
18697
18723
  key: zod.z.string(),
18698
18724
  name: zod.z.string(),
@@ -18810,7 +18836,7 @@ var get_issue_tag_values_default = defineTool({
18810
18836
  });
18811
18837
 
18812
18838
  //#endregion
18813
- //#region ../mcp-core/dist/get-issue-user-reports-DK4dlXQw.js
18839
+ //#region ../mcp-core/dist/get-issue-user-reports-D73TLuX2.js
18814
18840
  function getReporter(report) {
18815
18841
  const userId = report.user?.id?.trim();
18816
18842
  const userIdReporter = userId && !["none", "null"].includes(userId.toLowerCase()) ? `user:${userId}` : null;
@@ -22398,7 +22424,7 @@ function createAnthropic(options = {}) {
22398
22424
  var anthropic = createAnthropic();
22399
22425
 
22400
22426
  //#endregion
22401
- //#region ../mcp-core/dist/anthropic-provider-C-45QP4l.js
22427
+ //#region ../mcp-core/dist/anthropic-provider-CRd6GA4E.js
22402
22428
  const DEFAULT_ANTHROPIC_MODEL = "claude-sonnet-4-5";
22403
22429
  let configuredBaseUrl$2;
22404
22430
  /**
@@ -27051,7 +27077,7 @@ function createOpenAI(options = {}) {
27051
27077
  var openai = createOpenAI();
27052
27078
 
27053
27079
  //#endregion
27054
- //#region ../mcp-core/dist/azure-openai-provider-PvwUdQdW.js
27080
+ //#region ../mcp-core/dist/azure-openai-provider-BNAjkBmg.js
27055
27081
  const DEFAULT_OPENAI_MODEL$1 = "gpt-5";
27056
27082
  let configuredBaseUrl$1;
27057
27083
  function setAzureOpenAIBaseUrl(baseUrl) {
@@ -27109,7 +27135,7 @@ function getAzureOpenAIModel(model) {
27109
27135
  }
27110
27136
 
27111
27137
  //#endregion
27112
- //#region ../mcp-core/dist/openai-provider-BzntkX9S.js
27138
+ //#region ../mcp-core/dist/openai-provider-DK3FdwQ_.js
27113
27139
  const DEFAULT_OPENAI_MODEL = "gpt-5";
27114
27140
  let configuredBaseUrl;
27115
27141
  /**
@@ -27149,7 +27175,7 @@ function getOpenAIModel(model) {
27149
27175
  }
27150
27176
 
27151
27177
  //#endregion
27152
- //#region ../mcp-core/dist/openrouter-provider-Cu-06-oT.js
27178
+ //#region ../mcp-core/dist/openrouter-provider-JT8w8qQ6.js
27153
27179
  const DEFAULT_OPENROUTER_MODEL = "openai/gpt-5.6-luna";
27154
27180
  const DEFAULT_OPENROUTER_REASONING_EFFORT = "high";
27155
27181
  const OPENROUTER_BASE_URL = "https://openrouter.ai/api/v1";
@@ -27201,7 +27227,7 @@ function getOpenRouterProviderOptions() {
27201
27227
  }
27202
27228
 
27203
27229
  //#endregion
27204
- //#region ../mcp-core/dist/provider-factory-CAtmx4c3.js
27230
+ //#region ../mcp-core/dist/provider-factory-Cs_2DBhe.js
27205
27231
  let configuredProvider;
27206
27232
  /**
27207
27233
  * Configure the embedded agent provider explicitly.
@@ -27346,7 +27372,7 @@ function getResolvedProviderType() {
27346
27372
  }
27347
27373
 
27348
27374
  //#endregion
27349
- //#region ../mcp-core/dist/resolve-region-url-Dwivf40W.js
27375
+ //#region ../mcp-core/dist/resolve-region-url-DutLwiPb.js
27350
27376
  const regionUrlCache = /* @__PURE__ */ new WeakMap();
27351
27377
  function getRegionUrlCache(context$1) {
27352
27378
  let cache = regionUrlCache.get(context$1);
@@ -27773,7 +27799,7 @@ function formatDisplayPart(value, maxLength) {
27773
27799
  }
27774
27800
 
27775
27801
  //#endregion
27776
- //#region ../mcp-core/dist/get-trace-details-DR8JmmZL.js
27802
+ //#region ../mcp-core/dist/get-trace-details-D7U8b5_V.js
27777
27803
  const MAX_TRACE_FETCH_LIMIT = 1e3;
27778
27804
  const MAX_FOCUSED_TRACE_FETCH_LIMIT = 1e4;
27779
27805
  const MIN_TRACE_FETCH_LIMIT = 50;
@@ -28453,7 +28479,7 @@ function formatAIConversationSection({ aiConversations, organizationSlug, experi
28453
28479
  availableToolNames,
28454
28480
  directToolNames
28455
28481
  });
28456
- const lines = ["## AI Conversations", ""];
28482
+ const lines = ["## Agent Conversations", ""];
28457
28483
  if (aiConversations.length === 1) {
28458
28484
  const [conversation] = aiConversations;
28459
28485
  lines.push(`**Conversation ID**: \`${conversation.conversationId}\``);
@@ -28533,7 +28559,7 @@ function buildTraceNextSteps({ organizationSlug, traceId, spanFocused = false, e
28533
28559
  }
28534
28560
 
28535
28561
  //#endregion
28536
- //#region ../mcp-core/dist/get-span-details-Dc0FvP6F.js
28562
+ //#region ../mcp-core/dist/get-span-details-DfXIT1v_.js
28537
28563
  var get_span_details_default = defineTool({
28538
28564
  name: "get_span_details",
28539
28565
  skills: ["inspect"],
@@ -28837,7 +28863,7 @@ function isProfileUrl(url) {
28837
28863
  }
28838
28864
 
28839
28865
  //#endregion
28840
- //#region ../mcp-core/dist/get-replay-details-uCKMI7mX.js
28866
+ //#region ../mcp-core/dist/get-replay-details-BWeEKq_j.js
28841
28867
  const MAX_ACTIVITY_EVENTS = 6;
28842
28868
  const MAX_RELATED_ERRORS = 3;
28843
28869
  const MAX_RELATED_TRACES = 2;
@@ -29174,7 +29200,7 @@ function quoteDetail(value) {
29174
29200
  }
29175
29201
 
29176
29202
  //#endregion
29177
- //#region ../mcp-core/dist/get-event-attachment-CwCwduFJ.js
29203
+ //#region ../mcp-core/dist/get-event-attachment-h8oTTPZt.js
29178
29204
  var get_event_attachment_default = defineTool({
29179
29205
  name: "get_event_attachment",
29180
29206
  skills: ["inspect"],
@@ -29331,7 +29357,7 @@ function formatAssignedTo(assignedTo) {
29331
29357
  }
29332
29358
 
29333
29359
  //#endregion
29334
- //#region ../mcp-core/dist/update-issue-DtWh6F3i.js
29360
+ //#region ../mcp-core/dist/update-issue-q9a5YNJb.js
29335
29361
  function pluralize(value, noun) {
29336
29362
  return `${value} ${noun}${value === 1 ? "" : "s"}`;
29337
29363
  }
@@ -29777,7 +29803,7 @@ async function withProviderFallback({ operation, fallback, onFallback, run }) {
29777
29803
  }
29778
29804
 
29779
29805
  //#endregion
29780
- //#region ../mcp-core/dist/callEmbeddedAgent-DIqFZbxC.js
29806
+ //#region ../mcp-core/dist/callEmbeddedAgent-ffwEeqdP.js
29781
29807
  /**
29782
29808
  * Resolve the underlying provider failure from an AI SDK error.
29783
29809
  *
@@ -36185,7 +36211,7 @@ function createValidateEventsSearchTool(options) {
36185
36211
  }
36186
36212
 
36187
36213
  //#endregion
36188
- //#region ../mcp-core/dist/agent-ayC9jvgp.js
36214
+ //#region ../mcp-core/dist/agent-BCH9XRWB.js
36189
36215
  const SEARCH_EVENTS_DATASETS$1 = [...require_constants.PUBLIC_EVENTS_DATASETS, "replays"];
36190
36216
  const searchEventsAgentOutputSchema = zod.z.object({
36191
36217
  dataset: zod.z.enum(SEARCH_EVENTS_DATASETS$1).describe("Which dataset to use for the query"),
@@ -37101,7 +37127,7 @@ function formatReplayEnvironment(environment) {
37101
37127
  }
37102
37128
 
37103
37129
  //#endregion
37104
- //#region ../mcp-core/dist/search-events-C6b15gQr.js
37130
+ //#region ../mcp-core/dist/search-events-C8aVtdIY.js
37105
37131
  const SEARCH_EVENTS_DATASETS = [...require_constants.PUBLIC_EVENTS_DATASETS, "replays"];
37106
37132
  const DEFAULT_EVENTS_SORT = "-timestamp";
37107
37133
  function defaultSortForDataset(dataset) {
@@ -37512,7 +37538,7 @@ var search_events_default = defineTool({
37512
37538
  });
37513
37539
 
37514
37540
  //#endregion
37515
- //#region ../mcp-core/dist/create-team-UZfzR4Lf.js
37541
+ //#region ../mcp-core/dist/create-team-Bz1tSDLQ.js
37516
37542
  const createTeamOutputSchema = zod.z.object({ team: zod.z.object({
37517
37543
  id: zod.z.string(),
37518
37544
  slug: zod.z.string(),
@@ -37571,7 +37597,7 @@ var create_team_default = defineTool({
37571
37597
  });
37572
37598
 
37573
37599
  //#endregion
37574
- //#region ../mcp-core/dist/create-project-DoT9SNKl.js
37600
+ //#region ../mcp-core/dist/create-project-CTQakq9G.js
37575
37601
  function getUsableClientKey(clientKeys) {
37576
37602
  return clientKeys.find((key) => key.name === "Default" && key.isActive && key.dsn.public) ?? clientKeys.find((key) => key.isActive && key.dsn.public);
37577
37603
  }
@@ -37727,7 +37753,7 @@ var create_project_default = defineTool({
37727
37753
  });
37728
37754
 
37729
37755
  //#endregion
37730
- //#region ../mcp-core/dist/update-project-BVUkHb6W.js
37756
+ //#region ../mcp-core/dist/update-project-BYY10KTt.js
37731
37757
  const updateProjectOutputSchema = zod.z.object({ project: zod.z.object({
37732
37758
  id: zod.z.string(),
37733
37759
  slug: zod.z.string(),
@@ -37816,7 +37842,7 @@ var update_project_default = defineTool({
37816
37842
  });
37817
37843
 
37818
37844
  //#endregion
37819
- //#region ../mcp-core/dist/add-team-to-project-BcjhSVv9.js
37845
+ //#region ../mcp-core/dist/add-team-to-project-DrTGc_T9.js
37820
37846
  const assignedTeamSchema$1 = zod.z.object({
37821
37847
  id: zod.z.string(),
37822
37848
  slug: zod.z.string(),
@@ -37903,7 +37929,7 @@ var add_team_to_project_default = defineTool({
37903
37929
  });
37904
37930
 
37905
37931
  //#endregion
37906
- //#region ../mcp-core/dist/remove-team-from-project-CzsGsrNX.js
37932
+ //#region ../mcp-core/dist/remove-team-from-project-CT7eqBf7.js
37907
37933
  const assignedTeamSchema = zod.z.object({
37908
37934
  id: zod.z.string(),
37909
37935
  slug: zod.z.string(),
@@ -37989,7 +38015,7 @@ var remove_team_from_project_default = defineTool({
37989
38015
  });
37990
38016
 
37991
38017
  //#endregion
37992
- //#region ../mcp-core/dist/create-dsn-0B3xp6l2.js
38018
+ //#region ../mcp-core/dist/create-dsn-C-kIpqG7.js
37993
38019
  const createDsnOutputSchema = zod.z.object({ dsn: zod.z.object({
37994
38020
  id: zod.z.string(),
37995
38021
  name: zod.z.string(),
@@ -38054,7 +38080,7 @@ var create_dsn_default = defineTool({
38054
38080
  });
38055
38081
 
38056
38082
  //#endregion
38057
- //#region ../mcp-core/dist/find-dsns-BNvmAOcj.js
38083
+ //#region ../mcp-core/dist/find-dsns-DCUQXIHr.js
38058
38084
  const findDsnsOutputSchema = zod.z.object({ dsns: zod.z.array(zod.z.object({
38059
38085
  id: zod.z.string(),
38060
38086
  name: zod.z.string(),
@@ -38104,7 +38130,7 @@ var find_dsns_default = defineTool({
38104
38130
  });
38105
38131
 
38106
38132
  //#endregion
38107
- //#region ../mcp-core/dist/update-dsn-CZezkYWS.js
38133
+ //#region ../mcp-core/dist/update-dsn-Ce0IWsRx.js
38108
38134
  var update_dsn_default = defineTool({
38109
38135
  name: "update_dsn",
38110
38136
  skills: ["project-management"],
@@ -38288,7 +38314,7 @@ async function retryWithBackoff(fn, { maxRetries = 3, initialDelay = 1e3, should
38288
38314
  }
38289
38315
 
38290
38316
  //#endregion
38291
- //#region ../mcp-core/dist/analyze-issue-with-seer-D9pdpxPy.js
38317
+ //#region ../mcp-core/dist/analyze-issue-with-seer-Dy01BWPf.js
38292
38318
  var analyze_issue_with_seer_default = defineTool({
38293
38319
  name: "analyze_issue_with_seer",
38294
38320
  skills: ["seer"],
@@ -38574,7 +38600,7 @@ var search_docs_default = defineTool({
38574
38600
  });
38575
38601
 
38576
38602
  //#endregion
38577
- //#region ../mcp-core/dist/get-doc-Cf8A3QK3.js
38603
+ //#region ../mcp-core/dist/get-doc-CnSvhrTG.js
38578
38604
  var get_doc_default = defineTool({
38579
38605
  name: "get_doc",
38580
38606
  skills: ["inspect", "docs"],
@@ -38749,7 +38775,7 @@ Use issueFields only when a requested field is not in the built-in fields list.
38749
38775
  Use whoami only for natural-language me references.`;
38750
38776
 
38751
38777
  //#endregion
38752
- //#region ../mcp-core/dist/agent-7xmoLkvN.js
38778
+ //#region ../mcp-core/dist/agent-BIAUd2t1.js
38753
38779
  const searchIssuesAgentOutputSchema = zod.z.object({
38754
38780
  query: zod.z.string().describe("The Sentry issue search query"),
38755
38781
  sort: zod.z.enum([
@@ -38783,7 +38809,7 @@ async function searchIssuesAgent(options) {
38783
38809
  }
38784
38810
 
38785
38811
  //#endregion
38786
- //#region ../mcp-core/dist/formatters-DpDymxZv.js
38812
+ //#region ../mcp-core/dist/formatters-3Z1cdvzp.js
38787
38813
  /**
38788
38814
  * Format an explanation for how the input query was translated
38789
38815
  */
@@ -38877,7 +38903,7 @@ function formatDate$1(dateString) {
38877
38903
  }
38878
38904
 
38879
38905
  //#endregion
38880
- //#region ../mcp-core/dist/search-issues-DOlBMTd9.js
38906
+ //#region ../mcp-core/dist/search-issues-CQ0efOru.js
38881
38907
  const ProjectSlugOrIdSchema = zod.z.string().trim().superRefine(validateSlugOrId);
38882
38908
  function buildIssueSearchRepairPrompt(params) {
38883
38909
  return [
@@ -39473,7 +39499,7 @@ Received: ${params.issueUrl}`);
39473
39499
  }
39474
39500
 
39475
39501
  //#endregion
39476
- //#region ../mcp-core/dist/agent-DpkAZ6y_.js
39502
+ //#region ../mcp-core/dist/agent-Bbb5dUlD.js
39477
39503
  const searchIssueEventsAgentOutputSchema = zod.z.object({
39478
39504
  query: zod.z.string().describe("Sentry query filters for tags/fields (NOT including issue: prefix - handler adds that)"),
39479
39505
  fields: zod.z.array(zod.z.string()).describe("Array of field names to return in results"),
@@ -39515,7 +39541,7 @@ async function searchIssueEventsAgent(options) {
39515
39541
  }
39516
39542
 
39517
39543
  //#endregion
39518
- //#region ../mcp-core/dist/search-issue-events-CqBP6sur.js
39544
+ //#region ../mcp-core/dist/search-issue-events-fYjr_r6r.js
39519
39545
  function buildIssueEventSearchRepairPrompt(params) {
39520
39546
  return [
39521
39547
  "Fix this Sentry issue event search request.",
@@ -40044,7 +40070,7 @@ function formatSdkSummary(profile) {
40044
40070
  }
40045
40071
 
40046
40072
  //#endregion
40047
- //#region ../mcp-core/dist/get-profile-Duy75Tza.js
40073
+ //#region ../mcp-core/dist/get-profile-CilEVKTg.js
40048
40074
  /**
40049
40075
  * Resolves profile parameters from URL or explicit params.
40050
40076
  * URL takes precedence if provided and valid.
@@ -40262,7 +40288,7 @@ var get_profile_default = defineTool({
40262
40288
  });
40263
40289
 
40264
40290
  //#endregion
40265
- //#region ../mcp-core/dist/get-profile-details-CquM8Vcr.js
40291
+ //#region ../mcp-core/dist/get-profile-details-B7TCia0B.js
40266
40292
  function resolveProfileDetailsParams(params) {
40267
40293
  if (params.profileUrl) {
40268
40294
  if (!isProfileUrl(params.profileUrl)) throw new UserInputError("Invalid profile URL. URL must point to a Sentry profile resource.");
@@ -40490,7 +40516,7 @@ var get_profile_details_default = defineTool({
40490
40516
  });
40491
40517
 
40492
40518
  //#endregion
40493
- //#region ../mcp-core/dist/get-ai-conversation-details-DWPdG2Kt.js
40519
+ //#region ../mcp-core/dist/get-agent-conversation-details-DTJR8hFg.js
40494
40520
  function withoutUndefined(value) {
40495
40521
  return Object.fromEntries(Object.entries(value).filter(([, item]) => item !== void 0));
40496
40522
  }
@@ -40850,8 +40876,8 @@ function buildConversationArtifact(apiService, organizationSlug, conversationId,
40850
40876
  timeline
40851
40877
  });
40852
40878
  }
40853
- var get_ai_conversation_details_default = defineTool({
40854
- name: "get_ai_conversation_details",
40879
+ var get_agent_conversation_details_default = defineTool({
40880
+ name: "get_agent_conversation_details",
40855
40881
  skills: [
40856
40882
  "inspect",
40857
40883
  "triage",
@@ -40859,13 +40885,13 @@ var get_ai_conversation_details_default = defineTool({
40859
40885
  ],
40860
40886
  requiredScopes: ["event:read", "project:read"],
40861
40887
  description: [
40862
- "Fetch the chronological transcript and debugging details for one AI conversation.",
40888
+ "Fetch the chronological transcript and debugging details for one agent conversation, formerly called an AI conversation.",
40863
40889
  "",
40864
- "Returns a timeline of user messages, assistant messages, and tool calls, with trace/span IDs for deeper debugging. To discover or list conversations, use search_ai_conversations."
40890
+ "Returns a timeline of user messages, assistant messages, and tool calls, with trace/span IDs for deeper debugging. To discover or list conversations, use search_agent_conversations."
40865
40891
  ].join("\n"),
40866
40892
  inputSchema: {
40867
40893
  organizationSlug: ParamOrganizationSlug,
40868
- conversationId: zod.z.string().trim().describe("The AI conversation ID from gen_ai.conversation.id."),
40894
+ conversationId: zod.z.string().trim().describe("The agent conversation ID from gen_ai.conversation.id."),
40869
40895
  project: zod.z.string().trim().optional().describe("Numeric project ID to scope the query. Falls back to context constraint or all projects."),
40870
40896
  start: zod.z.string().trim().optional().describe("Explicit start time for the conversation lookup window."),
40871
40897
  end: zod.z.string().trim().optional().describe("Explicit end time for the conversation lookup window."),
@@ -41266,7 +41292,7 @@ async function fetchSnapshotSummary(apiService, organizationSlug, snapshotId, so
41266
41292
  }
41267
41293
 
41268
41294
  //#endregion
41269
- //#region ../mcp-core/dist/get-snapshot-FIEfp2KJ.js
41295
+ //#region ../mcp-core/dist/get-snapshot-Ce1Z98WR.js
41270
41296
  var get_snapshot_default = defineTool({
41271
41297
  name: "get_snapshot",
41272
41298
  skills: ["inspect"],
@@ -41344,7 +41370,7 @@ var get_snapshot_default = defineTool({
41344
41370
  });
41345
41371
 
41346
41372
  //#endregion
41347
- //#region ../mcp-core/dist/get-snapshot-image-Bk-yECIP.js
41373
+ //#region ../mcp-core/dist/get-snapshot-image-CWtW-DQz.js
41348
41374
  var get_snapshot_image_default = defineTool({
41349
41375
  name: "get_snapshot_image",
41350
41376
  skills: ["inspect"],
@@ -41405,7 +41431,7 @@ var get_snapshot_image_default = defineTool({
41405
41431
  });
41406
41432
 
41407
41433
  //#endregion
41408
- //#region ../mcp-core/dist/get-sentry-resource-CWv14jwM.js
41434
+ //#region ../mcp-core/dist/get-sentry-resource-DAx17Rhc.js
41409
41435
  /** Types with full API integration. */
41410
41436
  const FULLY_SUPPORTED_TYPES = [
41411
41437
  "issue",
@@ -41480,7 +41506,7 @@ function resolveFromParsedUrl(parsed, params) {
41480
41506
  });
41481
41507
  if (detectedType === "unknown") {
41482
41508
  if (parsed.transaction) throw new UserInputError(`Detected a performance summary URL for transaction "${parsed.transaction}". Use \`search_events\` to find traces and performance data for this transaction.`);
41483
- throw new UserInputError("Could not determine resource type from URL. Supported URL patterns: issues, events, traces, AI conversations, profiles, replays, monitors, and releases.");
41509
+ throw new UserInputError("Could not determine resource type from URL. Supported URL patterns: issues, events, traces, agent conversations, profiles, replays, monitors, and releases.");
41484
41510
  }
41485
41511
  if (params.resourceType && params.resourceType !== detectedType) {
41486
41512
  if (params.resourceType === "trace" && detectedType === "span") {
@@ -41525,7 +41551,7 @@ function resolveFromParsedUrl(parsed, params) {
41525
41551
  spanId: parsed.spanId
41526
41552
  };
41527
41553
  case "ai_conversation":
41528
- if (!parsed.conversationId) throw new UserInputError("Could not extract AI conversation ID from URL.");
41554
+ if (!parsed.conversationId) throw new UserInputError("Could not extract agent conversation ID from URL.");
41529
41555
  return {
41530
41556
  type: "ai_conversation",
41531
41557
  organizationSlug,
@@ -41645,7 +41671,7 @@ var get_sentry_resource_default = defineTool({
41645
41671
  fallbackInstruction: "Full-resolution snapshot image bytes are not available in this session",
41646
41672
  purpose: "for full-resolution image bytes"
41647
41673
  });
41648
- const supportedResources = monitorResourcesAvailable ? "issues, events, traces, spans, AI conversations, replays, monitors, preprod snapshots, and snapshot images." : "issues, events, traces, spans, AI conversations, replays, preprod snapshots, and snapshot images.";
41674
+ const supportedResources = monitorResourcesAvailable ? "issues, events, traces, spans, agent conversations, replays, monitors, preprod snapshots, and snapshot images." : "issues, events, traces, spans, agent conversations, replays, preprod snapshots, and snapshot images.";
41649
41675
  const resourceIds = [...monitorResourcesAvailable ? ["- monitor: <monitorSlug>"] : [], "- snapshot: <snapshotId>"];
41650
41676
  return [
41651
41677
  "Fetch a Sentry resource by URL, or by resourceType plus resourceId.",
@@ -41654,7 +41680,7 @@ var get_sentry_resource_default = defineTool({
41654
41680
  `Supports ${supportedResources}`,
41655
41681
  "Trace lookups return a condensed overview by default.",
41656
41682
  "",
41657
- "AI Conversations: A conversation is a set of spans sharing the same gen_ai.conversation.id. Use resourceType='ai_conversation' with a conversation ID, or pass a Sentry conversation URL, to fetch the transcript/details. To discover or list conversations, use search_ai_conversations. Conversations are NOT issues — do not use search_issues for conversation queries.",
41683
+ "Agent Conversations: A conversation is a set of spans sharing the same gen_ai.conversation.id. Use resourceType='ai_conversation' with a conversation ID, or pass a Sentry conversation URL, to fetch the transcript/details. To discover or list conversations, use search_agent_conversations. Conversations are NOT issues — do not use search_issues for conversation queries.",
41658
41684
  "",
41659
41685
  "For preprod snapshot URLs (matching 'sentry.io/preprod/snapshots/'):",
41660
41686
  "- Without ?selectedSnapshot=: returns the snapshot diff summary (changed, added, removed images)",
@@ -41683,7 +41709,7 @@ var get_sentry_resource_default = defineTool({
41683
41709
  "monitor",
41684
41710
  "snapshot"
41685
41711
  ]).optional().describe("Resource type. With a URL, can override a span-focused trace URL with `trace`. Use `monitor` with a monitor slug only when inspect monitor tools are available or `snapshot` with a snapshot artifact ID."),
41686
- resourceId: zod.z.string().trim().optional().describe("Resource identifier: issue shortId (e.g., 'PROJECT-123'), event ID, trace ID, AI conversation ID, replay ID, monitor slug when inspect monitor tools are available, or snapshot artifact ID. Required when not using a URL."),
41712
+ resourceId: zod.z.string().trim().optional().describe("Resource identifier: issue shortId (e.g., 'PROJECT-123'), event ID, trace ID, agent conversation ID, replay ID, monitor slug when inspect monitor tools are available, or snapshot artifact ID. Required when not using a URL."),
41687
41713
  organizationSlug: ParamOrganizationSlug.optional()
41688
41714
  },
41689
41715
  annotations: {
@@ -41730,7 +41756,7 @@ var get_sentry_resource_default = defineTool({
41730
41756
  spanId: resolved.spanId,
41731
41757
  regionUrl: context$1.constraints.regionUrl ?? null
41732
41758
  }, context$1);
41733
- case "ai_conversation": return get_ai_conversation_details_default.handler({
41759
+ case "ai_conversation": return get_agent_conversation_details_default.handler({
41734
41760
  organizationSlug: resolved.organizationSlug,
41735
41761
  conversationId: resolved.conversationId,
41736
41762
  project: resolved.projectSlugOrId,
@@ -41793,7 +41819,7 @@ var get_sentry_resource_default = defineTool({
41793
41819
  });
41794
41820
 
41795
41821
  //#endregion
41796
- //#region ../mcp-core/dist/get-latest-base-snapshot-BpLCBuVm.js
41822
+ //#region ../mcp-core/dist/get-latest-base-snapshot-KoSAQyLF.js
41797
41823
  var get_latest_base_snapshot_default = defineTool({
41798
41824
  name: "get_latest_base_snapshot",
41799
41825
  skills: ["inspect"],
@@ -41889,7 +41915,7 @@ var get_latest_base_snapshot_default = defineTool({
41889
41915
  });
41890
41916
 
41891
41917
  //#endregion
41892
- //#region ../mcp-core/dist/search-ai-conversations-CQqlGAjq.js
41918
+ //#region ../mcp-core/dist/search-agent-conversations-CUhIOq09.js
41893
41919
  const PREVIEW_LENGTH = 240;
41894
41920
  const TRACE_ID_SAMPLE_SIZE = 3;
41895
41921
  const aiConversationSearchResultSchema = zod.z.object({
@@ -41992,8 +42018,8 @@ function buildArtifact(apiService, organizationSlug, conversations, nextCursor,
41992
42018
  })
41993
42019
  };
41994
42020
  }
41995
- var search_ai_conversations_default = defineTool({
41996
- name: "search_ai_conversations",
42021
+ var search_agent_conversations_default = defineTool({
42022
+ name: "search_agent_conversations",
41997
42023
  skills: [
41998
42024
  "inspect",
41999
42025
  "triage",
@@ -42001,15 +42027,15 @@ var search_ai_conversations_default = defineTool({
42001
42027
  ],
42002
42028
  requiredScopes: ["event:read", "project:read"],
42003
42029
  description: [
42004
- "Search Sentry AI Conversations and return one summary row per conversation.",
42030
+ "Search Sentry Agent Conversations, formerly called AI Conversations, and return one summary row per conversation.",
42005
42031
  "",
42006
- "Use this tool to find or list AI Conversations. Results are conversation summaries, not raw span rows.",
42032
+ "Use this tool to find or list Agent Conversations. Results are conversation summaries, not raw span rows.",
42007
42033
  "Each row includes title (when available), cost, tokens, call counts, previews, and other list metadata.",
42008
- "Use get_ai_conversation_details with a conversationId to fetch the transcript. Use get_sentry_resource for Sentry conversation URLs.",
42034
+ "Use get_agent_conversation_details with a conversationId to fetch the transcript. Use get_sentry_resource for Sentry conversation URLs.",
42009
42035
  "",
42010
42036
  "<examples>",
42011
- "search_ai_conversations(organizationSlug='my-org', query='failed conversations', period='7d')",
42012
- "search_ai_conversations(organizationSlug='my-org', query='checkout', project='backend')",
42037
+ "search_agent_conversations(organizationSlug='my-org', query='failed conversations', period='7d')",
42038
+ "search_agent_conversations(organizationSlug='my-org', query='checkout', project='backend')",
42013
42039
  "</examples>"
42014
42040
  ].join("\n"),
42015
42041
  inputSchema: {
@@ -42068,7 +42094,7 @@ var search_ai_conversations_default = defineTool({
42068
42094
  });
42069
42095
 
42070
42096
  //#endregion
42071
- //#region ../mcp-core/dist/add-issue-note-BsOYlEq_.js
42097
+ //#region ../mcp-core/dist/add-issue-note-DqTid9mJ.js
42072
42098
  function formatComment(comment) {
42073
42099
  const actor = comment.user ? formatActor(comment.user) : "current user";
42074
42100
  const text$1 = comment.data ? readString(comment.data, "text") : null;
@@ -42144,7 +42170,26 @@ var add_issue_note_default = defineTool({
42144
42170
  });
42145
42171
 
42146
42172
  //#endregion
42147
- //#region ../mcp-core/dist/onboarding-status-update-DqsUsr8X.js
42173
+ //#region ../mcp-core/dist/onboarding-status-update-ZaTsL300.js
42174
+ const updateBaseSchema = zod.z.object({
42175
+ status: AgenticOnboardingStageStatusUpdateSchema.describe("The stage's current status."),
42176
+ runStatus: AgenticOnboardingRunStatusUpdateSchema.optional().describe("Set only when the entire onboarding run has completed or failed."),
42177
+ eventNote: zod.z.string().trim().min(1).max(256).optional().describe("Short context to display with this progress event. Required when status is failed.")
42178
+ }).strict();
42179
+ const createProjectUpdateSchema = updateBaseSchema.extend({
42180
+ stage: zod.z.literal("create_project").describe("Report progress while creating or selecting Sentry projects."),
42181
+ extra: zod.z.object({ projectSlugs: zod.z.array(zod.z.string().trim().min(1)).min(1).max(100).describe("Sentry project slugs created or selected during onboarding. Values accumulate across updates; include each project as it becomes usable while active, then all known projects when completed.") }).strict().optional().describe("Project metadata accepted only by the create_project stage.")
42182
+ });
42183
+ const receiveVerificationErrorUpdateSchema = updateBaseSchema.extend({
42184
+ stage: zod.z.literal("receive_verification_error").describe("Report progress while receiving the verification error in Sentry."),
42185
+ extra: zod.z.object({ issueIds: zod.z.array(zod.z.string().trim().min(1)).min(1).max(100).describe("Sentry issue IDs observed after sending the verification error. Values accumulate across updates; include each matching issue as it is confirmed, then all known issues when completed.") }).strict().optional().describe("Issue metadata accepted only by the receive_verification_error stage.")
42186
+ });
42187
+ const updateWithoutExtraSchema = updateBaseSchema.extend({ stage: AgenticOnboardingStageSchema.exclude(["create_project", "receive_verification_error"]).describe("Report progress for a stage that does not accept extra metadata.") });
42188
+ const onboardingUpdateSchema = zod.z.discriminatedUnion("stage", [
42189
+ createProjectUpdateSchema,
42190
+ receiveVerificationErrorUpdateSchema,
42191
+ updateWithoutExtraSchema
42192
+ ]).describe("The stage-specific onboarding progress update.");
42148
42193
  var onboarding_status_update_default = defineTool({
42149
42194
  name: "onboarding_status_update",
42150
42195
  skills: require_resolve.ALL_SKILLS,
@@ -42167,13 +42212,8 @@ var onboarding_status_update_default = defineTool({
42167
42212
  inputSchema: {
42168
42213
  organizationSlug: ParamOrganizationSlug,
42169
42214
  regionUrl: ParamRegionUrl.nullable().default(null),
42170
- runToken: AgenticOnboardingStatusUpdateSchema.shape.runToken.describe("The 10-character onboarding run token supplied by Sentry."),
42171
- stage: AgenticOnboardingStageSchema.describe("The onboarding stage being updated."),
42172
- status: AgenticOnboardingStageStatusUpdateSchema.describe("The stage's current status."),
42173
- runStatus: AgenticOnboardingRunStatusUpdateSchema.optional().describe("Set only when the entire onboarding run has completed or failed."),
42174
- eventNote: zod.z.string().trim().min(1).max(256).optional().describe("Short context to display with this progress event. Required when status is failed."),
42175
- projectSlugs: AgenticOnboardingStatusUpdateSchema.shape.projectSlugs.describe("Validated Sentry project slugs. Send only for create_project. Values accumulate across updates; include each project as it becomes usable while active, then all known projects when completed."),
42176
- issueIds: AgenticOnboardingStatusUpdateSchema.shape.issueIds.describe("Validated Sentry issue IDs returned by MCP. Send only for receive_verification_error. Values accumulate across updates; include each matching issue as it is confirmed, then all known issues when completed.")
42215
+ runToken: AgenticOnboardingRunTokenSchema.describe("The 10-character onboarding run token supplied by Sentry."),
42216
+ update: onboardingUpdateSchema
42177
42217
  },
42178
42218
  annotations: {
42179
42219
  readOnlyHint: false,
@@ -42184,25 +42224,41 @@ var onboarding_status_update_default = defineTool({
42184
42224
  async handler(params, context$1) {
42185
42225
  const apiService = apiServiceFromContext(context$1, { regionUrl: params.regionUrl ?? context$1.constraints.regionUrl ?? void 0 });
42186
42226
  (0, __sentry_core.setTag)("organization.slug", params.organizationSlug);
42227
+ const update = AgenticOnboardingStatusUpdateSchema.parse({
42228
+ schemaVersion: 1,
42229
+ runToken: params.runToken,
42230
+ ...params.update
42231
+ });
42187
42232
  const run = await apiService.updateAgenticOnboardingStatus({
42188
42233
  organizationSlug: params.organizationSlug,
42189
- update: {
42190
- schemaVersion: 1,
42191
- runToken: params.runToken,
42192
- stage: params.stage,
42193
- status: params.status,
42194
- ...params.runStatus ? { runStatus: params.runStatus } : {},
42195
- ...params.eventNote ? { eventNote: params.eventNote } : {},
42196
- ...params.projectSlugs ? { projectSlugs: params.projectSlugs } : {},
42197
- ...params.issueIds ? { issueIds: params.issueIds } : {}
42198
- }
42234
+ update
42199
42235
  });
42200
42236
  return `Onboarding status updated. Continue updates: ${run.continueUpdates ? "yes" : "no"}.`;
42201
42237
  }
42202
42238
  });
42203
42239
 
42204
42240
  //#endregion
42205
- //#region ../mcp-core/dist/catalog-DD3koHPm.js
42241
+ //#region ../mcp-core/dist/catalog-DaTB1cy-.js
42242
+ const legacyGetAIConversationDetails = {
42243
+ ...get_agent_conversation_details_default,
42244
+ name: "get_ai_conversation_details",
42245
+ includeInSkillDefinitions: false,
42246
+ description: [
42247
+ "Deprecated alias for get_agent_conversation_details.",
42248
+ "",
42249
+ "Use get_agent_conversation_details for new integrations. This alias is kept for backward compatibility."
42250
+ ].join("\n")
42251
+ };
42252
+ const legacySearchAIConversations = {
42253
+ ...search_agent_conversations_default,
42254
+ name: "search_ai_conversations",
42255
+ includeInSkillDefinitions: false,
42256
+ description: [
42257
+ "Deprecated alias for search_agent_conversations.",
42258
+ "",
42259
+ "Use search_agent_conversations for new integrations. This alias is kept for backward compatibility."
42260
+ ].join("\n")
42261
+ };
42206
42262
  /**
42207
42263
  * Catalog of ordinary Sentry MCP operations.
42208
42264
  *
@@ -42261,8 +42317,10 @@ const catalogTools = {
42261
42317
  get_snapshot: get_snapshot_default,
42262
42318
  get_snapshot_image: get_snapshot_image_default,
42263
42319
  get_latest_base_snapshot: get_latest_base_snapshot_default,
42264
- get_ai_conversation_details: get_ai_conversation_details_default,
42265
- search_ai_conversations: search_ai_conversations_default,
42320
+ get_agent_conversation_details: get_agent_conversation_details_default,
42321
+ get_ai_conversation_details: legacyGetAIConversationDetails,
42322
+ search_agent_conversations: search_agent_conversations_default,
42323
+ search_ai_conversations: legacySearchAIConversations,
42266
42324
  add_issue_note: add_issue_note_default,
42267
42325
  onboarding_status_update: onboarding_status_update_default
42268
42326
  };
@@ -42498,7 +42556,7 @@ function createExecuteTool(getTools) {
42498
42556
  }
42499
42557
 
42500
42558
  //#endregion
42501
- //#region ../mcp-core/dist/tools-2vBZhjG7.js
42559
+ //#region ../mcp-core/dist/tools-fGO-TOBm.js
42502
42560
  function getAllTools() {
42503
42561
  return allTools;
42504
42562
  }