@sentry/mcp-server 0.24.0 → 0.25.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/cli/parse.cjs +1 -1
- package/dist/cli/parse.d.cts +1 -1
- package/dist/cli/parse.d.cts.map +1 -1
- package/dist/cli/parse.d.ts +1 -1
- package/dist/cli/parse.d.ts.map +1 -1
- package/dist/cli/parse.js +1 -1
- package/dist/cli/resolve.cjs +1 -2
- package/dist/cli/resolve.d.cts +2 -3
- package/dist/cli/resolve.d.cts.map +1 -1
- package/dist/cli/resolve.d.ts +2 -3
- package/dist/cli/resolve.d.ts.map +1 -1
- package/dist/cli/resolve.js +2 -2
- package/dist/cli/types.d.cts +1 -1
- package/dist/cli/types.d.ts +1 -1
- package/dist/cli/usage.cjs +1 -1
- package/dist/cli/usage.d.cts +1 -2
- package/dist/cli/usage.d.cts.map +1 -1
- package/dist/cli/usage.d.ts +1 -2
- package/dist/cli/usage.d.ts.map +1 -1
- package/dist/cli/usage.js +1 -1
- package/dist/config-BEgU9ylR.js +3 -0
- package/dist/{config-DtimzxvV-D3ccpxhQ.cjs → config-BoFBjXRq-CGHqlnJ9.cjs} +296 -4
- package/dist/config-BoFBjXRq-CGHqlnJ9.cjs.map +1 -0
- package/dist/{config-DtimzxvV-BItTrGiz.js → config-BoFBjXRq-CMdBQOkQ.js} +291 -5
- package/dist/config-BoFBjXRq-CMdBQOkQ.js.map +1 -0
- package/dist/config-rZ982IEm.cjs +7 -0
- package/dist/index.cjs +333 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +329 -160
- package/dist/index.js.map +1 -1
- package/dist/{parse-Dn9XeQSj.js → parse-46t_fITC.js} +2 -26
- package/dist/parse-46t_fITC.js.map +1 -0
- package/dist/{parse-By6nDBNs.cjs → parse-BjIH83SX.cjs} +2 -26
- package/dist/parse-BjIH83SX.cjs.map +1 -0
- package/dist/resolve-CdTP9riu.cjs +286 -0
- package/dist/resolve-CdTP9riu.cjs.map +1 -0
- package/dist/resolve-Cg3SH2zt.js +232 -0
- package/dist/resolve-Cg3SH2zt.js.map +1 -0
- package/dist/{stdio-iRuX-anh.cjs → stdio-Cl-Ib8bu.cjs} +4 -4
- package/dist/{stdio-iRuX-anh.cjs.map → stdio-Cl-Ib8bu.cjs.map} +1 -1
- package/dist/{stdio-Cp-EJZB9.js → stdio-CwqdTAhY.js} +4 -4
- package/dist/{stdio-Cp-EJZB9.js.map → stdio-CwqdTAhY.js.map} +1 -1
- package/dist/transports/stdio.cjs +1 -1
- package/dist/transports/stdio.js +1 -1
- package/dist/{types-CM88pHH_.d.ts → types-D5f00mg9.d.ts} +2 -11
- package/dist/types-D5f00mg9.d.ts.map +1 -0
- package/dist/{types-CnLRMjvf.d.cts → types-DpmAC3S8.d.cts} +2 -11
- package/dist/types-DpmAC3S8.d.cts.map +1 -0
- package/dist/{usage-DMGbIpV-.js → usage-BzYvqaru.js} +3 -11
- package/dist/usage-BzYvqaru.js.map +1 -0
- package/dist/{usage-iwGZsu3a.cjs → usage-DD58xBe3.cjs} +3 -11
- package/dist/usage-DD58xBe3.cjs.map +1 -0
- package/package.json +5 -4
- package/dist/config-Bs1p6XwV.js +0 -3
- package/dist/config-DFewJLVx.cjs +0 -6
- package/dist/config-DtimzxvV-BItTrGiz.js.map +0 -1
- package/dist/config-DtimzxvV-D3ccpxhQ.cjs.map +0 -1
- package/dist/parse-By6nDBNs.cjs.map +0 -1
- package/dist/parse-Dn9XeQSj.js.map +0 -1
- package/dist/resolve-BCdS4js5.js +0 -590
- package/dist/resolve-BCdS4js5.js.map +0 -1
- package/dist/resolve-BMmRdCFJ.cjs +0 -692
- package/dist/resolve-BMmRdCFJ.cjs.map +0 -1
- package/dist/types-CM88pHH_.d.ts.map +0 -1
- package/dist/types-CnLRMjvf.d.cts.map +0 -1
- package/dist/usage-DMGbIpV-.js.map +0 -1
- package/dist/usage-iwGZsu3a.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { LIB_VERSION, USER_AGENT, startStdio } from "./stdio-
|
|
4
|
-
import { RECOMMENDED_FIELDS, systemPrompt } from "./config-
|
|
5
|
-
import { buildUsage } from "./usage-
|
|
6
|
-
import { merge, parseArgv, parseEnv } from "./parse-
|
|
2
|
+
import { ALL_SKILLS, SKILLS, finalize, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isEnabledBySkills, isSentryHost } from "./resolve-Cg3SH2zt.js";
|
|
3
|
+
import { LIB_VERSION, USER_AGENT, startStdio } from "./stdio-CwqdTAhY.js";
|
|
4
|
+
import { RECOMMENDED_FIELDS, systemPrompt } from "./config-BoFBjXRq-CMdBQOkQ.js";
|
|
5
|
+
import { buildUsage } from "./usage-BzYvqaru.js";
|
|
6
|
+
import { merge, parseArgv, parseEnv } from "./parse-46t_fITC.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import util from "node:util";
|
|
9
|
-
import { captureException, captureMessage, getActiveSpan, setTag, setUser, withScope, wrapMcpServerWithSentry } from "@sentry/core";
|
|
10
|
-
import * as Sentry from "@sentry/node";
|
|
9
|
+
import { captureException, captureMessage, getActiveSpan, logger, setTag, setUser, withScope, wrapMcpServerWithSentry } from "@sentry/core";
|
|
11
10
|
import { ZodFirstPartyTypeKind } from "zod/v3";
|
|
12
11
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
13
12
|
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
|
|
13
|
+
import * as Sentry from "@sentry/node";
|
|
14
14
|
|
|
15
15
|
//#region rolldown:runtime
|
|
16
16
|
var __create = Object.create;
|
|
@@ -43,6 +43,182 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
43
43
|
enumerable: true
|
|
44
44
|
}) : target, mod));
|
|
45
45
|
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../mcp-core/dist/constants-D8axTonA.js
|
|
48
|
+
/**
|
|
49
|
+
* Constants for Sentry MCP server.
|
|
50
|
+
*
|
|
51
|
+
* Defines platform and framework combinations available in Sentry documentation.
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* MCP Server identification
|
|
55
|
+
*/
|
|
56
|
+
const MCP_SERVER_NAME = "Sentry MCP";
|
|
57
|
+
/**
|
|
58
|
+
* Allowed region domains for sentry.io
|
|
59
|
+
* Only these specific domains are permitted when using Sentry's cloud service
|
|
60
|
+
* This is used to prevent SSRF attacks by restricting regionUrl to known domains
|
|
61
|
+
*/
|
|
62
|
+
const SENTRY_ALLOWED_REGION_DOMAINS = new Set([
|
|
63
|
+
"sentry.io",
|
|
64
|
+
"us.sentry.io",
|
|
65
|
+
"de.sentry.io"
|
|
66
|
+
]);
|
|
67
|
+
/**
|
|
68
|
+
* Common Sentry platforms that have documentation available
|
|
69
|
+
*/
|
|
70
|
+
const SENTRY_PLATFORMS_BASE = [
|
|
71
|
+
"javascript",
|
|
72
|
+
"python",
|
|
73
|
+
"java",
|
|
74
|
+
"dotnet",
|
|
75
|
+
"go",
|
|
76
|
+
"php",
|
|
77
|
+
"ruby",
|
|
78
|
+
"android",
|
|
79
|
+
"apple",
|
|
80
|
+
"unity",
|
|
81
|
+
"unreal",
|
|
82
|
+
"rust",
|
|
83
|
+
"elixir",
|
|
84
|
+
"kotlin",
|
|
85
|
+
"native",
|
|
86
|
+
"dart",
|
|
87
|
+
"godot",
|
|
88
|
+
"nintendo-switch",
|
|
89
|
+
"playstation",
|
|
90
|
+
"powershell",
|
|
91
|
+
"react-native",
|
|
92
|
+
"xbox"
|
|
93
|
+
];
|
|
94
|
+
/**
|
|
95
|
+
* Platform-specific frameworks that have Sentry guides
|
|
96
|
+
*/
|
|
97
|
+
const SENTRY_FRAMEWORKS = {
|
|
98
|
+
javascript: [
|
|
99
|
+
"nextjs",
|
|
100
|
+
"react",
|
|
101
|
+
"gatsby",
|
|
102
|
+
"remix",
|
|
103
|
+
"vue",
|
|
104
|
+
"angular",
|
|
105
|
+
"hono",
|
|
106
|
+
"svelte",
|
|
107
|
+
"express",
|
|
108
|
+
"fastify",
|
|
109
|
+
"astro",
|
|
110
|
+
"bun",
|
|
111
|
+
"capacitor",
|
|
112
|
+
"cloudflare",
|
|
113
|
+
"connect",
|
|
114
|
+
"cordova",
|
|
115
|
+
"deno",
|
|
116
|
+
"electron",
|
|
117
|
+
"ember",
|
|
118
|
+
"nuxt",
|
|
119
|
+
"solid",
|
|
120
|
+
"solidstart",
|
|
121
|
+
"sveltekit",
|
|
122
|
+
"tanstack-react",
|
|
123
|
+
"wasm",
|
|
124
|
+
"node",
|
|
125
|
+
"koa",
|
|
126
|
+
"nestjs",
|
|
127
|
+
"hapi"
|
|
128
|
+
],
|
|
129
|
+
python: [
|
|
130
|
+
"django",
|
|
131
|
+
"flask",
|
|
132
|
+
"fastapi",
|
|
133
|
+
"celery",
|
|
134
|
+
"tornado",
|
|
135
|
+
"pyramid",
|
|
136
|
+
"aiohttp",
|
|
137
|
+
"anthropic",
|
|
138
|
+
"airflow",
|
|
139
|
+
"aws-lambda",
|
|
140
|
+
"boto3",
|
|
141
|
+
"bottle",
|
|
142
|
+
"chalice",
|
|
143
|
+
"dramatiq",
|
|
144
|
+
"falcon",
|
|
145
|
+
"langchain",
|
|
146
|
+
"litestar",
|
|
147
|
+
"logging",
|
|
148
|
+
"loguru",
|
|
149
|
+
"openai",
|
|
150
|
+
"quart",
|
|
151
|
+
"ray",
|
|
152
|
+
"redis",
|
|
153
|
+
"rq",
|
|
154
|
+
"sanic",
|
|
155
|
+
"sqlalchemy",
|
|
156
|
+
"starlette"
|
|
157
|
+
],
|
|
158
|
+
dart: ["flutter"],
|
|
159
|
+
dotnet: [
|
|
160
|
+
"aspnetcore",
|
|
161
|
+
"maui",
|
|
162
|
+
"wpf",
|
|
163
|
+
"winforms",
|
|
164
|
+
"aspnet",
|
|
165
|
+
"aws-lambda",
|
|
166
|
+
"azure-functions",
|
|
167
|
+
"blazor-webassembly",
|
|
168
|
+
"entityframework",
|
|
169
|
+
"google-cloud-functions",
|
|
170
|
+
"extensions-logging",
|
|
171
|
+
"log4net",
|
|
172
|
+
"nlog",
|
|
173
|
+
"serilog",
|
|
174
|
+
"uwp",
|
|
175
|
+
"xamarin"
|
|
176
|
+
],
|
|
177
|
+
java: [
|
|
178
|
+
"spring",
|
|
179
|
+
"spring-boot",
|
|
180
|
+
"android",
|
|
181
|
+
"jul",
|
|
182
|
+
"log4j2",
|
|
183
|
+
"logback",
|
|
184
|
+
"servlet"
|
|
185
|
+
],
|
|
186
|
+
go: [
|
|
187
|
+
"echo",
|
|
188
|
+
"fasthttp",
|
|
189
|
+
"fiber",
|
|
190
|
+
"gin",
|
|
191
|
+
"http",
|
|
192
|
+
"iris",
|
|
193
|
+
"logrus",
|
|
194
|
+
"negroni",
|
|
195
|
+
"slog",
|
|
196
|
+
"zerolog"
|
|
197
|
+
],
|
|
198
|
+
php: ["laravel", "symfony"],
|
|
199
|
+
ruby: [
|
|
200
|
+
"delayed_job",
|
|
201
|
+
"rack",
|
|
202
|
+
"rails",
|
|
203
|
+
"resque",
|
|
204
|
+
"sidekiq"
|
|
205
|
+
],
|
|
206
|
+
android: ["kotlin"],
|
|
207
|
+
apple: [
|
|
208
|
+
"ios",
|
|
209
|
+
"macos",
|
|
210
|
+
"watchos",
|
|
211
|
+
"tvos",
|
|
212
|
+
"visionos"
|
|
213
|
+
],
|
|
214
|
+
kotlin: ["multiplatform"]
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* All valid guides for Sentry docs search filtering.
|
|
218
|
+
* A guide can be either a platform (e.g., 'javascript') or a platform/framework combination (e.g., 'javascript/nextjs').
|
|
219
|
+
*/
|
|
220
|
+
const SENTRY_GUIDES = [...SENTRY_PLATFORMS_BASE, ...Object.entries(SENTRY_FRAMEWORKS).flatMap(([platform, guides]) => guides.map((guide) => `${platform}/${guide}`))];
|
|
221
|
+
|
|
46
222
|
//#endregion
|
|
47
223
|
//#region ../mcp-core/dist/errors-BXmNwD2K.js
|
|
48
224
|
/**
|
|
@@ -68,7 +244,7 @@ var ConfigurationError = class extends Error {
|
|
|
68
244
|
};
|
|
69
245
|
|
|
70
246
|
//#endregion
|
|
71
|
-
//#region ../mcp-core/dist/slug-validation-
|
|
247
|
+
//#region ../mcp-core/dist/slug-validation-BdDL1fV5.js
|
|
72
248
|
/**
|
|
73
249
|
* Maximum reasonable length for a slug.
|
|
74
250
|
*/
|
|
@@ -157,7 +333,7 @@ function validateSlugOrId(val, ctx) {
|
|
|
157
333
|
}
|
|
158
334
|
|
|
159
335
|
//#endregion
|
|
160
|
-
//#region ../mcp-core/dist/schema-
|
|
336
|
+
//#region ../mcp-core/dist/schema-Bl7AGsln.js
|
|
161
337
|
const ParamOrganizationSlug = z.string().toLowerCase().trim().superRefine(validateSlug).describe("The organization's slug. You can find a existing list of organizations you have access to using the `find_organizations()` tool.");
|
|
162
338
|
const ParamTeamSlug = z.string().toLowerCase().trim().superRefine(validateSlug).describe("The team's slug. You can find a list of existing teams in an organization using the `find_teams()` tool.");
|
|
163
339
|
const ParamProjectSlug = z.string().toLowerCase().trim().superRefine(validateSlug).describe("The project's slug. You can find a list of existing projects in an organization using the `find_projects()` tool.");
|
|
@@ -190,7 +366,7 @@ const ParamEventId = z.string().trim().describe("The ID of the event.");
|
|
|
190
366
|
const ParamAttachmentId = z.string().trim().describe("The ID of the attachment to download.");
|
|
191
367
|
|
|
192
368
|
//#endregion
|
|
193
|
-
//#region ../mcp-core/dist/define-
|
|
369
|
+
//#region ../mcp-core/dist/define-vgYYpneQ.js
|
|
194
370
|
function defineTool(config) {
|
|
195
371
|
return config;
|
|
196
372
|
}
|
|
@@ -347,8 +523,8 @@ var LoggerImpl = class LoggerImpl$1 {
|
|
|
347
523
|
*/
|
|
348
524
|
resetDescendants() {
|
|
349
525
|
for (const child of Object.values(this.children)) {
|
|
350
|
-
const logger$
|
|
351
|
-
if (logger$
|
|
526
|
+
const logger$2 = child instanceof LoggerImpl$1 ? child : child.deref();
|
|
527
|
+
if (logger$2 != null) logger$2.resetDescendants();
|
|
352
528
|
}
|
|
353
529
|
this.reset();
|
|
354
530
|
}
|
|
@@ -512,8 +688,8 @@ var LoggerImpl = class LoggerImpl$1 {
|
|
|
512
688
|
var LoggerCtx = class LoggerCtx$1 {
|
|
513
689
|
logger;
|
|
514
690
|
properties;
|
|
515
|
-
constructor(logger$
|
|
516
|
-
this.logger = logger$
|
|
691
|
+
constructor(logger$2, properties) {
|
|
692
|
+
this.logger = logger$2;
|
|
517
693
|
this.properties = properties;
|
|
518
694
|
}
|
|
519
695
|
get category() {
|
|
@@ -1263,20 +1439,20 @@ function configureInternal(config, allowAsync) {
|
|
|
1263
1439
|
const categoryKey = Array.isArray(cfg$1.category) ? JSON.stringify(cfg$1.category) : JSON.stringify([cfg$1.category]);
|
|
1264
1440
|
if (configuredCategories.has(categoryKey)) throw new ConfigError(`Duplicate logger configuration for category: ${categoryKey}. Each category can only be configured once.`);
|
|
1265
1441
|
configuredCategories.add(categoryKey);
|
|
1266
|
-
const logger$
|
|
1442
|
+
const logger$2 = LoggerImpl.getLogger(cfg$1.category);
|
|
1267
1443
|
for (const sinkId of cfg$1.sinks ?? []) {
|
|
1268
1444
|
const sink = config.sinks[sinkId];
|
|
1269
1445
|
if (!sink) throw new ConfigError(`Sink not found: ${sinkId}.`);
|
|
1270
|
-
logger$
|
|
1446
|
+
logger$2.sinks.push(sink);
|
|
1271
1447
|
}
|
|
1272
|
-
logger$
|
|
1273
|
-
if (cfg$1.lowestLevel !== void 0) logger$
|
|
1448
|
+
logger$2.parentSinks = cfg$1.parentSinks ?? "inherit";
|
|
1449
|
+
if (cfg$1.lowestLevel !== void 0) logger$2.lowestLevel = cfg$1.lowestLevel;
|
|
1274
1450
|
for (const filterId of cfg$1.filters ?? []) {
|
|
1275
1451
|
const filter$1 = config.filters?.[filterId];
|
|
1276
1452
|
if (filter$1 === void 0) throw new ConfigError(`Filter not found: ${filterId}.`);
|
|
1277
|
-
logger$
|
|
1453
|
+
logger$2.filters.push(toFilter(filter$1));
|
|
1278
1454
|
}
|
|
1279
|
-
strongRefs.add(logger$
|
|
1455
|
+
strongRefs.add(logger$2);
|
|
1280
1456
|
}
|
|
1281
1457
|
LoggerImpl.getLogger().contextLocalStorage = config.contextLocalStorage;
|
|
1282
1458
|
for (const sink of Object.values(config.sinks)) {
|
|
@@ -1360,7 +1536,7 @@ var ConfigError = class extends Error {
|
|
|
1360
1536
|
};
|
|
1361
1537
|
|
|
1362
1538
|
//#endregion
|
|
1363
|
-
//#region ../mcp-core/dist/logging-
|
|
1539
|
+
//#region ../mcp-core/dist/logging-BK_g0p3a.js
|
|
1364
1540
|
const ROOT_LOG_CATEGORY = ["sentry", "mcp"];
|
|
1365
1541
|
let loggingConfigured = false;
|
|
1366
1542
|
function resolveLowestLevel() {
|
|
@@ -1377,12 +1553,12 @@ function resolveLowestLevel() {
|
|
|
1377
1553
|
* (creating Issues), this sink uses Sentry.logger.* methods to send data to the
|
|
1378
1554
|
* Logs product.
|
|
1379
1555
|
*
|
|
1380
|
-
*
|
|
1381
|
-
*
|
|
1556
|
+
* This uses @sentry/core logger API which works across all platforms (Node.js,
|
|
1557
|
+
* Cloudflare Workers, etc.) as long as Sentry is initialized with the appropriate SDK.
|
|
1382
1558
|
*/
|
|
1383
1559
|
function createSentryLogsSink() {
|
|
1384
1560
|
return (record) => {
|
|
1385
|
-
if (!
|
|
1561
|
+
if (!logger) return;
|
|
1386
1562
|
let message = "";
|
|
1387
1563
|
for (let i = 0; i < record.message.length; i++) if (i % 2 === 0) message += record.message[i];
|
|
1388
1564
|
else {
|
|
@@ -1392,24 +1568,24 @@ function createSentryLogsSink() {
|
|
|
1392
1568
|
const attributes$73 = record.properties;
|
|
1393
1569
|
switch (record.level) {
|
|
1394
1570
|
case "trace":
|
|
1395
|
-
|
|
1571
|
+
logger.trace(message, attributes$73);
|
|
1396
1572
|
break;
|
|
1397
1573
|
case "debug":
|
|
1398
|
-
|
|
1574
|
+
logger.debug(message, attributes$73);
|
|
1399
1575
|
break;
|
|
1400
1576
|
case "info":
|
|
1401
|
-
|
|
1577
|
+
logger.info(message, attributes$73);
|
|
1402
1578
|
break;
|
|
1403
1579
|
case "warning":
|
|
1404
|
-
|
|
1580
|
+
logger.warn(message, attributes$73);
|
|
1405
1581
|
break;
|
|
1406
1582
|
case "error":
|
|
1407
|
-
|
|
1583
|
+
logger.error(message, attributes$73);
|
|
1408
1584
|
break;
|
|
1409
1585
|
case "fatal":
|
|
1410
|
-
|
|
1586
|
+
logger.fatal(message, attributes$73);
|
|
1411
1587
|
break;
|
|
1412
|
-
default:
|
|
1588
|
+
default: logger.info(message, attributes$73);
|
|
1413
1589
|
}
|
|
1414
1590
|
};
|
|
1415
1591
|
}
|
|
@@ -1446,8 +1622,8 @@ function ensureLoggingConfigured() {
|
|
|
1446
1622
|
function getLogger$1(scope, defaults) {
|
|
1447
1623
|
ensureLoggingConfigured();
|
|
1448
1624
|
const category = Array.isArray(scope) ? scope : [scope];
|
|
1449
|
-
const logger$
|
|
1450
|
-
return defaults ? logger$
|
|
1625
|
+
const logger$2 = getLogger([...ROOT_LOG_CATEGORY, ...category]);
|
|
1626
|
+
return defaults ? logger$2.with(defaults) : logger$2;
|
|
1451
1627
|
}
|
|
1452
1628
|
const ISSUE_LOGGER_SCOPE = ["runtime", "issues"];
|
|
1453
1629
|
function isRecord(value) {
|
|
@@ -1525,7 +1701,7 @@ function serializeError(value, depth = 0) {
|
|
|
1525
1701
|
}
|
|
1526
1702
|
return { message: coerceMessage(value) };
|
|
1527
1703
|
}
|
|
1528
|
-
const logger = getLogger$1([]);
|
|
1704
|
+
const logger$1 = getLogger$1([]);
|
|
1529
1705
|
const DEFAULT_LOGGER_SCOPE = [];
|
|
1530
1706
|
function buildLogProperties(level, options, serializedError) {
|
|
1531
1707
|
const properties = { severity: level };
|
|
@@ -1564,6 +1740,9 @@ function logWithLevel(level, value, contextsOrOptions) {
|
|
|
1564
1740
|
default: scopedLogger.info(message, () => properties);
|
|
1565
1741
|
}
|
|
1566
1742
|
}
|
|
1743
|
+
function logInfo(value, contextsOrOptions) {
|
|
1744
|
+
logWithLevel("info", value, contextsOrOptions);
|
|
1745
|
+
}
|
|
1567
1746
|
function logWarn(value, contextsOrOptions) {
|
|
1568
1747
|
logWithLevel("warning", value, contextsOrOptions);
|
|
1569
1748
|
}
|
|
@@ -1604,7 +1783,7 @@ function logIssue(error, contextsOrOptions, attachmentsArg) {
|
|
|
1604
1783
|
}
|
|
1605
1784
|
|
|
1606
1785
|
//#endregion
|
|
1607
|
-
//#region ../mcp-core/dist/schema-
|
|
1786
|
+
//#region ../mcp-core/dist/schema-BO1YtJIJ.js
|
|
1608
1787
|
/**
|
|
1609
1788
|
* Schema for Sentry API error responses.
|
|
1610
1789
|
*
|
|
@@ -2101,7 +2280,7 @@ const TraceIssueSchema = z.object({
|
|
|
2101
2280
|
const TraceSchema = z.array(z.union([TraceSpanSchema, TraceIssueSchema]));
|
|
2102
2281
|
|
|
2103
2282
|
//#endregion
|
|
2104
|
-
//#region ../mcp-core/dist/errors-
|
|
2283
|
+
//#region ../mcp-core/dist/errors-ZBQnDL3L.js
|
|
2105
2284
|
/**
|
|
2106
2285
|
* API Error Class Hierarchy
|
|
2107
2286
|
*
|
|
@@ -2316,7 +2495,7 @@ function createApiError(message, status, detail, responseBody) {
|
|
|
2316
2495
|
}
|
|
2317
2496
|
|
|
2318
2497
|
//#endregion
|
|
2319
|
-
//#region ../mcp-core/dist/client-
|
|
2498
|
+
//#region ../mcp-core/dist/client-DsM0pHqr.js
|
|
2320
2499
|
/**
|
|
2321
2500
|
* Mapping of common network error codes to user-friendly messages.
|
|
2322
2501
|
* These help users understand and resolve connection issues.
|
|
@@ -3405,7 +3584,7 @@ var SentryApiService = class {
|
|
|
3405
3584
|
};
|
|
3406
3585
|
|
|
3407
3586
|
//#endregion
|
|
3408
|
-
//#region ../mcp-core/dist/validate-region-url-
|
|
3587
|
+
//#region ../mcp-core/dist/validate-region-url-BL1kR9T7.js
|
|
3409
3588
|
/**
|
|
3410
3589
|
* Validates that a regionUrl is valid.
|
|
3411
3590
|
* Prevents SSRF attacks by only allowing the base host itself or domains from an allowlist.
|
|
@@ -3437,7 +3616,7 @@ function validateRegionUrl(regionUrl, baseHost) {
|
|
|
3437
3616
|
}
|
|
3438
3617
|
|
|
3439
3618
|
//#endregion
|
|
3440
|
-
//#region ../mcp-core/dist/api-
|
|
3619
|
+
//#region ../mcp-core/dist/api-DxBbW5xK.js
|
|
3441
3620
|
/**
|
|
3442
3621
|
* Create a Sentry API service from server context with optional region override
|
|
3443
3622
|
* @param context - Server context containing host and access token
|
|
@@ -3458,7 +3637,7 @@ function apiServiceFromContext(context$1, opts = {}) {
|
|
|
3458
3637
|
}
|
|
3459
3638
|
|
|
3460
3639
|
//#endregion
|
|
3461
|
-
//#region ../mcp-core/dist/whoami-
|
|
3640
|
+
//#region ../mcp-core/dist/whoami-Ri2i43vR.js
|
|
3462
3641
|
var whoami_default = defineTool({
|
|
3463
3642
|
name: "whoami",
|
|
3464
3643
|
description: [
|
|
@@ -3468,7 +3647,7 @@ var whoami_default = defineTool({
|
|
|
3468
3647
|
"- Get the user's name and email address."
|
|
3469
3648
|
].join("\n"),
|
|
3470
3649
|
inputSchema: {},
|
|
3471
|
-
|
|
3650
|
+
skills: ALL_SKILLS,
|
|
3472
3651
|
requiredScopes: [],
|
|
3473
3652
|
annotations: {
|
|
3474
3653
|
readOnlyHint: true,
|
|
@@ -3491,11 +3670,11 @@ var whoami_default = defineTool({
|
|
|
3491
3670
|
});
|
|
3492
3671
|
|
|
3493
3672
|
//#endregion
|
|
3494
|
-
//#region ../mcp-core/dist/find-organizations-
|
|
3673
|
+
//#region ../mcp-core/dist/find-organizations-Cf2YI972.js
|
|
3495
3674
|
const RESULT_LIMIT$2 = 25;
|
|
3496
3675
|
var find_organizations_default = defineTool({
|
|
3497
3676
|
name: "find_organizations",
|
|
3498
|
-
|
|
3677
|
+
skills: ALL_SKILLS,
|
|
3499
3678
|
requiredScopes: ["org:read"],
|
|
3500
3679
|
description: [
|
|
3501
3680
|
"Find organizations that the user has access to in Sentry.",
|
|
@@ -3543,11 +3722,11 @@ var find_organizations_default = defineTool({
|
|
|
3543
3722
|
});
|
|
3544
3723
|
|
|
3545
3724
|
//#endregion
|
|
3546
|
-
//#region ../mcp-core/dist/find-teams-
|
|
3725
|
+
//#region ../mcp-core/dist/find-teams-C_HR4IHN.js
|
|
3547
3726
|
const RESULT_LIMIT$1 = 25;
|
|
3548
3727
|
var find_teams_default = defineTool({
|
|
3549
3728
|
name: "find_teams",
|
|
3550
|
-
|
|
3729
|
+
skills: [
|
|
3551
3730
|
"inspect",
|
|
3552
3731
|
"triage",
|
|
3553
3732
|
"project-management"
|
|
@@ -3591,11 +3770,11 @@ var find_teams_default = defineTool({
|
|
|
3591
3770
|
});
|
|
3592
3771
|
|
|
3593
3772
|
//#endregion
|
|
3594
|
-
//#region ../mcp-core/dist/find-projects-
|
|
3773
|
+
//#region ../mcp-core/dist/find-projects-DLZN7tox.js
|
|
3595
3774
|
const RESULT_LIMIT = 25;
|
|
3596
3775
|
var find_projects_default = defineTool({
|
|
3597
3776
|
name: "find_projects",
|
|
3598
|
-
|
|
3777
|
+
skills: ALL_SKILLS,
|
|
3599
3778
|
requiredScopes: ["project:read"],
|
|
3600
3779
|
description: [
|
|
3601
3780
|
"Find projects in Sentry.",
|
|
@@ -3635,10 +3814,10 @@ var find_projects_default = defineTool({
|
|
|
3635
3814
|
});
|
|
3636
3815
|
|
|
3637
3816
|
//#endregion
|
|
3638
|
-
//#region ../mcp-core/dist/find-releases-
|
|
3817
|
+
//#region ../mcp-core/dist/find-releases-B5iKG6ZO.js
|
|
3639
3818
|
var find_releases_default = defineTool({
|
|
3640
3819
|
name: "find_releases",
|
|
3641
|
-
|
|
3820
|
+
skills: ["inspect"],
|
|
3642
3821
|
requiredScopes: ["project:read"],
|
|
3643
3822
|
description: [
|
|
3644
3823
|
"Find releases in Sentry.",
|
|
@@ -3726,7 +3905,7 @@ var find_releases_default = defineTool({
|
|
|
3726
3905
|
});
|
|
3727
3906
|
|
|
3728
3907
|
//#endregion
|
|
3729
|
-
//#region ../mcp-core/dist/issue-helpers-
|
|
3908
|
+
//#region ../mcp-core/dist/issue-helpers-DtCbXiRZ.js
|
|
3730
3909
|
/**
|
|
3731
3910
|
* Extracts the Sentry issue ID and organization slug from a full URL
|
|
3732
3911
|
*
|
|
@@ -3802,7 +3981,7 @@ function parseIssueParams({ issueUrl, issueId, organizationSlug }) {
|
|
|
3802
3981
|
}
|
|
3803
3982
|
|
|
3804
3983
|
//#endregion
|
|
3805
|
-
//#region ../mcp-core/dist/seer-
|
|
3984
|
+
//#region ../mcp-core/dist/seer-CSFgx4AP.js
|
|
3806
3985
|
const SEER_POLLING_INTERVAL = 5e3;
|
|
3807
3986
|
const SEER_TIMEOUT = 5 * 60 * 1e3;
|
|
3808
3987
|
const SEER_MAX_RETRIES = 3;
|
|
@@ -3883,7 +4062,7 @@ function getOutputForAutofixStep(step) {
|
|
|
3883
4062
|
}
|
|
3884
4063
|
|
|
3885
4064
|
//#endregion
|
|
3886
|
-
//#region ../mcp-core/dist/formatting-
|
|
4065
|
+
//#region ../mcp-core/dist/formatting-CbPBuuTP.js
|
|
3887
4066
|
const LANGUAGE_EXTENSIONS = {
|
|
3888
4067
|
".java": "java",
|
|
3889
4068
|
".py": "python",
|
|
@@ -4851,7 +5030,7 @@ function formatIssueOutput({ organizationSlug, issue, event, apiService, autofix
|
|
|
4851
5030
|
}
|
|
4852
5031
|
|
|
4853
5032
|
//#endregion
|
|
4854
|
-
//#region ../mcp-core/dist/enhance-error-
|
|
5033
|
+
//#region ../mcp-core/dist/enhance-error-BzwoJ7V0.js
|
|
4855
5034
|
/**
|
|
4856
5035
|
* Enhances a 404 error with parameter context to help users understand what went wrong.
|
|
4857
5036
|
* This is optional - tools can use this when they want to provide extra context.
|
|
@@ -4879,10 +5058,10 @@ function enhanceNotFoundError(error, params) {
|
|
|
4879
5058
|
}
|
|
4880
5059
|
|
|
4881
5060
|
//#endregion
|
|
4882
|
-
//#region ../mcp-core/dist/get-issue-details-
|
|
5061
|
+
//#region ../mcp-core/dist/get-issue-details-CzHzJZi2.js
|
|
4883
5062
|
var get_issue_details_default = defineTool({
|
|
4884
5063
|
name: "get_issue_details",
|
|
4885
|
-
|
|
5064
|
+
skills: [
|
|
4886
5065
|
"inspect",
|
|
4887
5066
|
"triage",
|
|
4888
5067
|
"seer"
|
|
@@ -5060,14 +5239,14 @@ function shouldFetchTraceForEvent(event) {
|
|
|
5060
5239
|
}
|
|
5061
5240
|
|
|
5062
5241
|
//#endregion
|
|
5063
|
-
//#region ../mcp-core/dist/get-trace-details-
|
|
5242
|
+
//#region ../mcp-core/dist/get-trace-details-DGzLP_Mo.js
|
|
5064
5243
|
const MAX_DEPTH = 2;
|
|
5065
5244
|
const MINIMUM_DURATION_THRESHOLD_MS = 10;
|
|
5066
5245
|
const MIN_MEANINGFUL_CHILD_DURATION = 5;
|
|
5067
5246
|
const MIN_AVG_DURATION_MS = 5;
|
|
5068
5247
|
var get_trace_details_default = defineTool({
|
|
5069
5248
|
name: "get_trace_details",
|
|
5070
|
-
|
|
5249
|
+
skills: ["inspect"],
|
|
5071
5250
|
requiredScopes: ["event:read"],
|
|
5072
5251
|
description: [
|
|
5073
5252
|
"Get detailed information about a specific Sentry trace by ID.",
|
|
@@ -5359,10 +5538,10 @@ function formatTraceOutput({ organizationSlug, traceId, traceMeta, trace: trace$
|
|
|
5359
5538
|
}
|
|
5360
5539
|
|
|
5361
5540
|
//#endregion
|
|
5362
|
-
//#region ../mcp-core/dist/get-event-attachment-
|
|
5541
|
+
//#region ../mcp-core/dist/get-event-attachment-4_XbtsrW.js
|
|
5363
5542
|
var get_event_attachment_default = defineTool({
|
|
5364
5543
|
name: "get_event_attachment",
|
|
5365
|
-
|
|
5544
|
+
skills: ["inspect"],
|
|
5366
5545
|
requiredScopes: ["event:read"],
|
|
5367
5546
|
description: [
|
|
5368
5547
|
"Download attachments from a Sentry event.",
|
|
@@ -5495,7 +5674,7 @@ var get_event_attachment_default = defineTool({
|
|
|
5495
5674
|
});
|
|
5496
5675
|
|
|
5497
5676
|
//#endregion
|
|
5498
|
-
//#region ../mcp-core/dist/formatting-
|
|
5677
|
+
//#region ../mcp-core/dist/formatting-DJFcfTJG.js
|
|
5499
5678
|
/**
|
|
5500
5679
|
* Helper function to format assignedTo field for display
|
|
5501
5680
|
*/
|
|
@@ -5507,10 +5686,10 @@ function formatAssignedTo(assignedTo) {
|
|
|
5507
5686
|
}
|
|
5508
5687
|
|
|
5509
5688
|
//#endregion
|
|
5510
|
-
//#region ../mcp-core/dist/update-issue-
|
|
5689
|
+
//#region ../mcp-core/dist/update-issue-BSKY4Du1.js
|
|
5511
5690
|
var update_issue_default = defineTool({
|
|
5512
5691
|
name: "update_issue",
|
|
5513
|
-
|
|
5692
|
+
skills: ["triage"],
|
|
5514
5693
|
requiredScopes: ["event:write"],
|
|
5515
5694
|
description: [
|
|
5516
5695
|
"Update an issue's status or assignment in Sentry. This allows you to resolve, ignore, or reassign issues.",
|
|
@@ -8780,7 +8959,7 @@ function createOpenAI(options = {}) {
|
|
|
8780
8959
|
var openai = createOpenAI({ compatibility: "strict" });
|
|
8781
8960
|
|
|
8782
8961
|
//#endregion
|
|
8783
|
-
//#region ../mcp-core/dist/openai-provider-
|
|
8962
|
+
//#region ../mcp-core/dist/openai-provider-BwPDNx0z.js
|
|
8784
8963
|
const DEFAULT_OPENAI_MODEL = "gpt-5";
|
|
8785
8964
|
const VALID_REASONING_EFFORTS = [
|
|
8786
8965
|
"low",
|
|
@@ -10784,10 +10963,10 @@ var DiagComponentLogger = function() {
|
|
|
10784
10963
|
return DiagComponentLogger$1;
|
|
10785
10964
|
}();
|
|
10786
10965
|
function logProxy(funcName, namespace$73, args) {
|
|
10787
|
-
var logger$
|
|
10788
|
-
if (!logger$
|
|
10966
|
+
var logger$2 = getGlobal("diag");
|
|
10967
|
+
if (!logger$2) return;
|
|
10789
10968
|
args.unshift(namespace$73);
|
|
10790
|
-
return logger$
|
|
10969
|
+
return logger$2[funcName].apply(logger$2, __spreadArray$3([], __read$3(args), false));
|
|
10791
10970
|
}
|
|
10792
10971
|
|
|
10793
10972
|
//#endregion
|
|
@@ -10820,13 +10999,13 @@ var DiagLogLevel;
|
|
|
10820
10999
|
|
|
10821
11000
|
//#endregion
|
|
10822
11001
|
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js
|
|
10823
|
-
function createLogLevelDiagLogger(maxLevel, logger$
|
|
11002
|
+
function createLogLevelDiagLogger(maxLevel, logger$2) {
|
|
10824
11003
|
if (maxLevel < DiagLogLevel.NONE) maxLevel = DiagLogLevel.NONE;
|
|
10825
11004
|
else if (maxLevel > DiagLogLevel.ALL) maxLevel = DiagLogLevel.ALL;
|
|
10826
|
-
logger$
|
|
11005
|
+
logger$2 = logger$2 || {};
|
|
10827
11006
|
function _filterFunc(funcName, theLevel) {
|
|
10828
|
-
var theFunc = logger$
|
|
10829
|
-
if (typeof theFunc === "function" && maxLevel >= theLevel) return theFunc.bind(logger$
|
|
11007
|
+
var theFunc = logger$2[funcName];
|
|
11008
|
+
if (typeof theFunc === "function" && maxLevel >= theLevel) return theFunc.bind(logger$2);
|
|
10830
11009
|
return function() {};
|
|
10831
11010
|
}
|
|
10832
11011
|
return {
|
|
@@ -10881,23 +11060,23 @@ var DiagAPI = function() {
|
|
|
10881
11060
|
return function() {
|
|
10882
11061
|
var args = [];
|
|
10883
11062
|
for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
|
|
10884
|
-
var logger$
|
|
10885
|
-
if (!logger$
|
|
10886
|
-
return logger$
|
|
11063
|
+
var logger$2 = getGlobal("diag");
|
|
11064
|
+
if (!logger$2) return;
|
|
11065
|
+
return logger$2[funcName].apply(logger$2, __spreadArray$2([], __read$2(args), false));
|
|
10887
11066
|
};
|
|
10888
11067
|
}
|
|
10889
11068
|
var self = this;
|
|
10890
|
-
var setLogger = function(logger$
|
|
11069
|
+
var setLogger = function(logger$2, optionsOrLogLevel) {
|
|
10891
11070
|
var _a$2, _b, _c;
|
|
10892
11071
|
if (optionsOrLogLevel === void 0) optionsOrLogLevel = { logLevel: DiagLogLevel.INFO };
|
|
10893
|
-
if (logger$
|
|
11072
|
+
if (logger$2 === self) {
|
|
10894
11073
|
var err = /* @__PURE__ */ new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
10895
11074
|
self.error((_a$2 = err.stack) !== null && _a$2 !== void 0 ? _a$2 : err.message);
|
|
10896
11075
|
return false;
|
|
10897
11076
|
}
|
|
10898
11077
|
if (typeof optionsOrLogLevel === "number") optionsOrLogLevel = { logLevel: optionsOrLogLevel };
|
|
10899
11078
|
var oldLogger = getGlobal("diag");
|
|
10900
|
-
var newLogger = createLogLevelDiagLogger((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : DiagLogLevel.INFO, logger$
|
|
11079
|
+
var newLogger = createLogLevelDiagLogger((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : DiagLogLevel.INFO, logger$2);
|
|
10901
11080
|
if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
|
|
10902
11081
|
var stack = (_c = (/* @__PURE__ */ new Error()).stack) !== null && _c !== void 0 ? _c : "<failed to generate stacktrace>";
|
|
10903
11082
|
oldLogger.warn("Current logger will be overwritten from " + stack);
|
|
@@ -14098,7 +14277,7 @@ function trimStartOfStream() {
|
|
|
14098
14277
|
var HANGING_STREAM_WARNING_TIME_MS = 15 * 1e3;
|
|
14099
14278
|
|
|
14100
14279
|
//#endregion
|
|
14101
|
-
//#region ../mcp-core/dist/callEmbeddedAgent-
|
|
14280
|
+
//#region ../mcp-core/dist/callEmbeddedAgent-C4iLIZ6C.js
|
|
14102
14281
|
/**
|
|
14103
14282
|
* Call an embedded agent with tool call capture
|
|
14104
14283
|
* This is the standard way to call embedded AI agents within MCP tools
|
|
@@ -14117,6 +14296,10 @@ async function callEmbeddedAgent({ system, prompt, tools, schema }) {
|
|
|
14117
14296
|
maxSteps: 5,
|
|
14118
14297
|
temperature: 1,
|
|
14119
14298
|
experimental_output: output_exports.object({ schema }),
|
|
14299
|
+
experimental_telemetry: {
|
|
14300
|
+
isEnabled: true,
|
|
14301
|
+
functionId: "callEmbeddedAgent"
|
|
14302
|
+
},
|
|
14120
14303
|
providerOptions: { openai: {
|
|
14121
14304
|
structuredOutputs: false,
|
|
14122
14305
|
strictJsonSchema: false
|
|
@@ -14140,7 +14323,7 @@ async function callEmbeddedAgent({ system, prompt, tools, schema }) {
|
|
|
14140
14323
|
}
|
|
14141
14324
|
|
|
14142
14325
|
//#endregion
|
|
14143
|
-
//#region ../mcp-core/dist/utils-
|
|
14326
|
+
//#region ../mcp-core/dist/utils-wepw5Cmn.js
|
|
14144
14327
|
/**
|
|
14145
14328
|
* Standard response schema for all embedded agent tools.
|
|
14146
14329
|
* Tools return either an error message or the result data, never both.
|
|
@@ -14222,7 +14405,7 @@ function agentTool(config) {
|
|
|
14222
14405
|
}
|
|
14223
14406
|
|
|
14224
14407
|
//#endregion
|
|
14225
|
-
//#region ../mcp-core/dist/otel-semantics-
|
|
14408
|
+
//#region ../mcp-core/dist/otel-semantics-ji8CZiqz.js
|
|
14226
14409
|
var namespace$72 = "android";
|
|
14227
14410
|
var description$72 = "The Android platform on which the Android application is running.\n";
|
|
14228
14411
|
var attributes$72 = {
|
|
@@ -19068,7 +19251,7 @@ function createOtelLookupTool(options) {
|
|
|
19068
19251
|
}
|
|
19069
19252
|
|
|
19070
19253
|
//#endregion
|
|
19071
|
-
//#region ../mcp-core/dist/whoami-
|
|
19254
|
+
//#region ../mcp-core/dist/whoami-B-N3_K3B.js
|
|
19072
19255
|
/**
|
|
19073
19256
|
* Get the current authenticated user's information from Sentry API
|
|
19074
19257
|
*/
|
|
@@ -19097,7 +19280,7 @@ function createWhoamiTool(options) {
|
|
|
19097
19280
|
}
|
|
19098
19281
|
|
|
19099
19282
|
//#endregion
|
|
19100
|
-
//#region ../mcp-core/dist/utils-
|
|
19283
|
+
//#region ../mcp-core/dist/utils-Dehfm_qW.js
|
|
19101
19284
|
function getStringValue(event, key, defaultValue = "") {
|
|
19102
19285
|
const value = event[key];
|
|
19103
19286
|
return typeof value === "string" ? value : defaultValue;
|
|
@@ -19150,7 +19333,7 @@ function createDatasetAttributesTool(options) {
|
|
|
19150
19333
|
"logs"
|
|
19151
19334
|
]).describe("The dataset to query attributes for") }),
|
|
19152
19335
|
execute: async ({ dataset }) => {
|
|
19153
|
-
const { BASE_COMMON_FIELDS, DATASET_FIELDS, RECOMMENDED_FIELDS: RECOMMENDED_FIELDS$1, NUMERIC_FIELDS } = await import("./config-
|
|
19336
|
+
const { BASE_COMMON_FIELDS, DATASET_FIELDS, RECOMMENDED_FIELDS: RECOMMENDED_FIELDS$1, NUMERIC_FIELDS, DATASET_EXAMPLES } = await import("./config-BEgU9ylR.js");
|
|
19154
19337
|
const { attributes: customAttributes, fieldTypes } = await fetchCustomAttributes(apiService, organizationSlug, dataset, projectId);
|
|
19155
19338
|
const allFields = {
|
|
19156
19339
|
...BASE_COMMON_FIELDS,
|
|
@@ -19176,13 +19359,16 @@ ${Object.keys(allFieldTypes).length > 30 ? `\n... and ${Object.keys(allFieldType
|
|
|
19176
19359
|
|
|
19177
19360
|
IMPORTANT: Only use numeric aggregate functions (avg, sum, min, max, percentiles) with numeric fields. Use count() or count_unique() for non-numeric fields.
|
|
19178
19361
|
|
|
19179
|
-
|
|
19362
|
+
EXAMPLE QUERIES FOR ${dataset.toUpperCase()}:
|
|
19363
|
+
${DATASET_EXAMPLES[dataset].map((ex) => `- "${ex.description}" →\n ${JSON.stringify(ex.output)}`).join("\n\n")}
|
|
19364
|
+
|
|
19365
|
+
Use these examples as patterns for constructing your query.`;
|
|
19180
19366
|
}
|
|
19181
19367
|
});
|
|
19182
19368
|
}
|
|
19183
19369
|
|
|
19184
19370
|
//#endregion
|
|
19185
|
-
//#region ../mcp-core/dist/agent-
|
|
19371
|
+
//#region ../mcp-core/dist/agent-B24BDcpH.js
|
|
19186
19372
|
const searchEventsAgentOutputSchema = z.object({
|
|
19187
19373
|
dataset: z.enum([
|
|
19188
19374
|
"spans",
|
|
@@ -19236,7 +19422,7 @@ async function searchEventsAgent(options) {
|
|
|
19236
19422
|
}
|
|
19237
19423
|
|
|
19238
19424
|
//#endregion
|
|
19239
|
-
//#region ../mcp-core/dist/formatters-
|
|
19425
|
+
//#region ../mcp-core/dist/formatters-CBiThZnb.js
|
|
19240
19426
|
/**
|
|
19241
19427
|
* Format an explanation for how a natural language query was translated
|
|
19242
19428
|
*/
|
|
@@ -19258,12 +19444,12 @@ function formatErrorResults(params) {
|
|
|
19258
19444
|
output += `**View these results in Sentry**:\n${explorerUrl}\n`;
|
|
19259
19445
|
output += `_Please share this link with the user to view the search results in their Sentry dashboard._\n\n`;
|
|
19260
19446
|
if (eventData.length === 0) {
|
|
19261
|
-
|
|
19447
|
+
logInfo(`No error events found for query: ${naturalLanguageQuery}`, { extra: {
|
|
19262
19448
|
query: sentryQuery,
|
|
19263
19449
|
fields,
|
|
19264
19450
|
organizationSlug,
|
|
19265
19451
|
dataset: "errors"
|
|
19266
|
-
});
|
|
19452
|
+
} });
|
|
19267
19453
|
output += `No results found.\n\n`;
|
|
19268
19454
|
output += `Try being more specific or using different terms in your search.\n`;
|
|
19269
19455
|
return output;
|
|
@@ -19322,12 +19508,12 @@ function formatLogResults(params) {
|
|
|
19322
19508
|
output += `**View these results in Sentry**:\n${explorerUrl}\n`;
|
|
19323
19509
|
output += `_Please share this link with the user to view the search results in their Sentry dashboard._\n\n`;
|
|
19324
19510
|
if (eventData.length === 0) {
|
|
19325
|
-
|
|
19511
|
+
logInfo(`No log events found for query: ${naturalLanguageQuery}`, { extra: {
|
|
19326
19512
|
query: sentryQuery,
|
|
19327
19513
|
fields,
|
|
19328
19514
|
organizationSlug,
|
|
19329
19515
|
dataset: "logs"
|
|
19330
|
-
});
|
|
19516
|
+
} });
|
|
19331
19517
|
output += `No results found.\n\n`;
|
|
19332
19518
|
output += `Try being more specific or using different terms in your search.\n`;
|
|
19333
19519
|
return output;
|
|
@@ -19403,12 +19589,12 @@ function formatSpanResults(params) {
|
|
|
19403
19589
|
output += `**View these results in Sentry**:\n${explorerUrl}\n`;
|
|
19404
19590
|
output += `_Please share this link with the user to view the search results in their Sentry dashboard._\n\n`;
|
|
19405
19591
|
if (eventData.length === 0) {
|
|
19406
|
-
|
|
19592
|
+
logInfo(`No span events found for query: ${naturalLanguageQuery}`, { extra: {
|
|
19407
19593
|
query: sentryQuery,
|
|
19408
19594
|
fields,
|
|
19409
19595
|
organizationSlug,
|
|
19410
19596
|
dataset: "spans"
|
|
19411
|
-
});
|
|
19597
|
+
} });
|
|
19412
19598
|
output += `No results found.\n\n`;
|
|
19413
19599
|
output += `Try being more specific or using different terms in your search.\n`;
|
|
19414
19600
|
return output;
|
|
@@ -19454,10 +19640,10 @@ function formatSpanResults(params) {
|
|
|
19454
19640
|
}
|
|
19455
19641
|
|
|
19456
19642
|
//#endregion
|
|
19457
|
-
//#region ../mcp-core/dist/handler-
|
|
19643
|
+
//#region ../mcp-core/dist/handler-BV5deuNu.js
|
|
19458
19644
|
var handler_default = defineTool({
|
|
19459
19645
|
name: "search_events",
|
|
19460
|
-
|
|
19646
|
+
skills: [
|
|
19461
19647
|
"inspect",
|
|
19462
19648
|
"triage",
|
|
19463
19649
|
"seer"
|
|
@@ -19595,10 +19781,10 @@ var handler_default = defineTool({
|
|
|
19595
19781
|
});
|
|
19596
19782
|
|
|
19597
19783
|
//#endregion
|
|
19598
|
-
//#region ../mcp-core/dist/create-team-
|
|
19784
|
+
//#region ../mcp-core/dist/create-team-Dy96alMI.js
|
|
19599
19785
|
var create_team_default = defineTool({
|
|
19600
19786
|
name: "create_team",
|
|
19601
|
-
|
|
19787
|
+
skills: ["project-management"],
|
|
19602
19788
|
requiredScopes: ["team:write"],
|
|
19603
19789
|
description: [
|
|
19604
19790
|
"Create a new team in Sentry.",
|
|
@@ -19650,10 +19836,10 @@ var create_team_default = defineTool({
|
|
|
19650
19836
|
});
|
|
19651
19837
|
|
|
19652
19838
|
//#endregion
|
|
19653
|
-
//#region ../mcp-core/dist/create-project-
|
|
19839
|
+
//#region ../mcp-core/dist/create-project-CgOCqPNP.js
|
|
19654
19840
|
var create_project_default = defineTool({
|
|
19655
19841
|
name: "create_project",
|
|
19656
|
-
|
|
19842
|
+
skills: ["project-management"],
|
|
19657
19843
|
requiredScopes: ["project:write", "team:read"],
|
|
19658
19844
|
description: [
|
|
19659
19845
|
"Create a new project in Sentry (includes DSN automatically).",
|
|
@@ -19727,10 +19913,10 @@ var create_project_default = defineTool({
|
|
|
19727
19913
|
});
|
|
19728
19914
|
|
|
19729
19915
|
//#endregion
|
|
19730
|
-
//#region ../mcp-core/dist/update-project-
|
|
19916
|
+
//#region ../mcp-core/dist/update-project-CMtXKaXN.js
|
|
19731
19917
|
var update_project_default = defineTool({
|
|
19732
19918
|
name: "update_project",
|
|
19733
|
-
|
|
19919
|
+
skills: ["project-management"],
|
|
19734
19920
|
requiredScopes: ["project:write"],
|
|
19735
19921
|
description: [
|
|
19736
19922
|
"Update project settings in Sentry, such as name, slug, platform, and team assignment.",
|
|
@@ -19845,10 +20031,10 @@ var update_project_default = defineTool({
|
|
|
19845
20031
|
});
|
|
19846
20032
|
|
|
19847
20033
|
//#endregion
|
|
19848
|
-
//#region ../mcp-core/dist/create-dsn-
|
|
20034
|
+
//#region ../mcp-core/dist/create-dsn-C-zvRMtE.js
|
|
19849
20035
|
var create_dsn_default = defineTool({
|
|
19850
20036
|
name: "create_dsn",
|
|
19851
|
-
|
|
20037
|
+
skills: ["project-management"],
|
|
19852
20038
|
requiredScopes: ["project:write"],
|
|
19853
20039
|
description: [
|
|
19854
20040
|
"Create an additional DSN for an EXISTING project.",
|
|
@@ -19905,10 +20091,10 @@ var create_dsn_default = defineTool({
|
|
|
19905
20091
|
});
|
|
19906
20092
|
|
|
19907
20093
|
//#endregion
|
|
19908
|
-
//#region ../mcp-core/dist/find-dsns-
|
|
20094
|
+
//#region ../mcp-core/dist/find-dsns-sufkfAux.js
|
|
19909
20095
|
var find_dsns_default = defineTool({
|
|
19910
20096
|
name: "find_dsns",
|
|
19911
|
-
|
|
20097
|
+
skills: ["project-management"],
|
|
19912
20098
|
requiredScopes: ["project:read"],
|
|
19913
20099
|
description: [
|
|
19914
20100
|
"List all Sentry DSNs for a specific project.",
|
|
@@ -19956,7 +20142,7 @@ var find_dsns_default = defineTool({
|
|
|
19956
20142
|
});
|
|
19957
20143
|
|
|
19958
20144
|
//#endregion
|
|
19959
|
-
//#region ../mcp-core/dist/fetch-utils-
|
|
20145
|
+
//#region ../mcp-core/dist/fetch-utils-C6qSgZai.js
|
|
19960
20146
|
/**
|
|
19961
20147
|
* Fetch with timeout using AbortController
|
|
19962
20148
|
* @param url - The URL to fetch
|
|
@@ -20006,10 +20192,10 @@ async function retryWithBackoff(fn, { maxRetries = 3, initialDelay = 1e3, should
|
|
|
20006
20192
|
}
|
|
20007
20193
|
|
|
20008
20194
|
//#endregion
|
|
20009
|
-
//#region ../mcp-core/dist/analyze-issue-with-seer-
|
|
20195
|
+
//#region ../mcp-core/dist/analyze-issue-with-seer-jcYxRIL1.js
|
|
20010
20196
|
var analyze_issue_with_seer_default = defineTool({
|
|
20011
20197
|
name: "analyze_issue_with_seer",
|
|
20012
|
-
|
|
20198
|
+
skills: ["seer"],
|
|
20013
20199
|
requiredScopes: [],
|
|
20014
20200
|
description: [
|
|
20015
20201
|
"Use Seer to analyze production errors and get detailed root cause analysis with specific code fixes.",
|
|
@@ -20194,10 +20380,10 @@ var analyze_issue_with_seer_default = defineTool({
|
|
|
20194
20380
|
});
|
|
20195
20381
|
|
|
20196
20382
|
//#endregion
|
|
20197
|
-
//#region ../mcp-core/dist/search-docs-
|
|
20383
|
+
//#region ../mcp-core/dist/search-docs-BzvTE9Na.js
|
|
20198
20384
|
var search_docs_default = defineTool({
|
|
20199
20385
|
name: "search_docs",
|
|
20200
|
-
|
|
20386
|
+
skills: ["docs"],
|
|
20201
20387
|
requiredScopes: [],
|
|
20202
20388
|
description: [
|
|
20203
20389
|
"Search Sentry documentation for SDK setup, instrumentation, and configuration guidance.",
|
|
@@ -20277,10 +20463,10 @@ var search_docs_default = defineTool({
|
|
|
20277
20463
|
});
|
|
20278
20464
|
|
|
20279
20465
|
//#endregion
|
|
20280
|
-
//#region ../mcp-core/dist/get-doc-
|
|
20466
|
+
//#region ../mcp-core/dist/get-doc-CImfwkht.js
|
|
20281
20467
|
var get_doc_default = defineTool({
|
|
20282
20468
|
name: "get_doc",
|
|
20283
|
-
|
|
20469
|
+
skills: ["docs"],
|
|
20284
20470
|
requiredScopes: [],
|
|
20285
20471
|
description: [
|
|
20286
20472
|
"Fetch the full markdown content of a Sentry documentation page.",
|
|
@@ -20354,7 +20540,7 @@ var get_doc_default = defineTool({
|
|
|
20354
20540
|
});
|
|
20355
20541
|
|
|
20356
20542
|
//#endregion
|
|
20357
|
-
//#region ../mcp-core/dist/dataset-fields-
|
|
20543
|
+
//#region ../mcp-core/dist/dataset-fields-nvbboMpe.js
|
|
20358
20544
|
/**
|
|
20359
20545
|
* Discover available fields for a dataset by querying Sentry's tags API
|
|
20360
20546
|
*/
|
|
@@ -20504,7 +20690,7 @@ function getCommonPatterns(dataset) {
|
|
|
20504
20690
|
}
|
|
20505
20691
|
|
|
20506
20692
|
//#endregion
|
|
20507
|
-
//#region ../mcp-core/dist/config-
|
|
20693
|
+
//#region ../mcp-core/dist/config-BFaJp4hW.js
|
|
20508
20694
|
/**
|
|
20509
20695
|
* Configuration for the search-issues agent
|
|
20510
20696
|
*/
|
|
@@ -20576,7 +20762,7 @@ Always use the issueFields tool to discover available fields when needed.
|
|
|
20576
20762
|
Use the whoami tool when you need to resolve 'me' references.`;
|
|
20577
20763
|
|
|
20578
20764
|
//#endregion
|
|
20579
|
-
//#region ../mcp-core/dist/agent-
|
|
20765
|
+
//#region ../mcp-core/dist/agent-4n2tvUk3.js
|
|
20580
20766
|
const searchIssuesAgentOutputSchema = z.object({
|
|
20581
20767
|
query: z.string().describe("The Sentry issue search query"),
|
|
20582
20768
|
sort: z.enum([
|
|
@@ -20610,7 +20796,7 @@ async function searchIssuesAgent(options) {
|
|
|
20610
20796
|
}
|
|
20611
20797
|
|
|
20612
20798
|
//#endregion
|
|
20613
|
-
//#region ../mcp-core/dist/formatters-
|
|
20799
|
+
//#region ../mcp-core/dist/formatters-W4LF85x9.js
|
|
20614
20800
|
/**
|
|
20615
20801
|
* Format an explanation for how a natural language query was translated
|
|
20616
20802
|
*/
|
|
@@ -20634,12 +20820,12 @@ function formatIssueResults(params) {
|
|
|
20634
20820
|
output += `⚠️ **IMPORTANT**: Display these issues as highlighted cards with status indicators, assignee info, and clickable Issue IDs.\n\n`;
|
|
20635
20821
|
}
|
|
20636
20822
|
if (issues.length === 0) {
|
|
20637
|
-
|
|
20823
|
+
logInfo(`No issues found for query: ${naturalLanguageQuery || query}`, { extra: {
|
|
20638
20824
|
query,
|
|
20639
20825
|
organizationSlug,
|
|
20640
20826
|
projectSlug: projectSlugOrId,
|
|
20641
20827
|
naturalLanguageQuery
|
|
20642
|
-
});
|
|
20828
|
+
} });
|
|
20643
20829
|
output += "No issues found matching your search criteria.\n\n";
|
|
20644
20830
|
output += "Try adjusting your search criteria or time range.";
|
|
20645
20831
|
return output;
|
|
@@ -20691,10 +20877,10 @@ function formatDate(dateString) {
|
|
|
20691
20877
|
}
|
|
20692
20878
|
|
|
20693
20879
|
//#endregion
|
|
20694
|
-
//#region ../mcp-core/dist/handler-
|
|
20880
|
+
//#region ../mcp-core/dist/handler-DqBNjidz.js
|
|
20695
20881
|
var handler_default$1 = defineTool({
|
|
20696
20882
|
name: "search_issues",
|
|
20697
|
-
|
|
20883
|
+
skills: [
|
|
20698
20884
|
"inspect",
|
|
20699
20885
|
"triage",
|
|
20700
20886
|
"seer"
|
|
@@ -20812,7 +20998,7 @@ var handler_default$1 = defineTool({
|
|
|
20812
20998
|
});
|
|
20813
20999
|
|
|
20814
21000
|
//#endregion
|
|
20815
|
-
//#region ../mcp-core/dist/config-
|
|
21001
|
+
//#region ../mcp-core/dist/config-Dh25cVhL.js
|
|
20816
21002
|
/**
|
|
20817
21003
|
* Configuration for the use_sentry embedded agent.
|
|
20818
21004
|
*
|
|
@@ -20831,7 +21017,7 @@ The user may include various parameters to pass to those tools in their prompt.
|
|
|
20831
21017
|
You MUST return tool results directly without interpreting them.`;
|
|
20832
21018
|
|
|
20833
21019
|
//#endregion
|
|
20834
|
-
//#region ../mcp-core/dist/agent-
|
|
21020
|
+
//#region ../mcp-core/dist/agent-bVTgqfc0.js
|
|
20835
21021
|
/**
|
|
20836
21022
|
* Output schema for the embedded agent.
|
|
20837
21023
|
* The agent returns the final result string directly from its tool calls.
|
|
@@ -20853,7 +21039,7 @@ async function useSentryAgent(options) {
|
|
|
20853
21039
|
}
|
|
20854
21040
|
|
|
20855
21041
|
//#endregion
|
|
20856
|
-
//#region ../mcp-core/dist/error-handling-
|
|
21042
|
+
//#region ../mcp-core/dist/error-handling-BVlYIE1J.js
|
|
20857
21043
|
/**
|
|
20858
21044
|
* Type guard to identify user input validation errors.
|
|
20859
21045
|
*/
|
|
@@ -20944,7 +21130,7 @@ async function formatErrorForUser(error) {
|
|
|
20944
21130
|
}
|
|
20945
21131
|
|
|
20946
21132
|
//#endregion
|
|
20947
|
-
//#region ../mcp-core/dist/constraint-helpers-
|
|
21133
|
+
//#region ../mcp-core/dist/constraint-helpers-0jgp7p3K.js
|
|
20948
21134
|
/**
|
|
20949
21135
|
* Determines which tool parameter keys should be filtered out of the schema
|
|
20950
21136
|
* because they will be injected from constraints.
|
|
@@ -21006,7 +21192,7 @@ function getConstraintParametersToInject(constraints, toolInputSchema) {
|
|
|
21006
21192
|
}
|
|
21007
21193
|
|
|
21008
21194
|
//#endregion
|
|
21009
|
-
//#region ../mcp-core/dist/server-
|
|
21195
|
+
//#region ../mcp-core/dist/server-DGF-NUWx.js
|
|
21010
21196
|
/**
|
|
21011
21197
|
* Format tool calls into a readable trace
|
|
21012
21198
|
*/
|
|
@@ -21027,7 +21213,7 @@ function formatToolCallTrace(toolCalls) {
|
|
|
21027
21213
|
}
|
|
21028
21214
|
var handler_default$2 = defineTool({
|
|
21029
21215
|
name: "use_sentry",
|
|
21030
|
-
|
|
21216
|
+
skills: [],
|
|
21031
21217
|
requiredScopes: [],
|
|
21032
21218
|
description: [
|
|
21033
21219
|
"Natural language interface to Sentry via an embedded AI agent.",
|
|
@@ -21121,7 +21307,7 @@ var tools_default = {
|
|
|
21121
21307
|
/**
|
|
21122
21308
|
* Creates and configures a complete MCP server with Sentry instrumentation.
|
|
21123
21309
|
*
|
|
21124
|
-
* The server is built with tools filtered based on the granted
|
|
21310
|
+
* The server is built with tools filtered based on the granted skills in the context.
|
|
21125
21311
|
* Context is captured in tool handler closures and passed directly to handlers.
|
|
21126
21312
|
*
|
|
21127
21313
|
* @example Usage with stdio transport
|
|
@@ -21168,18 +21354,17 @@ function buildServer({ context: context$1, agentMode = false, tools: customTools
|
|
|
21168
21354
|
return wrapMcpServerWithSentry(server$1);
|
|
21169
21355
|
}
|
|
21170
21356
|
/**
|
|
21171
|
-
* Configures an MCP server with tools filtered by granted skills
|
|
21357
|
+
* Configures an MCP server with tools filtered by granted skills.
|
|
21172
21358
|
*
|
|
21173
21359
|
* Internal function used by buildServer(). Use buildServer() instead for most cases.
|
|
21174
|
-
* Tools are filtered at registration time based on grantedSkills
|
|
21175
|
-
*
|
|
21360
|
+
* Tools are filtered at registration time based on grantedSkills, and context is
|
|
21361
|
+
* captured in closures for tool handler execution.
|
|
21176
21362
|
*
|
|
21177
21363
|
* In agent mode, only the use_sentry tool is registered, bypassing authorization checks.
|
|
21178
21364
|
*/
|
|
21179
21365
|
function configureServer({ server: server$1, context: context$1, agentMode = false, tools: customTools }) {
|
|
21180
21366
|
const toolsToRegister = agentMode ? { use_sentry: tools_default.use_sentry } : customTools ?? tools_default;
|
|
21181
21367
|
const grantedSkills = context$1.grantedSkills ? new Set(context$1.grantedSkills) : void 0;
|
|
21182
|
-
const grantedScopes = context$1.grantedScopes ? new Set(context$1.grantedScopes) : void 0;
|
|
21183
21368
|
server$1.server.onerror = (error) => {
|
|
21184
21369
|
const transportLogOptions = {
|
|
21185
21370
|
loggerScope: ["server", "transport"],
|
|
@@ -21189,47 +21374,32 @@ function configureServer({ server: server$1, context: context$1, agentMode = fal
|
|
|
21189
21374
|
};
|
|
21190
21375
|
for (const [toolKey, tool$1] of Object.entries(toolsToRegister)) {
|
|
21191
21376
|
/**
|
|
21192
|
-
* Authorization
|
|
21193
|
-
*
|
|
21194
|
-
*
|
|
21195
|
-
* The server supports two authorization systems:
|
|
21196
|
-
* 1. **Skills System (NEW)** - User-facing permission groups (inspect, triage, etc.)
|
|
21197
|
-
* 2. **Scopes System (LEGACY)** - Low-level API permissions (event:read, project:write, etc.)
|
|
21198
|
-
*
|
|
21199
|
-
* IMPORTANT: These systems are **MUTUALLY EXCLUSIVE** - only one is active per session:
|
|
21377
|
+
* Skills-Based Authorization
|
|
21378
|
+
* ==========================
|
|
21200
21379
|
*
|
|
21201
|
-
*
|
|
21202
|
-
*
|
|
21203
|
-
*
|
|
21204
|
-
* - Empty `requiredSkills: []` means intentionally excluded from skills system
|
|
21205
|
-
* - Authorization: `allowed = hasRequiredSkills(grantedSkills, tool.requiredSkills)`
|
|
21380
|
+
* Tools are filtered at registration time based on grantedSkills.
|
|
21381
|
+
* Tool must have non-empty `skills` array to be exposed.
|
|
21382
|
+
* Empty `skills: []` means intentionally excluded from skills system.
|
|
21206
21383
|
*
|
|
21207
|
-
*
|
|
21208
|
-
* - Falls back to legacy scope checking
|
|
21209
|
-
* - Empty `requiredScopes: []` means no scopes required (always allowed)
|
|
21210
|
-
* - Authorization: `allowed = isToolAllowed(tool.requiredScopes, grantedScopes)`
|
|
21211
|
-
*
|
|
21212
|
-
* ## Tool Visibility:
|
|
21213
|
-
* - If not allowed by active authorization system: tool is NOT registered
|
|
21214
|
-
* - Only registered tools are visible to MCP clients
|
|
21384
|
+
* In agent mode, authorization is skipped - use_sentry handles it internally.
|
|
21215
21385
|
*
|
|
21216
21386
|
* ## Examples:
|
|
21217
21387
|
* ```typescript
|
|
21218
|
-
* // Tool
|
|
21219
|
-
* {
|
|
21388
|
+
* // Tool belongs to "triage" skill only:
|
|
21389
|
+
* { skills: ["triage"] }
|
|
21220
21390
|
*
|
|
21221
|
-
* // Tool
|
|
21222
|
-
* {
|
|
21391
|
+
* // Tool belongs to ALL skills (foundational tool like whoami):
|
|
21392
|
+
* { skills: ALL_SKILLS }
|
|
21223
21393
|
*
|
|
21224
21394
|
* // Tool excluded from skills system (like use_sentry in agent mode):
|
|
21225
|
-
* {
|
|
21395
|
+
* { skills: [] }
|
|
21226
21396
|
* ```
|
|
21227
21397
|
*/
|
|
21228
21398
|
let allowed = false;
|
|
21229
21399
|
if (agentMode) allowed = true;
|
|
21230
21400
|
else if (grantedSkills) {
|
|
21231
|
-
if (tool$1.
|
|
21232
|
-
}
|
|
21401
|
+
if (tool$1.skills && tool$1.skills.length > 0) allowed = isEnabledBySkills(grantedSkills, tool$1.skills);
|
|
21402
|
+
}
|
|
21233
21403
|
if (!allowed) continue;
|
|
21234
21404
|
if (toolKey === "find_organizations" && context$1.constraints.organizationSlug || toolKey === "find_projects" && context$1.constraints.projectSlug) continue;
|
|
21235
21405
|
const constraintKeysToFilter = new Set(getConstraintKeysToFilter(context$1.constraints, tool$1.inputSchema));
|
|
@@ -21274,7 +21444,7 @@ function configureServer({ server: server$1, context: context$1, agentMode = fal
|
|
|
21274
21444
|
}
|
|
21275
21445
|
|
|
21276
21446
|
//#endregion
|
|
21277
|
-
//#region ../mcp-core/dist/sentry-
|
|
21447
|
+
//#region ../mcp-core/dist/sentry-Cim_ihS6.js
|
|
21278
21448
|
const SCRUB_PATTERNS = [
|
|
21279
21449
|
{
|
|
21280
21450
|
pattern: /\bsk-[a-zA-Z0-9]{48}\b/g,
|
|
@@ -21379,7 +21549,7 @@ function sentryBeforeSend(event, hint) {
|
|
|
21379
21549
|
//#region src/index.ts
|
|
21380
21550
|
const packageName = "@sentry/mcp-server";
|
|
21381
21551
|
const allSkills = Object.keys(SKILLS);
|
|
21382
|
-
const usageText = buildUsage(packageName,
|
|
21552
|
+
const usageText = buildUsage(packageName, allSkills);
|
|
21383
21553
|
function die(message) {
|
|
21384
21554
|
console.error(message);
|
|
21385
21555
|
console.error(usageText);
|
|
@@ -21448,7 +21618,6 @@ if (cli.agent) {
|
|
|
21448
21618
|
const SENTRY_TIMEOUT = 5e3;
|
|
21449
21619
|
const context = {
|
|
21450
21620
|
accessToken: cfg.accessToken,
|
|
21451
|
-
grantedScopes: cfg.finalScopes,
|
|
21452
21621
|
grantedSkills: cfg.finalSkills,
|
|
21453
21622
|
constraints: {
|
|
21454
21623
|
organizationSlug: cfg.organizationSlug ?? null,
|